Session message processing method and apparatus, electronic device, computer-readable storage medium, and computer program product
By displaying and integrating text messages and message elements in the conversation interface, the problem of single interaction operation in the conversation interface is solved, and the diversity of conversation messages and the efficiency of human-computer interaction is improved.
Patent Information
- Application Number
- PCT/CN2025/072211
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-07
- Filing Date
- 2025-01-14
- Publication Date
- 2025-08-14
AI Technical Summary
The prior art has relatively single interaction of session messages in the conversation interface, resulting in low human-computer interaction efficiency and hardware processing resource utilization.
The first text message and at least one message element are displayed in the session interface, and in response to the fusion operation, the fused first fusion message is displayed in a different manner, and the fusion message contains the content of the text message and the message element.
It enriches the interaction methods of conversation messages, improves human-computer interaction efficiency and hardware resource utilization.
Smart Images

Figure CN2025072211_14082025_PF_FP_ABST
Abstract
Description
Method, device, electronic device, computer-readable storage medium, and computer program product for processing conversation messages
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] The embodiments of this application are based on and claim the priority of Chinese patent application with application number 2024101759291 and application date February 7, 2024. The entire contents of the Chinese patent application are hereby introduced into the embodiments of this application as a reference. Technical Field
[0003] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device, computer-readable storage medium, and computer program product for processing conversation messages. Background Art
[0004] When conducting conversations based on a conversation interface, related technologies mostly directly send one or more conversation messages (such as text messages or emoticons), but cannot perform other interactive operations on the conversation messages. This results in a relatively simple conversation process, thereby reducing the efficiency of human-computer interaction and the utilization of hardware processing resources. Summary of the Invention
[0005] Embodiments of the present application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing conversation messages, which can improve the diversity of conversation messages, the efficiency of human-computer interaction, and the utilization of hardware processing resources during a conversation.
[0006] The technical solution of the embodiment of the present application is implemented as follows:
[0007] An embodiment of the present application provides a method for processing a conversation message, the method being executed by an electronic device and comprising:
[0008] In the conversation interface, the first text message is displayed in a first style, and at least one message element is displayed, wherein the message element includes at least one of the second text message and an emoticon;
[0009] In response to a fusion operation on the first text message and at least one of the message elements, displaying a fused first fused message in a second style;
[0010] The first fused message includes at least the content of the first text message and the content of the message element, and the second style is different from the first style.
[0011] An embodiment of the present application provides a device for processing a session message, including:
[0012] a display module configured to display the first text message in a first style and at least one message element in the conversation interface, the message element including at least one of the second text message and an emoticon;
[0013] A fusion module is configured to, in response to a fusion operation on the first text message and at least one of the message elements, display a first fused message obtained by fusion in a second style; wherein the first fused message includes at least the content of the first text message and the content of the message element, and the second style is different from the first style.
[0014] An embodiment of the present application provides an electronic device, including:
[0015] a memory configured to store computer-executable instructions or a computer program;
[0016] The processor is configured to implement the method for processing conversation messages provided in the embodiment of the present application when executing the computer executable instructions or computer program stored in the memory.
[0017] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions are executed by a processor, the method for processing a session message provided in the embodiment of the present application is implemented.
[0018] An embodiment of the present application provides a computer program product, which includes computer-executable instructions or a computer program. A processor executes the computer-executable instructions or the computer program, so that the electronic device executes the method for processing conversation messages provided in the embodiment of the present application.
[0019] The embodiments of the present application have the following beneficial effects:
[0020] First, a first text message is displayed in a conversation interface using a first style, along with at least one message element including a second text message and at least one of an emoticon. Then, the first text message is fused with at least one of the at least one message elements to generate a first fused message including the content of the first text message and the content of the message element. The first fused message is then displayed using a second style different from the first style. By fusing the text message and the message elements, the display style and content of the text message are changed. This not only enriches the interactive methods of conversation messages but also increases the diversity of conversation messages, thereby improving the efficiency of human-computer interaction and the hardware resource utilization of electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] FIG1 is a schematic diagram of the architecture of a session message processing system 100 provided in an embodiment of the present application;
[0022] FIG2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0023] FIG3 is a flow chart of a method for processing a session message according to an embodiment of the present application;
[0024] FIG4 is a schematic diagram of a first process of obtaining a first fusion message by fusion according to an embodiment of the present application;
[0025] FIG5 is a schematic diagram of displaying a first expression in a first fusion message provided by an embodiment of the present application;
[0026] FIG6 is a schematic diagram of displaying a second fusion message in a third style according to an embodiment of the present application;
[0027] FIG7 is a schematic diagram of a process of switching a first expression to a third expression according to an embodiment of the present application;
[0028] FIG8 is a schematic diagram of a second process of obtaining a first fusion message by fusion according to an embodiment of the present application;
[0029] FIG9 is a schematic diagram of displaying a third fusion message in a fourth style according to an embodiment of the present application;
[0030] FIG10 is a schematic diagram of displaying a fourth fusion message in a fifth style according to an embodiment of the present application;
[0031] FIG11 is a schematic diagram of fixing a bullet screen at a target position according to an embodiment of the present application;
[0032] FIG12 is a schematic diagram of a reply barrage of other objects displayed floating above the barrage provided by an embodiment of the present application;
[0033] FIG13 is a flow chart of changing the chat bubble style through expressions and gestures according to an embodiment of the present application;
[0034] FIG14 is a schematic diagram of the process of displaying and restoring barrage provided by an embodiment of the present application;
[0035] FIG15 is a flow chart of changing the emotion represented by a bubble through operation according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting the embodiments of the present application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0037] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0038] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0040] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0041] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be real-time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0042] 2) Client, also known as user end, refers to the program corresponding to the server that provides local services to users. Except for some applications that can only run locally, it is generally installed on the terminal and needs to cooperate with the server to run. That is, there must be corresponding servers and service programs on the network to provide corresponding services. In this way, specific communication connections need to be established between the client and server to ensure the normal operation of the application, such as virtual scene clients (such as game clients) and video clients.
[0043] 3) Artificial Intelligence (AI) refers to the theories, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, to perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that seeks to understand the essence of intelligence and produce new intelligent machines that can respond in a manner similar to human intelligence. AI also involves studying the design principles and implementation methods of various intelligent machines, enabling them to possess the capabilities of perception, reasoning, and decision-making.
[0044] 4) Message bubble, also known as chat bubble, refers to a style box that surrounds the text sent by the user in a chat scene.
[0045] 5) Pinch operation, a gesture operation performed on a touch screen device by using two fingers (usually the thumb and index finger) at the same time, is used to zoom in or out on the content on the screen, such as a web page, image or map. When the two fingers are in contact with the screen at the same time and move in a relatively stationary manner, if the fingers are close (approaching each other on the screen), the content on the display screen will be zoomed out; if the fingers are separated (moving away from each other on the screen), the content on the display screen will be zoomed in.
[0046] Refer to Figure 1, which is a schematic diagram of the architecture of a session message processing system 100 provided in an embodiment of the present application, a terminal (terminal 400 is shown as an example), and the terminal 400 is connected to the server 200 through a network 300, wherein the network 300 can be a wide area network or a local area network, or a combination of the two, and data transmission is achieved using wireless or wired links.
[0047] The server 200 is configured to send display data of the conversation interface including the first text message to the terminal 400;
[0048] Terminal 400 is configured to receive display data of a conversation interface including a first text message, and based on the display data, display the first text message in a first style in the conversation interface, and display at least one message element, the message element including at least one of a second text message and an emoticon; in response to a fusion operation on the first text message and the at least one message element, display a first fused message obtained by fusion in a second style; wherein the first fused message includes at least the content of the first text message and the content of the message element, and the second style is different from the first style.
[0049] In some embodiments, the server 200 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal 400 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a set-top box, an intelligent voice interaction device, a smart home appliance, a virtual reality device, a vehicle-mounted terminal, an aircraft, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device, an intelligent speaker, and a smart watch, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0050] Next, an electronic device that implements the method for processing session messages provided in an embodiment of the present application is described. Referring to Figure 2, Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device can be a server or a terminal. Taking the electronic device as the terminal shown in Figure 1 as an example, the electronic device shown in Figure 2 includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the terminal 400 are coupled together through a bus system 440. It can be understood that the bus system 440 is configured to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as bus system 440 in Figure 2.
[0051] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0052] The user interface 430 includes one or more output devices 431 that enable display of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0053] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0054] The memory 450 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0055] In some embodiments, the memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0056] Operating system 451, including system programs configured to handle various basic system services and perform hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., configured to implement various basic services and handle hardware-based tasks;
[0057] A network communication module 452 is configured to reach other electronic devices via one or more (wired or wireless) network interfaces 420 , exemplary network interfaces 420 including Bluetooth, Wireless LAN (WiFi), and Universal Serial Bus (USB);
[0058] a presentation module 453 configured to enable display of information via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430 (e.g., a user interface configured to operate peripheral devices and display content and information);
[0059] The input processing module 454 is configured to detect user input or interaction from one or more input devices 432 and to translate the detected input or interaction.
[0060] In some embodiments, the apparatus provided in the embodiments of the present application can be implemented in software. FIG2 shows a session message processing apparatus 455 stored in memory 450. This apparatus 455 can be software in the form of a program or plug-in, and includes the following software modules: a display module 4551 and a fusion module 4552. These modules are logical and can be arbitrarily combined or further separated according to the functions implemented. The functions of each module will be described below.
[0061] In other embodiments, the apparatus provided in the embodiments of the present application may be implemented in hardware. As an example, the apparatus for processing a session message provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the session message processing method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0062] In some embodiments, the terminal or server can implement the method for processing session messages provided in the embodiments of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP), that is, a local client, that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP or a web browser APP; it can also be a small program, that is, a program that can be run only by downloading it into a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of client, module or plug-in.
[0063] Based on the above description of the session message processing system and electronic device provided in the embodiment of the present application, the following describes the session message processing method provided in the embodiment of the present application. In actual implementation, the session message processing method provided in the embodiment of the present application can be implemented independently by a terminal or a server, or by a terminal and a server in collaboration. The following description uses the example of terminal 400 in Figure 1 independently executing the session message processing method provided in the embodiment of the present application. Referring to Figure 3, Figure 3 is a schematic flow chart of the session message processing method provided in the embodiment of the present application. Next, the steps shown in Figure 3 will be described.
[0064] In step 101, a terminal displays a first text message in a conversation interface in a first style and displays at least one message element, where the message element includes at least one of a second text message and an emoticon.
[0065] In actual implementation, the terminal is provided with a client that supports the processing of conversation messages, such as a video playback client, a browser client, a social client, etc. When the user opens the client on the terminal and the terminal runs the client, the terminal can display a conversation interface for the target object based on the client, and display the first text message in the conversation interface in the first style.
[0066] It should be noted that the message element is used to indicate a display element in the conversation interface associated with an operation of the target object, that is, a display element in the conversation interface that the target object can directly operate. For example, it can be a conversation message, including text conversation messages and emoticons. Meanwhile, the style refers to the display format of conversation messages, such as text messages and emoticons, in the conversation interface. For example, it can indicate a message bubble or a message card. Different styles are used to indicate at least one of the shape, color, and size of the message bubble or message card, which is not limited in this embodiment of the application. The first style can be pre-set.
[0067] In actual implementation, the first text message may be a text message sent directly by the user, or the first text message may be obtained through fusion. When the first text message is obtained through fusion, there are multiple ways to display the first text message using the first style in the conversation interface. Next, taking two of them as examples, the process of displaying the first text message using the first style in the conversation interface is described.
[0068] In some embodiments, the first text message is obtained by a fusion operation of the user. Before the first text message is displayed in the conversation interface using the first style, at least two text messages may be displayed in the conversation interface. Thus, the process of displaying the first text message in the conversation interface using the first style may be, in response to the fusion operation on the at least two text messages, displaying the first text message obtained by fusion of the at least two text messages in the conversation interface using the first style, where the first text message includes the text content of the at least two text messages.
[0069] It should be noted that, when there are two at least two text messages, the fusion operation for the at least two text messages may be a pinching operation for the at least two text messages, that is, in response to the pinching operation for the at least two text messages, the process of merging the at least two text messages is displayed; when the ratio of the third area to the fourth area reaches the target area ratio, the display of the at least two text messages is cancelled; wherein the third area is the area of the overlapping area of the at least two text messages; the fourth area is the display area of any one of the at least two text messages; and the first text message obtained by merging the at least two text messages is displayed in the first style.
[0070] It should be noted that the target area ratio can be pre-set; at the same time, each text message can be carried in a message bubble or a message card, and the display area of the text message is used to indicate the area occupied by the corresponding message bubble or message card, and the overlapping area of the text message also refers to the overlapping area between corresponding message bubbles or message cards. Specifically, when the text message is carried in a message bubble, the first style indicates the style of the message bubble, and when the text message is carried in a message card, the first style indicates the style of the message card.
[0071] Alternatively, when there are two at least two text messages, the fusion operation for the at least two text messages may be a drag operation and a release operation for the at least two text messages, that is, in response to the drag operation for the target text message in the at least two text messages, the target text message is dragged to another text message; in response to the release operation for the target text message, the first text message obtained by fusion of the target text message and the other text message is displayed in a first style.
[0072] It should be noted that, as mentioned above, each text message can be carried in a message bubble or a message card, and the dragging operation on the text message is the dragging operation on the message bubble or message card where the text message is located.
[0073] In actual implementation, the conversation interface includes a message editing area and a message display area. The message editing area is used for users to edit the conversation messages sent, and the message display area is used for multiple users to browse the messages sent by each other; and the text messages (including the first text message) are displayed in the message display area.
[0074] By applying the above embodiment, the first text message is obtained by fusing at least two text messages in the conversation interface, which enriches the interaction mode of the conversation messages and increases the diversity of the conversation messages, thereby improving the human-computer interaction efficiency and the hardware resource utilization of the electronic device.
[0075] In other embodiments, the first text message is automatically merged, and thus, in the conversation interface, the process of displaying the first text message in the first style may be, in the conversation interface, displaying at least two consecutively received text messages and the sending time of each text message; in response to the difference in the sending time of the at least two text messages being less than the first difference threshold, when the content overlap of the text messages reaches the overlap threshold, displaying the process of fusing the at least two text messages, and displaying the first text message obtained by fusing the at least two text messages in the first style.
[0076] It should be noted that if at least two text messages are sent to the same recipient and no other messages are received between the text messages, the at least two text messages are considered to have been received consecutively. The term "received" here refers to the client on the terminal, and therefore can refer to at least two text messages sent by the recipient corresponding to the current terminal, and thus received by the client. The term "no other messages received between the text messages" refers to messages sent by the recipient themselves, as well as messages sent by other recipients with whom the recipient is engaged in a conversation via the conversation interface.
[0077] It should be noted that the first difference threshold can be pre-set, for example, it can be 1 second or 2 seconds, etc.; at the same time, the overlap threshold can also be pre-set, for example, it can be 90%, and the content overlap of each text message can refer to the similarity of the text content, including text similarity and intention similarity. When the content overlap includes text similarity, the content overlap is determined based on the same number of unit characters (such as a single Chinese character or a single word, etc.) in each text message. When the content overlap includes intention similarity, the intention of each text message is firstly identified to obtain the intention represented by each text message, and then the content overlap of the text messages is determined based on the similarity between the intentions of each text message.
[0078] It should be noted that, when the number of the at least two text messages is greater than two, the above process is repeated for every two text messages in the at least two text messages until a fused first text message is finally obtained.
[0079] In practical applications, at least two text messages are automatically merged based on the sending time of the at least two text messages, which enriches the interaction mode of conversation messages and improves the diversity of conversation messages.
[0080] Step 102: In response to a fusion operation on the first text message and at least one message element, display the fused first fused message in a second style; wherein the first fused message includes at least the content of the first text message and the content of the message element, and the second style is different from the first style.
[0081] It should be noted that, as mentioned above, style refers to the display form of conversation messages such as text messages and emoticons in the conversation interface. For example, it can indicate message bubbles or message cards. Different styles are used to indicate that at least one of the shape, style, color, and size of the message bubble or message card is different. Therefore, the second style is different from the first style, which means that at least one of the shape, color, and size of the message bubble or message card indicated by the first style and the second style is different. Among them, the second style is used to assist the text content in the first fused message to indicate the emotion of the first fused message, that is, to emphasize that the text content in the first fused message indicates the emotion of the first fused message.
[0082] In actual implementation, the fusion operation on the first text message and at least one message element refers to a fusion operation on the first text message and at least one of the at least one message elements displayed in the conversation interface. That is, the at least one message element targeted by the fusion operation is one or more message elements displayed in the conversation interface, and the fusion operation is to fuse the first text message and one or more message elements displayed in the conversation interface.
[0083] Next, at least one of the at least one message elements is used as the target message element, and the process of displaying the first fused message obtained by the fusion in a second style in response to the fusion operation on the first text message and at least one message element is described; wherein, the target message element can indicate one message element or multiple message elements, and this embodiment of the present application does not limit this.
[0084] In actual implementation, since the message elements include at least one of a second text message and an emoticon, the process of displaying the first fused message obtained by using the second style in response to the fusion operation on the first text message and at least one message element is different for different situations of the target message elements.
[0085] This is for the case where the target message element includes the second text message.
[0086] In actual implementation, when at least one message element, i.e., the target message element, includes a second text message, the fusion operation may include a pinch operation on the first text message and the second text message, or the fusion operation may also include a drag operation and a release operation on the first text message and the second text message, or the fusion operation may also be a sending operation on the second text message.
[0087] In some embodiments, when the fusion operation includes a pinching operation on the first text message and the second text message, the process of displaying the fused first fusion message in the second style in response to the fusion operation on the first text message and at least one message element may be, in response to the pinching operation on the first text message and the second text message, displaying the process of merging the first text message and the second text message; when the ratio of the first area to the second area reaches a target ratio, canceling the display of the first text message and the second text message; wherein the first area is the area of the overlapping area of the first text message and the second text message; the second area is the display area of the first text message or the display area of the second text message; and the first fusion message obtained by fusing the first text message and the second text message is displayed in the second style.
[0088] It should be noted that the target ratio here is similar to the target area ratio mentioned above, and the target ratio can be pre-set; at the same time, the first text message and the second text message can be carried in a message bubble or a message card, and the display area of the first text message and the second text message is used to indicate the area occupied by the corresponding message bubble or message card, and the overlapping area of the first text message and the second text message also refers to the overlapping area between the corresponding message bubbles or message cards. Among them, when the first text message and the second text message are carried in a message bubble, the first style and the second style indicate the style of the message bubble, and when the first text message and the second text message are carried in a message card, the first style and the second style indicate the style of the message card.
[0089] For example, referring to Figure 4, Figure 4 is a schematic diagram of the first process of fusion to obtain the first fused message provided in an embodiment of the present application. Based on Figure 4, the area indicated by the dotted box 403 in Figure 4a is the message display area. In response to the fusion operation of the two text messages indicated by the dotted box 401 in Figure 4a, namely the first text message and the second text message, such as a pinching operation, the first fused message indicated by 402 in Figure 4b is displayed.
[0090] By applying the above embodiment, based on the pinch operation on the first text message and the second text message, the first text message and the second text message are fused to obtain a first fused message, and the first fused message is displayed in a second style; in this way, not only the interaction mode of the conversation message is enriched, but also the diversity of the conversation message is improved, while also improving the human-computer interaction efficiency and the hardware resource utilization of the electronic device.
[0091] In other embodiments, when the fusion operation includes a drag operation and a release operation on the first text message and the second text message, the process of displaying the first fused message obtained by the fusion in the second style in response to the fusion operation on the first text message and at least one message element may be, in response to the drag operation on the second text message, dragging the second text message to the first text message; and in response to the release operation on the second text message, displaying the first fused message obtained by the fusion of the first text message and the second text message in the second style.
[0092] It should be noted that, in response to the drag operation on the first text message, the first text message can be dragged to the second text message, and then in response to the release operation on the first text message, the first fused message obtained by fusion of the first text message and the second text message can be displayed in the second style. The embodiment of the present application does not limit this. At the same time, as mentioned above, the first text message and the second text message can be carried in message bubbles or message cards, and the drag operation on the first text message and the second text message is, that is, the drag operation on the message bubbles or message cards where the first text message and the second text message are located.
[0093] In other embodiments, when the fusion operation includes a sending operation for a second text message, in response to the fusion operation for a first text message and at least one message element, before displaying the fused first fused message in the second style, the sending time of the first text message may also be displayed at the associated position of the first text message; when a sending operation for the second text message is received, and the difference between the sending time of the sending operation and the sending time of the first text message is less than a second difference threshold, the sending operation is determined as a fusion operation for the first text message and the second text message.
[0094] It should be noted that the second difference threshold is pre-set, for example, it can be 1 second or 2 seconds; here, the conversation interface may include a message editing area and a message display area, the first text message is displayed in the message display area, and before sending the second text message, the second text message is displayed in the message editing area. When a sending operation for the second text message is received, and the difference between the sending time of the sending operation and the sending time of the first text message is less than the second difference threshold, when the user performs the sending operation for the second text message, the second text message will not be displayed in the message display area, but the first text message will be cancelled in the message display area, and a first fused message obtained by fusion of the first text message and the second text message will be displayed.
[0095] By applying the above embodiment, based on the sending time of the first text message and the second text message, the sending operation of the second text message is used as a fusion operation, thereby merging the first text message and the second text message. In this way, not only is the fusion process of the first text message and the second text message simplified, the human-computer interaction efficiency and the hardware resource utilization of the electronic device are improved, but also the interaction mode of the conversation message is enriched and the diversity of the conversation message is increased.
[0096] It should be noted that when at least one message element, that is, the target message element, is the second text message, the message content of the first fused message can be obtained by combining the text contents of each text message, or it can be regenerated based on the text content of the text message, that is, the first fused message can include the content of the first text message and the content of the second text message. For example, when the first text message is "Are you there?" and the second text message is "Are you there!", the first fused message can be "Are you there? Are you there?!" or "Are you there? Are you there!"; it can also include content associated with the content of the first text message and the content of the second text message. For example, when the first text message is "Are you there?" and the second text message is "Are you there!", the first fused message can be "Are you there???!!!".
[0097] It should be noted that, as mentioned above, the first text message can be automatically merged, and here the first text message and the second text message can also be automatically merged. At the same time, the process of automatic fusion of the first text message and the second text message is similar to the process of automatic fusion of the first text message described above. This embodiment of the present application will not be elaborated on.
[0098] In actual implementation, when the message element includes a second text message, and the first fused message is obtained by fusing the first text message and the second text message, it is also possible to display a first expression in the first fused message, where the first expression is used to indicate the emotions represented by the fused first text message and the second text message.
[0099] It should be noted that the first expression can be pre-set. For example, corresponding expressions are set for different emotions such as happiness, anger, sadness, crying, etc. Then, when a fusion operation is received for the first text message and the second text message, emotion recognition is performed on the first text message and the second text message to obtain the emotions represented by the first text message and the second text message. When the emotion represented by the first text message and the emotion represented by the second text message belong to the same category, a pre-set expression corresponding to the emotion, i.e., the first expression, is obtained, and the first expression is displayed in the first fused message. When the emotion represented by the first text message and the emotion represented by the second text message belong to different categories, the expression corresponding to the emotion represented by the first text message and the expression corresponding to the emotion represented by the second text message are respectively obtained, and the two expressions are combined to form the first expression, and the first expression is displayed in the first fused message. Combining the two expressions to form the first expression can be to generate a new expression, i.e., the first expression, based on the two expressions, or to directly use the two expressions as the first expression, for example, to display the two expressions simultaneously, or to switch between the two expressions periodically.
[0100] For example, refer to Figure 5, which is a schematic diagram of displaying the first expression in the first fused message provided by an embodiment of the present application. Based on Figure 5, the dotted box 501 in Figure 5a indicates the first text message and the second text message, and 502 in Figure 5b indicates the first fused message. When the first text message indicated by the dotted box 501 in Figure 5a and the second text message are fused to obtain the first fused message indicated by 502 in Figure 5b, the first expression indicated by 503 is displayed in the first fused message, wherein the emotions represented by the first text message and the second text message are anger, and the emotion represented by the first expression is also anger.
[0101] In actual implementation, in the process of performing emotion recognition on a first text message and a second text message to obtain the emotions represented by the first and second text messages, taking the first text message as an example, first, the message content of the first text message is extracted; emotion keywords in the message content are obtained, where the emotion keywords are used to indicate the emotion represented by the message content, such as words that directly indicate emotions, such as sad, happy, crying, and angry, or emoticons such as TT and QAQ, for example, TT and QAQ can indicate crying, or punctuation marks such as ???, for example, ??? can indicate doubt; then, when the emotion keywords are successfully obtained, a pre-set mapping relationship between the emotion keywords and the emotions is obtained, and the emotion represented by the first text message is determined based on the obtained emotion keywords and the mapping relationship; if the emotion keywords fail to be obtained, a pre-trained emotion recognition model is called to perform emotion recognition on the message content to obtain the emotion represented by the first text message.
[0102] It should be noted that the process of identifying the emotion represented by the second text message is similar to the process of identifying the emotion represented by the first text message, and this embodiment of the present application will not be described in detail.
[0103] In actual applications, by displaying the first expression indicating the emotions represented by the fused first text message and the second text message in the first fused message, not only the display diversity of the conversation message is improved, but also the human-computer interaction efficiency and the hardware resource utilization of the electronic device are improved.
[0104] In actual implementation, as described above, the first fused message may include the first emoticon, and thus the second style may also indicate the style of the message bubble or message card including the first emoticon. Therefore, when the first fused message is displayed in the second style, the emotion indicated by the first fused message can be directly highlighted based on the second style. Furthermore, the first text message may or may not include an emoticon. When the first text message includes an emoticon, the emoticon is different from the first emoticon, thereby making the first style different from the second style. When the first text message does not include an emoticon, the first style is also different from the second style.
[0105] In actual implementation, after the first emoticon is displayed in the first fused message, the first emoticon can be switched. Here, the first emoticon can be switched based on the operation of the target object or automatically. Next, the two switching processes are described respectively.
[0106] In some embodiments, the conversation interface also includes a third text message. After displaying the first fused message in the second style, it can also, in response to the fusion operation on the first fused message and the third text message, display the fused second fused message in the third style; wherein the second fused message includes the content of the first fused message, the content of the third text message, and a second expression that replaces the first expression; the emotion represented by the second expression belongs to the same category as the emotion represented by the first expression, and the intensity of the emotion represented by the second expression is higher than the emotion represented by the first expression.
[0107] It should be noted that the intensity of the emotion represented by the second expression is higher than the emotion represented by the first expression, which means that the emotion expressed by the second expression is stronger, such as the second expression is more exaggerated than the first expression. For example, the first expression can be a smile, while the second expression can be a laugh, and so on; at the same time, the emotion represented by the second expression is the same as the emotion represented by the third text message. When a fusion operation is received for the first fusion message and the third text message, emotion recognition is performed on the first fusion message and the third text message. The emotion recognition process is as described above, and this embodiment of the present application will not be described in detail; then, when the emotion recognition result indicates that the emotion represented by the first fusion message and the emotion represented by the third text message belong to the same category, the first fusion message and the third text message are fused to obtain a second fusion message, and the second fusion message is displayed in a third style, wherein, similar to the first fusion message described above, the second fusion message may include the content of the first fusion message and the content of the third text message, or may include content associated with the content of the first fusion message and the content of the third text message. At the same time, as the same as the second style above, the third style here can also be used to indicate the style of the message bubble or message card including the second expression.
[0108] For example, referring to Figure 6, Figure 6 is a schematic diagram of displaying a second fusion message in a third style provided in an embodiment of the present application. Based on Figure 6, in response to the fusion operation of the first fusion message indicated by 601 in a of Figure 6 and the third text message indicated by 602 in a, a second fusion message as indicated by 604 in b of Figure 6 is displayed, wherein the second fusion message includes a second expression as indicated by 605 in b of Figure 6, which replaces the first expression as indicated by 603 in a of Figure 6, and the emotion represented by the second expression belongs to the same emotion category as the emotion represented by the first expression, namely, anger.
[0109] It should be noted that when the emotion recognition result indicates that the emotion represented by the first fused message and the emotion represented by the third text message do not belong to the same category, the first fused message and the third text message will still be fused to obtain a second fused message, and the second fused message will be displayed in a third style. However, the emotion represented by the second expression and the emotion represented by the first expression do not belong to the same category.
[0110] In practical applications, after obtaining the first fused message, the first fused message can be fused with the third text message to obtain a second fused message; this further improves the diversity of conversation messages, human-computer interaction efficiency, and hardware resource utilization of electronic devices.
[0111] In some embodiments, after displaying the first expression in the first fusion message, the display duration of the first expression may also be displayed; when the display duration reaches the target display duration, the first expression is switched to a third expression that is different from the first expression; wherein the emotion indicated by the third expression belongs to the same emotion category as the emotion indicated by the first expression.
[0112] It should be noted that the target display time is also pre-set, such as 3 seconds; at the same time, the third expression is also pre-set, and is used to highlight the emotions represented by the third expression and the first expression, so that the emotions represented by the first fusion message are displayed more deeply; among them, similar to the second expression mentioned above, the intensity of the emotion represented by the third expression is also higher than the emotion represented by the first expression, that is, the emotion expressed by the third expression is stronger, such as the third expression is more exaggerated than the first expression. For example, the first expression can be a smile, and the third expression can be a laugh, and so on.
[0113] For example, referring to Figure 7, Figure 7 is a schematic diagram of the process of switching the first expression to the third expression provided in an embodiment of the present application. Based on Figure 7, when the display time reaches the target display time, the first expression as indicated by 702 in the first fusion message as indicated by 701 in Figure 7a is switched to a third expression different from the first expression as indicated by 703 in Figure 7b.
[0114] By applying the above embodiment, when the display time of the first expression reaches the target display time, the first expression is automatically switched to the third expression, which not only improves the display diversity of the conversation message, but also improves the user's visual experience.
[0115] It should be noted that the fusion operation for the first fused message and the third text message here is similar to the fusion operation for the first text message and the second text message mentioned above. At the same time, the process of displaying the second fused message obtained by fusion in the third style is also similar to the process of displaying the first fused message obtained by fusion in the second style described above. Here, the embodiments of the present application will not be repeated.
[0116] This is for the case where at least one message element, ie, the target message element, includes an emoticon.
[0117] In actual implementation, the conversation interface includes a message display area and a message editing area, at least one message element, that is, the target message element, includes a fourth emoticon displayed in the message editing area, and the first text message can be displayed in the message display area; thus, in response to the fusion operation on the first text message and at least one message element, the process of displaying the first fused message obtained by the fusion in the second style can be, in response to the drag operation on the fourth emoticon, dragging the fourth emoticon from the message editing area to the first text message in the message display area; in response to the release operation on the fourth emoticon, displaying the first fused message obtained by fusing the fourth emoticon and the first text message in the second style.
[0118] It should be noted that, in addition to being displayed in the message editing area, the fourth emoticon can also be displayed in the message display area. When the fourth emoticon is displayed in the message display area, the fusion operation for the first text message and at least one message element can be, in addition to the drag operation and the release operation, a pinch operation of the first text message and at least one message element. Here, the process of performing the pinch operation on the first text message and at least one message element is the same as the process of performing the pinch operation on the first text message and the second text message described above. This will not be elaborated in the embodiments of the present application.
[0119] It should be noted that, as previously described, the message display area is the area in the conversation interface where at least two parties engaged in a conversation display their sent conversation messages, and the message editing area is the area in the conversation interface where at least two parties engaged in a conversation edit their conversation messages. Furthermore, the second style is also pre-set and corresponds to the fourth expression, or may also include the fourth expression. The emotion represented by the first fused message is the same as the emotion represented by the fourth expression, and the content of the first fused message may be the same as or associated with the first text message.
[0120] For example, referring to Figure 8, Figure 8 is a schematic diagram of the second process of fusing to obtain the first fused message provided in an embodiment of the present application. Based on Figure 8, the conversation interface includes a message display area as indicated by the dotted box 801 in Figure 8a and a message editing area as indicated by the dotted box 802. Then, in response to a drag operation on the fourth expression in the message editing area as indicated by 804 in a, the fourth expression is dragged from the message editing area to the first text message in the message display area as indicated by 803 in a. Then, in response to a release operation on the fourth expression, the second style is used to display the first fused message obtained by fusing the fourth expression and the first text message as indicated by 805 in Figure 8b, wherein the second style is pre-set and corresponds to the fourth expression.
[0121] In actual application, by dragging the fourth emoticon to the first text message, the fourth emoticon is merged with the first text message to obtain a first fused message, which not only enriches the interaction method of conversation messages, but also improves the diversity of conversation messages, while also improving the human-computer interaction efficiency and the hardware resource utilization of electronic devices.
[0122] In some embodiments, the first fused message displays a fourth expression and also includes a fifth expression, and the emotion represented by the fifth expression belongs to the same emotion category as the emotion represented by the fourth expression; thus, the process of displaying the first fused message obtained by fusing the fourth expression and the first text message in the second style may be to display a message bubble in the second style and display the first fused message in the message bubble; wherein the fifth expression and the fourth expression are periodically switched and displayed in the message bubble.
[0123] It should be noted that the emotion category can be pre-set, for example, it can be classified based on the tendency of the emotion, such as positive, negative, etc., that is, positive emotions are one category and negative emotions are another category, or it can be divided based on specific emotions, such as sad, happy, angry, etc. This embodiment of the present application is not limited to this. In addition, the message bubble is used to carry the corresponding third target message. As mentioned above, the second style is used to indicate at least one of the shape, style, color, and size of the message bubble. At the same time, the message bubble can also be in the form of a message card, which is not limited to this embodiment of the present application. In addition, the frequency of periodic switching here can be pre-set, for example, it can be three seconds.
[0124] By applying the above embodiment, the fourth emoticon and the fifth emoticon are periodically switched and displayed in the first fused message. This not only improves the display diversity of the conversation message, but also enhances the user's visual experience.
[0125] In some embodiments, the message editing area also includes a sixth emoticon, and at the same time, the second style indicates that the first fused message displays a fourth emoticon; thus, after displaying the first fused message obtained by fusing the fourth emoticon and the first text message using the second style, it is also possible to, in response to a drag operation on the sixth emoticon, drag the sixth emoticon from the message editing area to the first fused message in the message display area; in response to a release operation on the sixth emoticon, when the emotion represented by the sixth emoticon and the emotion represented by the fourth emoticon belong to different emotion categories, the fourth style is used to display a third fused message; wherein, the third fused message includes the content of the first fused message and the sixth emoticon that replaces the fourth emoticon.
[0126] In actual implementation, when a release operation for the sixth expression is received, the emotion corresponding to the sixth expression and the emotion corresponding to the fourth expression are identified to obtain an identification result. When the identification result indicates that the emotion corresponding to the sixth expression and the emotion corresponding to the fourth expression belong to different emotion categories, the fourth style corresponding to the sixth expression is obtained, and the fourth style is used to display the third fusion message.
[0127] It should be noted that, at the same time, as in the second style mentioned above, the fourth style here can also be used to indicate the style of a message bubble or message card including the sixth expression or corresponding to the sixth expression; the emotion represented by the third fusion message is the same as the emotion represented by the sixth expression, and at the same time, the content of the third fusion message can be the same as the first fusion message, or it can be associated with the first fusion message. For example, the text content of the first fusion message can also be changed, that is, based on the content of the first fusion message, the modal particle corresponding to the sixth expression is obtained, and based on the modal particle corresponding to the sixth expression, the modal particle in the first fusion message is modified to obtain the third fusion message. This is not limited in this regard.
[0128] Exemplarily, referring to FIG. 9, FIG. 9 is a schematic diagram showing the display of the third fusion message in the fourth style provided by an embodiment of the present application. Based on FIG. 9, the conversation interface includes a message display area indicated by the dashed box 901 in FIG. 9a and a message editing area indicated by the dashed box 902. Then, in response to a drag operation on the sixth expression indicated by 904 in FIG. 9a within the message editing area, the sixth expression is dragged from the message editing area to the first fusion message indicated by 903 in FIG. 9a in the message display area. Here, the emotion corresponding to the sixth expression is happiness, and the emotion corresponding to the fourth expression is anger, belonging to different emotion categories. Therefore, in response to the release operation on the sixth expression, the fourth style corresponding to the sixth expression is obtained, and the third fusion message indicated by 905 in FIG. 9b is displayed using the fourth style. Here, the fourth style is used to indicate the style including the sixth expression. The third fusion message includes the content of the first fusion message and the sixth expression indicated by 907 in FIG. 9b that replaces the fourth expression indicated by 906 in FIG. 9a. Among them, based on the modal particle corresponding to the sixth expression, the modal particle in the first fusion message is modified, that is, the modal particle "ma" is modified to "mie".
[0129] In actual implementation, when a release operation on the fourth expression or the sixth expression is received, the emotions corresponding to the corresponding expression and the corresponding text message are identified to obtain an identification result, and subsequent processing is performed based on the identification result. Taking the sixth expression as an example, when the identification result indicates that the emotion represented by the sixth expression and the emotion represented by the third fusion message belong to different emotion categories, the fourth style is used to indicate the style corresponding to the sixth expression, that is, the fourth style corresponding to the sixth expression is used to display the third fusion message, so as to display the emotion corresponding to the sixth expression based on the fourth style. When the identification result indicates that the emotion represented by the sixth expression and the emotion represented by the third fusion message belong to the same emotion category, the fourth style will highlight the emotions represented by the sixth expression and the fourth expression compared to the second style. Here, the processing process for the fourth expression and the first text message is similar, and the embodiments of the present application will not elaborate on this.
[0130] In practical applications, by dragging an expression to a text message to achieve the fusion of the expression and the text message, not only the human-computer interaction efficiency and the utilization rate of the hardware resources of the electronic device are improved, but also the interaction method of the conversation message is enriched, and the diversity of the conversation message is also improved.
[0131] In some embodiments, at least one message element includes other message elements, and the other message elements are different from at least one message element, namely the target message element; thus, in response to the fusion operation on the first text message and at least one message element, after the first fused message obtained by fusion is displayed in the second style, it is also possible to dynamically display the process of fusion of the other message elements with the first fused message in response to the fusion operation on the first fused message and other message elements; when the number of fusions corresponding to the first fused message is between the first number and the second number, a fourth fused message is displayed in a fifth style different from the second style; wherein the fourth fused message includes the content of the first fused message and the content of other message elements, and the fifth style is used to highlight the emotions represented by other message elements.
[0132] It should be noted that the process of dynamically displaying the fusion of other message elements with the first fused message, i.e., the process of dynamically displaying the fusion of other message elements into the first fused message, is used to indicate the gradual disappearance of the displayed other message elements. During the gradual disappearance of the other message elements, the fusion count corresponding to the first fused message is obtained. When the fusion count is between the first and second counts, a fourth fused message is displayed using a fifth style different from the second style. The first and second counts may be pre-set, with the second count being greater than the first count. Furthermore, the fifth style may also be pre-set.
[0133] It should be noted that the number of fusions corresponding to the first fused message includes the number of fusion processes performed when obtaining the first fused message, that is, the sum of the automatic fusion process and the fusion process based on the fusion operation. For example, when the first text message is obtained through automatic fusion and the first text message and at least one message element, that is, the target message element such as an emoticon or a text message, are fused to obtain the first fused message, the number of fusions corresponding to the first fused message here is two.
[0134] For example, referring to Figure 10, Figure 10 is a schematic diagram of displaying the fourth fusion message in the fifth style provided in an embodiment of the present application. Based on Figure 10, in response to the fusion operation of the first fusion message indicated by 1001 in Figure 10a and other message elements indicated by 1002 in Figure 10a, the process of fusing the other message elements with the first fusion message is dynamically displayed; when the number of fusions corresponding to the first fusion message is between the first number and the second number, the fourth fusion message is displayed in the fifth style indicated by 1003 in Figure 10b, which is different from the second style indicated by 1001 in Figure 10a.
[0135] In actual applications, other message elements can also be fused into the first fused message. At the same time, only when the fusion times corresponding to the first fused message are between the first and second times, the fourth fused message obtained by fusion will be displayed in the fifth style. In this way, not only the interaction mode of the conversation message is enriched, but also the display diversity of the conversation message is improved. At the same time, the message fusion process is restricted, thereby avoiding the situation of infinite fusion of messages and reducing the waste of resources.
[0136] In actual implementation, the conversation interface includes a message display area, and the first fused message is displayed in the message display area; when the number of fusions corresponding to the first fused message is greater than the second number, the first fused message after being integrated with other message elements can also be converted into a barrage, and the barrage is fixedly displayed at the target position in the message display area; when the display time of the barrage reaches the first time length, the barrage is cancelled.
[0137] It should be noted that the target position is used to indicate the display area occupied by the bullet screen. The display area here can be the entire conversation interface or a portion of the conversation interface, or the entire message display area or a portion of the message display area. This is not limited in the embodiments of the present application. When the display area is a portion of the area, the area ratio of the display area to the corresponding conversation interface or message display area is pre-set, such as the display area occupying half of the conversation interface, or the display area occupying half of the message display area.
[0138] It should be noted that the first duration can be pre-set, such as 5 seconds. When the display duration of the barrage reaches the first duration, the barrage is canceled. In this way, while ensuring the effect of the barrage, excessive interference with the user's conversation process is prevented, thereby improving the user's conversation experience.
[0139] For example, referring to Figure 11, Figure 11 is a schematic diagram of fixing the barrage at a target position provided by an embodiment of the present application. Based on Figure 11, when the other message elements indicated by 1102 in Figure 11a are merged with the first fused message indicated by 1101 in Figure 11a, when the number of fusions corresponding to the first fused message indicated by 1101 in Figure 11a is greater than the second number, the first fused message after the integration of the other message elements is converted into a barrage as indicated by 1103 in Figure 11b, and the barrage is fixedly displayed at the target position of the message display area as shown in Figure 11b. When the display time of the barrage reaches the first time, the barrage is cancelled and the interface shown in Figure 11c is displayed.
[0140] Applying the above embodiment, when the number of fusions corresponding to the first fused message is greater than the second number, the first fused message after integrating other message elements is converted into a barrage. This not only improves the display diversity of conversation messages and the user's visual experience, but also improves the display diversity of conversation messages.
[0141] In actual implementation, other message elements are sent by the target object; thus, after the barrage is fixedly displayed at the target position of the message display area, the reply barrages of other objects in response to the barrage can also be displayed floating above the barrage; among them, the other objects are the objects with which the target object conducts conversations based on the conversation interface.
[0142] It should be noted that the other objects can be one or more. When the other objects see the barrage sent by the target object, they send a reply message in response to the barrage. When the reply message is sent to the message display area in the conversation interface, the reply message is converted into a reply barrage and displayed floating above the barrage sent by the target object.
[0143] For example, refer to Figure 12, which is a schematic diagram of a reply barrage of other objects displayed floating above the barrage provided in an embodiment of the present application. Based on Figure 12, after the barrage is fixedly displayed at the target position of the message display area, a reply barrage of other objects to the barrage as indicated by the dotted box 1202 is displayed floating above the barrage as indicated by 1201.
[0144] In actual applications, above the barrage, reply barrages of other objects to the barrage are displayed floatingly. In this way, while ensuring the effect of the barrage, excessive interference in the user's conversation process is prevented, thereby improving the user's conversation experience.
[0145] In actual implementation, after the barrage is fixedly displayed at the target location in the message display area, if the target party continues to send conversation messages, the continued conversation messages can also be displayed in the barrage. The conversation interface also includes a message editing area. Therefore, after the barrage is fixedly displayed at the target location in the message display area, the edited message content can also be displayed in response to a message editing operation triggered by the message editing area; and in response to a send instruction for the edited message content, the edited message content can be displayed in the barrage at the target location. Here, the message content includes at least one of a text message, an emoticon message, and a voice message.
[0146] Applying the above embodiment, if the target object continues to send conversation messages, the continued conversation messages can also be displayed in the barrage. In this way, not only excessive interference in the user's conversation process is avoided and the user's conversation experience is improved, but also the conversation messages continued to be sent by the target object are highlighted in the barrage, making full use of the barrage, that is, improving the utilization rate of display resources.
[0147] In some embodiments, the first fused message obtained by fusion can also be restored. After the first fused message obtained by fusion is displayed in a second style in response to the fusion operation on the first text message and at least one message element, the process of restoring the first fused message to obtain the first text message and message elements can also be displayed in response to the restoration condition of the first fused message being met; wherein the restoration condition includes at least one of the following: receiving a reply message to the first fused message; the display time of the first fused message reaches a second time; receiving a restoration instruction for the first fused message, the restoration instruction is used to instruct to restore the first fused message to the first text message and message elements.
[0148] It should be noted that when the first fusion message is sent to the target object, the reply message to the first fusion message is other objects in the conversation interface except the target object; and the second duration can also be pre-set, for example, 5 seconds; at the same time, the restoration instruction for the first fusion message can be triggered by the target object corresponding to the conversation interface, and a restoration control for restoring the first fusion message can be displayed on the conversation interface, so that in response to the triggering operation of the restoration control, the restoration instruction for the first fusion message is received, or it can be in response to receiving a restoration operation for the first fusion message triggered on the conversation interface, such as a pressing operation or a sliding operation, so that the restoration instruction for the first fusion message is received, etc.
[0149] In some embodiments, the second fusion message, the third fusion message and the fourth fusion message mentioned above can also be restored, wherein the restoration conditions for the second fusion message, the third fusion message and the fourth fusion message are similar to the restoration conditions for the first fusion message. At the same time, the restoration process for the second fusion message, the third fusion message and the fourth fusion message is similar to the restoration process for the first fusion message. This is not elaborated in the embodiments of the present application; at the same time, after the second fusion message, the third fusion message and the fourth fusion message are restored to obtain the first fusion message, the first fusion message can also be restored. The restoration process is as described above. This is not elaborated in the embodiments of the present application.
[0150] In actual applications, the fused messages can also be restored, which not only improves the flexibility of the message fusion process and improves the user experience, but also enriches the interaction mode of conversation messages, improves the efficiency of human-computer interaction and the hardware resource utilization of electronic devices.
[0151] In some embodiments, only users with the permission to perform fusion operations can fuse conversation messages, that is, in response to a fusion operation on a first text message and at least one message element, the process of displaying the first fusion message obtained by fusion in a second style can be, in response to a fusion operation on a first text message and at least one message element, when the target object triggering the fusion operation has the permission to perform the fusion operation, the first fusion message obtained by fusion is displayed in the second style; thereby, when the target object does not have the permission to perform the fusion operation, the first permission prompt information is displayed, and the first permission prompt information is used to indicate that the target object does not have the permission to perform the fusion operation.
[0152] It should be noted that the authority to execute the fusion operation can be determined based on the account level of the target object, etc. When a fusion operation is received for the first text message and at least one message element, the account information of the target object is obtained, wherein the account information includes the account level corresponding to the target, etc.; based on the account information of the target object, the target object is checked for authority, and a test result is obtained to indicate whether the target object has the authority to execute the fusion operation; therefore, when the test result indicates that the target object has the authority to execute the fusion operation, the first fusion message obtained by the fusion is displayed in the second style; when the target object does not have the authority to execute the fusion operation, the first authority prompt information is displayed.
[0153] By applying the above embodiment, by determining whether the target object has the permission to perform the fusion operation, it is determined whether to use the second style to display the first fusion message obtained by fusion. In this way, the fusion process of the message is restricted, the situation of infinite fusion of messages is avoided, and the waste of resources is reduced.
[0154] In actual implementation, when the target object does not have the permission to perform the fusion operation, after displaying the first permission prompt information, it is also possible to display the interaction task and task guidance information, and the task guidance information is used to guide the target object to perform the interaction task; in response to the task execution operation triggered by the task guidance information for the interaction task, the execution process of the interaction task is displayed; when the interaction task is completed, the second permission prompt information is displayed, and the second permission prompt information is used to indicate that the target object has the permission to perform the fusion operation.
[0155] It should be noted that the task guidance information can be in text form, image form or video form, which is not limited in the embodiments of the present application; and the interactive task can be watching a promotional video related to the application corresponding to the conversation interface, or sharing promotional information related to the application corresponding to the conversation interface, or completing a small game related to the application corresponding to the conversation interface, etc.; when the interactive task is watching a promotional video related to the application corresponding to the conversation interface, if the target object does not have the permission to perform the fusion operation, when a fusion operation is received for the first text message and at least one message element, the promotional video is played and the viewing time of the promotional video is displayed; when the viewing time reaches the target viewing time, it is determined that the interactive task is completed; when the interactive task is When sharing promotional information related to an application corresponding to a conversation interface, if the target object does not have permission to perform a fusion operation, upon receiving a fusion operation on a first text message and at least one message element, a sharing control for sharing the promotional information is displayed; upon receiving a sharing operation triggered by the sharing control, the interactive task is determined to be complete; if the interactive task is to complete a mini-game related to an application corresponding to a virtual scene, if the target object does not have permission to perform a fusion operation, upon receiving a fusion operation on the first text message and at least one message element, a game interface is displayed, and in response to the game execution operation, the execution result of the game execution operation is displayed in the game interface; and when the execution result indicates that the game is completed, the interactive task is determined to be complete. Based on this, when the interactive task is completed, the target object is controlled to have permission to perform a fusion operation.
[0156] In this way, the set interactive tasks can control the target object to have the permission to execute fusion operations, which not only enriches the diversity of the process of executing interactive operations on conversation messages, but also improves the efficiency of human-computer interaction and the utilization of hardware resources.
[0157] Applying the above-described embodiment of the present application, a first text message is first displayed in a conversation interface using a first style, along with at least one message element including a second text message and at least one of an emoticon. The first text message is then fused with at least one of the at least one message elements to obtain a first fused message including the content of the first text message and the content of the message element. The first fused message is then displayed using a second style different from the first style. In this way, by fusing the text message and the message element, the display style and content of the text message are changed. This not only enriches the interactive methods of conversation messages but also increases the diversity of conversation messages, thereby improving the efficiency of human-computer interaction and the hardware resource utilization of electronic devices.
[0158] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0159] During the conversation process of related technologies, the chat bubble shape is fixed, and the conversation experience is dull and boring. At the same time, user emotions are expressed entirely through text or emoticons, which is a relatively simple method. In addition, misunderstandings of emotions may occur in many scenarios, further reducing the conversation experience.
[0160] Based on this, the present invention provides a new way of text and voice expression for chat dialogues, aiming to express user emotions more accurately and unlock more interactive gameplay. By integrating text messages with text messages (text conversation messages), integrating emoticons (expressions) with bubbles (target messages), and integrating emoticons with voice messages in chat scenarios, the state (style) of voice messages and voice message bubbles is transformed to be more in line with physical intuition. In this way, the emotional transmission between users can be expressed more clearly, and user interaction can be increased in a more interesting way. At the same time, users can enhance the expression of text messages by pinching text messages with both hands and changing the shape of text bubbles. Moreover, by long pressing a text message and dragging it to another text message, text messages can also be merged to change the shape of text bubbles to enhance the expression of text messages. In addition, dragging an emoticon package into a text message or voice message can give the message different forms, such as bubble shape, color, text, sound, emoticon package, etc. In addition, when the user is not speaking, he can directly drag the emoticon package onto the voice control, so that the current buzzwords are intelligently generated according to the meaning of the emoticon package and converted into AI voice to be sent.
[0161] Next, the technical solution of this application is explained from the product side.
[0162] For text messages, as shown in Figures 4, 5 and 6, in response to a pinch operation on the text message, the chat bubble color, shape, expression, etc. are changed, thereby enhancing the user's emotional expression; or, as shown in Figures 8, 9 and 10, in response to dragging an expression into the bubble, the chat bubble color, shape, expression, etc. are changed, thereby enhancing the user's emotional expression.
[0163] For voice messages, in response to the drag operation on the emoticon, the emoticon is dragged into the voice message, thereby changing the timbre of the voice; or, in response to dragging the emoticon into an empty voice (voice control), the relevant voice is automatically generated according to the emoticon, and then when the playback instruction for the voice is received, it is read out intelligently by AI.
[0164] Next, the technical solution of this application is explained from a technical perspective.
[0165] In actual implementation, the technical solution of this application mainly includes three processes, namely, the operation process of users changing the chat bubble style through expressions and gestures, the operation process of super bubble scene barrage floating screen and recovery, and the process of changing bubble emotions through user operations.
[0166] For the operation process of changing the chat bubble style through emoticons and gestures, see Figure 13, which is a schematic diagram of the process of changing the chat bubble style through emoticons and gestures according to an embodiment of the present application. Based on Figure 13, the operation process of changing the chat bubble style through emoticons and gestures is implemented through steps 1 to 17 in Figure 13. First, you can enter a normal text message, then drag an emoticon to the chat bubble of the text message to change the chat bubble style, or pinch adjacent text messages to change the chat bubble style.
[0167] For inputting ordinary text messages, first, in response to the message sender's sending operation for the input chat conversation text, the chat conversation text input by the message sender is sent, wherein the sending client, that is, the client corresponding to the message sender, sends the chat conversation text to the server, so that after the server receives the chat conversation text, it generates a unique message identifier, writes the chat conversation text to the storage, and pushes the chat conversation text to the receiving client, that is, the client corresponding to the message recipient. After the chat conversation text is successfully displayed on the receiving client, the sending client receives the unique message identifier of the chat conversation text sent by the server, and displays the chat bubble and text content corresponding to the chat conversation text on the session interface.
[0168] Regarding the process of changing the chat bubble style by dragging an emoticon into the chat bubble of the above-mentioned chat conversation text, in response to the message sender dragging the system emoticon into the chat bubble of the chat conversation text, the sending client sends a chat mood change request carrying the emoticon dragged by the message sender and the identifier of the chat conversation text to the server. The server receives the chat mood change request, determines the emotion expressed by the emoticon, and calculates a new bubble style result in combination with the current emotion of the message, updates it to the cloud storage, and then pushes a style change result of the message to the receiving client, that is, the client corresponding to the message recipient. After successfully displaying the style change result on the receiving client, the sending client receives the new bubble style of the chat conversation text sent by the server, thereby displaying the new chat bubble and text content corresponding to the chat conversation text on the session interface.
[0169] Regarding the process of changing the chat bubble style by pinching adjacent text messages by gesture, in response to the message sender's pinching operation on the chat conversation text and the text messages adjacent to the chat conversation text, the sending client extracts the message identifier of the pinched message, and sends a chat mood change request carrying a list of identifiers of messages associated with the pinching operation (if emoticons are transmitted together), to the server. The server receives the chat mood change request, analyzes the list of pinched identifiers or system emoticons in the request, calculates the new bubble style result according to the number of messages and the meaning of the emoticons, updates it to the cloud storage, and then pushes a style change result of the message to the receiving client, that is, the client corresponding to the message recipient. After the style change result is successfully displayed on the receiving client, the sending client receives the new bubble style of the chat conversation text sent by the server, thereby displaying the new chat bubble and text content corresponding to the chat conversation text on the session interface.
[0170] For the operation process of floating screen and restoring barrage in super bubble scene, refer to Figure 14, which is a flow chart of displaying barrage and restoring barrage provided by an embodiment of the present application. Based on Figure 14, the operation process of floating screen and restoring barrage in super bubble scene is realized by steps 1 to 20 in Figure 14. When the changed chat bubble is a super bubble such as a screen-dominating barrage, when the message sender continues to send messages, the first to fourth messages will be displayed in the super bubble, and will also be displayed in the super bubble of the interface of the recipient's client; when the fifth message is sent, the super bubble is restored, that is, the message included in the super bubble is restored to a separately displayed message and displayed in the style of a normal bubble.
[0171] For the process of changing the emotion of a bubble through user operation, refer to Figure 15, which is a flow chart of changing the emotion represented by a bubble through operation provided by an embodiment of the present application. Based on Figure 15, the process of changing the emotion represented by a bubble through user operation of the present application is implemented through steps 1 to 20 in Figure 15. In the conversation interface between the message sender and the message recipient, in response to the message sender's sending operation on the chat text, the sent chat text is displayed in the conversation interface, and then in response to the message sender dragging an angry expression to the chat bubble, an angry emotion bubble is generated, that is, based on the angry emotion bubble, the sent chat text is displayed. Then, when the message recipient replies to the chat text, in response to the message sender dragging a happy expression to the angry emotion bubble, the angry emotion bubble is changed to a happy emotion bubble, and then based on the happy emotion bubble, the sent chat text is displayed.
[0172] In some embodiments, when emotions cannot be directly identified, chat bubble forms with different emotions can be generated by simply determining keywords, key punctuation marks, user-defined emotions, etc.; at the same time, when emotions are recognized through voice and voice is converted into text, user emotions can be judged to generate different emotional chat bubble forms.
[0173] In this way, through this application, the user's true emotions can be understood to better convey emotional information to other users, allowing users to feel the other party's emotions and semantics more directly, while increasing the fun of the chat.
[0174] Applying the above-described embodiment of the present application, a first text message is first displayed in a conversation interface using a first style, along with at least one message element including a second text message and at least one of an emoticon. The first text message is then fused with at least one of the at least one message elements to obtain a first fused message including the content of the first text message and the content of the message element. The first fused message is then displayed using a second style different from the first style. In this way, by fusing the text message and the message element, the display style and content of the text message are changed. This not only enriches the interactive methods of conversation messages but also increases the diversity of conversation messages, thereby improving the efficiency of human-computer interaction and the hardware resource utilization of electronic devices.
[0175] The following further describes an exemplary structure of the session message processing device 455 provided in an embodiment of the present application implemented as a software module. In some embodiments, as shown in FIG2 , the software module stored in the session message processing device 455 in the memory 450 may include:
[0176] Display module 4551 is configured to display the first text message in a first style and at least one message element in the conversation interface, wherein the message element includes at least one of the second text message and an emoticon;
[0177] The fusion module 4552 is configured to display the first fused message obtained by fusion in a second style in response to a fusion operation on the first text message and at least one of the message elements; wherein the first fused message includes at least the content of the first text message and the content of the message element, and the second style is different from the first style.
[0178] In some embodiments, the device also includes a second display module, which is configured to display at least two text messages in the conversation interface; the display module 4551 is also configured to display in the conversation interface, in response to a fusion operation on the at least two text messages, a first text message obtained by fusion of the at least two text messages in a first style, wherein the first text message includes the text content of the at least two text messages.
[0179] In some embodiments, the display module 4551 is further configured to display at least two text messages received consecutively and the sending time of each of the text messages in the conversation interface; in response to the difference in the sending time of the at least two text messages being less than a first difference threshold, when the content overlap of the text messages reaches the overlap threshold, the process of merging the at least two text messages is displayed, and the first text message obtained by merging the at least two text messages is displayed in a first style.
[0180] In some embodiments, at least one of the message elements includes the second text message, and the fusion operation includes a pinching operation on the first text message and the second text message; the fusion module 4552 is also configured to display the process of merging the first text message and the second text message in response to the pinching operation on the first text message and the second text message; when the ratio of the first area to the second area reaches the target ratio, the first text message and the second text message are canceled; wherein the first area is the area of the overlapping area of the first text message and the second text message; the second area is the display area of the first text message or the display area of the second text message; and the first fused message obtained by fusing the first text message and the second text message is displayed in the second style.
[0181] In some embodiments, at least one of the message elements includes the second text message, the first fused message is obtained by fusing the first text message and the second text message, and the device also includes a third display module, which is configured to display a first expression in the first fused message, and the first expression is used to indicate the emotion represented by the first text message and the second text message after fusion.
[0182] In some embodiments, the conversation interface also includes a third text message, and the device also includes a fourth display module, and the fourth display module is configured to display a second fused message obtained by fusion in a third style in response to a fusion operation on the first fused message and the third text message; wherein the second fused message includes the content of the first fused message, the content of the third text message, and a second expression that replaces the first expression; the emotion represented by the second expression belongs to the same category as the emotion represented by the first expression, and the intensity of the emotion represented by the second expression is higher than the emotion represented by the first expression.
[0183] In some embodiments, the device also includes a fifth display module, which is configured to display the display time of the first expression; when the display time reaches the target display time, the first expression is switched to a third expression different from the first expression; wherein the emotion indicated by the third expression belongs to the same emotion category as the emotion indicated by the first expression.
[0184] In some embodiments, at least one of the message elements includes the second text message, and the device further includes a sixth display module, which is configured to display the sending time of the first text message at an associated position of the first text message; when a sending operation for the second text message is received, and the difference between the sending time of the sending operation and the sending time of the first text message is less than a second difference threshold, the sending operation is determined as a fusion operation for the first text message and the second text message.
[0185] In some embodiments, the conversation interface includes a message display area and a message editing area, and at least one of the message elements includes a fourth emoticon displayed in the message editing area; the fusion module 4552 is also configured to, in response to a drag operation on the fourth emoticon, drag the fourth emoticon from the message editing area to the first text message in the message display area; in response to a release operation on the fourth emoticon, use the second style to display a first fused message obtained by fusing the fourth emoticon and the first text message.
[0186] In some embodiments, the first fused message displays the fourth expression and also includes a fifth expression, and the emotion represented by the fifth expression belongs to the same emotion category as the emotion represented by the fourth expression; the fusion module 4552 is also configured to adopt the second style to display a message bubble, and display the first fused message in the message bubble; wherein, the fifth expression and the fourth expression are periodically switched and displayed in the message bubble.
[0187] In some embodiments, the fourth expression is displayed in the first fusion message, and the message editing area also includes a sixth expression; the device also includes a seventh display module, and the seventh display module is configured to, in response to a drag operation on the sixth expression, drag the sixth expression from the message editing area to the first fusion message in the message display area; in response to a release operation on the sixth expression, when the emotion represented by the sixth expression and the emotion represented by the fourth expression belong to different emotion categories, a third fusion message is displayed in a fourth style; wherein, the third fusion message includes the content of the first fusion message and the sixth expression that replaces the fourth expression.
[0188] In some embodiments, the at least one message element includes other message elements, and the other message elements are different from at least one of the message elements; the device also includes an eighth display module, and the eighth display module is configured to dynamically display the process of fusion of the other message elements with the first fusion message in response to the fusion operation on the first fusion message and the other message elements; when the number of fusions corresponding to the first fusion message is between the first number and the second number, a fourth fusion message is displayed in a fifth style different from the second style; wherein the fourth fusion message includes the content of the first fusion message and the content of the other message elements, and the fifth style is used to highlight the emotions represented by the other message elements.
[0189] In some embodiments, the conversation interface includes a message display area, and the first fused message is displayed in the message display area; when the number of fusions corresponding to the first fused message is greater than the second number, the device also includes a conversion module, and the conversion module is configured to convert the first fused message after integrating the other message elements into a barrage, and fix the barrage to the target position of the message display area; when the display time of the barrage reaches the first time, the barrage is canceled.
[0190] In some embodiments, the other message elements are sent by the target object; the device also includes a reply module, which is configured to display a reply barrage of other objects to the barrage in a suspended manner above the barrage; wherein, the other object is the object with which the target object conducts a conversation based on the conversation interface.
[0191] In some embodiments, the conversation interface also includes a message editing area, and the device also includes a ninth display module, which is configured to display the edited message content in response to a message editing operation triggered based on the message editing area; and display the edited message content in the barrage at the target location in response to a sending instruction for the edited message content.
[0192] In some embodiments, the device also includes a restoration module, which is configured to display the process of restoring the first fusion message to obtain the first text message and the message elements in response to the restoration condition of the first fusion message being met; wherein the restoration condition includes at least one of the following: receiving a reply message to the first fusion message; the display time of the first fusion message reaches a second time length; receiving a restoration instruction for the first fusion message, and the restoration instruction is used to instruct to restore the first fusion message to the first text message and the message elements.
[0193] In some embodiments, the fusion module 4552 is further configured to respond to a fusion operation on the first text message and at least one of the message elements, and when the target object triggering the fusion operation has the permission to perform the fusion operation, display the first fusion message obtained by the fusion in a second style; the device also includes a tenth display module, and the tenth display module is configured to display a first permission prompt information when the target object does not have the permission to perform the fusion operation, and the first permission prompt information is used to indicate that the target object does not have the permission to perform the fusion operation.
[0194] In some embodiments, the tenth display module is further configured to display interactive tasks and task guidance information, wherein the task guidance information is used to guide the target object to perform the interactive task; in response to a task execution operation for the interactive task triggered based on the task guidance information, the execution process of the interactive task is displayed; when the interactive task is completed, a second permission prompt information is displayed, wherein the second permission prompt information is used to indicate that the target object has the permission to perform the fusion operation.
[0195] An embodiment of the present application provides a computer program product comprising computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the method for processing conversation messages described in the embodiment of the present application.
[0196] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the method for processing a session message provided in an embodiment of the present application, for example, the method for processing a session message as shown in FIG. 3 .
[0197] In some embodiments, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM; or various devices including one or any combination of the above memories.
[0198] In some embodiments, computer-executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0199] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0200] By way of example, computer-executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
[0201] In summary, the embodiments of the present application have the following beneficial effects:
[0202] By integrating text messages and message elements, the display style and content of text messages are changed. This not only enriches the interaction methods of conversation messages, but also increases the diversity of conversation messages, thereby improving the efficiency of human-computer interaction and the utilization of hardware resources of electronic devices.
[0203] It should be noted that in the embodiments of the present application, when obtaining conversation messages such as text messages, user operation data and other related data, when the embodiments of the present application are applied to specific products or technologies, user permission or consent must be obtained, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0204] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A method for processing a conversation message, the method being executed by an electronic device, the method comprising: In the conversation interface, the first text message is displayed in a first style, and at least one message element is displayed, wherein the message element includes at least one of the second text message and an emoticon; In response to a fusion operation on the first text message and at least one of the message elements, displaying a fused first fused message in a second style; The first fused message includes at least the content of the first text message and the content of the message element, and the second style is different from the first style.
2. The method according to claim 1, wherein Before displaying the first text message in the conversation interface in the first style, the method further includes: Displaying at least two text messages in the conversation interface; The step of displaying the first text message in the conversation interface using the first style includes: In the conversation interface, in response to a fusion operation on the at least two text messages, a first text message obtained by fusion of the at least two text messages is displayed in a first style, where the first text message includes text contents of the at least two text messages.
3. The method according to claim 1, wherein The step of displaying the first text message in the conversation interface using the first style includes: Displaying, in the conversation interface, at least two text messages received consecutively and the sending time of each of the text messages; In response to the difference between the sending times of the at least two text messages being less than a first difference threshold, when the content overlap of the text messages reaches the overlap threshold, the process of merging the at least two text messages is displayed, and A first text message obtained by merging the at least two text messages is displayed in a first style.
4. The method according to any one of claims 1 to 3, wherein: At least one of the message elements includes the second text message, and the fusion operation includes a pinch operation on the first text message and the second text message; In response to the fusion operation on the first text message and at least one of the message elements, displaying the fused first fused message in a second style includes: In response to a pinch operation on the first text message and the second text message, displaying a process of merging the first text message and the second text message; When the ratio of the first area to the second area reaches a target ratio, canceling display of the first text message and the second text message; The first area is the area of the overlapping area of the first text message and the second text message; the second area is the display area of the first text message or the display area of the second text message; The first fused message obtained by fusing the first text message and the second text message is displayed in the second style.
5. The method according to any one of claims 1 to 4, wherein: At least one of the message elements includes the second text message, and the first fused message is obtained by fusing the first text message and the second text message; After displaying the first fused message obtained by fusion in a second style in response to the fusion operation on the first text message and at least one of the message elements, the method further includes: A first emoticon is displayed in the first fused message, where the first emoticon is used to indicate an emotion represented by the fused first text message and the second text message.
6. The method according to claim 5, wherein: The conversation interface further includes a third text message. After the first fused message is displayed in the second style, the method further includes: In response to the fusion operation on the first fused message and the third text message, displaying a fused second fused message in a third style; The second fused message includes the content of the first fused message, the content of the third text message, and a second emoticon that replaces the first emoticon; The emotion represented by the second facial expression belongs to the same category as the emotion represented by the first facial expression, and the intensity of the emotion represented by the second facial expression is higher than that of the emotion represented by the first facial expression.
7. The method according to claim 5 or 6, wherein: After displaying the first emoticon in the first fused message, the method further includes: Displaying the first expression for a certain duration; When the display duration reaches a target display duration, switching the first expression to a third expression different from the first expression; The emotion indicated by the third expression and the emotion indicated by the first expression belong to the same emotion category.
8. The method according to any one of claims 1 to 7, wherein: At least one of the message elements includes the second text message. Before displaying the fused first message in the second style in response to the fusion operation on the first text message and the at least one message element, the method further includes: Displaying the sending time of the first text message in the associated position of the first text message; When a sending operation for the second text message is received and the difference between the sending time of the sending operation and the sending time of the first text message is less than a second difference threshold, the sending operation is determined as a fusion operation for the first text message and the second text message.
9. The method according to any one of claims 1 to 8, wherein: The conversation interface includes a message display area and a message editing area, and at least one of the message elements includes a fourth emoticon displayed in the message editing area; In response to the fusion operation on the first text message and at least one of the message elements, displaying the fused first fused message in a second style includes: In response to a drag operation on the fourth emoticon, dragging the fourth emoticon from the message editing area to the first text message in the message display area; In response to a release operation on the fourth emoticon, a first fusion message obtained by fusing the fourth emoticon and the first text message is displayed using the second style.
10. The method of claim 9, wherein: The first fused message displays the fourth expression and also includes a fifth expression, and the emotion represented by the fifth expression belongs to the same emotion category as the emotion represented by the fourth expression; The displaying of a first fused message obtained by fusing the fourth emoticon and the first text message in the second style includes: Using the second style, displaying a message bubble, and displaying the first fused message in the message bubble; The fifth expression and the fourth expression are periodically switched and displayed in the message bubble.
11. The method according to claim 9 or 10, wherein: The first fused message displays the fourth emoticon, and the message editing area further includes a sixth emoticon; After displaying a first fused message obtained by fusing the fourth emoticon and the first text message in the second style, the method further includes: In response to a drag operation on the sixth emoticon, dragging the sixth emoticon from the message editing area to the first fused message in the message display area; In response to a release operation on the sixth expression, when the emotion represented by the sixth expression and the emotion represented by the fourth expression belong to different emotion categories, displaying the third fused message in a fourth style; The third fusion message includes the content of the first fusion message and a sixth emoticon that replaces the fourth emoticon.
12. The method according to any one of claims 1 to 11, wherein: The at least one message element includes other message elements, the other message elements being different from the at least one message element; After displaying the first fused message obtained by fusion in a second style in response to the fusion operation on the first text message and at least one of the message elements, the method further includes: In response to a fusion operation on the first fused message and the other message elements, dynamically displaying a fusion process of the other message elements with the first fused message; When the fusion count corresponding to the first fusion message is between the first count and the second count, a fourth fusion message is displayed in a fifth style different from the second style; The fourth fusion message includes the content of the first fusion message and the content of the other message elements, and the fifth style is used to highlight the emotions represented by the other message elements.
13. The method of claim 12, wherein: The conversation interface includes a message display area, and the first fused message is displayed in the message display area; When the number of fusions corresponding to the first fusion message is greater than the second number, the method further includes: Converting the first fused message after integrating the other message elements into a bullet screen, and displaying the bullet screen fixedly at a target position in the message display area; When the display duration of the bullet comment reaches a first duration, the display of the bullet comment is canceled.
14. The method of claim 13, wherein: The other message elements are sent by the target object; After the bullet screen is fixedly displayed at a target position in the message display area, the method further includes: Above the bullet screen, a floating display of reply bullet screens from other objects in response to the bullet screen; The other objects are objects with which the target object conducts a conversation based on the conversation interface.
15. The method according to claim 13 or 14, wherein: The conversation interface further includes a message editing area. After the barrage is fixedly displayed at a target position in the message display area, the method further includes: In response to a message editing operation triggered based on the message editing area, displaying the edited message content; In response to a sending instruction for the edited message content, the edited message content is displayed in the bullet screen at the target location.
16. The method according to any one of claims 1 to 15, wherein: After displaying the first fused message obtained by fusion in a second style in response to the fusion operation on the first text message and at least one of the message elements, the method further includes: In response to a restoration condition of the first fused message being met, displaying a process of restoring the first fused message to obtain the first text message and the message elements; Wherein, the reducing conditions include at least one of the following: receiving a reply message to the first fusion message; The display duration of the first fused message reaches a second duration; A restoration instruction for the first fused message is received, where the restoration instruction is used to instruct to restore the first fused message to the first text message and the message elements.
17. The method according to any one of claims 1 to 16, wherein: In response to the fusion operation on the first text message and at least one of the message elements, displaying the fused first fused message in a second style includes: In response to a fusion operation on the first text message and at least one of the message elements, when the target object triggering the fusion operation has permission to perform the fusion operation, displaying the fused first fusion message in a second style; The method further comprises: When the target object does not have the permission to execute the fusion operation, first permission prompt information is displayed, where the first permission prompt information is used to indicate that the target object does not have the permission to execute the fusion operation.
18. The method of claim 17, wherein: When the target object does not have the permission to perform the fusion operation, after displaying the first permission prompt information, the method further includes: Displaying an interactive task and task guidance information, wherein the task guidance information is used to guide the target object to perform the interactive task; In response to a task execution operation for the interactive task triggered based on the task guidance information, displaying an execution process of the interactive task; When the interactive task is completed, second permission prompt information is displayed, where the second permission prompt information is used to indicate that the target object has the permission to execute the fusion operation.
19. A device for processing a conversation message, the device comprising: a display module configured to display the first text message in a first style and at least one message element in the conversation interface, the message element including at least one of the second text message and an emoticon; A fusion module is configured to, in response to a fusion operation on the first text message and at least one of the message elements, display a first fused message obtained by fusion in a second style; wherein the first fused message includes at least the content of the first text message and the content of the message element, and the second style is different from the first style.
20. An electronic device comprising: a memory configured to store computer-executable instructions or a computer program; The processor is configured to implement the method for processing a conversation message according to any one of claims 1 to 18 when executing the computer-executable instructions or computer program stored in the memory.
21. A computer-readable storage medium storing computer-executable instructions or a computer program, wherein when the computer-executable instructions or the computer program are executed by a processor, the method for processing a conversation message according to any one of claims 1 to 18 is implemented.
22. A computer program product, comprising computer-executable instructions or a computer program, wherein when the computer-executable instructions or the computer program are executed by a processor, the method for processing a conversation message according to any one of claims 1 to 18 is implemented.
Citation Information
Patent Citations
Input text processing method and device, electronic equipment and storage medium
CN113342179A
Expression information processing method, electronic equipment and storage medium
CN115348225A
Session processing method and device, electronic equipment, storage medium and program product
CN116938862A
Session message processing method and device, equipment, storage medium and program product
CN117499356A
Providing a response in automated chatting
WO2021086589A1