WO2024222618A1 - Session message processing method and apparatus, and electronic device - Google Patents
Session message processing method and apparatus, and electronic device Download PDFInfo
- Publication number
- WO2024222618A1 WO2024222618A1 PCT/CN2024/089074 CN2024089074W WO2024222618A1 WO 2024222618 A1 WO2024222618 A1 WO 2024222618A1 CN 2024089074 W CN2024089074 W CN 2024089074W WO 2024222618 A1 WO2024222618 A1 WO 2024222618A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- conversation
- text
- target
- session
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 230000004044 response Effects 0.000 claims abstract description 77
- 238000000034 method Methods 0.000 claims abstract description 53
- 230000015654 memory Effects 0.000 claims description 25
- 238000004891 communication Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 4
- 230000010365 information processing Effects 0.000 abstract description 2
- 239000012634 fragment Substances 0.000 description 46
- 238000010586 diagram Methods 0.000 description 21
- 230000006870 function Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 239000013643 reference control Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000007430 reference method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/18—Commands or executable codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/10—Multimedia information
Definitions
- the present application relates to the field of information processing technology, and in particular to a conversation message processing method, device and electronic device.
- users can quote conversation messages in communication applications when replying to messages. Specifically, users can check the conversation messages to be quoted from the conversation interface of the communication application, enter the conversation message editing area to edit the text information after confirming to quote a conversation message, and after completing the editing and sending, the text information replied by the user and the quoted conversation message can be seen on the conversation interface.
- the conversation communication efficiency of this conversation message quotation method is not high.
- the embodiments of the present application provide a method, device and electronic device for processing a session message, which can solve the problem of low session communication efficiency in the existing session message reference method.
- an embodiment of the present application provides a session message processing method, the method comprising:
- a message text corresponding to the at least one target conversation message is displayed;
- the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message;
- the input message and the session reference message are sent to session members participating in the target session.
- an embodiment of the present application provides a session message processing device, the device comprising:
- a first display module configured to display a reference message editing area corresponding to at least one target conversation message of a target conversation in response to a first input of at least one target conversation message of the target conversation;
- the at least one target conversation message includes at least one of the following: a text conversation message, a voice conversation message, a picture conversation message, and a video conversation message;
- a second display module configured to display a conversation reference message corresponding to the at least one target conversation message in response to a second input to the reference message editing area;
- a third display module configured to display an input message in response to a third input to the conversation message editing area of the target conversation
- the sending module is used to send the input message and the session reference message to the session members participating in the target session.
- an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps in the session message processing method described in the first aspect are implemented.
- an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored.
- the program or instruction is executed by a processor, the steps in the session message processing method described in the first aspect are implemented.
- an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
- an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the first aspect. method.
- a message text corresponding to the at least one target conversation message is displayed;
- the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message;
- a conversation reference message is displayed;
- an input message is displayed, and the input message and the conversation reference message are sent to conversation members participating in the target conversation.
- a reference to a target conversation message or a message text corresponding to a target conversation message can be realized based on an operation on the message text corresponding to the target conversation message, thereby highlighting the key content of the referenced conversation message and improving conversation communication efficiency.
- FIG1 is a flow chart of a method for processing a session message provided in an embodiment of the present application
- FIG2 is a schematic diagram of converting a voice conversation message into a message text according to an embodiment of the present application
- FIG3 is a schematic diagram of one of the embodiments of the present application for quoting a conversation message by operating a message text corresponding to the conversation message;
- FIG4a is one of schematic diagrams of displaying a reference message below a conversation message editing area provided by an embodiment of the present application
- FIG4b is a second schematic diagram of displaying a reference message below a conversation message editing area provided by an embodiment of the present application.
- FIG4c is a schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application.
- FIG5 is one of schematic diagrams of multiple conversation messages spliced and referenced according to an embodiment of the present application.
- FIG6a is a second schematic diagram of multiple conversation messages referenced after being spliced together, provided in an embodiment of the present application;
- FIG6b is a third schematic diagram of multiple conversation messages referenced after being spliced together, provided in an embodiment of the present application.
- FIG. 7a is one of schematic diagrams of adding a fragment reference provided in an embodiment of the present application.
- FIG7b is a second schematic diagram of adding a fragment reference provided in an embodiment of the present application.
- FIG8 is a schematic diagram of citing after splicing multiple fragments provided in an embodiment of the present application.
- FIG9 is a schematic diagram of multiple session message references provided in an embodiment of the present application.
- FIG10a is a second schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application.
- FIG10b is a third schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application.
- FIG10c is a fourth schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application.
- FIG. 11 is a schematic diagram of a complete target conversation message corresponding to a referenced voice message segment provided in an embodiment of the present application.
- FIG. 12 is a flowchart of another method for processing a session message provided in an embodiment of the present application.
- FIG. 13 is a schematic diagram of the structure of a session message processing device provided in an embodiment of the present application.
- FIG14 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- FIG. 15 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
- first, second, etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
- the first object can be one or more.
- “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
- FIG. 1 is a flow chart of a method for processing a session message provided in an embodiment of the present application. As shown in FIG. 1 , the method comprises the following steps:
- Step 101 In response to a first input of at least one target conversation message of a target conversation, a message text corresponding to the at least one target conversation message is displayed; the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message.
- the target session may be any session of any communication application.
- the at least one target session message may be at least one session message selected from the target session.
- the above-mentioned at least one target conversation message may be a conversation message of the same message type, for example, the above-mentioned at least one conversation message may be a voice conversation message, a picture conversation message or a video conversation message; or, the above-mentioned at least one target conversation message may include conversation messages of different message types, for example, the above-mentioned at least one target conversation message may include at least two types of conversation messages among voice conversation messages, picture conversation messages and video conversation messages.
- the message text corresponding to the target conversation message for example, if the target conversation message is a voice conversation message, the message text corresponding to the target conversation message is the voice text corresponding to the voice conversation message (i.e., text converted from the voice); if the target conversation message is a video conversation message, the message text corresponding to the target conversation message is the video text corresponding to the video conversation message (e.g., subtitle text of the video or text converted from the audio of the video); if the target conversation message is a picture conversation message, the message text corresponding to the target conversation message is the picture text corresponding to the picture conversation message (i.e., text on the picture).
- the target conversation message is a voice conversation message
- the message text corresponding to the target conversation message is the voice text corresponding to the voice conversation message (i.e., text converted from the voice)
- the target conversation message is a video conversation message
- the message text corresponding to the target conversation message is the video text corresponding to the video conversation message (e.g., subtitle text of the video or text
- the first input may include, but is not limited to, a click input, a slide input, or a press input on at least one target conversation message of the target conversation.
- a control for converting to text is displayed, and when a touch input to the control for converting to text is received, a message text corresponding to the voice conversation message is displayed, as shown in FIG3 .
- Step 102 In response to a second input of the message text, display a conversation reference message.
- the second input may include but is not limited to selection input, interception input and spelling input of the message text. At least one of the following is input.
- the above-mentioned selection input or interception input may include a sliding input by the user on the message text, and the text portion covered by the sliding track is determined as the text fragment that the user needs to select or intercept; or the above-mentioned selection input or interception input may include a dragging input for a text selection box displayed on the message text, and the text portion selected by the text selection box is determined as the text fragment that the user needs to select or intercept, for example, as shown in Figure 3.
- the above-mentioned splicing input can be used to trigger the splicing of multiple message texts or text fragments selected by the user, or the splicing of target conversation messages corresponding to multiple message texts selected by the user or voice message fragments corresponding to multiple text fragments.
- the above-mentioned text fragment A and text fragment B can be spliced to obtain a spliced message text
- the voice message fragment corresponding to the above-mentioned text fragment A and the voice message fragment corresponding to the above-mentioned text fragment B can be spliced to obtain a spliced voice message.
- the conversation reference message may include one or more reference messages. For determining the conversation reference message based on the second input, for example, if the second input includes a selection input of a text segment a of a message text A, the text segment a or the conversation message segment corresponding to the text segment a may be used as a reference message; if the second input includes a selection input of a text segment a of a message text A and a selection input of a text segment b of a message text B, in response to the selection input, the text segment a may be intercepted from the message text A and the text segment b may be intercepted from the message text B, and the text segment a and the text segment b may be used as a reference message respectively; or, the text segment a and the text segment b may be spliced to obtain a spliced message text, and the spliced message text may be used as a reference message; or, the voice message segment corresponding to the text segment a and the voice message segment corresponding
- Step 103 In response to a third input to the session message editing area of the target session, display The input message is displayed.
- the above-mentioned input message may include at least one of a text input message, a voice input message, a picture input message, a video input message, etc.
- the conversation reference message may be brought into the conversation message editing area.
- the conversation reference message may be as shown in FIG4a; if the conversation reference message is a text message, it may be as shown in FIG4b.
- Step 104 Send the input message and the session reference message to session members participating in the target session.
- the input message and the session reference message may be displayed in the target session according to a preset reference format.
- the session reference message may be displayed below the input message, and the name of the referenced object (i.e., contact) corresponding to each session reference message may be displayed, for example, as shown in FIG4c.
- the conversation message processing method provided by the embodiment of the present application displays a message text corresponding to at least one target conversation message of a target conversation in response to a first input of at least one target conversation message of the target conversation;
- the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message; displays a conversation reference message in response to a second input of the message text; displays an input message in response to a third input of a conversation message editing area of the target conversation, and sends the input message and the conversation reference message to conversation members participating in the target conversation. That is, the embodiment of the present application can reference the target conversation message or the message text corresponding to the target conversation message based on the operation of the message text corresponding to the target conversation message, thereby highlighting the key content of the referenced conversation message and improving the conversation communication efficiency.
- the at least one target session message includes a first session message
- the step of displaying a conversation reference message in response to a second input of the message text comprises:
- the conversation reference message is displayed according to the first message text.
- the first conversation message may be any conversation message in at least one target conversation message.
- the first message text may include a text segment or the entire text of a message text corresponding to the first conversation message. The following description is made by taking the example that the first message text includes a text segment of a message text corresponding to the first conversation message.
- the above-mentioned display of the conversation reference message according to the first message text may, for example, be to take the first message text as a reference message, or to take the conversation message corresponding to the first message text as a reference message, or to take the concatenation result of the first message text and other message texts as a reference message, or to take the concatenation result of the conversation message corresponding to the first message text and the conversation messages corresponding to the other message texts as a reference message.
- the first message text is determined, and the conversation reference message is displayed according to the first message text, that is, it supports obtaining a text fragment from the message text corresponding to the conversation message, and determining the conversation reference message based on the obtained text fragment, which can not only improve the flexibility of conversation message reference, but also improve the pertinence of conversation message reference.
- the first conversation message is a voice conversation message
- the message text corresponding to the first conversation message is the voice text corresponding to the voice conversation message
- the determining of the first message text in response to the second input of the message text corresponding to the first conversation message includes:
- the step of displaying the conversation reference message according to the first message text includes:
- the conversation reference message is displayed according to the voice segment corresponding to the target voice text.
- the target voice text may include the voice text corresponding to the voice conversation message.
- the target voice text includes a text segment of the voice text corresponding to the voice conversation message.
- the second input may include, but is not limited to, a sliding input on the voice text corresponding to the voice conversation message or a dragging input on a text selection control (e.g., a text selection box, etc.) on the voice text corresponding to the voice conversation message.
- a text selection control e.g., a text selection box, etc.
- FIG3 a user's dragging input on a text selection box on the voice text corresponding to the voice conversation message is received, and in response to the dragging input, the text portion selected by the text selection box is determined as the target voice text.
- the conversation reference message can be displayed according to the target voice text, for example, the target voice text is used as a reference message, or the concatenation result of the target voice text and other voice texts is used as a reference message; or, the conversation reference message can be displayed according to the voice segment corresponding to the target voice text, for example, the voice segment corresponding to the target voice text is used as a reference message, or the concatenation result of the voice segment corresponding to the target voice text and other voice segments or other voice conversation messages is used as a reference message.
- the target voice text in response to the second input of the voice text corresponding to the voice conversation message, the target voice text is determined, and the conversation reference message is displayed according to the target voice text, which can improve the flexibility and pertinence of the voice conversation message reference; or, the conversation reference message is displayed according to the voice segment corresponding to the target voice text, which is conducive to the user to quickly and accurately determine the voice segment to be referenced, and can improve the efficiency and pertinence of the voice conversation message reference.
- the first conversation message is a picture conversation message
- the message text corresponding to the first conversation message is the picture text of the first picture corresponding to the picture conversation message
- the determining of the first message text in response to the second input of the message text corresponding to the first conversation message includes:
- the step of displaying the conversation reference message according to the first message text includes:
- the target picture text in the first picture is annotated to obtain a second picture, and the conversation reference message is displayed according to the second picture.
- the picture text corresponding to the first picture is also the text on the first picture.
- the target picture text may include part or all of the picture text of the first picture.
- the second input may include but is not limited to a sliding input on the picture text corresponding to the first picture or a dragging input on a text selection control (eg, a text selection box, etc.) on the picture text corresponding to the first picture.
- a text selection control eg, a text selection box, etc.
- the conversation reference message can be displayed according to the target picture text.
- the target picture text can be used as a reference message, or the picture area corresponding to the target picture text in the first picture can be used as a reference message; or, the target picture text in the first picture can be annotated to obtain a second picture, and the conversation reference message can be displayed according to the second picture, for example, the target picture text in the first picture can be highlighted to obtain a second picture, and the second picture can be used as a reference message.
- the target picture text in response to the second input of the picture text of the first picture, the target picture text is determined, and the conversation reference message is displayed according to the target picture text, which can improve the flexibility and pertinence of the picture conversation message reference; or, the target picture text in the first picture is annotated to obtain the second picture, and the conversation reference message is displayed according to the second picture, which can improve the pertinence of the picture conversation message and help members participating in the target conversation to quickly learn the key information of the referenced picture.
- the first conversation message is a video conversation message
- the message text corresponding to the first conversation message is the video text of the first video corresponding to the video conversation message
- the determining of the first message text in response to the second input of the message text corresponding to the first conversation message includes:
- the step of displaying the conversation reference message according to the first message text includes:
- the conversation reference message is displayed according to the video segment corresponding to the target video text.
- the video text of the first video may include the subtitle text of the first video or the text converted from the audio of the first video, etc.
- the target video text may include a text segment or the entire text of the video text of the first video. The following description is made by taking the example that the target video text includes a text segment of the video text of the first video.
- the conversation reference message can be displayed according to the target video text, for example, the target video text is used as a reference message; or, the conversation reference message can be displayed according to the video clip corresponding to the target video text, for example, the video clip corresponding to the target video text is used as a reference message.
- the target video text in response to the second input of the video text of the first video, the target video text is determined, and the conversation reference message is displayed according to the target video text, which can improve the flexibility and pertinence of the video conversation message reference, or the conversation reference message is displayed according to the video segment corresponding to the target video text, which is conducive to the user to quickly and accurately determine the video segment to be referenced, and can improve the efficiency and pertinence of the video conversation message reference.
- the at least one target session message further includes a second session message
- the method further includes:
- the displaying the conversation reference message according to the first message text includes:
- the conversation reference message is displayed according to the first message text and the second message text.
- the second message text may include a partial text or the entire text of the message text corresponding to the second conversation message. It should be noted that the related processing method of determining the second message text in response to the third input of the message text corresponding to the second conversation message can refer to The above-mentioned explanation on determining the first message text in response to the second input of the message text corresponding to the first conversation message is not repeated here.
- the first message text and the second message text may be respectively used as a quoted message; or, the conversation message (for example, a voice conversation message, a video conversation message or a picture conversation message, etc.) or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the second message text may be respectively used as a quoted message; or, the first message text and the second message text may be spliced, and the splicing result may be used as a quoted message; or, the conversation message or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the second message text may be spliced, and the splicing result may be used as a quoted message.
- the conversation message for example, a voice conversation message, a video conversation message or a picture conversation message, etc.
- the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the second message text may be respectively used as a quoted message
- This embodiment supports quoting multiple session messages based on message texts corresponding to the multiple session messages, which can improve the efficiency of quoting session messages.
- displaying the conversation reference message according to the first message text and the second message text includes:
- the conversation reference message is displayed according to a concatenation result of the first message text and the second message text.
- the concatenation result of the first message text and the second message text may be used as a quoted message and the quoted message may be displayed, or the conversation message corresponding to the concatenation result of the first message text and the second message text may be used as a quoted message and the quoted message may be displayed.
- the first message text is a text segment of a message text corresponding to a first voice conversation message
- the second message text is a text segment of a message text corresponding to a second voice conversation message
- the first message text and the second message text may be used as a quoted message and the quoted message may be displayed.
- the conversation message corresponding to the splicing result of the message texts is a splicing result of the voice message segment corresponding to the first message text and the voice message segment corresponding to the second message text.
- each conversation message may be selected in sequence, and the text segments corresponding to the message texts corresponding to each conversation message may be spliced based on the order in which the conversation messages are selected, or the voice message segments of each conversation message may be spliced based on the order in which the conversation messages are selected.
- a corresponding sequence mark may be displayed on the selection box of each selected session message to mark the selection order or concatenation order of each session message. If a session message is deselected, the order of the selected session messages after the deselected session message is filled in the previous order, as shown in FIG9 .
- a reference message is generated based on part of the text or all of the message texts corresponding to the multiple session messages, or a reference message is generated based on the multiple session messages or multiple session message fragments. This can not only further improve the flexibility of session message reference, but also further improve the integrity and readability of session message reference.
- the method before displaying the conversation reference message according to the first message text, the method further includes:
- the step of displaying the conversation reference message according to the first message text includes:
- the conversation reference message is displayed according to the first message text and the third message text.
- the third message text may be a text segment in the message text corresponding to the first conversation message that is different from the first message text.
- the user can select the Add Segment option to select multiple text segments, so as to obtain multiple text segments of the message text corresponding to the same conversation message for reference.
- the user can click or long press the Add Segment option, and then a text selection box will be displayed in the unselected text range of the message text corresponding to the first conversation message, receiving the user's drag input for the text selection box, and in response to the drag input, the text portion selected in the text selection box is determined as the selected text segment.
- the first message text and the third message text can be used as a reference message respectively; or, the conversation message (for example, a voice conversation message, a video conversation message or a picture conversation message, etc.) or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the third message text can be used as a reference message respectively; or, the first message text and the third message text can be spliced, and the splicing result can be used as a reference message.
- the conversation message for example, a voice conversation message, a video conversation message or a picture conversation message, etc.
- the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the third message text can be used as a reference message respectively
- the first message text and the third message text can be spliced, and the splicing result can be used as a reference message.
- a touch input of a control referenced after splicing is received, and in response to the touch input, the two text fragments are spliced and referenced; or, the conversation message or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the third message text can be spliced, and the splicing result can be used as a reference message.
- This embodiment supports cutting the message text corresponding to the same conversation message to obtain multiple text segments, and displays the conversation reference message based on the multiple text segments, which can further improve the pertinence and flexibility of the conversation message reference.
- displaying the conversation reference message according to the first message text and the third message text includes:
- the conversation reference message is displayed according to a concatenation result of the first message text and the third message text.
- the concatenation result of the first message text and the third message text may be used as a quoted message, and the quoted message may be displayed; or the concatenation result of the first message text and the third message text may be used as a quoted message.
- the conversation message segment corresponding to the splicing result is used as a reference message and the reference message is displayed. For example, if the first message text and the third message text are text segments of message texts corresponding to a voice conversation message, then the conversation message segment corresponding to the splicing result of the first message text and the third message text is the splicing result of the voice message segment corresponding to the first message text and the voice message segment corresponding to the third message text.
- the concatenation order of different text segments of the message text corresponding to the same conversation message can be determined by the positions of the different text segments in the message text corresponding to the conversation message; or can be determined according to the selection order of the above different text segments.
- This embodiment can determine a reference message based on the splicing results of multiple text fragments of the message text corresponding to the same conversation message, which can improve the pertinence of the conversation message reference while ensuring the correspondence between the reference message and the conversation message, which is conducive to improving the readability of the reference message.
- the same reference message can be determined based on one or more text segments clipped from the message text corresponding to the same conversation message, and different reference messages can be determined based on text segments clipped from the message text corresponding to different conversation messages, which is conducive to improving the correspondence between the reference message and the conversation message and is convenient for users to view.
- a touch input to the reference control is received, and in response to the touch input, the voice message segments corresponding to the text segments of the message text corresponding to the two conversation messages are respectively used as a reference message, thereby obtaining two reference messages.
- the method further includes:
- the input message, the session reference message, and preview information corresponding to the session reference message are displayed in the target session.
- the preview information corresponding to the voice reference message when the conversation reference message includes a voice reference message, the preview information corresponding to the voice reference message may be the voice text information of the voice reference message; when the conversation reference message includes a video reference message, the preview information corresponding to the video reference message may be the video frame information of the video reference message, for example, the video frame sequence of the video reference message; when the conversation reference message includes a picture reference message, the preview information corresponding to the picture reference message may be the video frame information of the video reference message, for example, the video frame sequence of the video reference message; The information may be text information or a preview image of the message referenced by the above image.
- the conversation reference message is a voice reference message
- the input message, the voice reference information, and the message text corresponding to the voice reference message are displayed in the target conversation.
- This embodiment displays the session reference message and the preview information corresponding to the session reference message in the target session, which helps the session members participating in the target session to quickly learn the content of the session reference message.
- the input message and the text reference message may be directly displayed in the target session, for example, as shown in Figure 10b.
- the input message, the text reference information, and the name of the referenced object (for example, a contact) corresponding to each text reference message may be displayed in the target session, for example, as shown in Figure 10c.
- the method further includes:
- a third conversation message is displayed, wherein the target reference message includes a message segment of the third conversation message or a text segment of a message text corresponding to the third conversation message, and the third conversation message is a conversation message in the at least one target conversation message.
- the target reference message may be any reference message including a session message fragment.
- the third session message may include one or more session messages. For example, if the target reference message is a message fragment of session message a, the third session message is session message a; if the target reference message is obtained by splicing a message fragment of session message a and a message fragment of session message b, the third session message includes session message a and session message b.
- the target session displays the input message and the session reference message, and upon receiving a click input for a reference message (eg, a 33-second voice clip) in the session reference message, the target session displays the input message and the session reference message.
- a reference message eg, a 33-second voice clip
- the original conversation message corresponding to the quoted message can be displayed, such as the original voice shown in FIG11.
- the preview information corresponding to the quoted message can also be displayed, such as the message text corresponding to the voice quoted message shown in FIG11.
- the embodiment of the present application supports the user to further view the original conversation message corresponding to the quoted conversation message fragment or the message text corresponding to the conversation message fragment based on the quoted conversation message fragment or the message text corresponding to the conversation message fragment, which can improve the readability of the quoted message and facilitate user understanding.
- the input message and session reference message can be displayed on the target session of the session members participating in the target session.
- the session reference message includes a voice reference message, a video reference message, or a picture reference message
- the input message, the session reference message, and preview information corresponding to the session reference message may be displayed on a target session of a session member participating in the target session.
- a sixth input for a first reference message in the session reference messages is received; in response to the sixth input, a fourth session message is displayed, wherein the first reference message includes a message fragment of the first session message or a text fragment of the message text corresponding to the fourth session message, and the fourth session message is a session message in the at least one target session message.
- the session message processing method includes the following steps:
- Step 1201 Select a voice conversation message to convert to text.
- a control for converting to text is displayed.
- a message text corresponding to the voice conversation message is displayed, as shown in FIG. 3 .
- Step 1202 directly intercept or splice the voice conversation message according to the result of the text conversion, and Voice messages can be quoted individually or in batches.
- the user can directly select all of a single voice conversation message that has been converted to text, or drag the text selection box to intercept the voice message segment corresponding to the text segment and then quote it. If the dragging process does not cover any text part, it is considered that no voice message segment is selected, that is, it cannot be quoted.
- the user may select an add segment option to select multiple text segments to obtain multiple voice message segments of the same voice conversation message for reference.
- the user may also concatenate and quote the voice message segments corresponding to the multiple text segments.
- the multiple voice message segments will be combined into one quoted message.
- Direct quote is regarded as multiple voice message segments are not spliced together, but quoted separately, that is, each voice message segment is regarded as a quoted message.
- the user may also select all of the multiple voice conversation messages that have been converted into text, or perform interception operations on each of them separately, and reference the voice message segment corresponding to the finally intercepted and selected text segment.
- the user may also concatenate and quote multiple voice conversation messages that have been converted into text, and the voice message segments of the multiple voice conversation messages that have been concatenated and quoted and their corresponding text segments are combined into one quoted message.
- the user when the user references after splicing, he can select different voice conversation messages that have been dragged and cut in sequence, and the order of selection is regarded as the order of splicing the voice message segments.
- the selection order can be marked in the selection box. If a voice conversation message is deselected, other voice conversation messages will be replaced in order.
- Step 1203 After completing the reference operation, return to the chat sending box to edit a new message. After the new message is sent, the referenced voice conversation message is displayed synchronously.
- the user can directly edit a new message in the input box, and the referenced voice conversation message or voice message fragment is displayed below the input box.
- the selected voice conversation messages should be displayed one by one in the order of reference, and can be aggregated with the newly edited reply message into one message and sent uniformly.
- the voice conversation message or voice message segment may also be directly brought into the lower part of the input box in text form, and the user may directly preview the text content.
- all receiving terminals can receive the above reply messages and reference messages in the chat software (i.e. the above communication application), and can see the latest referenced reply (i.e. the above reply message and reference message) by entering the chat interface.
- the receiving terminal can receive the above reply message and reference message and display them on the conversation interface. According to the number of referenced messages, one or more referenced voice conversation messages or voice message fragments are displayed by default below the reply message.
- the sending terminal sends a new message (ie, the first target message mentioned above)
- a new message ie, the first target message mentioned above
- the voice reference is made by converting the voice message into text
- the referenced voice conversation message will expand the text content by default and display it on the conversation interface.
- the referenced voice conversation message may be directly displayed in text form on the conversation interface.
- the name of the referenced object and the message text corresponding to the referenced voice conversation message may be displayed on the conversation interface.
- each member in the conversation scene can click on the referenced voice conversation message to listen to the corresponding voice content. If a voice message segment is clicked, the voice message segment content can be listened to, and the voice content of the voice conversation message corresponding to the voice message segment can be listened to. In addition to listening to the voice content, the message text corresponding to the voice message segment can also be directly viewed.
- the session message processing method provided in the embodiment of the present application can be executed by a session message processing device.
- the session message processing device executing the session message processing method is taken as an example to illustrate the session message processing device provided in the embodiment of the present application.
- FIG. 13 is a schematic diagram of the structure of a session message processing device provided in an embodiment of the present application.
- the session message processing device 1300 includes:
- the first display module 1301 is used to respond to at least one target session message of the target session.
- a first input is used to display a reference message editing area corresponding to the at least one target conversation message;
- the at least one target conversation message includes at least one of the following: a text conversation message, a voice conversation message, a picture conversation message, and a video conversation message;
- a second display module 1302, configured to display a conversation reference message corresponding to the at least one target conversation message in response to a second input to the reference message editing area;
- a third display module 1303, configured to display an input message in response to a third input to the conversation message editing area of the target conversation
- the sending module 1304 is configured to send the input message and the session reference message to the session members participating in the target session.
- the at least one target session message includes a first session message
- the second display module includes:
- a first determining unit configured to determine a first message text in response to a second input of a message text corresponding to the first conversation message
- the first display unit is configured to display the conversation reference message according to the first message text.
- the first conversation message is a voice conversation message
- the message text corresponding to the first conversation message is the voice text corresponding to the voice conversation message
- the first determining unit is specifically configured to:
- the first display unit is specifically used for:
- the conversation reference message is displayed according to the voice segment corresponding to the target voice text.
- the first conversation message is a picture conversation message
- the message text corresponding to the first conversation message is the picture text of the first picture corresponding to the picture conversation message
- the first determining unit is specifically configured to:
- a target picture text is determined, wherein , the first message text is the target picture text;
- the first display unit is specifically used for:
- the target picture text in the first picture is annotated to obtain a second picture, and the conversation reference message is displayed according to the second picture.
- the first conversation message is a video conversation message
- the message text corresponding to the first conversation message is the video text of the first video corresponding to the video conversation message
- the first determining unit is specifically configured to:
- the first display unit is specifically used for:
- the conversation reference message is displayed according to the video segment corresponding to the target video text.
- the at least one target session message further includes a second session message
- the device also includes:
- a first determining module configured to determine a second message text in response to a third input of a message text corresponding to the second conversation message before displaying the conversation reference message according to the first message text;
- the first display unit is specifically used for:
- the conversation reference message is displayed according to the first message text and the second message text.
- the first display unit is specifically used for:
- the conversation reference message is displayed according to a concatenation result of the first message text and the second message text.
- the device further comprises:
- a second determining module configured to determine, before displaying the conversation reference message according to the first message text, a third message reference message in response to a fourth input of a message text corresponding to the first conversation message; Message text;
- the first display unit is specifically used for:
- the conversation reference message is displayed according to the first message text and the third message text.
- the first display unit is specifically used for:
- the conversation reference message is displayed according to a concatenation result of the first message text and the third message text.
- the device further comprises:
- a fourth display module is used to display the input message, the session reference message and the preview information corresponding to the session reference message in the target session after sending the input message and the session reference message to the session members participating in the target session.
- the device further comprises:
- a fifth display module configured to display the input message and the session reference message in the target session after sending the input message and the session reference message to the session members participating in the target session;
- a first receiving module configured to receive a fifth input of a target reference message in the session reference message
- a sixth display module is used to display a third conversation message in response to the fifth input, wherein the target reference message includes a message fragment of the third conversation message or a text fragment of a message text corresponding to the third conversation message, and the third conversation message is a conversation message in the at least one target conversation message.
- the input message includes at least one of the following: a text input message, a voice input message, a picture input message, and a video input message.
- the session message processing device in the embodiment of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip.
- the electronic device may be a terminal or other device other than a terminal.
- the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID),
- MID mobile Internet device
- the embodiments of the present invention are not limited to augmented reality (AR)/virtual reality (VR) devices, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., and may also be servers, network attached storage (NAS), personal computers (PC), televisions (TV), ATMs or self-service machines, etc.
- the session message processing device in the embodiment of the present application may be a device having an operating system.
- the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
- the session message processing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 1. To avoid repetition, it will not be repeated here.
- an embodiment of the present application also provides an electronic device 1400, including a processor 1401 and a memory 1402, and the memory 1402 stores a program or instruction that can be executed on the processor 1401.
- the program or instruction is executed by the processor 1401
- the various steps of the above-mentioned session message processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
- the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
- FIG. 15 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 1500 includes but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, and a processor 1510 and other components.
- the electronic device 1500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1510 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
- a power source such as a battery
- the electronic device structure shown in FIG. 15 does not constitute a limitation on the electronic device, and the electronic device may include more than the illustrated structure. More or fewer components, or combinations of certain components, or different arrangements of components are not described in detail here.
- the display unit 1506 is configured to, in response to a first input to at least one target conversation message of a target conversation, display a reference message editing area corresponding to the at least one target conversation message; the at least one target conversation message includes at least one of the following: a text conversation message, a voice conversation message, a picture conversation message, and a video conversation message; in response to a second input to the reference message editing area, display a conversation reference message corresponding to the at least one target conversation message; in response to a third input to the conversation message editing area of the target conversation, display the input message;
- the radio frequency unit 1501 sends the input message and the session reference message to the session members participating in the target session.
- the embodiment of the present application can reference the target conversation message or the message text corresponding to the target conversation message based on the operation on the message text corresponding to the target conversation message, thereby highlighting the key content of the referenced conversation message and improving the conversation communication efficiency.
- the at least one target session message includes a first session message
- the processor 1510 is configured to determine the first message text in response to a second input of the message text corresponding to the first conversation message;
- the display unit 1506 is specifically configured to display the conversation reference message according to the first message text.
- the first conversation message is a voice conversation message
- the message text corresponding to the first conversation message is the voice text corresponding to the voice conversation message
- the processor 1510 is specifically configured to:
- the display unit 1506 is specifically used for:
- the conversation reference message is displayed according to the voice segment corresponding to the target voice text.
- the first conversation message is a picture conversation message, and the first conversation message corresponds to The message text is the picture text of the first picture corresponding to the picture conversation message;
- the processor 1510 is specifically configured to:
- the display unit 1506 is specifically used for:
- the target picture text in the first picture is annotated to obtain a second picture, and the conversation reference message is displayed according to the second picture.
- the first conversation message is a video conversation message
- the message text corresponding to the first conversation message is the video text of the first video corresponding to the video conversation message
- the processor 1510 is specifically configured to:
- the display unit 1506 is specifically used for:
- the conversation reference message is displayed according to the video segment corresponding to the target video text.
- the at least one target session message further includes a second session message
- the processor 1510 is further configured to determine a second message text in response to a third input of a message text corresponding to the second conversation message before displaying the conversation reference message according to the first message text;
- the display unit 1506 is specifically used for:
- the conversation reference message is displayed according to the first message text and the second message text.
- the display unit 1506 is specifically used for:
- the conversation reference message is displayed according to a concatenation result of the first message text and the second message text.
- the processor 1510 is further configured to display the Before the conversation reference message is sent, in response to a fourth input of a message text corresponding to the first conversation message, a third message text is determined;
- the display unit 1506 is specifically used for:
- the conversation reference message is displayed according to the first message text and the third message text.
- the display unit 1506 is specifically used for:
- the conversation reference message is displayed according to a concatenation result of the first message text and the third message text.
- the display unit 1506 is further configured to display the input message, the session reference message, and preview information corresponding to the session reference message in the target session after sending the input message and the session reference message to session members participating in the target session.
- the display unit 1506 is further configured to display the input message and the session reference message in the target session after sending the input message and the session reference message to the session members participating in the target session;
- the user input unit 1507 is used to receive a fifth input of a target reference message in the session reference message;
- the display unit 1506 is further configured to display a third conversation message in response to the fifth input, wherein the target reference message includes a message fragment of the third conversation message or a text fragment of a message text corresponding to the third conversation message, and the third conversation message is a conversation message in the at least one target conversation message.
- the input message includes at least one of the following: a text input message, a voice input message, a picture input message, and a video input message.
- the input unit 1504 may include a graphics processing unit (GPU) 15041 and a microphone 15042, and the graphics processor 15041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode.
- the display unit 1506 may include a display panel 15061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
- User The input unit 1507 includes at least one of a touch panel 15071 and other input devices 15072.
- the touch panel 15071 is also called a touch screen.
- the touch panel 15071 may include two parts: a touch detection device and a touch controller.
- Other input devices 15072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
- the memory 1509 can be used to store software programs and various data.
- the memory 1509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
- the memory 1509 may include a volatile memory or a non-volatile memory, or the memory 1509 may include both volatile and non-volatile memories.
- the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
- the volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
- the memory 1509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
- the processor 1510 may include one or more processing units; optionally, the processor 1510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1510.
- An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
- a program or instruction is stored.
- each process of the above-mentioned session message processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
- the processor is the processor in the electronic device described in the above embodiment.
- the readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
- An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned session message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
- the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
- An embodiment of the present application provides a computer program product, which is stored in a storage medium.
- the program product is executed by at least one processor to implement the various processes of the above-mentioned session message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
- the embodiment method can be implemented by means of software plus a necessary general hardware platform, or by hardware, but in many cases the former is a better implementation method.
- the technical solution of the present application, or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
交叉引用Cross-references
本发明要求在2023年04月25日提交中国专利局、申请号为202310457820.2、发明名称为“会话消息处理方法、装置及电子设备”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention claims the priority of the Chinese patent application filed with the Chinese Patent Office on April 25, 2023, with application number 202310457820.2 and invention name “Conversation Message Processing Method, Device and Electronic Device”. The entire contents of the application are incorporated into the present invention by reference.
本申请涉及信息处理技术领域,尤其涉及一种会话消息处理方法、装置及电子设备。The present application relates to the field of information processing technology, and in particular to a conversation message processing method, device and electronic device.
目前,用户在使用电子设备中的通信类应用程序过程中,在回复消息时可以对通信类应用程序中的会话消息进行引用。具体的,用户可以从通信类应用程序的会话界面中查阅需要引用的会话消息,在确认引用某一会话消息后进入会话消息编辑区域编辑文字信息,在完成编辑并发送后,则可在会话界面上看到用户回复的文字信息以及所引用的会话消息。但是,该种会话消息引用方式的会话沟通效率不高。At present, when using communication applications in electronic devices, users can quote conversation messages in communication applications when replying to messages. Specifically, users can check the conversation messages to be quoted from the conversation interface of the communication application, enter the conversation message editing area to edit the text information after confirming to quote a conversation message, and after completing the editing and sending, the text information replied by the user and the quoted conversation message can be seen on the conversation interface. However, the conversation communication efficiency of this conversation message quotation method is not high.
发明内容Summary of the invention
本申请实施例提供一种会话消息处理方法、装置及电子设备,能够解决现有的会话消息引用方式的会话沟通效率不高的问题。The embodiments of the present application provide a method, device and electronic device for processing a session message, which can solve the problem of low session communication efficiency in the existing session message reference method.
第一方面,本申请实施例提供了一种会话消息处理方法,所述方法包括:In a first aspect, an embodiment of the present application provides a session message processing method, the method comprising:
响应于对目标会话的至少一个目标会话消息的第一输入,显示所述至少一个目标会话消息对应的消息文本;所述至少一个目标会话消息包括以下至少一项:语音会话消息、图片会话消息、视频会话消息;In response to a first input of at least one target conversation message of a target conversation, a message text corresponding to the at least one target conversation message is displayed; the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message;
响应于对所述消息文本的第二输入,显示会话引用消息; In response to a second input of the message text, displaying a conversation reference message;
响应于对所述目标会话的会话消息编辑区域的第三输入,显示输入消息;In response to a third input to the conversation message editing area of the target conversation, displaying the input message;
将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员。The input message and the session reference message are sent to session members participating in the target session.
第二方面,本申请实施例提供了一种会话消息处理装置,所述装置包括:In a second aspect, an embodiment of the present application provides a session message processing device, the device comprising:
第一显示模块,用于响应于对目标会话的至少一个目标会话消息的第一输入,显示所述至少一个目标会话消息对应的引用消息编辑区域;所述至少一个目标会话消息包括以下至少一项:文字会话消息、语音会话消息、图片会话消息、视频会话消息;A first display module, configured to display a reference message editing area corresponding to at least one target conversation message of a target conversation in response to a first input of at least one target conversation message of the target conversation; the at least one target conversation message includes at least one of the following: a text conversation message, a voice conversation message, a picture conversation message, and a video conversation message;
第二显示模块,用于响应于对所述引用消息编辑区域的第二输入,显示所述至少一个目标会话消息对应的会话引用消息;A second display module, configured to display a conversation reference message corresponding to the at least one target conversation message in response to a second input to the reference message editing area;
第三显示模块,用于响应于对所述目标会话的会话消息编辑区域的第三输入,显示输入消息;a third display module, configured to display an input message in response to a third input to the conversation message editing area of the target conversation;
发送模块,用于将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员。The sending module is used to send the input message and the session reference message to the session members participating in the target session.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的会话消息处理方法中的步骤。In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps in the session message processing method described in the first aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的会话消息处理方法中的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the session message processing method described in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的 方法。In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the first aspect. method.
本申请实施例中,响应于对目标会话的至少一个目标会话消息的第一输入,显示所述至少一个目标会话消息对应的消息文本;所述至少一个目标会话消息包括以下至少一项:语音会话消息、图片会话消息、视频会话消息,响应于对所述消息文本的第二输入,显示会话引用消息,响应于对所述目标会话的会话消息编辑区域的第三输入,显示输入消息,并将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员,也即本申请实施例可以基于对目标会话消息对应的消息文本的操作,实现对目标会话消息或者目标会话消息对应的消息文本的引用,由此可以突出所引用的会话消息的关键内容,提高会话沟通效率。In an embodiment of the present application, in response to a first input of at least one target conversation message of a target conversation, a message text corresponding to the at least one target conversation message is displayed; the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message; in response to a second input of the message text, a conversation reference message is displayed; in response to a third input of a conversation message editing area of the target conversation, an input message is displayed, and the input message and the conversation reference message are sent to conversation members participating in the target conversation. That is, in an embodiment of the present application, a reference to a target conversation message or a message text corresponding to a target conversation message can be realized based on an operation on the message text corresponding to the target conversation message, thereby highlighting the key content of the referenced conversation message and improving conversation communication efficiency.
图1是本申请实施例提供的一种会话消息处理方法的流程图;FIG1 is a flow chart of a method for processing a session message provided in an embodiment of the present application;
图2是本申请实施例提供的将语音会话消息转消息文本的示意图;FIG2 is a schematic diagram of converting a voice conversation message into a message text according to an embodiment of the present application;
图3是本申请实施例提供的通过对会话消息对应的消息文本的操作以进行会话消息引用的示意图之一;FIG3 is a schematic diagram of one of the embodiments of the present application for quoting a conversation message by operating a message text corresponding to the conversation message;
图4a是本申请实施例提供的在会话消息编辑区域下方显示引用消息的示意图之一;FIG4a is one of schematic diagrams of displaying a reference message below a conversation message editing area provided by an embodiment of the present application;
图4b是本申请实施例提供的在会话消息编辑区域下方显示引用消息的示意图之二;FIG4b is a second schematic diagram of displaying a reference message below a conversation message editing area provided by an embodiment of the present application;
图4c是本申请实施例提供的在目标会话显示引用消息的示意图之一;FIG4c is a schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application;
图5是本申请实施例提供的多条会话消息拼接后引用的示意图之一;FIG5 is one of schematic diagrams of multiple conversation messages spliced and referenced according to an embodiment of the present application;
图6a是本申请实施例提供的多条会话消息拼接后引用的示意图之二;FIG6a is a second schematic diagram of multiple conversation messages referenced after being spliced together, provided in an embodiment of the present application;
图6b是本申请实施例提供的多条会话消息拼接后引用的示意图之三;FIG6b is a third schematic diagram of multiple conversation messages referenced after being spliced together, provided in an embodiment of the present application;
图7a是本申请实施例提供的增加片段引用的示意图之一;FIG. 7a is one of schematic diagrams of adding a fragment reference provided in an embodiment of the present application;
图7b是本申请实施例提供的增加片段引用的示意图之二; FIG7b is a second schematic diagram of adding a fragment reference provided in an embodiment of the present application;
图8是本申请实施例提供的多个片段拼接后引用的示意图;FIG8 is a schematic diagram of citing after splicing multiple fragments provided in an embodiment of the present application;
图9是本申请实施例提供的多条会话消息引用的示意图;FIG9 is a schematic diagram of multiple session message references provided in an embodiment of the present application;
图10a是本申请实施例提供的在目标会话显示引用消息的示意图之二;FIG10a is a second schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application;
图10b是本申请实施例提供的在目标会话显示引用消息的示意图之三;FIG10b is a third schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application;
图10c是本申请实施例提供在目标会话显示引用消息的示意图之四;FIG10c is a fourth schematic diagram of displaying a reference message in a target session provided by an embodiment of the present application;
图11是本申请实施例提供的显示所引用的语音消息片段对应的完整目标会话消息的示意图;11 is a schematic diagram of a complete target conversation message corresponding to a referenced voice message segment provided in an embodiment of the present application;
图12是本申请实施例提供的另一种会话消息处理方法的流程图;12 is a flowchart of another method for processing a session message provided in an embodiment of the present application;
图13是本申请实施例提供的一种会话消息处理装置的结构示意图;13 is a schematic diagram of the structure of a session message processing device provided in an embodiment of the present application;
图14是本申请实施例提供的一种电子设备的结构示意图;FIG14 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
图15是本申请实施例提供的另一种电子设备的结构示意图。FIG. 15 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的会话消息处理方法、装置及电子设备进行详细地说明。 The following, in conjunction with the accompanying drawings, describes in detail the conversation message processing method, device, and electronic device provided in the embodiments of the present application through specific embodiments and their application scenarios.
参见图1,图1是本申请实施例提供的一种会话消息处理方法的流程图,如图1所示,包括以下步骤:Referring to FIG. 1 , FIG. 1 is a flow chart of a method for processing a session message provided in an embodiment of the present application. As shown in FIG. 1 , the method comprises the following steps:
步骤101、响应于对目标会话的至少一个目标会话消息的第一输入,显示所述至少一个目标会话消息对应的消息文本;所述至少一个目标会话消息包括以下至少一项:语音会话消息、图片会话消息、视频会话消息。Step 101: In response to a first input of at least one target conversation message of a target conversation, a message text corresponding to the at least one target conversation message is displayed; the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message.
上述目标会话可以是任意通信类应用程序的任意会话。上述至少一个目标会话消息可以为从目标会话中选择的至少一个会话消息。The target session may be any session of any communication application. The at least one target session message may be at least one session message selected from the target session.
其中,上述至少一个目标会话消息可以均为同一消息类型的会话消息,例如,上述至少一条会话消息均为语音会话消息、图片会话消息或视频会话消息;或者,上述至少一个目标会话消息可以包括不同消息类型的会话消息,例如,上述至少一个目标会话消息可以包括语音会话消息、图片会话消息和视频会话消息中的至少两种类型的会话消息。Among them, the above-mentioned at least one target conversation message may be a conversation message of the same message type, for example, the above-mentioned at least one conversation message may be a voice conversation message, a picture conversation message or a video conversation message; or, the above-mentioned at least one target conversation message may include conversation messages of different message types, for example, the above-mentioned at least one target conversation message may include at least two types of conversation messages among voice conversation messages, picture conversation messages and video conversation messages.
对于目标会话消息对应的消息文本,例如,若目标会话消息为语音会话消息,则目标会话消息对应的消息文本为语音会话消息对应的语音文本(即由语音转换得到的文本);若目标会话消息为视频会话消息,则目标会话消息对应的消息文本为视频会话消息对应的视频文本(例如,视频的字幕文本或者由视频的音频转换得到的文本);若目标会话消息为图片会话消息,则目标会话消息对应的消息文本为图片会话消息对应的图片文本(即图片上的文本)。For the message text corresponding to the target conversation message, for example, if the target conversation message is a voice conversation message, the message text corresponding to the target conversation message is the voice text corresponding to the voice conversation message (i.e., text converted from the voice); if the target conversation message is a video conversation message, the message text corresponding to the target conversation message is the video text corresponding to the video conversation message (e.g., subtitle text of the video or text converted from the audio of the video); if the target conversation message is a picture conversation message, the message text corresponding to the target conversation message is the picture text corresponding to the picture conversation message (i.e., text on the picture).
上述第一输入可以包括但不限于对目标会话的至少一个目标会话消息的点击输入、滑动输入或者按压输入等。例如,如图2所示,用户选中目标会话的语音会话消息后,显示用于转文本的控件,在接收到对该用于转文本的控件的触控输入的情况下,显示该语音会话消息对应的消息文本,如图3所示。The first input may include, but is not limited to, a click input, a slide input, or a press input on at least one target conversation message of the target conversation. For example, as shown in FIG2 , after the user selects a voice conversation message of the target conversation, a control for converting to text is displayed, and when a touch input to the control for converting to text is received, a message text corresponding to the voice conversation message is displayed, as shown in FIG3 .
步骤102、响应于对所述消息文本的第二输入,显示会话引用消息。Step 102: In response to a second input of the message text, display a conversation reference message.
上述第二输入可以包括但不限于对消息文本的选择输入、截取输入和拼 接输入等中的至少一项。The second input may include but is not limited to selection input, interception input and spelling input of the message text. At least one of the following is input.
示例性的,上述选择输入或者截取输入可以包括用户在消息文本上的滑动输入,并将滑动轨迹所覆盖的文字部分确定为用户所需选择或截取的文本片段;或者上述选择输入或者截取输入可以包括针对消息文本上显示的文本选择框的拖动输入,并将文本选择框所框选的文本部分确定为用户所需选择或截取的文本片段,例如,如图3所示。Exemplarily, the above-mentioned selection input or interception input may include a sliding input by the user on the message text, and the text portion covered by the sliding track is determined as the text fragment that the user needs to select or intercept; or the above-mentioned selection input or interception input may include a dragging input for a text selection box displayed on the message text, and the text portion selected by the text selection box is determined as the text fragment that the user needs to select or intercept, for example, as shown in Figure 3.
示例性的,上述拼接输入可以用于触发将用户选中的多个消息文本或者文本片段进行拼接,或者将用户选中的多个消息文本对应的目标会话消息或者多个文本片段对应的语音消息片段进行拼接。例如,在用户选中文本片段A和文本片段B的情况下,若接收到对拼接控件的触控输入的情况下,可以将上述文本片段A和文本片段B进行拼接,得到拼接的消息文本,或者,可以将上述文本片段A对应的语音消息片段和上述文本片段B对应的语音消息片段进行拼接,得到拼接的语音消息。Exemplarily, the above-mentioned splicing input can be used to trigger the splicing of multiple message texts or text fragments selected by the user, or the splicing of target conversation messages corresponding to multiple message texts selected by the user or voice message fragments corresponding to multiple text fragments. For example, when the user selects text fragment A and text fragment B, if a touch input to the splicing control is received, the above-mentioned text fragment A and text fragment B can be spliced to obtain a spliced message text, or the voice message fragment corresponding to the above-mentioned text fragment A and the voice message fragment corresponding to the above-mentioned text fragment B can be spliced to obtain a spliced voice message.
上述会话引用消息可以包括一条或多条引用消息。对于基于上述第二输入确定会话引用消息,例如,若上述第二输入包括对消息文本A的文本片段a的选择输入,则可以将文本片段a或者文本片段a对应的会话消息片段作为引用消息;若上述第二输入包括对消息文本A的文本片段a的选择输入和对消息文本B的文本片段b的选择输入,则可以响应于上述选择输入,从消息文本A截取文本片段a,以及从消息文本B截取文本片段b,并可以将文本片段a和文本片段b分别作为一条引用消息;或者,可以将文本片段a和文本片段b进行拼接,得到拼接的消息文本,并将拼接的消息文本作为一条引用消息;或者,可以将文本片段a对应的语音消息片段和文本片段b对应的语音消息片段分别作为一条引用消息;或者,可以将文本片段a对应的语音消息片段和文本片段b对应的语音消息片段进行拼接,得到拼接的语音消息,并将拼接的语音消息作为一条引用消息等。The conversation reference message may include one or more reference messages. For determining the conversation reference message based on the second input, for example, if the second input includes a selection input of a text segment a of a message text A, the text segment a or the conversation message segment corresponding to the text segment a may be used as a reference message; if the second input includes a selection input of a text segment a of a message text A and a selection input of a text segment b of a message text B, in response to the selection input, the text segment a may be intercepted from the message text A and the text segment b may be intercepted from the message text B, and the text segment a and the text segment b may be used as a reference message respectively; or, the text segment a and the text segment b may be spliced to obtain a spliced message text, and the spliced message text may be used as a reference message; or, the voice message segment corresponding to the text segment a and the voice message segment corresponding to the text segment b may be used as a reference message respectively; or, the voice message segment corresponding to the text segment a and the voice message segment corresponding to the text segment b may be spliced to obtain a spliced voice message, and the spliced voice message may be used as a reference message, etc.
步骤103、响应于对所述目标会话的会话消息编辑区域的第三输入,显 示输入消息。Step 103: In response to a third input to the session message editing area of the target session, display The input message is displayed.
本实施例中,上述输入消息可以包括文字输入消息、语音输入消息、图片输入消息和视频输入消息等中的至少一项。In this embodiment, the above-mentioned input message may include at least one of a text input message, a voice input message, a picture input message, a video input message, etc.
示例性的,在确定会话引用消息之后,可以将上述会话引用消息带入会话消息编辑区域中。例如,在上述会话引用消息为语音消息的情况下,可以如图4a所示;在上述会话引用消息为文本消息的情况下,可以如图4b所示。Exemplarily, after determining the conversation reference message, the conversation reference message may be brought into the conversation message editing area. For example, if the conversation reference message is a voice message, it may be as shown in FIG4a; if the conversation reference message is a text message, it may be as shown in FIG4b.
步骤104、将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员。Step 104: Send the input message and the session reference message to session members participating in the target session.
本实施例中,在将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员之后,上述输入消息和会话引用消息可以按照预设引用格式显示于目标会话中。示例性的,可以将会话引用消息显示在输入消息下方,并可显示各条会话引用消息对应的被引用对象的名称(即联系人),例如,如图4c所示。In this embodiment, after the input message and the session reference message are sent to the session members participating in the target session, the input message and the session reference message may be displayed in the target session according to a preset reference format. Exemplarily, the session reference message may be displayed below the input message, and the name of the referenced object (i.e., contact) corresponding to each session reference message may be displayed, for example, as shown in FIG4c.
本申请实施例提供的会话消息处理方法,响应于对目标会话的至少一个目标会话消息的第一输入,显示所述至少一个目标会话消息对应的消息文本;所述至少一个目标会话消息包括以下至少一项:语音会话消息、图片会话消息、视频会话消息,响应于对所述消息文本的第二输入,显示会话引用消息,响应于对所述目标会话的会话消息编辑区域的第三输入,显示输入消息,并将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员,也即本申请实施例可以基于对目标会话消息对应的消息文本的操作,实现对目标会话消息或者目标会话消息对应的消息文本的引用,由此可以突出所引用的会话消息的关键内容,提高会话沟通效率。The conversation message processing method provided by the embodiment of the present application displays a message text corresponding to at least one target conversation message of a target conversation in response to a first input of at least one target conversation message of the target conversation; the at least one target conversation message includes at least one of the following: a voice conversation message, a picture conversation message, and a video conversation message; displays a conversation reference message in response to a second input of the message text; displays an input message in response to a third input of a conversation message editing area of the target conversation, and sends the input message and the conversation reference message to conversation members participating in the target conversation. That is, the embodiment of the present application can reference the target conversation message or the message text corresponding to the target conversation message based on the operation of the message text corresponding to the target conversation message, thereby highlighting the key content of the referenced conversation message and improving the conversation communication efficiency.
可选的,所述至少一个目标会话消息包括第一会话消息;Optionally, the at least one target session message includes a first session message;
所述响应于对所述消息文本的第二输入,显示会话引用消息,包括:The step of displaying a conversation reference message in response to a second input of the message text comprises:
响应于对所述第一会话消息对应的消息文本的第二输入,确定第一消息文本; In response to a second input of a message text corresponding to the first conversation message, determining a first message text;
根据所述第一消息文本显示所述会话引用消息。The conversation reference message is displayed according to the first message text.
本实施例中,上述第一会话消息可以为至少一个目标会话消息中的任意会话消息。上述第一消息文本可以包括第一会话消息对应的消息文本的文本片段或者全部文本,以下以上述第一消息文本包括第一会话消息对应的消息文本的文本片段为例进行说明。In this embodiment, the first conversation message may be any conversation message in at least one target conversation message. The first message text may include a text segment or the entire text of a message text corresponding to the first conversation message. The following description is made by taking the example that the first message text includes a text segment of a message text corresponding to the first conversation message.
上述根据第一消息文本显示所述会话引用消息,例如,可以是将第一消息文本作为一条引用消息,或者将第一消息文本对应的会话消息作为一条引用消息,或者,可以将第一消息文本和其他消息文本的拼接结果作为一条引用消息,或者,可以将第一消息文本对应的会话消息和其他消息文本对应的会话消息的拼接结果作为一条引用消息。The above-mentioned display of the conversation reference message according to the first message text may, for example, be to take the first message text as a reference message, or to take the conversation message corresponding to the first message text as a reference message, or to take the concatenation result of the first message text and other message texts as a reference message, or to take the concatenation result of the conversation message corresponding to the first message text and the conversation messages corresponding to the other message texts as a reference message.
本实施例响应于对所述第一会话消息对应的消息文本的第二输入,确定第一消息文本,并根据所述第一消息文本显示所述会话引用消息,也即支持从会话消息对应的消息文本中获取文本片段,并基于获取的文本片段确定会话引用消息,这样不仅可以提高会话消息引用的灵活性,还可以提高会话消息引用的针对性。In this embodiment, in response to the second input of the message text corresponding to the first conversation message, the first message text is determined, and the conversation reference message is displayed according to the first message text, that is, it supports obtaining a text fragment from the message text corresponding to the conversation message, and determining the conversation reference message based on the obtained text fragment, which can not only improve the flexibility of conversation message reference, but also improve the pertinence of conversation message reference.
可选的,所述第一会话消息为语音会话消息,所述第一会话消息对应的消息文本为所述语音会话消息对应的语音文本;Optionally, the first conversation message is a voice conversation message, and the message text corresponding to the first conversation message is the voice text corresponding to the voice conversation message;
所述响应于对所述第一会话消息对应的消息文本的第二输入,确定第一消息文本,包括:The determining of the first message text in response to the second input of the message text corresponding to the first conversation message includes:
响应于对所述语音会话消息对应的语音文本的第二输入,确定目标语音文本,其中,所述第一消息文本为所述目标语音文本;In response to a second input of a voice text corresponding to the voice conversation message, determining a target voice text, wherein the first message text is the target voice text;
所述根据所述第一消息文本显示所述会话引用消息,包括:The step of displaying the conversation reference message according to the first message text includes:
根据所述目标语音文本显示所述会话引用消息;Displaying the conversation reference message according to the target voice text;
或者,or,
根据所述目标语音文本对应的语音片段显示所述会话引用消息。The conversation reference message is displayed according to the voice segment corresponding to the target voice text.
本实施例中,上述目标语音文本可以包括语音会话消息对应的语音文本 的文本片段或者全部文本,以下以上述目标语音文本包括语音会话消息对应的语音文本的文本片段为例进行说明。In this embodiment, the target voice text may include the voice text corresponding to the voice conversation message. The target voice text includes a text segment of the voice text corresponding to the voice conversation message.
上述第二输入可以包括但不限于在语音会话消息对应的语音文本的滑动输入或针对语音会话消息对应的语音文本上的文本选择控件(例如,文本选择框等)的拖动输入等。示例性的,如图3所示,接收用户对语音会话消息对应的语音文本上的文本选择框的拖动输入,响应于所述拖动输入,将所述文本选择框所框选的文本部分确定为目标语音文本。The second input may include, but is not limited to, a sliding input on the voice text corresponding to the voice conversation message or a dragging input on a text selection control (e.g., a text selection box, etc.) on the voice text corresponding to the voice conversation message. Exemplarily, as shown in FIG3 , a user's dragging input on a text selection box on the voice text corresponding to the voice conversation message is received, and in response to the dragging input, the text portion selected by the text selection box is determined as the target voice text.
在确定目标语音文本的情况下,可以根据所述目标语音文本显示所述会话引用消息,例如,将目标语音文本作为一条引用消息,或者,将目标语音文本和其他语音文本的拼接结果作为一条引用消息;或者,可以根据所述目标语音文本对应的语音片段显示所述会话引用消息,例如,将所述目标语音文本对应的语音片段作为一条引用消息,或者,将所述目标语音文本对应的语音片段与其他语音片段或者其他语音会话消息的拼接结果作为一条引用消息。When the target voice text is determined, the conversation reference message can be displayed according to the target voice text, for example, the target voice text is used as a reference message, or the concatenation result of the target voice text and other voice texts is used as a reference message; or, the conversation reference message can be displayed according to the voice segment corresponding to the target voice text, for example, the voice segment corresponding to the target voice text is used as a reference message, or the concatenation result of the voice segment corresponding to the target voice text and other voice segments or other voice conversation messages is used as a reference message.
本实施例响应于对所述语音会话消息对应的语音文本的第二输入,确定目标语音文本,并根据所述目标语音文本显示所述会话引用消息,这样可以提高语音会话消息引用的灵活性和针对性;或者,根据所述目标语音文本对应的语音片段显示所述会话引用消息,这样有利于用户快速、准确的确定所需引用的语音片段,可以提高语音会话消息引用的效率和针对性。In this embodiment, in response to the second input of the voice text corresponding to the voice conversation message, the target voice text is determined, and the conversation reference message is displayed according to the target voice text, which can improve the flexibility and pertinence of the voice conversation message reference; or, the conversation reference message is displayed according to the voice segment corresponding to the target voice text, which is conducive to the user to quickly and accurately determine the voice segment to be referenced, and can improve the efficiency and pertinence of the voice conversation message reference.
可选的,所述第一会话消息为图片会话消息,所述第一会话消息对应的消息文本为所述图片会话消息对应的第一图片的图片文本;Optionally, the first conversation message is a picture conversation message, and the message text corresponding to the first conversation message is the picture text of the first picture corresponding to the picture conversation message;
所述响应于对所述第一会话消息对应的消息文本的第二输入,确定第一消息文本,包括:The determining of the first message text in response to the second input of the message text corresponding to the first conversation message includes:
响应于对所述第一图片的图片文本的第二输入,确定目标图片文本,其中,所述第一消息文本为所述目标图片文本;In response to a second input of the picture text of the first picture, determining a target picture text, wherein the first message text is the target picture text;
所述根据所述第一消息文本显示所述会话引用消息,包括: The step of displaying the conversation reference message according to the first message text includes:
根据所述目标图片文本显示所述会话引用消息;Displaying the conversation reference message according to the target picture text;
或者,对所述第一图片中的所述目标图片文本进行标注,获得第二图片,根据所述第二图片显示所述会话引用消息。Alternatively, the target picture text in the first picture is annotated to obtain a second picture, and the conversation reference message is displayed according to the second picture.
本实施例中,上述第一图片对应的图片文本也即第一图片上的文本。上述目标图片文本可以包括第一图片的图片文本的部分或者全部文本。In this embodiment, the picture text corresponding to the first picture is also the text on the first picture. The target picture text may include part or all of the picture text of the first picture.
上述第二输入可以包括但不限于在第一图片对应的图片文本上的滑动输入或针对第一图片对应的图片文本上的文本选择控件(例如,文本选择框等)的拖动输入等。The second input may include but is not limited to a sliding input on the picture text corresponding to the first picture or a dragging input on a text selection control (eg, a text selection box, etc.) on the picture text corresponding to the first picture.
在确定目标图片文本的情况下,可以根据所述目标图片文本显示所述会话引用消息,例如,可以将目标图片文本作为一条引用消息,或者,可以将第一图片中与目标图片文本对应的图片区域作为一条引用消息;或者,可以对所述第一图片中的所述目标图片文本进行标注,获得第二图片,根据所述第二图片显示所述会话引用消息,例如,突出显示所述第一图片中的目标图片文本,获得第二图片,并将第二图片作为一条引用消息。When the target picture text is determined, the conversation reference message can be displayed according to the target picture text. For example, the target picture text can be used as a reference message, or the picture area corresponding to the target picture text in the first picture can be used as a reference message; or, the target picture text in the first picture can be annotated to obtain a second picture, and the conversation reference message can be displayed according to the second picture, for example, the target picture text in the first picture can be highlighted to obtain a second picture, and the second picture can be used as a reference message.
本实施例响应于对所述第一图片的图片文本的第二输入,确定目标图片文本,根据所述目标图片文本显示所述会话引用消息,这样可以提高图片会话消息引用的灵活性和针对性;或者,对所述第一图片中的所述目标图片文本进行标注,获得第二图片,根据所述第二图片显示所述会话引用消息,这样可以提高图片会话消息的针对性,有利于参与目标会话的成员快速获知引用图片的关键信息。In this embodiment, in response to the second input of the picture text of the first picture, the target picture text is determined, and the conversation reference message is displayed according to the target picture text, which can improve the flexibility and pertinence of the picture conversation message reference; or, the target picture text in the first picture is annotated to obtain the second picture, and the conversation reference message is displayed according to the second picture, which can improve the pertinence of the picture conversation message and help members participating in the target conversation to quickly learn the key information of the referenced picture.
可选的,所述第一会话消息为视频会话消息,所述第一会话消息对应的消息文本为所述视频会话消息对应的第一视频的视频文本;Optionally, the first conversation message is a video conversation message, and the message text corresponding to the first conversation message is the video text of the first video corresponding to the video conversation message;
所述响应于对所述第一会话消息对应的消息文本的第二输入,确定第一消息文本,包括:The determining of the first message text in response to the second input of the message text corresponding to the first conversation message includes:
响应于对所述第一视频的视频文本的第二输入,确定目标视频文本,其中,所述第一消息文本为所述目标视频文本; In response to a second input of a video text of the first video, determining a target video text, wherein the first message text is the target video text;
所述根据所述第一消息文本显示所述会话引用消息,包括:The step of displaying the conversation reference message according to the first message text includes:
根据所述目标视频文本显示所述会话引用消息;Displaying the conversation reference message according to the target video text;
或者,根据所述目标视频文本对应的视频片段显示所述会话引用消息。Alternatively, the conversation reference message is displayed according to the video segment corresponding to the target video text.
本实施例中,上述第一视频的视频文本可以包括第一视频的字幕文本或者由第一视频的音频转换得到的文本等。上述目标视频文本可以包括第一视频的视频文本的文本片段或者全部文本,以下以目标视频文本包括第一视频的视频文本的文本片段为例进行说明。In this embodiment, the video text of the first video may include the subtitle text of the first video or the text converted from the audio of the first video, etc. The target video text may include a text segment or the entire text of the video text of the first video. The following description is made by taking the example that the target video text includes a text segment of the video text of the first video.
在确定目标视频文本的情况下,可以根据所述目标视频文本显示所述会话引用消息,例如,将目标视频文本作为一条引用消息;或者,可以根据所述目标视频文本对应的视频片段显示所述会话引用消息,例如,将目标视频文本对应的视频片段作为一条引用消息。When the target video text is determined, the conversation reference message can be displayed according to the target video text, for example, the target video text is used as a reference message; or, the conversation reference message can be displayed according to the video clip corresponding to the target video text, for example, the video clip corresponding to the target video text is used as a reference message.
本实施例响应于对所述第一视频的视频文本的第二输入,确定目标视频文本,并根据所述目标视频文本显示所述会话引用消息,这样可以提高视频会话消息引用的灵活性和针对性,或者,根据所述目标视频文本对应的视频片段显示所述会话引用消息,这样有利于用户快速、准确的确定所需引用的视频片段,可以提高视频会话消息引用的效率和针对性。In this embodiment, in response to the second input of the video text of the first video, the target video text is determined, and the conversation reference message is displayed according to the target video text, which can improve the flexibility and pertinence of the video conversation message reference, or the conversation reference message is displayed according to the video segment corresponding to the target video text, which is conducive to the user to quickly and accurately determine the video segment to be referenced, and can improve the efficiency and pertinence of the video conversation message reference.
可选的,所述至少一个目标会话消息还包括第二会话消息;Optionally, the at least one target session message further includes a second session message;
所述根据所述第一消息文本显示所述会话引用消息之前,所述方法还包括:Before displaying the conversation reference message according to the first message text, the method further includes:
响应于对所述第二会话消息对应的消息文本的第三输入,确定第二消息文本;In response to a third input of a message text corresponding to the second conversation message, determining a second message text;
所述根据所述第一消息文本显示所述会话引用消息,包括:The displaying the conversation reference message according to the first message text includes:
根据所述第一消息文本和所述第二消息文本显示所述会话引用消息。The conversation reference message is displayed according to the first message text and the second message text.
本实施例中,上述第二消息文本可以包括上述第二会话消息对应的消息文本的部分文本或者全部文本。需要说明的是,上述响应于对所述第二会话消息对应的消息文本的第三输入确定第二消息文本的相关处理方式可以参见 前述响应于对所述第一会话消息对应的消息文本的第二输入确定第一消息文本的相关说明,在此不做赘述。In this embodiment, the second message text may include a partial text or the entire text of the message text corresponding to the second conversation message. It should be noted that the related processing method of determining the second message text in response to the third input of the message text corresponding to the second conversation message can refer to The above-mentioned explanation on determining the first message text in response to the second input of the message text corresponding to the first conversation message is not repeated here.
示例性的,在确定上述第一消息文本和第二消息文本的情况下,可以将上述第一消息文本和第二消息文本分别作为一条引用消息;或者,可以将上述第一消息文本对应的会话消息(例如,语音会话消息、视频会话消息或者图片会话消息等)或会话消息片段以及第二消息文本对应的会话消息或会话消息片段分别作为一条引用消息;或者,可以将上述第一消息文本和第二消息文本进行拼接,并将拼接结果作为一条引用消息;或者,可以将上述第一消息文本对应的会话消息或者会话消息片段,以及第二消息文本对应的会话消息或者会话消息片段进行拼接,并将拼接结果作为一条引用消息。Exemplarily, when the first message text and the second message text are determined, the first message text and the second message text may be respectively used as a quoted message; or, the conversation message (for example, a voice conversation message, a video conversation message or a picture conversation message, etc.) or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the second message text may be respectively used as a quoted message; or, the first message text and the second message text may be spliced, and the splicing result may be used as a quoted message; or, the conversation message or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the second message text may be spliced, and the splicing result may be used as a quoted message.
以上述第一会话消息和第二会话消息均为语音会话消息为例,如图5所示,在选择两条语音会话消息对应的消息文本的文本片段之后,在接收到对拼接后引用控件的触控输入的情况下,将上述选择的两个文本片段进行拼接后引用,或者,将上述选择的两个文本片段对应的语音消息片段进行拼接后引用。Taking the above-mentioned first conversation message and the second conversation message as an example that both are voice conversation messages, as shown in Figure 5, after selecting the text segments of the message text corresponding to the two voice conversation messages, when a touch input to the splicing reference control is received, the above-mentioned two selected text segments are spliced and referenced, or the voice message segments corresponding to the above-mentioned two selected text segments are spliced and referenced.
本实施例支持基于多个会话消息对应的消息文本进行多个会话消息的引用,可以提高会话消息引用的效率。This embodiment supports quoting multiple session messages based on message texts corresponding to the multiple session messages, which can improve the efficiency of quoting session messages.
可选的,所述根据所述第一消息文本和所述第二消息文本显示所述会话引用消息,包括:Optionally, displaying the conversation reference message according to the first message text and the second message text includes:
根据所述第一消息文本和所述第二消息文本的拼接结果显示所述会话引用消息。The conversation reference message is displayed according to a concatenation result of the first message text and the second message text.
示例性的,可以将第一消息文本和第二消息文本的拼接结果作为一条引用消息,并显示该引用消息,或者,可以将第一消息文本和第二消息文本的拼接结果对应的会话消息作为一条引用消息,并显示该引用消息,例如,若第一消息文本为第一语音会话消息对应的消息文本的文本片段,第二消息文本为第二语音会话消息对应的消息文本的文本片段,则第一消息文本和第二 消息文本的拼接结果对应的会话消息为第一消息文本对应的语音消息片段和第二消息文本对应的语音消息片段的拼接结果。Exemplarily, the concatenation result of the first message text and the second message text may be used as a quoted message and the quoted message may be displayed, or the conversation message corresponding to the concatenation result of the first message text and the second message text may be used as a quoted message and the quoted message may be displayed. For example, if the first message text is a text segment of a message text corresponding to a first voice conversation message, and the second message text is a text segment of a message text corresponding to a second voice conversation message, then the first message text and the second message text may be used as a quoted message and the quoted message may be displayed. The conversation message corresponding to the splicing result of the message texts is a splicing result of the voice message segment corresponding to the first message text and the voice message segment corresponding to the second message text.
需要说明的是,不同会话消息对应的消息文本的拼接顺序,可以由各条会话消息在目标会话的位置确定;或者,由对上述不同会话消息的选择顺序确定,例如,如图6a至图6b所示,在确定各条会话消息对应的消息文本的文本片段之后,可以依次选中各条会话消息,并基于选中各条会话消息的先后顺序拼接各条会话消息对应的消息文本对应的文本片段,或者,基于选中各条会话消息的先后顺序拼接各条会话消息的语音消息片段。It should be noted that the order in which the message texts corresponding to different conversation messages are spliced may be determined by the position of each conversation message in the target conversation; or, may be determined by the order in which the above-mentioned different conversation messages are selected. For example, as shown in FIG. 6a to FIG. 6b, after determining the text segments of the message texts corresponding to each conversation message, each conversation message may be selected in sequence, and the text segments corresponding to the message texts corresponding to each conversation message may be spliced based on the order in which the conversation messages are selected, or the voice message segments of each conversation message may be spliced based on the order in which the conversation messages are selected.
可选的,可以在被选中的各条会话消息的选择框上显示对应的顺序标识,用于标识各条会话消息的选择顺序或者拼接顺序。如果取消选择某条会话消息,在该被取消选择的会话消息之后被选中的会话消息的顺序依次往前递补,如图9所示。Optionally, a corresponding sequence mark may be displayed on the selection box of each selected session message to mark the selection order or concatenation order of each session message. If a session message is deselected, the order of the selected session messages after the deselected session message is filled in the previous order, as shown in FIG9 .
实际应用中,受限于会话消息长度,往往存在一些关联的会话消息被分成多条会话消息进行发送,本实施例基于多条会话消息对应的消息文本的部分文本或者全部文本共同生成一条引用消息,或者基于多条会话消息或者多条会话消息片段共同生成一条引用消息,这样不仅可以进一步提高会话消息引用的灵活性,还可以进一步提高会话消息引用的完整性和可读性。In actual applications, due to the limitation of the length of session messages, some related session messages are often divided into multiple session messages for sending. In this embodiment, a reference message is generated based on part of the text or all of the message texts corresponding to the multiple session messages, or a reference message is generated based on the multiple session messages or multiple session message fragments. This can not only further improve the flexibility of session message reference, but also further improve the integrity and readability of session message reference.
可选的,所述根据所述第一消息文本显示所述会话引用消息之前,所述方法还包括:Optionally, before displaying the conversation reference message according to the first message text, the method further includes:
响应于对所述第一会话消息对应的消息文本的第四输入,确定第三消息文本;In response to a fourth input of a message text corresponding to the first conversation message, determining a third message text;
所述根据所述第一消息文本显示所述会话引用消息,包括:The step of displaying the conversation reference message according to the first message text includes:
根据所述第一消息文本和所述第三消息文本显示所述会话引用消息。The conversation reference message is displayed according to the first message text and the third message text.
本实施例中,上述第三消息文本可以是第一会话消息对应的消息文本中与第一消息文本不同的文本片段。In this embodiment, the third message text may be a text segment in the message text corresponding to the first conversation message that is different from the first message text.
示例性的,在用户选择了第一会话消息对应的消息文本的一个文本片段 之后,用户可选择增加片段选项来进行多个文本片段的选择,以获取同一会话消息对应的消息文本的多个文本片段进行引用。例如,如图7a至图7b所示,用户在选择了第一会话消息对应的消息文本的一个文本片段之后,可以点击或者长按加片段选项,进而会在第一会话消息对应的消息文本的未被选择的文本范围显示文本选择框,接收用户针对该文本选择框的拖动输入,并响应于该拖动输入,将文本选择框内所框选的文本部分确定为选择的文本片段。Exemplarily, when the user selects a text segment of the message text corresponding to the first conversation message Afterwards, the user can select the Add Segment option to select multiple text segments, so as to obtain multiple text segments of the message text corresponding to the same conversation message for reference. For example, as shown in Figures 7a and 7b, after selecting a text segment of the message text corresponding to the first conversation message, the user can click or long press the Add Segment option, and then a text selection box will be displayed in the unselected text range of the message text corresponding to the first conversation message, receiving the user's drag input for the text selection box, and in response to the drag input, the text portion selected in the text selection box is determined as the selected text segment.
示例性的,在确定上述第一消息文本和第三消息文本的情况下,可以将上述第一消息文本和第三消息文本分别作为一条引用消息;或者,可以将上述第一消息文本对应的会话消息(例如,语音会话消息、视频会话消息或者图片会话消息等)或会话消息片段以及第三消息文本对应的会话消息或会话消息片段分别作为一条引用消息;或者,可以将上述第一消息文本和第三消息文本进行拼接,并将拼接结果作为一条引用消息,例如,如图8所示,在确定两个文本片段之后,接收对拼接后引用的控件的触控输入,并响应于该触控输入,将上述两个文本片段拼接后进行引用;或者,可以将上述第一消息文本对应的会话消息或者会话消息片段,以及第三消息文本对应的会话消息或者会话消息片段进行拼接,并将拼接结果作为一条引用消息。Exemplarily, when the first message text and the third message text are determined, the first message text and the third message text can be used as a reference message respectively; or, the conversation message (for example, a voice conversation message, a video conversation message or a picture conversation message, etc.) or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the third message text can be used as a reference message respectively; or, the first message text and the third message text can be spliced, and the splicing result can be used as a reference message. For example, as shown in FIG8, after determining the two text fragments, a touch input of a control referenced after splicing is received, and in response to the touch input, the two text fragments are spliced and referenced; or, the conversation message or the conversation message fragment corresponding to the first message text and the conversation message or the conversation message fragment corresponding to the third message text can be spliced, and the splicing result can be used as a reference message.
本实施例支持对同一条会话消息对应的消息文本裁剪得到多个文本片段,并基于多个文本片段显示会话引用消息,这样可以进一步提高会话消息引用的针对性和灵活性。This embodiment supports cutting the message text corresponding to the same conversation message to obtain multiple text segments, and displays the conversation reference message based on the multiple text segments, which can further improve the pertinence and flexibility of the conversation message reference.
可选的,所述根据所述第一消息文本和所述第三消息文本显示所述会话引用消息,包括:Optionally, displaying the conversation reference message according to the first message text and the third message text includes:
根据所述第一消息文本和所述第三消息文本的拼接结果显示所述会话引用消息。The conversation reference message is displayed according to a concatenation result of the first message text and the third message text.
示例性的,可以将第一消息文本和第三消息文本的拼接结果作为一条引用消息,并显示该引用消息;或者,可以将第一消息文本和第三消息文本的 拼接结果对应的会话消息片段作为一条引用消息,并显示该引用消息,例如,若第一消息文本和第三消息文本为语音会话消息对应的消息文本的文本片段,则第一消息文本和第三消息文本的拼接结果对应的会话消息片段为第一消息文本对应的语音消息片段和第三消息文本对应的语音消息片段的拼接结果。Exemplarily, the concatenation result of the first message text and the third message text may be used as a quoted message, and the quoted message may be displayed; or the concatenation result of the first message text and the third message text may be used as a quoted message. The conversation message segment corresponding to the splicing result is used as a reference message and the reference message is displayed. For example, if the first message text and the third message text are text segments of message texts corresponding to a voice conversation message, then the conversation message segment corresponding to the splicing result of the first message text and the third message text is the splicing result of the voice message segment corresponding to the first message text and the voice message segment corresponding to the third message text.
需要说明的是,同一会话消息对应的消息文本的不同文本片段的拼接顺序,可以由各条不同文本片段在该会话消息对应的消息文本中的位置确定;或者,可以根据对上述各个不同文本片段的选择顺序确定。It should be noted that the concatenation order of different text segments of the message text corresponding to the same conversation message can be determined by the positions of the different text segments in the message text corresponding to the conversation message; or can be determined according to the selection order of the above different text segments.
本实施例可以基于同一会话消息对应的消息文本的多个文本片段的拼接结果确定一条引用消息,这样可以在提高会话消息引用的针对性的同时,保证引用消息与会话消息之间的对应性,有利于提高引用消息的可读性。This embodiment can determine a reference message based on the splicing results of multiple text fragments of the message text corresponding to the same conversation message, which can improve the pertinence of the conversation message reference while ensuring the correspondence between the reference message and the conversation message, which is conducive to improving the readability of the reference message.
在一些可选的实施例中,可以基于由同一会话消息对应的消息文本裁剪得到的一个或多个文本片段确定同一条引用消息,基于由不同会话消息对应的消息文本裁剪得到的文本片段分别确定不同的引用消息,这样有利于提高引用消息和会话消息的对应性,便于用户查看。例如,如图9所示,在选择两条会话消息对应的消息文本的文本片段之后,接收对引用控件的触控输入,响应于该触控输入,分别将确定的两条会话消息对应的消息文本的文本片段对应的语音消息片段作为一条引用消息,得到两条引用消息。In some optional embodiments, the same reference message can be determined based on one or more text segments clipped from the message text corresponding to the same conversation message, and different reference messages can be determined based on text segments clipped from the message text corresponding to different conversation messages, which is conducive to improving the correspondence between the reference message and the conversation message and is convenient for users to view. For example, as shown in FIG9 , after selecting the text segments of the message text corresponding to two conversation messages, a touch input to the reference control is received, and in response to the touch input, the voice message segments corresponding to the text segments of the message text corresponding to the two conversation messages are respectively used as a reference message, thereby obtaining two reference messages.
可选的,所述将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员之后,所述方法还包括:Optionally, after sending the input message and the session reference message to session members participating in the target session, the method further includes:
在所述目标会话显示所述输入消息、所述会话引用消息和所述会话引用消息对应的预览信息。The input message, the session reference message, and preview information corresponding to the session reference message are displayed in the target session.
本实施例中,在会话引用消息包括语音引用消息的情况下,上述语音引用消息对应的预览信息可以为上述语音引用消息的语音文字信息;在会话引用消息包括视频引用消息的情况下,上述视频引用消息对应的预览信息可以为上述视频引用消息的视频帧信息,例如,上述视频引用消息的视频帧序列;在会话引用消息包括图片引用消息的情况下,上述图片引用消息对应的预览 信息可以为上述图片引用消息的文字信息或者预览图等。In this embodiment, when the conversation reference message includes a voice reference message, the preview information corresponding to the voice reference message may be the voice text information of the voice reference message; when the conversation reference message includes a video reference message, the preview information corresponding to the video reference message may be the video frame information of the video reference message, for example, the video frame sequence of the video reference message; when the conversation reference message includes a picture reference message, the preview information corresponding to the picture reference message may be the video frame information of the video reference message, for example, the video frame sequence of the video reference message; The information may be text information or a preview image of the message referenced by the above image.
例如,如图10a所示,在会话引用消息为语音引用消息的情况下,在所述目标会话显示所述输入消息、语音引用信息以及语音引用消息对应的消息文本。For example, as shown in FIG. 10a , in the case where the conversation reference message is a voice reference message, the input message, the voice reference information, and the message text corresponding to the voice reference message are displayed in the target conversation.
本实施例通过在目标会话显示会话引用消息以及所述会话引用消息对应的预览信息,这样有利于参与所述目标会话的会话成员快速获知会话引用消息的内容。This embodiment displays the session reference message and the preview information corresponding to the session reference message in the target session, which helps the session members participating in the target session to quickly learn the content of the session reference message.
在一些可选的实施例中,在所述会话引用消息为文本引用消息的情况下,可以直接在所述目标会话显示输入消息和文本引用消息,例如,如图10b所示。此外,在群聊场景下,可以在目标会话显示输入消息、文本引用信息以及各条文本引用消息对应的被引用对象的名称(例如,联系人),例如,如图10c所示。In some optional embodiments, when the session reference message is a text reference message, the input message and the text reference message may be directly displayed in the target session, for example, as shown in Figure 10b. In addition, in a group chat scenario, the input message, the text reference information, and the name of the referenced object (for example, a contact) corresponding to each text reference message may be displayed in the target session, for example, as shown in Figure 10c.
可选的,所述将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员之后,所述方法还包括:Optionally, after sending the input message and the session reference message to session members participating in the target session, the method further includes:
在所述目标会话显示所述输入消息和所述会话引用消息;Displaying the input message and the session reference message in the target session;
接收对所述会话引用消息中的目标引用消息的第五输入;receiving a fifth input of a target reference message in the session reference message;
响应于所述第五输入,显示第三会话消息,其中,所述目标引用消息包括所述第三会话消息的消息片段或者所述第三会话消息对应的消息文本的文本片段,所述第三会话消息为所述至少一个目标会话消息中的会话消息。In response to the fifth input, a third conversation message is displayed, wherein the target reference message includes a message segment of the third conversation message or a text segment of a message text corresponding to the third conversation message, and the third conversation message is a conversation message in the at least one target conversation message.
本实施例中,上述目标引用消息可以是任意包括会话消息片段的引用消息。上述第三会话消息可以包括一条或多条会话消息,例如,若上述目标引用消息为会话消息a的消息片段,则上述第三会话消息为会话消息a;若上述目标引用消息由会话消息a的消息片段和会话消息b的消息片段拼接得到,则上述第三会话消息包括会话消息a和会话消息b。In this embodiment, the target reference message may be any reference message including a session message fragment. The third session message may include one or more session messages. For example, if the target reference message is a message fragment of session message a, the third session message is session message a; if the target reference message is obtained by splicing a message fragment of session message a and a message fragment of session message b, the third session message includes session message a and session message b.
例如,如图4c所示,在目标会话显示输入消息以及会话引用消息,在接收到对会话引用消息中的某一引用消息(例如,33秒的语音片段)的点击输 入的情况下,可以显示该引用消息对应的原始的会话消息,如图11示出的原语音。可选的,在上述引用消息不为文本引用消息的情况下,还可以显示该引用消息对应的预览信息,如图11所示,显示语音引用消息对应的消息文本。For example, as shown in FIG. 4c, the target session displays the input message and the session reference message, and upon receiving a click input for a reference message (eg, a 33-second voice clip) in the session reference message, the target session displays the input message and the session reference message. In the case of a quoted message, the original conversation message corresponding to the quoted message can be displayed, such as the original voice shown in FIG11. Optionally, in the case where the quoted message is not a text quoted message, the preview information corresponding to the quoted message can also be displayed, such as the message text corresponding to the voice quoted message shown in FIG11.
本申请实施例支持用户基于被引用的会话消息片段或者会话消息片段对应的消息文本,进一步查看被引用的会话消息片段或者会话消息片段对应的消息文本对应的原始的会话消息,这样可以提高引用消息的可读性,便于用户理解。The embodiment of the present application supports the user to further view the original conversation message corresponding to the quoted conversation message fragment or the message text corresponding to the conversation message fragment based on the quoted conversation message fragment or the message text corresponding to the conversation message fragment, which can improve the readability of the quoted message and facilitate user understanding.
需要说明的是,参与所述目标会话的会话成员接收到输入消息和会话引用消息之后,例如,参与所述目标会话的会话成员在通过通信类应用程序接收上述输入消息和会话引用消息之后,可以在参与所述目标会话的会话成员的目标会话上显示输入消息和会话引用消息。It should be noted that after the session members participating in the target session receive the input message and the session reference message, for example, after the session members participating in the target session receive the above-mentioned input message and session reference message through a communication application, the input message and session reference message can be displayed on the target session of the session members participating in the target session.
可选的,在所述会话引用消息包括语音引用消息或视频引用消息或者图片引用消息的情况下,可以在参与所述目标会话的会话成员的目标会话上所述输入消息、所述会话引用消息和所述会话引用消息对应的预览信息。Optionally, when the session reference message includes a voice reference message, a video reference message, or a picture reference message, the input message, the session reference message, and preview information corresponding to the session reference message may be displayed on a target session of a session member participating in the target session.
可选的,在参与所述目标会话的会话成员的目标会话上显示输入消息和会话引用消息之后,接收针对所述会话引用消息中的第一引用消息的第六输入;响应于所述第六输入,显示第四会话消息,其中,所述第一引用消息包括所述第时会话消息的消息片段或者所述第四会话消息对应的消息文本的文本片段,所述第四会话消息为所述至少一个目标会话消息中的会话消息。Optionally, after displaying the input message and the session reference message on the target session of the session members participating in the target session, a sixth input for a first reference message in the session reference messages is received; in response to the sixth input, a fourth session message is displayed, wherein the first reference message includes a message fragment of the first session message or a text fragment of the message text corresponding to the fourth session message, and the fourth session message is a session message in the at least one target session message.
以下以会话消息为语音会话消息为例对本申请实施例进行举例说明:The following uses a voice conversation message as an example to illustrate the embodiment of the present application:
如图12所示,本申请实施例提供的会话消息处理方法包括如下步骤:As shown in FIG. 12 , the session message processing method provided in the embodiment of the present application includes the following steps:
步骤1201、选中语音会话消息进行转文字操作。Step 1201: Select a voice conversation message to convert to text.
如图2所示,用户选中目标会话中的语音会话消息后,显示用于转文本的控件,在接收到对该用于转文本的控件的触控输入的情况下,显示该语音会话消息对应的消息文本,如图3所示。As shown in FIG. 2 , after the user selects a voice conversation message in the target conversation, a control for converting to text is displayed. When a touch input to the control for converting to text is received, a message text corresponding to the voice conversation message is displayed, as shown in FIG. 3 .
步骤1202、将语音会话消息根据转文字的结果直接进行截取或拼接,并 可对语音消息进行单条或批量引用。Step 1202: directly intercept or splice the voice conversation message according to the result of the text conversion, and Voice messages can be quoted individually or in batches.
本步骤中,如图3所示,用户可直接对单条已转文字的语音会话消息进行全部选中,或拉动文本选择框以截取文本片段对应的语音消息片段后进行引用。拉动过程如未覆盖任何文本部分,则视为未选中任意的语音消息片段,即无法进行引用。In this step, as shown in Figure 3, the user can directly select all of a single voice conversation message that has been converted to text, or drag the text selection box to intercept the voice message segment corresponding to the text segment and then quote it. If the dragging process does not cover any text part, it is considered that no voice message segment is selected, that is, it cannot be quoted.
可选的,如图7a至图7b所示,用户可选择增加片段选项来进行多个文本片段的选择,以获取同一语音会话消息的多个语音消息片段进行引用。Optionally, as shown in FIG. 7 a and FIG. 7 b , the user may select an add segment option to select multiple text segments to obtain multiple voice message segments of the same voice conversation message for reference.
可选的,如图8所示,用户还可对多个文本片段对应的语音消息片段进行拼接后引用,在该情况下,多个语音消息片段将被合为一条引用消息。Optionally, as shown in FIG8 , the user may also concatenate and quote the voice message segments corresponding to the multiple text segments. In this case, the multiple voice message segments will be combined into one quoted message.
可选的,用户也可使用直接引用选项,直接引用视为多个语音消息片段不作拼接,而是分别引用,也即每个语音消息片段分别作为一条引用消息。Optionally, the user may also use the direct quote option. Direct quote is regarded as multiple voice message segments are not spliced together, but quoted separately, that is, each voice message segment is regarded as a quoted message.
可选的,如图9所示,用户也可对多条已转文字的语音会话消息进行全部选中,或各条单独进行截取操作,对最终截取选中的文本片段对应的语音消息片段进行引用。Optionally, as shown in FIG. 9 , the user may also select all of the multiple voice conversation messages that have been converted into text, or perform interception operations on each of them separately, and reference the voice message segment corresponding to the finally intercepted and selected text segment.
可选的,如图5所示,用户也可对多条已转文字的语音会话消息进行拼接后引用,被拼接引用后多条语音会话消息的语音消息片段及其对应的文本片段被合为一条引用消息。Optionally, as shown in FIG5 , the user may also concatenate and quote multiple voice conversation messages that have been converted into text, and the voice message segments of the multiple voice conversation messages that have been concatenated and quoted and their corresponding text segments are combined into one quoted message.
可选的,如图6a至图6b所示,用户在拼接后引用时,可依次选择不同的已完成拖动裁剪的语音会话消息,选择的依次顺序被视为语音消息片段拼接的顺序。可选的,选择顺序可被标注在选择框中。如取消选择某条语音会话消息,其他语音会话消息按顺序依次递补。Optionally, as shown in FIG6a and FIG6b, when the user references after splicing, he can select different voice conversation messages that have been dragged and cut in sequence, and the order of selection is regarded as the order of splicing the voice message segments. Optionally, the selection order can be marked in the selection box. If a voice conversation message is deselected, other voice conversation messages will be replaced in order.
步骤1203、完成引用操作后回到聊天发送框编辑新消息,新消息发送后同步展示所引用的语音会话消息。Step 1203: After completing the reference operation, return to the chat sending box to edit a new message. After the new message is sent, the referenced voice conversation message is displayed synchronously.
本步骤中,如图4a所示,用户可直接在输入框编辑新消息,被引用的语音会话消息或语音消息片段展示在输入框下方,被选中的语音会话消息应按照引用顺序逐条展示,并能够与新编辑的回复消息汇总为一条消息统一发送。 In this step, as shown in FIG4a , the user can directly edit a new message in the input box, and the referenced voice conversation message or voice message fragment is displayed below the input box. The selected voice conversation messages should be displayed one by one in the order of reference, and can be aggregated with the newly edited reply message into one message and sent uniformly.
可选的,如图4b所示,语音会话消息或语音消息片段也可直接以文本形式被带入输入框下方,用户可直接预览文本内容。Optionally, as shown in FIG. 4 b , the voice conversation message or voice message segment may also be directly brought into the lower part of the input box in text form, and the user may directly preview the text content.
需要说明的是,所有接收终端可在聊天软件(即上述通信类应用程序)中收到上述回复消息以及引用消息,进入聊天界面可看到最新的引用回复(即上述回复消息以及引用消息)。如图4c所示,发送终端发出上述回复消息以及引用消息后,接收终端可接到上述回复消息以及引用消息,并显示在会话界面上,根据引用消息的数目,回复消息下方默认展示一条或多条引用的语音会话消息或语音消息片段。It should be noted that all receiving terminals can receive the above reply messages and reference messages in the chat software (i.e. the above communication application), and can see the latest referenced reply (i.e. the above reply message and reference message) by entering the chat interface. As shown in FIG4c, after the sending terminal sends the above reply message and reference message, the receiving terminal can receive the above reply message and reference message and display them on the conversation interface. According to the number of referenced messages, one or more referenced voice conversation messages or voice message fragments are displayed by default below the reply message.
可选的,如图10a所示,发送终端发出新消息(即上述第一目标消息)后,如是通过转文字方式进行语音引用,被引用的语音会话消息默认将文本内容展开,显示在会话界面上。Optionally, as shown in FIG10a , after the sending terminal sends a new message (ie, the first target message mentioned above), if the voice reference is made by converting the voice message into text, the referenced voice conversation message will expand the text content by default and display it on the conversation interface.
可选的,如图10b所示,发送终端发出新消息后,被引用的语音会话消息可直接以文本形式展示在会话界面上。Optionally, as shown in FIG. 10b , after the sending terminal sends a new message, the referenced voice conversation message may be directly displayed in text form on the conversation interface.
可选的,如图10c所示,在群聊场景下,在引用多条语音会话消息的情况下,可在会话界面显示被引用对象的名称及引用的语音会话消息对应的消息文本。Optionally, as shown in FIG. 10c , in a group chat scenario, when multiple voice conversation messages are referenced, the name of the referenced object and the message text corresponding to the referenced voice conversation message may be displayed on the conversation interface.
可选的,如图11所示,会话场景中各成员均可点击被引用的语音会话消息,听取对应语音内容。如点击的是语音消息片段,可听取语音消息片段内容,并可听取该语音消息片段对应的语音会话消息的语音内容。除了听取语音内容外,还可直接查看该语音消息片段对应的消息文本。Optionally, as shown in FIG11 , each member in the conversation scene can click on the referenced voice conversation message to listen to the corresponding voice content. If a voice message segment is clicked, the voice message segment content can be listened to, and the voice content of the voice conversation message corresponding to the voice message segment can be listened to. In addition to listening to the voice content, the message text corresponding to the voice message segment can also be directly viewed.
本申请实施例提供的会话消息处理方法,执行主体可以为会话消息处理装置。本申请实施例中以会话消息处理装置执行会话消息处理方法为例,说明本申请实施例提供的会话消息处理装置。The session message processing method provided in the embodiment of the present application can be executed by a session message processing device. In the embodiment of the present application, the session message processing device executing the session message processing method is taken as an example to illustrate the session message processing device provided in the embodiment of the present application.
参见图13,图13是本申请实施例提供的一种会话消息处理装置的结构示意图,如图13所示,所述会话消息处理装置1300包括:Referring to FIG. 13 , FIG. 13 is a schematic diagram of the structure of a session message processing device provided in an embodiment of the present application. As shown in FIG. 13 , the session message processing device 1300 includes:
第一显示模块1301,用于响应于对目标会话的至少一个目标会话消息的 第一输入,显示所述至少一个目标会话消息对应的引用消息编辑区域;所述至少一个目标会话消息包括以下至少一项:文字会话消息、语音会话消息、图片会话消息、视频会话消息;The first display module 1301 is used to respond to at least one target session message of the target session. A first input is used to display a reference message editing area corresponding to the at least one target conversation message; the at least one target conversation message includes at least one of the following: a text conversation message, a voice conversation message, a picture conversation message, and a video conversation message;
第二显示模块1302,用于响应于对所述引用消息编辑区域的第二输入,显示所述至少一个目标会话消息对应的会话引用消息;A second display module 1302, configured to display a conversation reference message corresponding to the at least one target conversation message in response to a second input to the reference message editing area;
第三显示模块1303,用于响应于对所述目标会话的会话消息编辑区域的第三输入,显示输入消息;A third display module 1303, configured to display an input message in response to a third input to the conversation message editing area of the target conversation;
发送模块1304,用于将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员。The sending module 1304 is configured to send the input message and the session reference message to the session members participating in the target session.
可选的,所述至少一个目标会话消息包括第一会话消息;Optionally, the at least one target session message includes a first session message;
所述第二显示模块包括:The second display module includes:
第一确定单元,用于响应于对所述第一会话消息对应的消息文本的第二输入,确定第一消息文本;a first determining unit, configured to determine a first message text in response to a second input of a message text corresponding to the first conversation message;
第一显示单元,用于根据所述第一消息文本显示所述会话引用消息。The first display unit is configured to display the conversation reference message according to the first message text.
可选的,所述第一会话消息为语音会话消息,所述第一会话消息对应的消息文本为所述语音会话消息对应的语音文本;Optionally, the first conversation message is a voice conversation message, and the message text corresponding to the first conversation message is the voice text corresponding to the voice conversation message;
所述第一确定单元具体用于:The first determining unit is specifically configured to:
响应于对所述语音会话消息对应的语音文本的第二输入,确定目标语音文本,其中,所述第一消息文本为所述目标语音文本;In response to a second input of a voice text corresponding to the voice conversation message, determining a target voice text, wherein the first message text is the target voice text;
所述第一显示单元具体用于:The first display unit is specifically used for:
根据所述目标语音文本显示所述会话引用消息;Displaying the conversation reference message according to the target voice text;
或者,根据所述目标语音文本对应的语音片段显示所述会话引用消息。Alternatively, the conversation reference message is displayed according to the voice segment corresponding to the target voice text.
可选的,所述第一会话消息为图片会话消息,所述第一会话消息对应的消息文本为所述图片会话消息对应的第一图片的图片文本;Optionally, the first conversation message is a picture conversation message, and the message text corresponding to the first conversation message is the picture text of the first picture corresponding to the picture conversation message;
所述第一确定单元具体用于:The first determining unit is specifically configured to:
响应于对所述第一图片的图片文本的第二输入,确定目标图片文本,其 中,所述第一消息文本为所述目标图片文本;In response to a second input of the picture text of the first picture, a target picture text is determined, wherein , the first message text is the target picture text;
所述第一显示单元具体用于:The first display unit is specifically used for:
根据所述目标图片文本显示所述会话引用消息;Displaying the conversation reference message according to the target picture text;
或者,对所述第一图片中的所述目标图片文本进行标注,获得第二图片,根据所述第二图片显示所述会话引用消息。Alternatively, the target picture text in the first picture is annotated to obtain a second picture, and the conversation reference message is displayed according to the second picture.
可选的,所述第一会话消息为视频会话消息,所述第一会话消息对应的消息文本为所述视频会话消息对应的第一视频的视频文本;Optionally, the first conversation message is a video conversation message, and the message text corresponding to the first conversation message is the video text of the first video corresponding to the video conversation message;
所述第一确定单元具体用于:The first determining unit is specifically configured to:
响应于对所述第一视频的视频文本的第二输入,确定目标视频文本,其中,所述第一消息文本为所述目标视频文本;In response to a second input of a video text of the first video, determining a target video text, wherein the first message text is the target video text;
所述第一显示单元具体用于:The first display unit is specifically used for:
根据所述目标视频文本显示所述会话引用消息;Displaying the conversation reference message according to the target video text;
或者,根据所述目标视频文本对应的视频片段显示所述会话引用消息。Alternatively, the conversation reference message is displayed according to the video segment corresponding to the target video text.
可选的,所述至少一个目标会话消息还包括第二会话消息;Optionally, the at least one target session message further includes a second session message;
所述装置还包括:The device also includes:
第一确定模块,用于所述根据所述第一消息文本显示所述会话引用消息之前,响应于对所述第二会话消息对应的消息文本的第三输入,确定第二消息文本;a first determining module, configured to determine a second message text in response to a third input of a message text corresponding to the second conversation message before displaying the conversation reference message according to the first message text;
所述第一显示单元具体用于:The first display unit is specifically used for:
根据所述第一消息文本和所述第二消息文本显示所述会话引用消息。The conversation reference message is displayed according to the first message text and the second message text.
可选的,所述第一显示单元具体用于:Optionally, the first display unit is specifically used for:
根据所述第一消息文本和所述第二消息文本的拼接结果显示所述会话引用消息。The conversation reference message is displayed according to a concatenation result of the first message text and the second message text.
可选的,所述装置还包括:Optionally, the device further comprises:
第二确定模块,用于所述根据所述第一消息文本显示所述会话引用消息之前,响应于对所述第一会话消息对应的消息文本的第四输入,确定第三消 息文本;a second determining module configured to determine, before displaying the conversation reference message according to the first message text, a third message reference message in response to a fourth input of a message text corresponding to the first conversation message; Message text;
所述第一显示单元具体用于:The first display unit is specifically used for:
根据所述第一消息文本和所述第三消息文本显示所述会话引用消息。The conversation reference message is displayed according to the first message text and the third message text.
可选的,所述第一显示单元具体用于:Optionally, the first display unit is specifically used for:
根据所述第一消息文本和所述第三消息文本的拼接结果显示所述会话引用消息。The conversation reference message is displayed according to a concatenation result of the first message text and the third message text.
可选的,所述装置还包括:Optionally, the device further comprises:
第四显示模块,用于所述将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员之后,在所述目标会话显示所述输入消息、所述会话引用消息和所述会话引用消息对应的预览信息。A fourth display module is used to display the input message, the session reference message and the preview information corresponding to the session reference message in the target session after sending the input message and the session reference message to the session members participating in the target session.
可选的,所述装置还包括:Optionally, the device further comprises:
第五显示模块,用于所述将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员之后,在所述目标会话显示所述输入消息和所述会话引用消息;A fifth display module, configured to display the input message and the session reference message in the target session after sending the input message and the session reference message to the session members participating in the target session;
第一接收模块,用于接收对所述会话引用消息中的目标引用消息的第五输入;A first receiving module, configured to receive a fifth input of a target reference message in the session reference message;
第六显示模块,用于响应于所述第五输入,显示第三会话消息,其中,所述目标引用消息包括所述第三会话消息的消息片段或者所述第三会话消息对应的消息文本的文本片段,所述第三会话消息为所述至少一个目标会话消息中的会话消息。A sixth display module is used to display a third conversation message in response to the fifth input, wherein the target reference message includes a message fragment of the third conversation message or a text fragment of a message text corresponding to the third conversation message, and the third conversation message is a conversation message in the at least one target conversation message.
可选的,所述输入消息包括以下至少一项:文字输入消息、语音输入消息、图片输入消息、视频输入消息。Optionally, the input message includes at least one of the following: a text input message, a voice input message, a picture input message, and a video input message.
本申请实施例中的会话消息处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、 增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The session message processing device in the embodiment of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other device other than a terminal. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), The embodiments of the present invention are not limited to augmented reality (AR)/virtual reality (VR) devices, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., and may also be servers, network attached storage (NAS), personal computers (PC), televisions (TV), ATMs or self-service machines, etc.
本申请实施例中的会话消息处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The session message processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
本申请实施例提供的会话消息处理装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。The session message processing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 1. To avoid repetition, it will not be repeated here.
可选的,如图14所示,本申请实施例还提供一种电子设备1400,包括处理器1401和存储器1402,存储器1402上存储有可在所述处理器1401上运行的程序或指令,该程序或指令被处理器1401执行时实现上述会话消息处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 14, an embodiment of the present application also provides an electronic device 1400, including a processor 1401 and a memory 1402, and the memory 1402 stores a program or instruction that can be executed on the processor 1401. When the program or instruction is executed by the processor 1401, the various steps of the above-mentioned session message processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
需要说明的是,本申请实施例中的电子设备包括移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
图15为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 15 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备1500包括但不限于:射频单元1501、网络模块1502、音频输出单元1503、输入单元1504、传感器1505、显示单元1506、用户输入单元1507、接口单元1508、存储器1509、以及处理器1510等部件。The electronic device 1500 includes but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, and a processor 1510 and other components.
本领域技术人员可以理解,电子设备1500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图15中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更 多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art will appreciate that the electronic device 1500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1510 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The electronic device structure shown in FIG. 15 does not constitute a limitation on the electronic device, and the electronic device may include more than the illustrated structure. More or fewer components, or combinations of certain components, or different arrangements of components are not described in detail here.
其中,显示单元1506,用于响应于对目标会话的至少一个目标会话消息的第一输入,显示所述至少一个目标会话消息对应的引用消息编辑区域;所述至少一个目标会话消息包括以下至少一项:文字会话消息、语音会话消息、图片会话消息、视频会话消息;响应于对所述引用消息编辑区域的第二输入,显示所述至少一个目标会话消息对应的会话引用消息;响应于对所述目标会话的会话消息编辑区域的第三输入,显示输入消息;The display unit 1506 is configured to, in response to a first input to at least one target conversation message of a target conversation, display a reference message editing area corresponding to the at least one target conversation message; the at least one target conversation message includes at least one of the following: a text conversation message, a voice conversation message, a picture conversation message, and a video conversation message; in response to a second input to the reference message editing area, display a conversation reference message corresponding to the at least one target conversation message; in response to a third input to the conversation message editing area of the target conversation, display the input message;
射频单元1501,将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员。The radio frequency unit 1501 sends the input message and the session reference message to the session members participating in the target session.
本申请实施例可以基于对目标会话消息对应的消息文本的操作,实现对目标会话消息或者目标会话消息对应的消息文本的引用,由此可以突出所引用的会话消息的关键内容,提高会话沟通效率。The embodiment of the present application can reference the target conversation message or the message text corresponding to the target conversation message based on the operation on the message text corresponding to the target conversation message, thereby highlighting the key content of the referenced conversation message and improving the conversation communication efficiency.
可选的,所述至少一个目标会话消息包括第一会话消息;Optionally, the at least one target session message includes a first session message;
所述处理器1510用于,响应于对所述第一会话消息对应的消息文本的第二输入,确定第一消息文本;The processor 1510 is configured to determine the first message text in response to a second input of the message text corresponding to the first conversation message;
所述显示单元1506具体用于根据所述第一消息文本显示所述会话引用消息。The display unit 1506 is specifically configured to display the conversation reference message according to the first message text.
可选的,所述第一会话消息为语音会话消息,所述第一会话消息对应的消息文本为所述语音会话消息对应的语音文本;Optionally, the first conversation message is a voice conversation message, and the message text corresponding to the first conversation message is the voice text corresponding to the voice conversation message;
所述处理器1510具体用于:The processor 1510 is specifically configured to:
响应于对所述语音会话消息对应的语音文本的第二输入,确定目标语音文本,其中,所述第一消息文本为所述目标语音文本;In response to a second input of a voice text corresponding to the voice conversation message, determining a target voice text, wherein the first message text is the target voice text;
所述显示单元1506具体用于:The display unit 1506 is specifically used for:
根据所述目标语音文本显示所述会话引用消息;Displaying the conversation reference message according to the target voice text;
或者,根据所述目标语音文本对应的语音片段显示所述会话引用消息。Alternatively, the conversation reference message is displayed according to the voice segment corresponding to the target voice text.
可选的,所述第一会话消息为图片会话消息,所述第一会话消息对应的 消息文本为所述图片会话消息对应的第一图片的图片文本;Optionally, the first conversation message is a picture conversation message, and the first conversation message corresponds to The message text is the picture text of the first picture corresponding to the picture conversation message;
所述处理器1510具体用于:The processor 1510 is specifically configured to:
响应于对所述第一图片的图片文本的第二输入,确定目标图片文本,其中,所述第一消息文本为所述目标图片文本;In response to a second input of the picture text of the first picture, determining a target picture text, wherein the first message text is the target picture text;
所述显示单元1506具体用于:The display unit 1506 is specifically used for:
根据所述目标图片文本显示所述会话引用消息;Displaying the conversation reference message according to the target picture text;
或者,对所述第一图片中的所述目标图片文本进行标注,获得第二图片,根据所述第二图片显示所述会话引用消息。Alternatively, the target picture text in the first picture is annotated to obtain a second picture, and the conversation reference message is displayed according to the second picture.
可选的,所述第一会话消息为视频会话消息,所述第一会话消息对应的消息文本为所述视频会话消息对应的第一视频的视频文本;Optionally, the first conversation message is a video conversation message, and the message text corresponding to the first conversation message is the video text of the first video corresponding to the video conversation message;
所述处理器1510具体用于:The processor 1510 is specifically configured to:
响应于对所述第一视频的视频文本的第二输入,确定目标视频文本,其中,所述第一消息文本为所述目标视频文本;In response to a second input of a video text of the first video, determining a target video text, wherein the first message text is the target video text;
所述显示单元1506具体用于:The display unit 1506 is specifically used for:
根据所述目标视频文本显示所述会话引用消息;Displaying the conversation reference message according to the target video text;
或者,根据所述目标视频文本对应的视频片段显示所述会话引用消息。Alternatively, the conversation reference message is displayed according to the video segment corresponding to the target video text.
可选的,所述至少一个目标会话消息还包括第二会话消息;Optionally, the at least one target session message further includes a second session message;
所述处理器1510还用于在所述根据所述第一消息文本显示所述会话引用消息之前,响应于对所述第二会话消息对应的消息文本的第三输入,确定第二消息文本;The processor 1510 is further configured to determine a second message text in response to a third input of a message text corresponding to the second conversation message before displaying the conversation reference message according to the first message text;
所述显示单元1506具体用于:The display unit 1506 is specifically used for:
根据所述第一消息文本和所述第二消息文本显示所述会话引用消息。The conversation reference message is displayed according to the first message text and the second message text.
可选的,所述显示单元1506具体用于:Optionally, the display unit 1506 is specifically used for:
根据所述第一消息文本和所述第二消息文本的拼接结果显示所述会话引用消息。The conversation reference message is displayed according to a concatenation result of the first message text and the second message text.
可选的,所述处理器1510还用于在所述根据所述第一消息文本显示所述 会话引用消息之前,响应于对所述第一会话消息对应的消息文本的第四输入,确定第三消息文本;Optionally, the processor 1510 is further configured to display the Before the conversation reference message is sent, in response to a fourth input of a message text corresponding to the first conversation message, a third message text is determined;
所述显示单元1506具体用于:The display unit 1506 is specifically used for:
根据所述第一消息文本和所述第三消息文本显示所述会话引用消息。The conversation reference message is displayed according to the first message text and the third message text.
可选的,所述显示单元1506具体用于:Optionally, the display unit 1506 is specifically used for:
根据所述第一消息文本和所述第三消息文本的拼接结果显示所述会话引用消息。The conversation reference message is displayed according to a concatenation result of the first message text and the third message text.
可选的,所述显示单元1506还用于在所述将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员之后,在所述目标会话显示所述输入消息、所述会话引用消息和所述会话引用消息对应的预览信息。Optionally, the display unit 1506 is further configured to display the input message, the session reference message, and preview information corresponding to the session reference message in the target session after sending the input message and the session reference message to session members participating in the target session.
可选的,所述显示单元1506还用于所述将所述输入消息和所述会话引用消息发送至参与所述目标会话的会话成员之后,在所述目标会话显示所述输入消息和所述会话引用消息;Optionally, the display unit 1506 is further configured to display the input message and the session reference message in the target session after sending the input message and the session reference message to the session members participating in the target session;
所述用户输入单元1507用于接收对所述会话引用消息中的目标引用消息的第五输入;The user input unit 1507 is used to receive a fifth input of a target reference message in the session reference message;
所述显示单元1506还用于响应于所述第五输入,显示第三会话消息,其中,所述目标引用消息包括所述第三会话消息的消息片段或者所述第三会话消息对应的消息文本的文本片段,所述第三会话消息为所述至少一个目标会话消息中的会话消息。The display unit 1506 is further configured to display a third conversation message in response to the fifth input, wherein the target reference message includes a message fragment of the third conversation message or a text fragment of a message text corresponding to the third conversation message, and the third conversation message is a conversation message in the at least one target conversation message.
可选的,所述输入消息包括以下至少一项:文字输入消息、语音输入消息、图片输入消息、视频输入消息。Optionally, the input message includes at least one of the following: a text input message, a voice input message, a picture input message, and a video input message.
应理解的是,本申请实施例中,输入单元1504可以包括图形处理器(Graphics Processing Unit,GPU)15041和麦克风15042,图形处理器15041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1506可包括显示面板15061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板15061。用户 输入单元1507包括触控面板15071以及其他输入设备15072中的至少一种。触控面板15071,也称为触摸屏。触控面板15071可包括触摸检测装置和触摸控制器两个部分。其他输入设备15072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 1504 may include a graphics processing unit (GPU) 15041 and a microphone 15042, and the graphics processor 15041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1506 may include a display panel 15061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. User The input unit 1507 includes at least one of a touch panel 15071 and other input devices 15072. The touch panel 15071 is also called a touch screen. The touch panel 15071 may include two parts: a touch detection device and a touch controller. Other input devices 15072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
存储器1509可用于存储软件程序以及各种数据。存储器1509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1509可以包括易失性存储器或非易失性存储器,或者,存储器1509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1509包括但不限于这些和任意其它适合类型的存储器。The memory 1509 can be used to store software programs and various data. The memory 1509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1509 may include a volatile memory or a non-volatile memory, or the memory 1509 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器1510可包括一个或多个处理单元;可选的,处理器1510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1510中。 The processor 1510 may include one or more processing units; optionally, the processor 1510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1510.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述会话消息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned session message processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述会话消息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned session message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述会话消息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned session message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand the above The embodiment method can be implemented by means of software plus a necessary general hardware platform, or by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims (17)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310457820.2 | 2023-04-25 | ||
CN202310457820.2A CN116471251A (en) | 2023-04-25 | 2023-04-25 | Session message processing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024222618A1 true WO2024222618A1 (en) | 2024-10-31 |
Family
ID=87180492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2024/089074 WO2024222618A1 (en) | 2023-04-25 | 2024-04-22 | Session message processing method and apparatus, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116471251A (en) |
WO (1) | WO2024222618A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116471251A (en) * | 2023-04-25 | 2023-07-21 | 维沃移动通信有限公司 | Session message processing method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002056A (en) * | 2022-05-26 | 2022-09-02 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and readable storage medium |
CN115079884A (en) * | 2022-06-29 | 2022-09-20 | 北京字跳网络技术有限公司 | Session message display method, device, equipment and storage medium |
US20230059637A1 (en) * | 2021-05-13 | 2023-02-23 | Tencent Technology (Shenzhen) Company Limited | Multimedia data processing method, apparatus, and device, computer-readable storage medium, and computer program product |
CN116471251A (en) * | 2023-04-25 | 2023-07-21 | 维沃移动通信有限公司 | Session message processing method and device and electronic equipment |
-
2023
- 2023-04-25 CN CN202310457820.2A patent/CN116471251A/en active Pending
-
2024
- 2024-04-22 WO PCT/CN2024/089074 patent/WO2024222618A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230059637A1 (en) * | 2021-05-13 | 2023-02-23 | Tencent Technology (Shenzhen) Company Limited | Multimedia data processing method, apparatus, and device, computer-readable storage medium, and computer program product |
CN115002056A (en) * | 2022-05-26 | 2022-09-02 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and readable storage medium |
CN115079884A (en) * | 2022-06-29 | 2022-09-20 | 北京字跳网络技术有限公司 | Session message display method, device, equipment and storage medium |
CN116471251A (en) * | 2023-04-25 | 2023-07-21 | 维沃移动通信有限公司 | Session message processing method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN116471251A (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104951546B (en) | Method and device for subscribing message in instant messaging software | |
US11019012B2 (en) | File sending in instant messaging application | |
US20240022633A1 (en) | Method and system for providing web content in virtual reality environment | |
US20240353975A1 (en) | Method for publishing media content, device and storage medium | |
WO2024051522A1 (en) | Message sending method and apparatus, and electronic device and storage medium | |
WO2024222618A1 (en) | Session message processing method and apparatus, and electronic device | |
WO2024037404A1 (en) | Message referencing method and apparatus, electronic device, and storage medium | |
CN112083866A (en) | Expression image generation method and device | |
CN113285866B (en) | Information sending method and device and electronic equipment | |
CN112329403A (en) | Live broadcast document processing method and device | |
CN110768896A (en) | Session information processing method and device, readable storage medium and computer equipment | |
CN113946253A (en) | Rich media display method, medium, apparatus and computing device | |
WO2024222579A1 (en) | Session message processing method and apparatus, and electronic device | |
US11455463B2 (en) | Facilitating user interaction in online spreadsheets | |
WO2023131290A1 (en) | Information interaction methods and apparatuses, electronic device and medium | |
CN114785979A (en) | A same-screen display method, device, equipment and medium | |
US12093639B2 (en) | Fast creation of a second document associated with a first document | |
WO2024002072A1 (en) | Information collection method and apparatus, and electronic device | |
WO2024174930A1 (en) | Data transmission method and apparatus, device, and storage medium | |
CN114745346B (en) | Message processing method and device, electronic equipment and readable storage medium | |
US20150120828A1 (en) | Recalling activities during communication sessions | |
WO2023179539A1 (en) | Video editing method and apparatus, and electronic device | |
CN109558551A (en) | Method, apparatus, storage medium and the electronic equipment of previewing file | |
CN116264603A (en) | Live broadcast information processing method, device, equipment and storage medium | |
CN109597896B (en) | Information quotation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24795999 Country of ref document: EP Kind code of ref document: A1 |