CN104935497B - Communication session method and device - Google Patents

Communication session method and device Download PDF

Info

Publication number
CN104935497B
CN104935497B CN201410105693.0A CN201410105693A CN104935497B CN 104935497 B CN104935497 B CN 104935497B CN 201410105693 A CN201410105693 A CN 201410105693A CN 104935497 B CN104935497 B CN 104935497B
Authority
CN
China
Prior art keywords
expression
user
head portrait
dynamic
key character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410105693.0A
Other languages
Chinese (zh)
Other versions
CN104935497A (en
Inventor
林紫玲
陈俊标
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410105693.0A priority Critical patent/CN104935497B/en
Publication of CN104935497A publication Critical patent/CN104935497A/en
Application granted granted Critical
Publication of CN104935497B publication Critical patent/CN104935497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a communication session method, which comprises the following steps: acquiring dynamic head portrait information of a user participating in a communication session, wherein the dynamic head portrait information comprises at least one expression head portrait and key characters corresponding to the expression head portrait; detecting whether a session message sent by the user in the communication session contains message content matched with the key characters; and if the fact that the conversation message sent by the user in the communication conversation contains the message content matched with the key character is detected, acquiring the expression head portrait corresponding to the key character from the dynamic head portrait information of the user, and displaying the expression head portrait corresponding to the key character in the conversation message. The embodiment of the invention also discloses a communication session device. By adopting the invention, the emotion or the state can be automatically expressed for the user, and the efficiency of the communication session of the user is effectively improved.

Description

Communication session method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a communication session method and apparatus.
Background
With the development of internet technology, people increasingly use the internet to perform communication sessions, in the existing internet communication sessions, users often express emotions or states in an auxiliary manner by sending session messages carrying emotion images, but adding emotion images in the session messages requires the users to search and select required emotion images from optional emotions or images, so that the input of session message contents is interrupted, and the efficiency of the communication sessions is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a communication session method and apparatus, which can dynamically change a avatar displayed in a session message by a user according to user input content in a communication session, automatically express an emotion or state for the user, and effectively improve efficiency of the communication session performed by the user.
In order to solve the above technical problem, an embodiment of the present invention provides a communication session method, where the communication session method includes:
acquiring dynamic head portrait information of a user participating in a communication session, wherein the dynamic head portrait information comprises at least one expression head portrait and key characters corresponding to the expression head portrait;
detecting whether a session message sent by the user in the communication session contains message content matched with the key characters;
and if the fact that the conversation message sent by the user in the communication conversation contains the message content matched with the key character is detected, acquiring the expression head portrait corresponding to the key character from the dynamic head portrait information of the user, and displaying the expression head portrait corresponding to the key character in the conversation message.
Correspondingly, an embodiment of the present invention further provides a communication session device, including:
the system comprises a dynamic expression acquisition module, a dynamic expression recognition module and a dynamic expression recognition module, wherein the dynamic expression acquisition module is used for acquiring dynamic head portrait information of a user participating in communication conversation, and the dynamic head portrait information comprises at least one expression head portrait and key characters corresponding to the expression head portrait;
a session detection module, configured to detect whether a session message sent by the user in the communication session includes a message content matching the keyword;
and the expression display module is used for acquiring an expression head portrait corresponding to the key character from the dynamic head portrait information of the user and displaying the expression head portrait corresponding to the key character in the conversation message if the fact that the conversation message sent by the user in the communication conversation contains the message content matched with the key character is detected.
According to the embodiment, the expression head portrait corresponding to the key character can be displayed in the session message by detecting that the session message of the communication session contains the key character preset by the corresponding user, so that the emotion or state can be automatically expressed for the user, and the efficiency of the communication session of the user can be effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a communication session method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a communication session method according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a communication session method according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating dynamic avatar information of a user in an embodiment of the present invention;
fig. 5 to 7 are schematic diagrams illustrating effects of a session interface in a communication session process according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a communication session device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an emoticon display module of a communication session apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The communication session mentioned in the embodiment of the present invention may be a session established between users through an internet communication program, a session between two users, or a session between multiple users, where the internet communication program may include an instant messaging tool, an SNS (Social Networking Services) communication tool, and the like.
Fig. 1 is a schematic flow chart of a communication session method in an embodiment of the present invention, where the communication session method in this embodiment at least includes the following steps:
s101, obtaining dynamic head portrait information of a user participating in a communication session, wherein the dynamic head portrait information comprises at least one expression head portrait and key characters corresponding to the expression head portrait.
In a specific implementation, the dynamic head portrait information of the user may be as shown in fig. 4, and includes at least one expression head portrait and key characters corresponding to each expression head portrait, where the expression head portrait may be a photo, a picture, or an expression that is submitted by the user in advance, may also be a photo, a picture, or an expression that is selected by the user in advance in a network album, a network picture library, or an expression library, may also be a static picture, and may also be a dynamic picture with a dynamic effect, such as a gif (Graphics interchange format, an image format, whose original meaning is an image interchange format) image, an expression image with a dynamic decoration effect, and the like. The key characters may be preset by a user, for example, "haha", "booby", etc., as shown in fig. 4. Optionally, the dynamic avatar information of the user may include an emoji avatar as a default emoji avatar, which may not set a corresponding key character, and when the session message does not include key characters in other dynamic avatar information, the default emoji avatar of the user may be displayed in the session message.
In an optional embodiment, the communication session device may obtain the dynamic avatar information of the user from the user information management server, and if the communication session device is implemented in the network backend server, the communication session device may also store the dynamic avatar information of each user according to a setting operation of the user.
S102, detecting whether the conversation message sent by the user in the communication conversation contains the message content matched with the key character.
Specifically, the communication session device may keep detecting session messages sent by all users participating in the communication session, and when a user participating in the communication session sends a new session message, the communication session device may detect whether the session message includes message content matching the keyword, and if so, execute S103. The message content in the session message may be completely consistent with the key character in the dynamic avatar information of the user, or may be determined to be matched with the key character according to a preset fuzzy matching rule, for example, if the key character set by the user is "great fool", the session message sent by the user includes "great fool", "great fool X", and the like, all of which are considered to be matched with the key character "great fool", and in addition, in an alternative embodiment, an approximate word rule may be used to determine whether the message content in the session message is matched with the key character, for example, if the key character is "hip-hop", then "hey" and "hey" are considered to be matched with the key character "hip-hop".
S103, if the fact that the conversation message sent by the user in the communication conversation contains the message content matched with the key character is detected, the expression head portrait corresponding to the key character is obtained from the dynamic head portrait information of the user, and the expression head portrait corresponding to the key character is displayed in the conversation message.
Specifically, as shown in fig. 5 (B), when it is detected that "fool" is included in the conversation message sent by the left-side user, an expressive avatar corresponding to the "fool" in the dynamic avatar information of the user is displayed in the conversation message; when the left-side user issues "feed! If the communication session device determines that the session message does not contain the key characters in the dynamic avatar information, the default emoticons in the dynamic avatar information of the user can be displayed in the session message.
Further, in an alternative embodiment, an animation effect of the emoticon corresponding to the key character may be displayed in the conversation message, as shown in fig. 5 (a) and (B), when it is detected that "fool" is included in the conversation message sent by the left-side user, a switching animation between the first emoticon of the user and the emoticon corresponding to the key character may be displayed in the conversation message, where the first emoticon of the user is a default emoticon of the user or an emoticon of the last conversation message sent by the user in the communication session. If it is detected that the conversation message contains a plurality of different key characters, switching animations between the first expression avatar of the user and the expression avatars corresponding to the at least two key characters respectively can be displayed according to the sequence of the at least two key characters appearing in the conversation message, for example, the conversation message content is ' haha ', fool ', ' haha ' corresponding to the expression avatar a, and ' fool ' corresponding to the expression avatar B, and the switching animations between the first expression avatar-a-B can be displayed according to the sequence. Furthermore, if the expression avatar itself corresponding to the key character included in the conversation message is a dynamic effect image, the dynamic effect of the expression avatar itself corresponding to the key character may be displayed in the conversation message.
Further alternatively, the animation effect with the emoticon of the key character included in the conversation message may be repeatedly displayed in the conversation message until the presence of a new conversation message in the communication conversation is detected. Further optionally, when detecting that a new session message appears in the communication session, it may be further determined whether the animation effect of the currently displayed expression avatar has been displayed for one animation period, and if the animation effect of the currently displayed expression avatar has been displayed for one animation period, the display of the animation effect of the currently displayed expression avatar is stopped, otherwise, the display is continued until one animation period is displayed.
Further, in an optional embodiment, before displaying the animation effect of the emoticon corresponding to the key character included in the conversation message, it may be detected whether the communication session is currently in an activated state, and if the communication session is not currently in the activated state, the communication session may wait until the communication session is detected to be in the activated state, and then the communication session starts to display the animation effect of the emoticon corresponding to the key character included in the conversation message. The communication session is in an activated state, for example, a session window of the communication session is in a front-end display state of an operating system, and when a user clicks or switches to another window, the communication session is in an inactivated state; or the session interface of the communication session is in an activated state, and the communication session is in an inactivated state after the user opens or switches to other program interfaces. Whether the communication session is in the activated state or not is confirmed before the animation effect of the expressive head portrait is displayed, so that the situation that a user cannot view the animation effect of the expressive head portrait in the display process of the animation effect of the expressive head portrait can be avoided, for example, the user views another interface, at the moment, a new session message comes from the communication session, at the moment, if the user cannot view the animation effect of the expressive head portrait corresponding to the key characters contained in the session message, the user needs to wait until the user views the interface or the window of the communication session, judge that the communication session is in the activated state, and then start to display the animation effect of the expressive head portrait corresponding to the key characters contained in the session message newly received by the communication session.
Therefore, in the embodiment, the expression avatar corresponding to the key character is displayed in the session message by detecting that the session message of the communication session contains the key character preset by the corresponding user, so that the emotion or state is automatically expressed for the user, and the efficiency of the communication session of the user is effectively improved.
Fig. 2 is a flowchart illustrating a communication session method according to another embodiment of the present invention, where the communication session method according to this embodiment at least includes the following steps:
s201, acquiring a dynamic expression setting request submitted by the user, wherein the dynamic expression setting request comprises at least one expression head portrait set by the user and key characters corresponding to the expression head portrait.
Specifically, the at least one expression avatar set by the user may be an image obtained by the user through photographing, an image selected by the user from an album, or an image selected by the user from an expression library, and the key character may also be a key character manually input by the user or selected from selectable common characters as a key character corresponding to the expression avatar set by the user. Furthermore, the expression head portrait can also comprise custom decoration elements added by the user for the corresponding expression head portrait, namely when the user sets the expression head portrait, the user can add decoration elements on the basis of the original image, such as a head portrait frame, a head portrait sticker and the like, and further add individual elements of the user head portrait.
S202 adds at least one expression avatar set by the user and the key character corresponding to the expression avatar into the dynamic avatar information of the user according to the dynamic expression setting request, and then the user can view the available expression avatar and the corresponding key character in the current dynamic avatar information through the interface shown in fig. 4.
S203, detecting whether the conversation message sent by the user in the communication conversation contains the message content matched with the key character.
Specifically, the communication session device may keep detecting session messages sent by all users participating in the communication session, and when a user participating in the communication session sends a new session message, the communication session device may detect whether the session message includes a keyword in the dynamic avatar information of the user, and if so, execute S204. The message content in the session message is matched with the key characters in the dynamic head portrait information of the user, and the matching can be completely consistent, or the matching of the message content and the key characters can be judged according to a preset fuzzy matching rule.
And S204, acquiring the expression head portrait corresponding to the key character from the dynamic head portrait information of the user, and displaying the expression head portrait corresponding to the key character in the conversation message, including displaying the animation effect of the expression head portrait corresponding to the key character.
As shown in fig. 5 (a) and (B), when it is detected that a conversation message sent by the left-side user includes "fool", a switching animation between the first emoticon of the user, which is the default emoticon of the user or the emoticon of the last conversation message sent by the user in the communication session, and the emoticon corresponding to the key character may be displayed in the conversation message. If it is detected that the conversation message contains a plurality of different key characters, switching animations between the first expression avatar of the user and the expression avatars corresponding to the at least two key characters respectively can be displayed according to the sequence of the at least two key characters appearing in the conversation message, for example, the conversation message content is ' haha ', fool ', ' haha ' corresponding to the expression avatar a, and ' fool ' corresponding to the expression avatar B, and the switching animations between the first expression avatar-a-B can be displayed according to the sequence. Furthermore, if the expression avatar itself corresponding to the key character included in the conversation message is a dynamic effect image, the dynamic effect of the expression avatar itself corresponding to the key character may be displayed in the conversation message.
And S205, if detecting that a new conversation message appears in the communication conversation, stopping displaying the animation effect of the expression head portrait corresponding to the key character.
Specifically, in this embodiment, the communication session device may repeatedly display the animation effect of the expression avatar corresponding to the key character in the session message periodically, and if the first expression avatar of the user is the default expression avatar a of the user and the expression avatar b corresponding to the key character "fool" appearing in the session message, repeatedly display the periodic switching animation of a-b in the session message until detecting that a new session message appears in the communication session, stop displaying the switching animation, and display the static state of the expression avatar b in the session message appearing "fool".
Therefore, in the embodiment, the expression avatar corresponding to the key character is displayed in the session message by detecting that the session message of the communication session contains the key character preset by the corresponding user, so that the emotion or state is automatically expressed for the user, and the efficiency of the communication session of the user is effectively improved.
Fig. 3 is a flowchart illustrating a communication session method according to another embodiment of the present invention, where as shown in the figure, the communication session method according to this embodiment includes:
s301, acquiring dynamic head portrait information of a user participating in a communication session, wherein the dynamic head portrait information comprises at least one expression head portrait and key characters corresponding to the expression head portrait.
S302, detecting whether the conversation message sent by the user in the communication conversation contains the key character.
And S303, acquiring the expression head portrait corresponding to the key character from the dynamic head portrait information of the user, and displaying the expression head portrait corresponding to the key character in the conversation message.
S304, detecting whether the communication session is in the activated state currently. If the communication session is not currently in the activated state, waiting until the communication session is detected to be in the activated state, and then executing S305.
Specifically, the communication session is in an activated state, which may be that a session interface of the communication session is originally in an activated state, or a session window of the communication session is in a display state at the frontmost end of an operating system, and when a user clicks or switches to another window or another program interface, the communication session is in an inactivated state. Whether the communication session is in the activated state or not is confirmed before the animation effect of the expressive head portrait is displayed, so that the situation that a user cannot view the animation effect of the expressive head portrait in the display process of the animation effect of the expressive head portrait can be avoided, for example, the user views another interface, at the moment, a new session message comes from the communication session, at the moment, if the user cannot view the animation effect of the expressive head portrait corresponding to the key characters contained in the session message, the user needs to wait until the user views the interface or the window of the communication session, judge that the communication session is in the activated state, and then start to display the animation effect of the expressive head portrait corresponding to the key characters contained in the session message newly received by the communication session.
S305, judging whether the expression head portrait corresponding to the key character is a dynamic effect image.
Specifically, the communication session device may determine whether the expression avatar corresponding to the key character has a dynamic effect, for example, a gif image composed of a plurality of different images or an expression image with a dynamic decoration effect, and then determine the expression avatar as a dynamic effect image, and then execute S306, otherwise execute S307.
S306, displaying the dynamic effect of the expression head portrait corresponding to the key character in the conversation message.
As shown in fig. 7 (a) and (B), the communication session device displays an expression image corresponding to the key character "sweat" in the session message according to the key character "sweat" contained in the session message sent by the right user in the communication session, and further displays its own dynamic effect in the session message if the expression image is a dynamic effect image describing a sweating process.
S307, displaying the switching animation between the first expression head portrait of the user and the expression head portrait corresponding to the key character in the conversation message.
As shown in fig. 5 (a) and (B), the communication session device displays an emoticon corresponding to the key character "fool" in a session message sent by a right-side user in the communication session, based on the key character "fool" included in the session message, and displays a switching animation between a first emoticon of the user, which is a default emoticon of the user or an emoticon of a previous session message sent by the user in the communication session, and the emoticon corresponding to the key character in the session message because the emoticon corresponding to the "fool" is not a dynamic effect image. If it is detected that the conversation message contains a plurality of different key characters, switching animations between the first expression avatar of the user and the expression avatars corresponding to the at least two key characters respectively can be displayed according to the sequence of the at least two key characters appearing in the conversation message, for example, the conversation message content is ' haha ', fool ', ' haha ' corresponding to the expression avatar a, and ' fool ' corresponding to the expression avatar B, and the switching animations between the first expression avatar-a-B can be displayed according to the sequence.
And S308, detecting that a new session message appears in the communication session.
Specifically, in this embodiment, the communication session device may repeatedly display the animation effect of the emoticon corresponding to the key character in the session message periodically, and if the first emoticon of the user is the default emoticon a of the user and the emoticon b corresponding to the key character "fool" appearing in the session message, repeatedly display the periodic switching animation of a-b in the session message until detecting that a new session message appears in the communication session, and execute S309.
S309, judging that the animation effect of the expression head portrait corresponding to the key character is displayed for an animation period.
In this embodiment, after determining that a new session message occurs in a communication session, the communication session device needs to confirm that the animation effect of the emoticon corresponding to the key character has been displayed for one animation period before stopping displaying the animation effect of the emoticon corresponding to the key character, that is, the animation effect of the emoticon corresponding to the key character included in one session message is displayed for at least one period, and then stops displaying the animation effect due to the occurrence of the new session message in the communication session. For example, after a user opens a communication session of a certain group, and receives a plurality of session messages sent by the group members before, the animation effects of the emoticons corresponding to the key characters contained in the corresponding session messages are sequentially displayed in the communication session according to the sending time of the plurality of session messages (if no key character is contained, a default avatar is displayed), and the animation effect of each session message is only displayed for one animation period until the animation effect of the emoticons corresponding to the key character contained in the latest session message is displayed, and the display can be repeated until a new session message is received again.
And S310, stopping displaying the animation effect of the expression head portrait corresponding to the key character. As in the "fool" conversation message issued by the user on the left side in the communication session in fig. 6, after the next new conversation message appears in the communication session, the animation effect of the expressive avatar corresponding to the key character "fool" is stopped from being displayed, and the static state of the expressive avatar corresponding to the "fool" is displayed as shown in fig. 6.
Fig. 8 is a schematic structural diagram of a communication session device according to an embodiment of the present invention, where the communication session device according to the embodiment at least includes:
the dynamic expression obtaining module 810 is configured to obtain dynamic avatar information of a user participating in a communication session, where the dynamic avatar information includes at least one expression avatar and key characters corresponding to the expression avatar.
In a specific implementation, the dynamic head portrait information of the user may be as shown in fig. 4, and includes at least one expression head portrait and key characters corresponding to each expression head portrait, where the expression head portrait may be a photo, a picture, or an expression that is submitted by the user in advance, may also be a photo, a picture, or an expression that is selected by the user in advance in a network album, a network picture library, or an expression library, may also be a static picture, and may also be a dynamic picture with a dynamic effect, such as a gif (Graphics interchange format, an image format, whose original meaning is an image interchange format) image, an expression image with a dynamic decoration effect, and the like. The key characters may be preset by a user, for example, "haha", "booby", etc., as shown in fig. 4. Optionally, the dynamic avatar information of the user may include an emoji avatar as a default emoji avatar, which may not set a corresponding key character, and when the session message does not include key characters in other dynamic avatar information, the default emoji avatar of the user may be displayed in the session message.
In an optional embodiment, the dynamic expression obtaining module 810 may obtain the dynamic avatar information of the user from the user information management server, and if the communication session device is implemented in the network backend server, the communication session device may also store the dynamic avatar information of each user in a preset database according to a setting operation of the user, and the dynamic expression obtaining module 810 may thus obtain the dynamic avatar information of the user from the preset database when needed.
A session detection module 820, configured to detect whether a session message sent by the user in the communication session includes a message content matching the keyword.
In a specific implementation, the session detection module 820 may keep detecting session messages sent by all users participating in the communication session, and when a user participating in the communication session sends a new session message, the session detection module 820 may detect whether the session message includes message content matching the key character, and if so, notify the emotion display module 830. The message content in the conversation message matches the key characters in the user's dynamic avatar information, the matching between the message content and the key character may be determined by the session detection module 820 according to a preset fuzzy matching rule, for example, the key character set by the user may be "fool", if the session message sent by the user includes "fool", "fool X", etc., it will be considered by the session detection module 820 to match with the key character "fool", in addition, in an alternative embodiment, word approximation rules may be used to determine whether the message content in the conversation message matches the key characters, for example, the similar words such as "hip-hop", then "hey" and "hey" may be considered by the session detection module 820 as the message content matching the "hip-hop" key character.
The expression display module 830 is configured to, if it is detected that a session message sent by the user in the communication session includes message content matched with the key character, obtain an expression avatar corresponding to the key character from the dynamic avatar information of the user, and display the expression avatar corresponding to the key character in the session message.
Specifically, as shown in fig. 5 (B), when it is detected that the conversation message sent by the left-side user includes "fool", an expressive avatar corresponding to the "fool" may be acquired in the dynamic avatar information of the user, and the expressive avatar corresponding to the "fool" may be displayed in the conversation message; when the left-side user issues "feed! If the communication session device determines that the session message does not contain the key characters in the dynamic avatar information, the default emoticons in the dynamic avatar information of the user can be displayed in the session message.
Optionally, the communication session device in the embodiment of the present invention may further include:
and the dynamic expression setting module 800 is configured to obtain a dynamic expression setting request submitted by the user, where the dynamic expression setting request includes at least one expression avatar set by the user and a key character corresponding to the expression avatar, and add the at least one expression avatar set by the user and the key character corresponding to the expression avatar to the dynamic avatar information of the user according to the dynamic expression setting request.
In a specific implementation, the at least one expression avatar set by the user may be an image obtained by the user through photographing, an image selected by the user from an album, or an image selected by the user from an expression library, and the key character may also be a key character manually input by the user or selected from selectable common characters as a key character corresponding to the expression avatar set by the user. Furthermore, the expression head portrait can also comprise custom decoration elements added by the user for the corresponding expression head portrait, namely when the user sets the expression head portrait, the user can add decoration elements on the basis of the original image, such as a head portrait frame, a head portrait sticker and the like, and further add individual elements of the user head portrait. The dynamic expression setting module 800 adds at least one expression avatar set by the user and the key character corresponding to the expression avatar to the dynamic avatar information of the user according to the dynamic expression setting request, and then the user can view the available expression avatar and the corresponding key character in the current dynamic avatar information through the interface shown in fig. 4.
Further, the expression display module 830 may further include the following units as shown in fig. 9:
an expression head portrait acquiring unit 831 configured to acquire an expression head portrait corresponding to the key character in the dynamic head portrait information of the user;
an animation effect display unit 832, configured to display, in the session message, an animation effect of the expression avatar corresponding to the key character, where the animation effect of the expression avatar corresponding to the key character includes a switching animation between a first expression avatar of the user and the expression avatar corresponding to the key character, and the first expression avatar of the user is a default expression avatar of the user or an expression avatar in a last session message sent by the user in the communication session.
Further, if it is detected that the conversation message includes a plurality of different key characters, the animation effect display unit 832 may display a switching animation between the first expression avatar of the user and the expression avatars corresponding to the at least two key characters, respectively, according to an order in which the at least two key characters appear in the conversation message, for example, if the conversation message content is "haha, booby", "haha" corresponds to the expression avatar a, and "booby" corresponds to the expression avatar B, the switching animation between the first expression avatars-a-B may be displayed in order.
Furthermore, in an alternative embodiment, the expression display module 830 may further include, as shown in fig. 9:
a dynamic image determining unit 833, configured to determine whether the expression avatar corresponding to the key character is a dynamic effect image, if yes, trigger the dynamic effect displaying unit 832 to display the dynamic effect of the expression avatar corresponding to the key character in the session message, and otherwise trigger the dynamic effect displaying unit 832 to display a switching animation between the first expression avatar of the user and the expression avatar corresponding to the key character in the session message. Specifically, the dynamic image determining unit 833 may determine whether the expression avatar corresponding to the key character has a dynamic effect, for example, a gif image composed of a plurality of different images or an expression image with a dynamic decoration effect, and then determine the expression avatar has a dynamic effect.
Furthermore, in an alternative embodiment, the expression display module 830 may further include, as shown in fig. 9:
a session message detecting unit 834, configured to detect whether a new session message appears in the communication session, and if so, trigger the animation effect displaying unit 832 to stop displaying the animation effect of the emoticon corresponding to the key character.
In a specific implementation, the dynamic effect display unit 832 may repeatedly display the animation effect of the emoticon corresponding to the key character in the conversation message periodically, for example, if the first emoticon of the user is the default emoticon a of the user, and the emoticon b corresponding to the key character "fool" appears in the conversation message, the periodic switching animation of a-b is repeatedly displayed in the conversation message until the conversation message detection unit 834 detects that a new conversation message appears in the communication session, and notifies the dynamic effect display unit 832 to stop displaying the animation effect of the emoticon corresponding to the key character.
Further optionally, after the session message detecting unit 834 detects that a new session message appears in the communication session, the animation effect displaying unit 832 determines whether the animation effect of the expression avatar corresponding to the key character has been displayed for one animation period, and if so, stops displaying the animation effect of the expression avatar corresponding to the key character. After the session message detecting unit 834 determines that a new session message occurs in the communication session, the animation effect displaying unit 832 needs to confirm that the animation effect of the emoticon corresponding to the key character has been displayed for one animation period before stopping displaying the animation effect of the emoticon corresponding to the key character, that is, the animation effect of the emoticon corresponding to the key character included in one session message is displayed for at least one period, and then the display of the animation effect is stopped because the new session message occurs in the communication session. For example, after a user opens a communication session of a certain group, and receives a plurality of session messages sent by the group members before, the animation effects of the emoticons corresponding to the key characters contained in the corresponding session messages are sequentially displayed in the communication session according to the sending time of the plurality of session messages (if no key character is contained, a default avatar is displayed), and the animation effect of each session message is only displayed for one animation period until the animation effect of the emoticons corresponding to the key character contained in the latest session message is displayed, and the display can be repeated until a new session message is received again.
Furthermore, in an alternative embodiment, the expression display module 830 may further include, as shown in fig. 9:
an active state determining unit 835, configured to determine whether the communication session is currently in an active state when the session detecting module 810 detects that the session message sent by the user in the communication session includes the key character, and if so, trigger the animation effect displaying unit 832 to display the animation effect of the emoticon corresponding to the key character in the session message.
Specifically, the communication session is in an activated state, which may be that a session interface of the communication session is originally in an activated state, or a session window of the communication session is in a display state at the frontmost end of an operating system, and when a user clicks or switches to another window or another program interface, the communication session is in an inactivated state. Before the animation effect display unit 832 displays the animation effect of the emoticon, the activation state judgment unit 835 determines whether the communication session is in an activated state or not, so that it can be avoided that a user cannot view the animation effect of the emoticon, for example, the user is viewing another interface, at this time, a new session message comes from the communication session, and at this time, if the user cannot view the animation effect of the emoticon corresponding to the key character included in the session message, it is determined that the communication session is in the activated state until the user views the interface or the window of the communication session, and then the animation effect of the emoticon corresponding to the key character included in the session message newly received by the communication session starts to be displayed.
The communication session device in this embodiment can display the expression avatar corresponding to the key character in the session message by detecting that the session message of the communication session contains the key character preset by the corresponding user, thereby implementing automatic expression of emotion or state for the user, and effectively improving the efficiency of the communication session performed by the user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (17)

1. A communication session method, comprising:
acquiring dynamic head portrait information of a user participating in a communication session, wherein the dynamic head portrait information comprises at least one expression head portrait and key characters corresponding to the expression head portrait;
detecting whether a session message sent by the user in the communication session contains message content matched with the key characters;
if the conversation message sent by the user in the communication conversation is detected to contain the message content matched with the key character, acquiring the expression avatar corresponding to the key character from the dynamic avatar information of the user, detecting whether the communication session is currently in an activated state, if the communication session is not currently in the activated state, waiting until the communication session is detected to be currently in the activated state, displaying the animation effect of the expression head portrait corresponding to the key character in the conversation message, wherein the animation effect of the expression head portrait corresponding to the key character comprises switching animation between a first expression head portrait of the user and the expression head portrait corresponding to the key character, the first expression avatar of the user is the default expression avatar of the user or the expression avatar in the last conversation message sent by the user in the communication conversation.
2. The method of claim 1, wherein the obtaining dynamic avatar information of the users participating in the session further comprises:
and acquiring a dynamic expression setting request submitted by the user, wherein the dynamic expression setting request comprises at least one expression head portrait set by the user and key characters corresponding to the expression head portrait, and adding the at least one expression head portrait set by the user and the key characters corresponding to the expression head portrait into the dynamic head portrait information of the user according to the dynamic expression setting request.
3. The communication session method of claim 2, wherein the at least one emoticon set by the user comprises:
the image obtained by the user through photographing, the image selected by the user from the photo album or the image selected by the user from the expression library.
4. The communication session method according to any one of claims 1 to 3, wherein the emoticon comprises a custom decoration element added by the user for the corresponding emoticon.
5. The method of claim 1, wherein displaying the animation effect of the emoticon corresponding to the key character in the conversation message comprises:
and judging whether the expression head portrait corresponding to the key character is a dynamic effect image, if so, displaying the dynamic effect of the expression head portrait corresponding to the key character in the conversation message, otherwise, displaying the switching animation between the first expression head portrait of the user and the expression head portrait corresponding to the key character in the conversation message.
6. The method of claim 1, wherein displaying the animation effect of the emoticon corresponding to the key character in the conversation message comprises:
and if the conversation message sent by the user in the communication conversation contains at least two key characters, displaying a switching animation between a first expression avatar of the user and expression avatars corresponding to the at least two key characters respectively according to the sequence of the at least two key characters appearing in the conversation message.
7. The method of claim 1, wherein displaying the animation effect of the emoticon corresponding to the key character in the conversation message comprises:
and if detecting that a new conversation message appears in the communication conversation, stopping displaying the animation effect of the expression head portrait corresponding to the key character.
8. The method of claim 7, wherein the step of stopping displaying the animation effect of the emoticon corresponding to the key character further comprises:
and confirming that the animation effect of the expression head portrait corresponding to the key character is displayed for one animation period.
9. A communication session apparatus, comprising:
the system comprises a dynamic expression acquisition module, a dynamic expression recognition module and a dynamic expression recognition module, wherein the dynamic expression acquisition module is used for acquiring dynamic head portrait information of a user participating in communication conversation, and the dynamic head portrait information comprises at least one expression head portrait and key characters corresponding to the expression head portrait;
a session detection module, configured to detect whether a session message sent by the user in the communication session includes a message content matching the keyword;
the expression display module is used for acquiring an expression head portrait corresponding to the key character from the dynamic head portrait information of the user and displaying the expression head portrait corresponding to the key character in the conversation message if the fact that the conversation message sent by the user in the communication conversation contains the message content matched with the key character is detected; the expression display module includes:
the expression head portrait acquisition unit is used for acquiring an expression head portrait corresponding to the key character from the dynamic head portrait information of the user;
an activation state judgment unit, configured to detect whether the communication session is currently in an activated state when the session detection module detects that a session message sent by the user in the communication session includes the key character, and if the communication session is not currently in the activated state, wait until the communication session is detected to be currently in the activated state, trigger an animation effect display unit to display an animation effect of the emoticon corresponding to the key character in the session message;
and the animation effect display unit is used for displaying the animation effect of the expression head portrait corresponding to the key character in the conversation message after the activation state judgment unit detects that the communication conversation is currently in an activated state, wherein the animation effect of the expression head portrait corresponding to the key character comprises switching animation between a first expression head portrait of the user and the expression head portrait corresponding to the key character, and the first expression head portrait of the user is a default expression head portrait of the user or an expression head portrait in a previous conversation message sent by the user in the communication conversation.
10. The communication session apparatus of claim 9, further comprising:
and the dynamic expression setting module is used for acquiring a dynamic expression setting request submitted by the user, wherein the dynamic expression setting request comprises at least one expression head portrait set by the user and key characters corresponding to the expression head portrait, and adding the at least one expression head portrait set by the user and the key characters corresponding to the expression head portrait into the dynamic head portrait information of the user according to the dynamic expression setting request.
11. The communication session apparatus of claim 10, wherein the at least one emoticon set by the user comprises:
the image obtained by the user through photographing, the image selected by the user from the photo album or the image selected by the user from the expression library.
12. The communication session device according to any one of claims 9 to 11, wherein the emoticon comprises a custom decoration element added by the user for the corresponding emoticon.
13. The communication session apparatus of claim 9, wherein the emoticon display module further comprises:
and the dynamic image judging unit is used for judging whether the expression head portrait corresponding to the key character is a dynamic effect image or not, if so, the dynamic effect display unit is triggered to display the dynamic effect of the expression head portrait corresponding to the key character in the conversation message, and otherwise, the dynamic effect display unit is triggered to display the switching animation between the first expression head portrait of the user and the expression head portrait corresponding to the key character in the conversation message.
14. The communication session apparatus of claim 9 wherein the animation effects display unit is configured to:
and if the conversation message sent by the user in the communication conversation contains at least two key characters, displaying a switching animation between a first expression avatar of the user and expression avatars corresponding to the at least two key characters respectively according to the sequence of the at least two key characters appearing in the conversation message.
15. The communication session apparatus of claim 9, wherein the emoticon display module further comprises:
and the conversation message detection unit is used for detecting whether a new conversation message appears in the communication conversation, and if so, the animation effect display unit is triggered to stop displaying the animation effect of the expression head portrait corresponding to the key character.
16. The communication session device according to claim 15, wherein the animation effect display unit determines whether the animation effect of the emoticon corresponding to the key character has been displayed for one animation cycle after the session message detection unit detects that a new session message has appeared in the communication session, and stops displaying the animation effect of the emoticon corresponding to the key character if the animation effect of the emoticon corresponding to the key character has been displayed for one animation cycle.
17. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-8.
CN201410105693.0A 2014-03-20 2014-03-20 Communication session method and device Active CN104935497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410105693.0A CN104935497B (en) 2014-03-20 2014-03-20 Communication session method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410105693.0A CN104935497B (en) 2014-03-20 2014-03-20 Communication session method and device

Publications (2)

Publication Number Publication Date
CN104935497A CN104935497A (en) 2015-09-23
CN104935497B true CN104935497B (en) 2020-08-14

Family

ID=54122472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410105693.0A Active CN104935497B (en) 2014-03-20 2014-03-20 Communication session method and device

Country Status (1)

Country Link
CN (1) CN104935497B (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009042392A2 (en) 2007-09-24 2009-04-02 Apple Inc. Embedded authentication systems in an electronic device
US8600120B2 (en) 2008-01-03 2013-12-03 Apple Inc. Personal computing device control using face detection and recognition
US9002322B2 (en) 2011-09-29 2015-04-07 Apple Inc. Authentication with secondary approver
US9898642B2 (en) 2013-09-09 2018-02-20 Apple Inc. Device, method, and graphical user interface for manipulating user interfaces based on fingerprint sensor inputs
US10482461B2 (en) 2014-05-29 2019-11-19 Apple Inc. User interface for payments
CN106059890B (en) * 2016-05-09 2019-04-12 珠海市魅族科技有限公司 Information displaying method and system
DK179186B1 (en) 2016-05-19 2018-01-15 Apple Inc REMOTE AUTHORIZATION TO CONTINUE WITH AN ACTION
KR102403090B1 (en) * 2016-09-23 2022-05-30 애플 인크. Image data for enhanced user interactions
CN107038214A (en) * 2017-03-06 2017-08-11 北京小米移动软件有限公司 Expression information processing method and processing device
CN107104878B (en) * 2017-03-24 2020-07-03 北京小米移动软件有限公司 User state changing method and device
DK179948B1 (en) 2017-05-16 2019-10-22 Apple Inc. Recording and sending Emoji
DK180007B1 (en) 2017-05-16 2020-01-16 Apple Inc. RECORDING AND SENDING EMOJI
CN107181673A (en) * 2017-06-08 2017-09-19 腾讯科技(深圳)有限公司 Instant communicating method and device, computer equipment and storage medium
CN114827349A (en) * 2017-09-07 2022-07-29 华为技术有限公司 Head portrait display method and terminal
KR102389678B1 (en) 2017-09-09 2022-04-21 애플 인크. Implementation of biometric authentication
KR102185854B1 (en) 2017-09-09 2020-12-02 애플 인크. Implementation of biometric authentication
CN107728887A (en) * 2017-10-25 2018-02-23 陕西舜洋电子科技有限公司 The information interaction system of internet social networks
CN108092875B (en) * 2017-11-08 2021-06-01 网易乐得科技有限公司 Expression providing method, medium, device and computing equipment
CN110099159A (en) * 2018-01-29 2019-08-06 优酷网络技术(北京)有限公司 A kind of methods of exhibiting and client of chat interface
DK180212B1 (en) 2018-05-07 2020-08-19 Apple Inc USER INTERFACE FOR CREATING AVATAR
US11170085B2 (en) 2018-06-03 2021-11-09 Apple Inc. Implementation of biometric authentication
US11100349B2 (en) 2018-09-28 2021-08-24 Apple Inc. Audio assisted enrollment
US10860096B2 (en) 2018-09-28 2020-12-08 Apple Inc. Device control using gaze information
CN113965541B (en) * 2018-12-25 2023-06-02 创新先进技术有限公司 Conversation expression processing method and device
US11107261B2 (en) 2019-01-18 2021-08-31 Apple Inc. Virtual avatar animation based on facial feature movement
CN110417641B (en) * 2019-07-23 2022-05-17 上海盛付通电子支付服务有限公司 Method and equipment for sending session message
CN112925462B (en) * 2021-04-01 2022-08-09 腾讯科技(深圳)有限公司 Account head portrait updating method and related equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255827A (en) * 2011-06-16 2011-11-23 北京奥米特科技有限公司 Video chatting method, device and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005276103A (en) * 2004-03-26 2005-10-06 Seiko Epson Corp Listener emotion estimation apparatus and method, and program
CN101931621A (en) * 2010-06-07 2010-12-29 上海那里网络科技有限公司 Device and method for carrying out emotional communication in virtue of fictional character
CN101917512A (en) * 2010-07-26 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying head picture of contact person and mobile terminal
EP2426902A1 (en) * 2010-09-07 2012-03-07 Research In Motion Limited Dynamically manipulating an emoticon or avatar
CN102624773A (en) * 2011-10-18 2012-08-01 北京小米科技有限责任公司 Icon expression method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255827A (en) * 2011-06-16 2011-11-23 北京奥米特科技有限公司 Video chatting method, device and system

Also Published As

Publication number Publication date
CN104935497A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN104935497B (en) Communication session method and device
US11134046B2 (en) Apparatus and method for maintaining a message thread with opt-in permanence for entries
KR102255138B1 (en) Message processing method and device, storage medium, and computer device
KR102330517B1 (en) Systems and methods for ephemeral group chat
KR102021727B1 (en) Gallery of messages with a shared interest
CN106462241B (en) Dismissing notifications in response to presented notifications
US10425368B2 (en) Information processing method, user equipment, server, and computer-readable storage medium
US9742713B2 (en) Apparatus and method for maintaining a message thread with opt-in permanence for entries
US10021045B2 (en) Method, system, and storage medium for message processing
US20150281142A1 (en) Hot Topic Pushing Method and Apparatus
US10013148B2 (en) Method, system and computer storage medium for displaying microblog wall
US11169702B2 (en) Method and device for displaying information and storage medium
KR101649393B1 (en) Method and system for providing an advertisement based on messaging application
US9542365B1 (en) Methods for generating e-mail message interfaces
CN109462769A (en) Direct broadcasting room pendant display methods, device, terminal and computer-readable medium
US20180248830A1 (en) Methods for generating message notifications
CN107040457B (en) Instant messaging method and device
US20160154959A1 (en) A method and system for monitoring website defacements
US20160378271A1 (en) Method and a device for processing messages exchanged between users
CN108933947B (en) Bullet screen display method and device
US10291766B2 (en) Information processing method and apparatus
CN106911551B (en) Method and device for processing identification picture
KR20180003932A (en) Posting method of contents and posting apparatus
CN106888150A (en) Instant message treating method and apparatus
US10374988B2 (en) Activity beacon

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant