CN105376134A - Method and device for displaying communication message - Google Patents

Method and device for displaying communication message Download PDF

Info

Publication number
CN105376134A
CN105376134A CN201410423098.1A CN201410423098A CN105376134A CN 105376134 A CN105376134 A CN 105376134A CN 201410423098 A CN201410423098 A CN 201410423098A CN 105376134 A CN105376134 A CN 105376134A
Authority
CN
China
Prior art keywords
user
message
communication
type
communication information
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.)
Granted
Application number
CN201410423098.1A
Other languages
Chinese (zh)
Other versions
CN105376134B (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 Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410423098.1A priority Critical patent/CN105376134B/en
Publication of CN105376134A publication Critical patent/CN105376134A/en
Application granted granted Critical
Publication of CN105376134B publication Critical patent/CN105376134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a method and device for displaying a communication message, belonging to the field of communication. The method comprises a step of receiving a first communication message which carries message content and a first user identifier, wherein the type of the first communication message is a first type, a step of obtaining a second user which is in the same session of a first user according to the first user identifier, a step of converting the first communication message into a second communication message based on the message content if the terminal corresponding to the second user displays that the type of the communication message is a second type, wherein the type of the second communication message is the second type, a step of sending the second communication message to the terminal corresponding to the second user such that the terminal corresponding to the second user displays the second communication message. According to the method and the device, the communication message is displayed through the form of a full voice or a full text, and the operability of the message content is improved.

Description

The method of display communication message and device
Technical field
The present invention relates to the communications field, particularly a kind of method of display communication message and device.
Background technology
Along with the fast development of the communication technology, there is increasing immediate communication tool.This immediate communication tool not only can support man-to-man communication between two users, can also support the group communication between at least three users, and terminal corresponding to each user communicated all can show the communication information between the plurality of user.
At present, the process of display communication message can be: when first user is communicated by the form of voice, and server receives the speech message that terminal corresponding to first user sends, and carries message content and first user mark in this speech message.Server obtains the second user bound with this first user, and the terminal sending to the second user corresponding this speech message, make terminal corresponding to the second user show this speech message by the form of a voice strip.In like manner, when first user is communicated by the form of text, the terminal that the text message that terminal corresponding for first user sends can send to the second user corresponding by server, makes terminal corresponding to the second user in text box, show text message.
When multiple communicating between users, especially at least three communicating between users, if some user in these at least three users adopts the form of voice to communicate, and other user adopts the form of text to communicate, cause the phenomenon that there will be voice strip and text box Alternation Display during terminal demonstration communication information, and then need user to click voice strip to play communication information a little while, check the communication information in text box again a little while, if under the state that this terminal is in movement, not high according to the operability of said method obtaining communication message.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and device of display communication message.Described technical scheme is as follows:
On the one hand, provide a kind of method of display communication message, described method comprises:
Receive the first communication information, carry message content and first user mark in described first communication information, and the type of described first communication information is the first kind;
Identify according to described first user, obtain the second user being in same session with first user;
If the type of the terminal display communication message that described second user is corresponding is Second Type, based on described message content, described first communication information is converted to second communication message, the type of described second communication message is described Second Type;
The terminal sending to described second user corresponding described second communication message, second communication message described in the terminal demonstration making described second user corresponding.
On the other hand, provide a kind of device of display communication message, described device comprises:
First receiver module, for receiving the first communication information, carry message content and first user mark, and the type of described first communication information is the first kind in described first communication information;
First acquisition module, for identifying according to described first user, obtains the second user being in same session with first user;
First modular converter, if be Second Type for the type of terminal display communication message corresponding to described second user, based on described message content, described first communication information is converted to second communication message, the type of described second communication message is described Second Type;
First sending module, for the terminal sending to described second user corresponding described second communication message, second communication message described in the terminal demonstration making described second user corresponding.
In embodiments of the present invention, when two users carry out man-to-man communication, or at least three users form a communication group when communicating, communication information corresponding for the plurality of user all can be shown as the communication information of speech form, or be all shown as the communication information of textual form, avoid the phenomenon occurring that voice strip and text box alternately occur.And when the message content of user's obtaining communication message, this user to terminal can play the communication information of the plurality of sound-type continuously, or check the message content in text box continuously, simplify the mode obtaining message content, improve the efficiency obtaining message content.In addition, according to the method that the embodiment of the present invention provides, click voice strip continually without the need to user, under terminal is in mobile status, improve the operability obtaining message content.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the session interface schematic diagram of a kind of display communication message that the embodiment of the present invention provides;
Fig. 2 is the method flow diagram of a kind of display communication message that the embodiment of the present invention provides;
Fig. 3 is the method flow diagram of the another kind of display communication message that the embodiment of the present invention provides;
Fig. 4 is the session interface schematic diagram of the another kind of display communication message that the embodiment of the present invention provides;
Fig. 5 is the method flow diagram of another the display communication message that the embodiment of the present invention provides;
Fig. 6 is the session interface schematic diagram of another the display communication message that the embodiment of the present invention provides;
Fig. 7 is the apparatus structure schematic diagram of a kind of display communication message that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Before the embodiment of the present invention being carried out to detailed explanation explanation, first application scenarios of the present invention is introduced.When user is communicated by immediate communication tool, this user not only can adopt the form of voice to communicate, and the form of text can also be adopted to communicate.Such as, when four users form a communication group communicate time, if, first user adopts the form of text to communicate with third party, second user adopts the form of voice to communicate with the 4th user, now, session interface as shown in Figure 1 can be shown in the terminal that third party is corresponding.In Fig. 1, the communication information of first user and third party adopts the form of voice strip to show, the communication information of second user and the 4th user adopts the form of text box to show, and so, occurs the phenomenon of voice strip and text box Alternation Display.When third party wants the communication information knowing first user's transmission, the text box that first user is corresponding can be checked; When third party wants to know the communication information that second user and the 4th user send, need to click respectively second user and the 4th voice strip that user is corresponding to play communication information.Like this, reduce and obtain the efficiency of message content, and, when under the state that this terminal is in movement, above-mentioned click voice strip and check that the operability of text box is not high.So, embodiments provide a kind of method of display communication message, the method can simplify the mode obtaining message content, improves the efficiency obtaining message content, further, also message content can be got rapidly under the state being in movement in terminal.
Fig. 2 is the method flow diagram of a kind of display communication message that the embodiment of the present invention provides.See Fig. 2, the method comprises:
Step 201: receive the first communication information, carry message content and first user mark, and the type of the first communication information is the first kind in the first communication information.
Step 202: according to first user mark, obtain the second user being in same session with first user.
Step 203: if the type of terminal display communication message corresponding to the second user is Second Type, based on this message content, the first communication information is converted to second communication message, the type of second communication message is Second Type.
Step 204: the terminal sending to the second user corresponding second communication message, the terminal demonstration second communication message making the second user corresponding.
In embodiments of the present invention, when two users carry out man-to-man communication, or at least three users form a communication group when communicating, communication information corresponding for the plurality of user all can be shown as the communication information of speech form, or be all shown as the communication information of textual form, avoid the phenomenon occurring that voice strip and text box alternately occur.And when the message content of user's obtaining communication message, this user to terminal can play the communication information of the plurality of sound-type continuously, or check the message content in text box continuously, simplify the mode obtaining message content, improve the efficiency obtaining message content.In addition, according to the method that the embodiment of the present invention provides, click voice strip continually without the need to user, under terminal is in mobile status, improve the operability obtaining message content.
Alternatively, when the first kind is text type, when Second Type is sound-type, based on this message content, the first communication information should be converted to second communication message, comprise:
According to first user mark, search corresponding speech parameter from the user ID stored with the corresponding relation between speech parameter, this speech parameter comprises intensity, tone color and frequency;
If find corresponding speech parameter, then based on this speech parameter and this message content, the first communication information is converted to second communication message.
Alternatively, according to first user mark, from store user ID with search corresponding speech parameter the corresponding relation between speech parameter before, also comprise:
When receiving the third communication message that terminal corresponding to first user sends, identify the speech parameter of third communication message, the type of third communication message is Second Type;
First user mark and this speech parameter are stored in the corresponding relation between this user ID and speech parameter.
Alternatively, the method also comprises:
If do not find corresponding speech parameter, obtain the speech parameter preset;
The speech parameter preset based on this and this message content, be converted to second communication message by the first communication information.
Alternatively, the method also comprises:
Receive transition request message, carry the 3rd user ID in this transition request message, the 3rd user is the arbitrary user in this first user and the second user;
According to the 3rd user ID, from the communication information of the terminal sending to the 3rd user corresponding, select the 4th communication information, the type of the 4th communication information is the first kind;
The message conversion that communicates the 4th is the 5th communication information, and the type of the 5th communication information is Second Type;
The terminal sending to the 3rd user corresponding 5th communication information, makes terminal corresponding to the 3rd user that the 4th communication information of display is replaced with the 5th communication information.
Above-mentioned all alternatives, all can form optional embodiment of the present invention according to combining arbitrarily, the present invention repeats no longer one by one to this.
Owing to comprising two kinds of different implementations when display communication message, the first implementation is that form communication information being converted to full voice shows, and the second implementation is communication information is converted to this form in full to show.Hereafter by two different embodiments, these two kinds of implementations are described in detail.
Fig. 3 is the method flow diagram of a kind of display communication message that the embodiment of the present invention provides.The embodiment of the present invention the first implementation to display communication message is set forth, that is, in inventive embodiments, the first kind is text type, and Second Type is sound-type.See Fig. 3, the method comprises:
Step 301: when the terminal that first user is corresponding receives the message content of first user input, send the first communication information to server, carry message content and first user mark, and the type of the first communication information is text type in the first communication information.
Particularly, when the terminal that first user is corresponding receives the message content that first user inputted by the form of text, according to this message content and first user mark, generate the first communication information, and the first communication information is sent to server.
Wherein, in embodiments of the present invention, when first user adopts the form of text to input this message content, the terminal that first user is corresponding can detect the text message that first user inputs in text box, and the text message of detection is defined as this message content.
In addition, when the terminal that first user is corresponding receives the message content that first user inputted by the form of text, the terminal that first user is corresponding can also show this message content.If the type of the terminal display communication message that first user is corresponding is sound-type, the terminal that then first user is corresponding can based on this message content, first communication information is converted to second communication message, and shows second communication message, the type of second communication message is sound-type.
Due to the communication information that second communication message is speech form, so, when the terminal demonstration second communication message that first user is corresponding, the form display second communication message of voice strip can be adopted.
Step 302: when server receives the first communication information, according to first user mark, obtains the second user being in same session with first user.
Wherein, in embodiments of the present invention, can be carry out man-to-man communication between two users, can also be carry out group communication between at least three users.When carrying out man-to-man communication between two users, can also carry the second user ID in the first communication information that the terminal to server that first user is corresponding sends, now, user corresponding for the second user ID is defined as the second user by server.When carrying out group communication between at least three users, this group identification can also be carried in the first communication information that the terminal to server that first user is corresponding sends, now, server, according to first user mark and this group identification, can obtain the second user being in same session with first user.
Wherein, server is according to first user mark and this group identification, obtaining the concrete operations being in the second user of same session with first user can be: server, according to this group identification, obtains corresponding user ID from the group identification stored with the corresponding relation between user ID.User ID in the user ID of acquisition except first user mark is defined as the second user ID, user corresponding for the second user ID is defined as the second user being in same session with first user.
Such as, first user is designated ID1, group identification is GroupID1, and server, according to first user mark ID1 and this group identification GroupID1, is ID1, ID2, DI3 and ID4 from group identification as shown in table 1 below with obtaining corresponding user ID the corresponding relation between user ID.The user ID ID2 of acquisition, DI3 and ID4 are defined as the second user ID, and the user that the second user ID ID2, DI3 and ID4 is corresponding is respectively defined as the second user being in same session with first user.
Table 1
It should be added that, in embodiments of the present invention, be only described for the corresponding relation between the group identification in above-mentioned table 1 and user ID, may can also be other form in practical application, the embodiment of the present invention be not specifically limited this.
Step 303: if the type of terminal display communication message corresponding to the second user is sound-type, based on this message content, the first communication information is converted to second communication message, the type of second communication message is sound-type.
Particularly, if the type of the terminal display communication message that the second user is corresponding is sound-type, then according to first user mark, search corresponding speech parameter from the user ID stored with the corresponding relation between speech parameter, this speech parameter comprises intensity, tone color and frequency.If find corresponding speech parameter, then based on this speech parameter and this message content, the first communication information is converted to second communication message.
Such as, server identifies ID1 according to first user, finds corresponding speech parameter from user ID as shown in table 2 below with the corresponding relation between speech parameter, and intensity is 100, and tone color is hoarse, and frequency is 200Hz.First communication information, based on this speech parameter and this message content, is converted to second communication message by server.
Table 2
It should be added that, in embodiments of the present invention, be only described for the corresponding relation between the user ID in above-mentioned table 2 and speech parameter, may can also be other form in practical application, the embodiment of the present invention be not specifically limited this.
Further, if do not find corresponding speech parameter, then default speech parameter is obtained.Based on the speech parameter preset and this message content, the first communication information is converted to second communication message.
It should be added that, when adopting the form of voice to communicate before first user in this immediate communication tool, this server can record the speech parameter of first user.Be specially: the terminal to server that first user is corresponding sends third communication message, carry message content and first user mark in third communication message, and the type of third communication message be sound-type.When server receives this third communication message, the speech parameter of this third communication message of server identification.First user mark and this speech parameter are stored in the corresponding relation between user ID and speech parameter.In addition, when not adopting the form of voice to communicate before first user in this JICQ, this server can not record the speech parameter of first user, that is to say, can not comprise the record that first user mark is corresponding in the corresponding relation between user ID with speech parameter.Now, server identifies according to first user, from the user ID stored with when searching corresponding speech parameter the corresponding relation between speech parameter, would not find corresponding speech parameter.
Further, before execution step 303, server according to the second user ID, can also search corresponding display type from the user ID stored with the corresponding relation between display type.If find corresponding display type and the display type searched is sound-type, then determine that the type of the terminal display communication message that the second user is corresponding is sound-type.
But whether can find display type corresponding to the second user from the corresponding relation between user ID with display type is that the speech conversion request message sent according to user determines.Be specially: when the second user wants the communication information of display to be converted to the form of full voice, terminal corresponding to the second user can send speech conversion request message to server, carries the second user ID in this speech conversion request message.When server receives this speech conversion request message, the second user ID and sound-type are stored in the corresponding relation between user ID and display type by server.When terminal corresponding to the second user according to said method to after server sends speech conversion request message, server just can find display type corresponding to the second user ID from the corresponding relation between user ID with display type.
Further, if when terminal corresponding to the second user does not send speech conversion request message according to said method to server, server can not find display type corresponding to the second user ID from the corresponding relation between user ID with display type.Now, the first communication information is not converted to second communication message by server, the terminal directly sending to the second user corresponding first communication information, terminal demonstration first communication information making the second user corresponding.Now, the phenomenon of voice strip and text box Alternation Display may just be there will be.
It should be added that, a transition request message that maintenance customer sends the last time in corresponding relation between user ID and display type, that is, when user's the last time transmission is speech conversion request, then the display type stored in the corresponding relation between user ID and display type is sound-type.
Step 304: the terminal sending to the second user corresponding second communication message, the terminal demonstration second communication message making the second user corresponding.
Wherein, when server receives the first communication information of terminal transmission corresponding to first user, server adds timestamp to the first communication information.When the first communication information is converted to second communication message by server, and during the terminal sending to the second user corresponding second communication message, the terminal that this timestamp also sends to the second user corresponding by server.When the terminal that the second user is corresponding receives second communication message and this timestamp, according to this timestamp display second communication message.
Wherein, timestamp can send the time of the first communication information for the terminal that first user is corresponding, also can be the time that server receives the first communication information, the embodiment of the present invention be not specifically limited this.
In addition, mention when the second user wants the form display communication message by full voice in step 303, terminal corresponding to the second user can send speech conversion request message to server.In embodiments of the present invention, when first user wants the form display communication message by full voice, the terminal that first user is corresponding also can send speech conversion request message to server.In this case facilitate description, can draw the 3rd user, the 3rd user is the arbitrary user in first user and the second user.If terminal corresponding to the 3rd user is not send speech conversion request message when session start to server, but to the speech conversion request that server sends in conversation procedure, that is to say, just send speech conversion request to server when the session carrying out a period of time, in this speech conversion request, carry the 3rd user ID.Now, when server receives this speech conversion request, server is according to the 3rd user ID, and from the communication information of the terminal sending to the 3rd user corresponding, select the 4th communication information, the type of the 4th communication information is text type.The message conversion that communicates the 4th is the 5th communication information, and the type of the 5th communication information is sound-type.The terminal that 5th communication information sends to the 3rd user corresponding by server.When the terminal that the 3rd user is corresponding receives the 5th communication information, the 4th communication information of display is replaced with the 5th communication information by terminal corresponding to the 3rd user.
Wherein, because server has sent to the 4th communication information of terminal corresponding to the 3rd user to comprise multiple messages, now, when the terminal that the 5th communication information sends to the 3rd user corresponding by server, the terminal also sending to the 3rd user corresponding timestamp corresponding for 5th communication information.When the terminal that the 3rd user is corresponding receives the 5th communication information and timestamp corresponding to the 5th communication information, the timestamp that terminal corresponding to the 3rd user is corresponding according to the 5th communication information, replaces with the 5th corresponding communication information by the 4th communication information of display.
Wherein, terminal corresponding to the 3rd user can according to the inverted order of timestamp corresponding to the 5th communication information, 4th communication information of display is replaced with the 5th corresponding communication information, according to the order of timestamp corresponding to the 5th communication information, the 4th communication information of display can also be replaced with the 5th corresponding communication information.The embodiment of the present invention is not specifically limited this.
Such as, when by said method display communication message, the session interface shown in Fig. 4 can be changed in the session interface shown in Fig. 1.
In embodiments of the present invention, when two users carry out man-to-man communication, or at least three users form a communication group when communicating, communication information corresponding for the plurality of user all can be shown as the communication information of speech form, avoid the phenomenon occurring that voice strip and text box alternately occur.And when the message content of user's obtaining communication message, this user to terminal can play the communication information of the plurality of sound-type continuously, simplify the mode obtaining message content, improve the efficiency obtaining message content.In addition, according to the method that the embodiment of the present invention provides, click voice strip continually without the need to user, under terminal is in mobile status, improve the operability obtaining message content.
Fig. 5 is the method flow diagram of a kind of display communication message that the embodiment of the present invention provides.The second implementation of the embodiment of the present invention to display communication message is set forth, that is, in inventive embodiments, the first kind is sound-type, and Second Type is text type.See Fig. 5, the method comprises:
Step 501: when the terminal that first user is corresponding receives the message content of first user input, send the first communication information to server, carry message content and first user mark, and the type of the first communication information is sound-type in the first communication information.
Particularly, when the terminal that first user is corresponding receives the message content that first user inputted by the form of voice, according to this message content and first user mark, generate the first communication information, and the first communication information is sent to server.
Wherein, in embodiments of the present invention, when first user adopts the form of voice to input this message content, the terminal that first user is corresponding can be recorded to the voice of first user input, obtains this message content.
In addition, when the terminal that first user is corresponding receives the message content that first user inputted by the form of voice, the terminal that first user is corresponding can also show this message content.If the type of the terminal display communication message that first user is corresponding is text type, the terminal that then first user is corresponding can based on this message content, first communication information is converted to second communication message, and shows second communication message, the type of second communication message is text type.
Due to the communication information that second communication message is textual form, so, when the terminal demonstration second communication message that first user is corresponding, this second communication message can be shown by the form of text box.
Step 502: when server receives the first communication information, according to first user mark, obtains the second user being in same session with first user.
Wherein, in embodiments of the present invention, can be carry out man-to-man communication between two users, can also be carry out group communication between at least three users.When carrying out man-to-man communication between two users, can also carry the second user ID in the first communication information that the terminal to server that first user is corresponding sends, now, user corresponding for the second user ID is defined as the second user by server.When carrying out group communication between at least three users, this group identification can also be carried in the first communication information that the terminal to server that first user is corresponding sends, now, server, according to first user mark and this group identification, can obtain the second user being in same session with first user.
Wherein, server is according to first user mark and this group identification, obtaining the concrete operations being in the second user of same session with first user can be: server, according to this group identification, obtains corresponding user ID from the group identification stored with the corresponding relation between user ID.User ID in the user ID of acquisition except first user mark is defined as the second user ID, user corresponding for the second user ID is defined as the second user being in same session with first user.
Such as, first user is designated ID1, group identification is GroupID1, and server, according to first user mark ID1 and this group identification GroupID1, is ID1, ID2, DI3 and ID4 from group identification as shown in table 1 below with obtaining corresponding user ID the corresponding relation between user ID.The user ID ID2 of acquisition, DI3 and ID4 are defined as the second user ID, and the user that the second user ID ID2, DI3 and ID4 is corresponding is respectively defined as the second user being in same session with first user.
Table 1
It should be added that, in embodiments of the present invention, be only described for the corresponding relation between the group identification in above-mentioned table 1 and user ID, may can also be other form in practical application, the embodiment of the present invention be not specifically limited this.
Step 503: if the type of terminal display communication message corresponding to the second user is text type, based on this message content, the first communication information is converted to second communication message, the type of second communication message is text type.
Particularly, if the type of terminal display communication message corresponding to the second user is text type, then identify this message content, and the message content of speech form is converted to textual form, and then the first communication information is converted to second communication message.
Further, before execution step 503, server according to the second user ID, can also search corresponding display type from the user ID stored with the corresponding relation between display type.If find corresponding display type and the display type searched is text type, then determine that the type of the terminal display communication message that the second user is corresponding is text type.
But whether can find display type corresponding to the second user from the corresponding relation between user ID with display type is that the text-converted request message sent according to user determines.Be specially: when the second user wants the communication information of display to be converted to this form in full, terminal corresponding to the second user can send text-converted request message to server, carries the second user ID in text transition request message.When server receives text transition request message, the second user ID and text type are stored in the corresponding relation between user ID and display type by server.When terminal corresponding to the second user according to said method to after server sends text-converted request message, server just can find display type corresponding to the second user ID from the corresponding relation between user ID with display type.
Further, if when terminal corresponding to the second user does not send text-converted request message according to said method to server, server can not find display type corresponding to the second user ID from the corresponding relation between user ID with display type.Now, the first communication information is not converted to second communication message by server, the terminal directly sending to the second user corresponding first communication information, terminal demonstration first communication information making the second user corresponding.Now, the phenomenon of voice strip and text box Alternation Display may just be there will be.
It should be added that, a transition request message that maintenance customer sends the last time in corresponding relation between user ID and display type, that is, when user's the last time transmission is text-converted request, then the display type stored in the corresponding relation between user ID and display type is text type.
Step 504: the terminal sending to the second user corresponding second communication message, the terminal demonstration second communication message making the second user corresponding.
Wherein, when server receives the first communication information of terminal transmission corresponding to first user, server adds timestamp to the first communication information.When the first communication information is converted to second communication message by server, and during the terminal sending to the second user corresponding second communication message, the terminal that this timestamp also sends to the second user corresponding by server.When the terminal that the second user is corresponding receives second communication message and this timestamp, according to this timestamp display second communication message.
Wherein, timestamp can send the time of the first communication information for the terminal that first user is corresponding, also can be the time that server receives the first communication information, the embodiment of the present invention be not specifically limited this.
In addition, mention when the second user wants by full this form display communication message in step 503, terminal corresponding to the second user can send text-converted request message to server.In embodiments of the present invention, when first user wants the form display communication message by full text basis, the terminal that first user is corresponding also can send text-converted request message to server.In this case facilitate description, can draw the 3rd user, the 3rd user is the arbitrary user in first user and the second user.If terminal corresponding to the 3rd user is not send text-converted request message when session start to server, but to the text-converted request that server sends in conversation procedure, that is to say, just send text-converted request to server when the session carrying out a period of time, in text convert requests, carry the 3rd user ID.Now, when server receives text convert requests, server is according to the 3rd user ID, and from the communication information of the terminal sending to the 3rd user corresponding, select the 4th communication information, the type of the 4th communication information is sound-type.The message conversion that communicates the 4th is the 5th communication information, and the type of the 5th communication information is text type.The terminal that 5th communication information sends to the 3rd user corresponding by server.When the terminal that the 3rd user is corresponding receives the 5th communication information, the 4th communication information of display is replaced with the 5th communication information by terminal corresponding to the 3rd user.
Wherein, because server has sent to the 4th communication information of terminal corresponding to the 3rd user to comprise multiple messages, now, when the terminal that the 5th communication information sends to the 3rd user corresponding by server, the terminal also sending to the 3rd user corresponding timestamp corresponding for 5th communication information.When the terminal that the 3rd user is corresponding receives the 5th communication information and timestamp corresponding to the 5th communication information, the timestamp that terminal corresponding to the 3rd user is corresponding according to the 5th communication information, replaces with the 5th corresponding communication information by the 4th communication information of display.
Wherein, terminal corresponding to the 3rd user can according to the inverted order of timestamp corresponding to the 5th communication information, 4th communication information of display is replaced with the 5th corresponding communication information, according to the order of timestamp corresponding to the 5th communication information, the 4th communication information of display can also be replaced with the 5th corresponding communication information.The embodiment of the present invention is not specifically limited this.
Such as, when by said method display communication message, the session interface shown in Fig. 6 can be changed in the session interface shown in Fig. 1.
In embodiments of the present invention, when two users carry out man-to-man communication, or at least three users form a communication group when communicating, communication information corresponding for the plurality of user all can be shown as the communication information of textual form, avoid the phenomenon occurring that voice strip and text box alternately occur.And when the message content of user's obtaining communication message, user, without the need to clicking voice strip, can directly check the message content shown in text box, simplifying the mode obtaining message content, improve the efficiency obtaining message content.In addition, according to the method that the embodiment of the present invention provides, click voice strip without the need to user, under terminal is in mobile status, improve the operability obtaining message content.
Fig. 7 is the apparatus structure schematic diagram of a kind of display communication message that the embodiment of the present invention provides.See Fig. 7, this device comprises: the first receiver module 701, first acquisition module 702, first modular converter 703 and the first sending module 704;
First receiver module 701, for receiving the first communication information, carry message content and first user mark, and the type of the first communication information is the first kind in the first communication information;
First acquisition module 702, for according to first user mark, obtains the second user being in same session with first user;
First modular converter 703, if be Second Type for the type of terminal display communication message corresponding to the second user, Effect-based operation content, is converted to second communication message by the first communication information, and the type of second communication message is Second Type;
First sending module 704, for the terminal sending to the second user corresponding second communication message, the terminal demonstration second communication message making the second user corresponding.
Alternatively, when the first kind is text type, when Second Type is sound-type, the first modular converter comprises:
Search unit, if be Second Type for the type of terminal display communication message corresponding to the second user, according to first user mark, search corresponding speech parameter from the user ID stored with the corresponding relation between speech parameter, speech parameter comprises intensity, tone color and frequency;
Converting unit, if for finding corresponding speech parameter, then based on this speech parameter and this message content, be converted to second communication message by the first communication information.
Alternatively, the first modular converter 703 also comprises:
Recognition unit, for when receiving the third communication message that terminal corresponding to first user sends, identify the speech parameter of third communication message, the type of third communication message is Second Type;
Memory cell, for being stored in first user mark and this speech parameter in the corresponding relation between user ID and speech parameter.
Alternatively, this device also comprises:
Second acquisition module, if for not finding corresponding speech parameter, obtain the speech parameter preset;
Second modular converter, for based on the speech parameter preset and this message content, is converted to second communication message by the first communication information.
Alternatively, this device also comprises:
Second receiver module, for receiving transition request message, carries the 3rd user ID in this transition request message, the 3rd user is the arbitrary user in first user and the second user;
Select module, for according to the 3rd user ID, from the communication information of the terminal sending to the 3rd user corresponding, select the 4th communication information, the type of the 4th communication information is the first kind;
3rd modular converter, for being the 5th communication information by the 4th communication message conversion, the type of the 5th communication information is Second Type;
Second sending module, for the terminal sending to the 3rd user corresponding 5th communication information, makes terminal corresponding to the 3rd user that the 4th communication information of display is replaced with the 5th communication information.
In embodiments of the present invention, when two users carry out man-to-man communication, or at least three users form a communication group when communicating, communication information corresponding for the plurality of user all can be shown as the communication information of speech form, or be all shown as the communication information of textual form, avoid the phenomenon occurring that voice strip and text box alternately occur.And when the message content of user's obtaining communication message, this user to terminal can play the communication information of the plurality of sound-type continuously, or check the message content in text box continuously, simplify the mode obtaining message content, improve the efficiency obtaining message content.In addition, according to the method that the embodiment of the present invention provides, click voice strip continually without the need to user, under terminal is in mobile status, improve the operability obtaining message content.
It should be noted that: the device of the display communication message that above-described embodiment provides is when display communication message, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the display communication message that above-described embodiment provides and the embodiment of the method for display communication message belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for display communication message, is characterized in that, described method comprises:
Receive the first communication information, carry message content and first user mark in described first communication information, and the type of described first communication information is the first kind;
Identify according to described first user, obtain the second user being in same session with first user;
If the type of the terminal display communication message that described second user is corresponding is Second Type, based on described message content, described first communication information is converted to second communication message, the type of described second communication message is described Second Type;
The terminal sending to described second user corresponding described second communication message, second communication message described in the terminal demonstration making described second user corresponding.
2. the method for claim 1, is characterized in that, when the first kind is text type, when described Second Type is sound-type, described based on described message content, described first communication information is converted to second communication message, comprises:
Identify according to described first user, search corresponding speech parameter from the user ID stored with the corresponding relation between speech parameter, described speech parameter comprises intensity, tone color and frequency;
If find corresponding speech parameter, then based on described speech parameter and described message content, described first communication information is converted to second communication message.
3. method as claimed in claim 2, is characterized in that, describedly identifies according to described first user, from the user ID stored with search corresponding speech parameter the corresponding relation between speech parameter before, also comprise:
When receiving the third communication message that terminal corresponding to described first user sends, identify the speech parameter of described third communication message, the type of described third communication message is described Second Type;
Described first user mark and described speech parameter are stored in the corresponding relation between described user ID and speech parameter.
4. method as claimed in claim 2, it is characterized in that, described method also comprises:
If do not find corresponding speech parameter, obtain the speech parameter preset;
Based on described default speech parameter and described message content, described first communication information is converted to second communication message.
5. the method as described in claim as arbitrary in claim 1-4, is characterized in that, described method also comprises:
Receive transition request message, carry the 3rd user ID in described transition request message, the 3rd user is the arbitrary user in described first user and described second user;
According to described 3rd user ID, from the communication information of the terminal sending to described 3rd user corresponding, select the 4th communication information, the type of described 4th communication information is the described first kind;
The message conversion that communicates the described 4th is the 5th communication information, and the type of described 5th communication information is described Second Type;
The terminal sending to described 3rd user corresponding described 5th communication information, makes terminal corresponding to described 3rd user that described 4th communication information of display is replaced with described 5th communication information.
6. a device for display communication message, is characterized in that, described device comprises:
First receiver module, for receiving the first communication information, carry message content and first user mark, and the type of described first communication information is the first kind in described first communication information;
First acquisition module, for identifying according to described first user, obtains the second user being in same session with first user;
First modular converter, if be Second Type for the type of terminal display communication message corresponding to described second user, based on described message content, described first communication information is converted to second communication message, the type of described second communication message is described Second Type;
First sending module, for the terminal sending to described second user corresponding described second communication message, second communication message described in the terminal demonstration making described second user corresponding.
7. device as claimed in claim 6, it is characterized in that, when the first kind is text type, when described Second Type is sound-type, described first modular converter comprises:
Search unit, if be Second Type for the type of terminal display communication message corresponding to described second user, identify according to described first user, search corresponding speech parameter from the user ID stored with the corresponding relation between speech parameter, described speech parameter comprises intensity, tone color and frequency;
Converting unit, if for finding corresponding speech parameter, then based on described speech parameter and described message content, be converted to second communication message by described first communication information.
8. device as claimed in claim 7, it is characterized in that, described first modular converter also comprises:
Recognition unit, for when receiving the third communication message that terminal corresponding to described first user sends, identify the speech parameter of described third communication message, the type of described third communication message is described Second Type;
Memory cell, for being stored in described first user mark and described speech parameter in the corresponding relation between described user ID and speech parameter.
9. device as claimed in claim 7, it is characterized in that, described device also comprises:
Second acquisition module, if for not finding corresponding speech parameter, obtain the speech parameter preset;
Second modular converter, for based on described default speech parameter and described message content, is converted to second communication message by described first communication information.
10. the device as described in claim as arbitrary in claim 6-9, is characterized in that, described device also comprises:
Second receiver module, for receiving transition request message, carries the 3rd user ID in described transition request message, the 3rd user is the arbitrary user in described first user and described second user;
Select module, for according to described 3rd user ID, from the communication information of the terminal sending to described 3rd user corresponding, select the 4th communication information, the type of described 4th communication information is the described first kind;
3rd modular converter, for being the 5th communication information by described 4th communication message conversion, the type of described 5th communication information is described Second Type;
Second sending module, for the terminal sending to described 3rd user corresponding described 5th communication information, makes terminal corresponding to described 3rd user that described 4th communication information of display is replaced with described 5th communication information.
CN201410423098.1A 2014-08-26 2014-08-26 Method and device for displaying communication message Active CN105376134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410423098.1A CN105376134B (en) 2014-08-26 2014-08-26 Method and device for displaying communication message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410423098.1A CN105376134B (en) 2014-08-26 2014-08-26 Method and device for displaying communication message

Publications (2)

Publication Number Publication Date
CN105376134A true CN105376134A (en) 2016-03-02
CN105376134B CN105376134B (en) 2020-04-03

Family

ID=55377956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410423098.1A Active CN105376134B (en) 2014-08-26 2014-08-26 Method and device for displaying communication message

Country Status (1)

Country Link
CN (1) CN105376134B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789602A (en) * 2017-03-15 2017-05-31 广东欧珀移动通信有限公司 Speech play control method, terminal and mobile terminal
CN106919540A (en) * 2016-08-02 2017-07-04 阿里巴巴集团控股有限公司 The display methods of text, system and device
WO2020051881A1 (en) * 2018-09-14 2020-03-19 深圳市欢太科技有限公司 Information prompt method and related product
WO2020133783A1 (en) * 2018-12-29 2020-07-02 北京金山安全软件有限公司 Monitoring method and apparatus based on wearable device, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079836A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 An instant communication method and system based on asymmetric media
CN101815257A (en) * 2009-02-20 2010-08-25 华为软件技术有限公司 Method, device and system of text message voice communication and terminal equipment
CN103095557A (en) * 2012-12-18 2013-05-08 上海量明科技发展有限公司 Instant messaging information voice output method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079836A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 An instant communication method and system based on asymmetric media
CN101815257A (en) * 2009-02-20 2010-08-25 华为软件技术有限公司 Method, device and system of text message voice communication and terminal equipment
CN103095557A (en) * 2012-12-18 2013-05-08 上海量明科技发展有限公司 Instant messaging information voice output method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919540A (en) * 2016-08-02 2017-07-04 阿里巴巴集团控股有限公司 The display methods of text, system and device
CN106789602A (en) * 2017-03-15 2017-05-31 广东欧珀移动通信有限公司 Speech play control method, terminal and mobile terminal
CN106789602B (en) * 2017-03-15 2019-09-06 Oppo广东移动通信有限公司 Voice control method for playing back, terminal and mobile terminal
WO2020051881A1 (en) * 2018-09-14 2020-03-19 深圳市欢太科技有限公司 Information prompt method and related product
CN112425144A (en) * 2018-09-14 2021-02-26 深圳市欢太科技有限公司 Information prompting method and related product
CN112425144B (en) * 2018-09-14 2021-11-30 深圳市欢太科技有限公司 Information prompting method and related product
WO2020133783A1 (en) * 2018-12-29 2020-07-02 北京金山安全软件有限公司 Monitoring method and apparatus based on wearable device, and electronic device

Also Published As

Publication number Publication date
CN105376134B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN104754536A (en) Method and system for realizing communication between different languages
CN105376134A (en) Method and device for displaying communication message
CN103475572A (en) Method, device and system for sending multiple pictures in instant messaging application
CN104144108A (en) Information response method, device and system
CN104158719A (en) Information processing method and system, IM application device, and terminal
CN102938807A (en) Method and device for recommending contact person and message
CN108920136A (en) A kind of operating system creation method, system and relevant apparatus based on container
CN103297582B (en) A kind of method that voice communication content is handled and electronic equipment
CN104331229A (en) Information processing method and electronic equipment
CN103746904A (en) Information interaction method and device
CN105095161B (en) Method and device for displaying rich text information
EP2814211A1 (en) Method and device for displaying conversation information
CN103200296B (en) Method for information display, device and terminal
CN103795856A (en) Information processing method and electronic device
CN102546903B (en) Method and equipment for displaying instant message on mobile terminal
CN104239371A (en) Instruction information processing method and device
CN103166831B (en) Data processing method, terminal and system
CN111131006B (en) Information processing method
CN101662300B (en) System and method for converting picture of mobile telephone
CN109600510A (en) A kind of keyword method for pushing, device and storage medium
KR20110046112A (en) System and method for multi-number supporting
CN104023150A (en) Information processing method and electronic device
CN106254947B (en) The extended method and device of process resource
CN103813034A (en) Service realization method, terminal and service server
CN103747150A (en) Information processing method and electronic equipment

Legal Events

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