CN113079086B - Message transmission method, message transmission device, electronic device, and storage medium - Google Patents

Message transmission method, message transmission device, electronic device, and storage medium Download PDF

Info

Publication number
CN113079086B
CN113079086B CN202110370298.5A CN202110370298A CN113079086B CN 113079086 B CN113079086 B CN 113079086B CN 202110370298 A CN202110370298 A CN 202110370298A CN 113079086 B CN113079086 B CN 113079086B
Authority
CN
China
Prior art keywords
message
type
voice
target
text
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
CN202110370298.5A
Other languages
Chinese (zh)
Other versions
CN113079086A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110370298.5A priority Critical patent/CN113079086B/en
Publication of CN113079086A publication Critical patent/CN113079086A/en
Priority to PCT/CN2022/085136 priority patent/WO2022213943A1/en
Application granted granted Critical
Publication of CN113079086B publication Critical patent/CN113079086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/226Delivery according to priorities

Abstract

The application discloses a message sending method, a message sending device, electronic equipment and a storage medium, which belong to the technical field of communication, wherein the message sending method comprises the following steps: receiving a first input of a user on a target message, wherein the first input is a forwarding operation pointing to a target object; responding to the first input, and sending a first message corresponding to the target message to the target object according to the communication record of the user and the target object; the type of the first message is associated with the type of the message contained in the communication record, and the first message is a voice message or a text message.

Description

Message transmission method, message transmission device, electronic device, and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a message sending method, a message sending device, electronic equipment and a storage medium.
Background
When the user uses the social software to chat with the target object, the user can select historical messages or chat messages with other objects to forward.
When forwarding a message, because the requirements of users for sending the message are different, the message can be sent only after the users operate and process the original message, and the use experience of the users is affected.
How to reduce the operation steps of the user on the original message when forwarding the message becomes a problem to be solved.
Disclosure of Invention
The embodiment of the application aims to provide a message sending method, a message generating device, electronic equipment and a storage medium, when a user forwards a target message, the target message can be forwarded according to a communication record stored in the electronic equipment, and the type of the forwarded target message is associated with the type of the message in the communication record, so that the condition that the type of the forwarded target message accords with the type of the message in the communication record after the user only needs to forward the target message is realized, other operations on the target message by the user are not needed, and the problem that how to reduce the operation steps of the user on the original message when forwarding the message is needed is solved.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for sending a message, including:
receiving a first input of a user on a target message, wherein the first input is a forwarding operation pointing to a target object;
responding to the first input, and sending a first message corresponding to the target message to the target object according to the communication record of the user and the target object;
The type of the first message is associated with the type of the message contained in the communication record, and the first message is a voice message or a text message.
In a second aspect, an embodiment of the present application provides a message sending apparatus, including: the receiving module is used for receiving a first input of a target message from a user, wherein the first input is a forwarding operation pointing to a target object; and the sending module is used for responding to the first input and sending a first message corresponding to the target message to the target object according to the communication record of the user and the target object.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the messaging method as provided in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of a messaging method as provided in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the provided chip includes a processor and a communication interface, where the provided communication interface is coupled to a provided processor, and where the provided processor is configured to execute a program or instructions to implement the steps of the messaging method as provided in the first aspect.
In the embodiment of the application, after receiving the first input of the target message from the user, the electronic device determines that the first input points to the target object as the forwarding instruction. And acquiring a communication record between the user and the target object, and converting the first message into a corresponding message type according to the historical communication record between the user and the target object. And forwarding the first message to the target object after converting the message type to finish forwarding the target message to the target object. The method and the device realize automatic type conversion of the target message required to be forwarded by the user, and the user does not need to manually convert the type of the target message, so that the user can directly send the message associated with the communication record to the target object after only sending the message forwarding instruction, and the operation steps of the user when forwarding the message are reduced.
Drawings
FIG. 1 illustrates one of the flow charts of a messaging method according to an embodiment of the present application;
FIG. 2 illustrates one of the display interfaces of an electronic device according to an embodiment of the present application;
FIG. 3 illustrates a second display interface of an electronic device according to an embodiment of the present application;
FIG. 4 illustrates a second flow chart of a messaging method in accordance with an embodiment of the present application;
FIG. 5 illustrates a third flowchart of a messaging method in accordance with an embodiment of the present application;
FIG. 6 illustrates a fourth flow chart of a messaging method according to an embodiment of the present application;
FIG. 7 illustrates a third display interface of an electronic device according to an embodiment of the present application;
fig. 8 shows one of the block diagrams of the message transmitting apparatus according to the embodiment of the present application;
fig. 9 shows a second block diagram of the message transmitting apparatus according to the embodiment of the present application;
fig. 10 shows a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The message sending method, the message sending device, the electronic device and the storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
In some embodiments of the present application, fig. 1 shows one of flowcharts of a message sending method according to an embodiment of the present application, specifically, as shown in fig. 1, the message sending method specifically includes the following steps:
step 102, receiving a first input of a target message from a user, wherein the first input is a forwarding operation pointing to a target object;
it can be understood that the target message is a message to be forwarded, the first input may be a forwarding input of the target message, and the first input may also be a screen capturing input of an interface where the target message is located.
In particular, in case the first input is a forwarding input for the target message, the first input further comprises a selection input for the target object. For example, after receiving a user input for forwarding a target message "do you know where we go", a contact selection interface is displayed, and the user selects a target object by: the choice of the axicon, the operation of forwarding the "you know where we go" target message to the axicon (target object) is implemented.
Specifically, in the case where the first input is a screen capture input to an interface where the target message is located, the first input further includes a selection input to the target object. For example, upon receiving user interface screen capture input of the target message "do you know where we go", a contact selection interface may be displayed, the user selecting the target object by: the selection of the mins enables the operation of sending the screenshot of the target message including "you know where we go" to the mins (target objects).
Further, if the target message is a voice message, the target message may be converted into a text message first and then a screen capture picture including the text message corresponding to the voice message may be sent to the target object when the first input is a screen capture input to an interface where the target message is located. Illustratively, as shown in fig. 2 and 3, when the target message 21 is voice, receiving the screen capturing input to the interface 20 generates a screen capturing picture as shown in fig. 3, that is, converts the voice of the target message 21 into a text message and displays the text message below the position of the text message, and sends the screen capturing picture as shown in fig. 3 to the target object. In the embodiment, when the target message is voice and the first input is a screen capturing input to an interface where the target message is located, the text message is displayed at a position near the target message, so that the target object can clearly view the forwarded target message. The problem that the authenticity of the target message lacks trust due to the fact that the target object cannot receive the original target message data is avoided.
Step 104, responding to the first input, and sending a first message corresponding to the target message to the target object according to the communication record of the user and the target object;
the type of the first message is associated with the type of the message contained in the communication record, and the first message is a voice message or a text message.
It will be appreciated that the user's communication record with the target object is a historical communication record with the target object. Alternatively, the target message may be a voice message or a text message.
Specifically, in the case that the target message is a voice message, the voice message may be forwarded to the target object in a voice form according to a history of communication with the target object, or the voice message may be converted into text according to a history of communication with the target object and forwarded to the target object in a text form. In the case that the target message is a text message, the text message may be forwarded to the target object in text form according to the history communication record with the target object, or the text message may be converted into corresponding voice according to the history communication record with the target object and forwarded to the target object in voice form.
It is to be understood that the type of the first message is associated with the type of the message contained in the communication record, which means that the communication habit with different target objects can be determined according to the history of communication records with the target objects, so that the most suitable message type is selected to send the message to the target object. For example, in the case where the target object is a parent, the history of communication with the parent is a voice message, and then, whether the target message is a voice message or a text message, the target message is converted into a first message of voice and then forwarded in the case where the forwarding object is a parent.
In the embodiment of the application, after receiving the first input of the target message from the user, the electronic device determines that the first input points to the target object according to the forwarding instruction. And acquiring a communication record between the user and the target object, and converting the first message into a corresponding message type according to the historical communication record between the user and the target object. And forwarding the first message to the target object after converting the message type to finish forwarding the target message to the target object. The method and the device realize automatic type conversion of the target message required to be forwarded by the user, and the user does not need to manually convert the type of the target message, so that the user can directly send the message associated with the communication record to the target object after only sending the message forwarding instruction, and the operation steps of the user when forwarding the message are reduced.
Further, as shown in fig. 4, optionally, according to the communication record between the user and the target object, a first message corresponding to the target information is sent to the target object, which specifically includes:
step 202, acquiring parameters of historical messages in a communication record;
it can be understood that the selection rule of the history message in the communication record is set according to the actual requirement of the user. The method can select a latest historical message in the communication record, and can select a historical message in a latest period of time in the communication record.
Step 204, determining the type of the first message according to the parameters of the history message;
step 206, sending a first message corresponding to the target message to the target object;
wherein the parameters of the history message include at least one of: the message types of the historical messages, the number of messages corresponding to the historical messages of each type, the time of the historical messages and the type of the first message comprise a voice type and a text type.
It is to be understood that the message type of the history message refers to: the history messages are respectively of which type, and the specific message type can be text message, voice message, picture message, link message and the like. The number of messages corresponding to each type of history message refers to the number of messages corresponding to each type, such as text messages and voice messages. The time of the history message refers to the time of receiving or transmitting the message.
In the embodiment of the application, after the communication record of the user and the target object is invoked, the historical information in the communication record is read, and the parameters of all the historical information in the communication record are determined.
Optionally, the type of the first message required to be sent to the target object by the user may be determined according to the parameters of all the historical messages, and after the target information is converted into the first message of the type, the first message is sent to the target object. It is also possible to obtain only the parameters of part of the history message to determine the type of first message that the user needs to send to the target object. For example, the message parameters of all the messages recorded in the target object may be obtained, or only the message parameters of the last week message of the target object may be obtained. After determining the type of the first message, a determination is made as to whether a type conversion of the target message is required. If the type of the target message is the same as the type of the first message, the target message is optionally forwarded directly as the first message to the target object. If the type of the target message is different from the type of the first message, converting the target message through the type to obtain the first message.
In an alternative embodiment, the type of the target message is a voice class, and if the type of the first message is determined to be a text class according to the historical message parameters, the target message is converted into the first message of the text class, and then the first message is forwarded to the target object.
In an alternative embodiment, the type of the target message is a text class, and if the type of the first message is also a text class according to the historical message parameters, the target message is forwarded to the target object as the first message.
In some embodiments, the parameters of the history message may further include a language category from which the language category of the first message is translated prior to sending the first message.
Specifically, the language type of the history message is obtained, the target language type is determined according to the language type of the history message, and before the first message is sent, the first message is translated according to the target language type to obtain the first message output in the target language. The automatic translation of the forwarded message is realized, the user does not need to manually translate the message before sending the message, and the convenience of forwarding the message by the user is further improved.
Illustratively, in the case where the target language type is english, the chinese first message is translated into english and the type of the first message is kept unchanged before the chinese first message is sent.
In the embodiment of the application, the communication habit between the user and the target object can be obtained through the parameters of the historical information in the communication record, and the type of the first information is determined according to the obtained communication habit, so that the type of the sent first information can be ensured to accord with the communication habit between the user and the target object. When the type conforming to the communication habit is determined according to the communication habit, the target message is automatically converted into the first message of the type to be sent, other operations such as manual message type conversion are not needed by a user, and the operation of message forwarding by the user is simplified, and meanwhile, the forwarded message is ensured to conform to the communication habit of the user and the target object.
As shown in fig. 5, optionally, determining the type of the first message according to the parameters of the history message includes:
step 302, determining the priority relation between the voice type history message and the text type history message according to the parameters of the history message;
it will be appreciated that the rules for determining the priority relationship of the voice class history message and the text class history message are related to the parameters of the history message.
Optionally, the priority relation of the voice class and the text class is determined according to the message type, the message quantity and the message time.
Specifically, all the historical messages in a period of time are acquired, and the number relation between the text type historical messages and the voice type historical messages in the period of time is compared. If the number of the voice class history messages is larger than the number of the word class history messages, the priority of the voice class is judged to be higher, the type of the first message is determined to be the voice class, and if the number of the word class history messages is larger than the number of the voice class history messages, the priority of the word class is judged to be higher, and the type of the first message is determined to be the word class.
It should be noted that, if the number of all the history messages in a period of time is 1, if the history message is a voice type history message, the priority of the voice type is higher than the priority of the text type, and if the history message is a text type history message, the priority of the text type is higher than the priority of the voice type.
Optionally, the priority of the message type may be determined according to the message time of the text type history message and the voice type history message.
In an alternative embodiment, a history message of the communication record, which is closest to the current time point, is obtained, if the type of the history message of the last time is a voice type, the message time of the history message of the voice type is determined to be later than the message time of the history message of the word type, and if the type of the history message of the last time is a word type, the message time of the history message of the word type is determined to be later than the message time of the history message of the voice type. The message type of the last history message is taken as the message type with higher priority.
In an exemplary embodiment, when the user receives a voice message of a target object and forwards the target message, and detects that the last message type of the communication record is a voice class, it is determined that the priority of the voice class history message is higher than the priority of the text class history message.
In an alternative embodiment, the time information of the first input is obtained, and the type of the history message in the communication record corresponding to the time information is searched according to the time information.
Specifically, time information of a user executing a forwarding instruction on a target message is obtained, the type of a history message and the number of the history messages corresponding to the time information in a communication record are obtained, and the priority relation between a voice type history message and a text type history message is determined according to the type of the history message and the number of the history messages corresponding to the time information.
Illustratively, the user forwards the target message at 9 pm. If the number of the text type historical messages sent and received at 8-10 pm in the communication record is 50 and the number of the voice type historical messages is 3, determining that the priority of the text type historical messages is higher than that of the voice type historical messages.
Step 304, determining that the type of the first message is a voice class under the condition that the priority of the voice class is higher than the priority of the text class; or determining the type of the first message as the literal class under the condition that the priority of the literal class is higher than the priority of the voice class.
In the embodiment of the application, the priority relation between the voice type historical message and the text type historical message can be determined according to the parameters of the historical message, and the first message is selected to be text type or voice type according to the priority relation. By analyzing the parameters of the historical information, the communication habit between the user and the target object can be determined according to the parameters of the historical information, so that the relation between the priority of the text class and the priority of the voice class is obtained. The first message is set to be the corresponding type of message according to the relation between the priority of the text class and the priority of the voice class, so that the effect of intelligently selecting the message type of the forwarded message is realized, the forwarded first message can meet the requirements of users, and the use experience of the users is further improved.
Optionally, a priority relationship between the voice class and the text class is determined according to the message type and the message number.
Specifically, if the number of the voice type history messages is greater than the number of the text type history messages, determining that the priority of the voice type history messages is higher than the priority of the text type history messages;
Or if the number of the text type historical messages is larger than the number of the voice type historical messages, determining that the priority of the text type historical messages is higher than the priority of the voice type historical messages;
it can be understood that by comparing the number of the voice class history messages with the number of the word class history messages to determine the priority relationship between the word class and the voice class, and determining the type of the first message according to the priority relationship, the type of the forwarded first message is made to coincide with the type of most of the history messages in the communication record.
Or if the message time of the voice type history message is later than the message time of the text type history message, determining that the priority of the voice type history message is higher than the priority of the text type history message;
or if the message time of the text type historical message is later than the message time of the voice type historical message, determining that the priority of the text type historical message is higher than the priority of the voice type historical message.
It will be appreciated that by comparing the time of the text-like history message with the time of the voice-like history message, the type of the first message forwarded is made to coincide with the type of the last received history message.
It should be appreciated that the manner in which a particular priority is determined may be selected by the user prior to forwarding the message.
As shown in fig. 6, before sending the first message to the target object, optionally, the method further includes:
step 402, determining the type of the first message as a voice class;
step 404, converting the target message into a first message corresponding to the target voice parameter;
the target voice parameter is a voice parameter of a user.
It can be understood that, before converting the target message into the first message and sending the first message to the target object, when determining that the type of the first message is a voice class, the step of obtaining the target voice parameter is performed, and the target message is converted according to the target voice parameter. The target voice parameters are voice parameters of the user, and the voice parameters of the user specifically comprise voice print characteristics, intonation and other parameters of the user.
Specifically, when the type of the first message is a voice class and the type of the target message is a text class, converting the text class target message into the voice class first message with the voiceprint characteristics of the user; when the type of the first message is a voice class and the type of the target message is also a voice class, converting the target message of the voice class into the voice class first message with the voiceprint characteristics of the user, so that the first message received by the target object accords with the language habit of the user.
Specifically, when the types of the first message and the target message are voice types, the semantics in the target message are analyzed, the corresponding first message is generated according to the semantics and the target voice parameters, and the first message is forwarded to the target object.
It can be appreciated that training the acoustic model based on the voice class history message in the message record, inputting the target message into the acoustic model, can quickly convert the target message into the first message with the user voiceprint feature.
In the embodiment of the application, after determining that the type of the first message is a voice type, outputting the corresponding first message according to the target voice parameter by taking the voice parameter of the user as the target voice parameter. The first message sent to the target object is provided with the voice characteristics of the user, so that the sent first message of the voice class is more natural.
Further, the prompt information is output according to the type of the first message and the type of the target message.
For example, as shown in fig. 7, when the target message 21 is a voice message and it is determined that the first message is a text message, receiving the screen capturing input of the interface 20 generates the generated prompt message 22 as shown in fig. 7, where the prompt message 22 is displayed in a floating window, and the floating window of the prompt message 22 can select whether to convert the target message 21 in response to a selection instruction of the user.
In the embodiment of the application, when the types of the target message and the first message are different, the prompt message is generated and displayed so that a user can freely select whether to convert the target message or not, and the user can directly trigger the displayed prompt message, thereby simplifying the operation steps of the user.
It should be noted that, in the message sending method provided in the embodiment of the present application, the execution body may be a message sending device, or a control module in the message sending device for executing the message sending method. In the embodiment of the present application, a message sending device executes a message sending method as an example, and a message sending device provided in the embodiment of the present application is described.
In some embodiments of the present application, fig. 8 shows a block diagram of a message sending apparatus 500 according to an embodiment of the present application, as shown in fig. 8, the message sending apparatus 500 includes:
a receiving module 510, configured to receive a first input of a target message from a user, where the first input is a forwarding operation directed to a target object;
it can be understood that the target message is a message to be forwarded, the first input may be a forwarding input of the target message, and the first input may also be a screen capturing input of an interface where the target message is located.
A sending module 520, configured to send, in response to the first input, a first message corresponding to the target message to the target object according to the communication record between the user and the target object;
the type of the first message is associated with the type of the message contained in the communication record, and the first message is a voice message or a text message.
It will be appreciated that the user's communication record with the target object is a historical communication record with the target object. Alternatively, the target message may be a voice message or a text message.
In the embodiment of the application, after receiving the first input of the target message from the user, the electronic device determines that the first input points to the target object according to the forwarding instruction. And acquiring a communication record between the user and the target object, and converting the first message into a corresponding message type according to the historical communication record between the user and the target object. And forwarding the first message to the target object after converting the message type to finish forwarding the target message to the target object. The method and the device realize automatic type conversion of the target message required to be forwarded by the user, and the user does not need to manually convert the type of the target message, so that the user can directly send the message associated with the communication record to the target object after only sending the message forwarding instruction, and the operation steps of the user when forwarding the message are reduced.
As shown in fig. 9, optionally, the transmitting module 520 includes:
an acquiring unit 522, configured to acquire parameters of the history message in the communication record;
it can be understood that the selection rule of the history message in the communication record is set according to the actual requirement of the user. The method can select a latest historical message in the communication record, and can select a historical message in a latest period of time in the communication record.
A determining unit 524, configured to determine a type of the first message according to the parameter of the history message;
a sending unit 526, configured to send a first message corresponding to the target message to the target object;
wherein the parameters of the history message include at least one of: the message types of the historical messages, the number of messages corresponding to the historical messages of each type, the time of the historical messages and the type of the first message comprise a voice type and a text type.
In the embodiment of the application, the communication habit between the user and the target object can be obtained through the parameters of the historical information in the communication record, and the type of the first information is determined according to the obtained communication habit, so that the type of the sent first information can be ensured to accord with the communication habit between the user and the target object. When the type conforming to the communication habit is determined according to the communication habit, the target message is automatically converted into the first message of the type to be sent, other operations such as manual message type conversion are not needed by a user, and the operation of message forwarding by the user is simplified, and meanwhile, the forwarded message is ensured to conform to the communication habit of the user and the target object.
Optionally, the determining unit 524 is specifically configured to determine a priority relationship between the voice class history message and the text class history message according to parameters of the history message;
it will be appreciated that the rules for determining the priority relationship of the voice class history message and the text class history message are related to the parameters of the selected history message.
Optionally, the priority relation of the voice class and the text class is determined according to the message type, the message quantity and the message time.
In the embodiment of the application, the priority relation between the voice type historical message and the text type historical message can be determined according to the parameters of the historical message, and the first message is selected to be text type or voice type according to the priority relation. By analyzing the parameters of the historical information, the communication habit between the user and the target object can be determined according to the parameters of the historical information, so that the relation between the priority of the text class and the priority of the voice class is obtained. The first message is set to be the corresponding type of message according to the relation between the priority of the text class and the priority of the voice class, so that the effect of intelligently selecting the message type of the forwarded message is realized, the forwarded first message can meet the requirements of users, and the use experience of the users is further improved.
Optionally, the determining unit 524 is further configured to:
if the number of the voice type historical messages is larger than the number of the text type historical messages, determining that the priority of the voice type historical messages is higher than that of the text type historical messages;
or if the number of the text type historical messages is larger than the number of the voice type historical messages, determining that the priority of the text type historical messages is higher than the priority of the voice type historical messages;
it can be understood that by comparing the number of the voice class history messages with the number of the word class history messages to determine the priority relationship between the word class and the voice class, and determining the type of the first message according to the priority relationship, the type of the forwarded first message is made to coincide with the type of most of the history messages in the communication record.
Or if the message time of the voice type history message is later than the message time of the text type history message, determining that the priority of the voice type history message is higher than the priority of the text type history message;
or if the message time of the text type historical message is later than the message time of the voice type historical message, determining that the priority of the text type historical message is higher than the priority of the voice type historical message.
It will be appreciated that by comparing the time of the text-like history message with the time of the voice-like history message, the type of the first message forwarded is made to coincide with the type of the last received history message.
It should be appreciated that the manner in which a particular priority is determined may be selected by the user prior to forwarding the message.
As shown in fig. 8, optionally, the message sending apparatus 500 further includes:
a conversion module 530, configured to convert the target message into a first message corresponding to the target voice parameter if the type of the first message is determined to be a voice class; the target voice parameter is a voice parameter of a user.
It can be understood that, before converting the target message into the first message and sending the first message to the target object, when determining that the type of the first message is a voice class, the step of obtaining the target voice parameter is performed, and the target message is converted according to the target voice parameter. The target voice parameters are voice parameters of the user, and the voice parameters of the user specifically comprise voice print characteristics, intonation and other parameters of the user.
In the embodiment of the application, after determining that the type of the first message is a voice type, outputting the corresponding first message according to the target voice parameter by taking the voice parameter of the user as the target voice parameter. The first message sent to the target object is provided with the voice characteristics of the user, so that the sent first message of the voice class is more natural.
In the embodiment of the application, when the types of the target message and the first message are different, the prompt message is generated and displayed so that a user can freely select whether to convert the target message or not, and the user can directly trigger the displayed prompt message, thereby simplifying the operation steps of the user. The message sending device in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The message sending device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
As shown in fig. 10, the electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, first input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
The user input unit 607 is for receiving a first input.
The memory 609 is used to store a message transmission method.
The processor 610 is also configured to: acquiring parameters of historical messages in a communication record; determining the type of the first message according to the parameters of the historical message; sending a first message corresponding to the target message to the target object; wherein the parameters of the history message include at least one of: the message types of the historical messages, the number of messages corresponding to the historical messages of each type, the time of the historical messages and the type of the first message comprise a voice type and a text type.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
In one embodiment, the memory 609 stores application programs and an operating system, the input unit 604 may include a graphics processor 6041 and a microphone 6042, and the display unit 606 includes a display panel 6061.
In one embodiment, the processor 610 is configured to: receiving a first input of a user on a target message, wherein the first input is a forwarding operation pointing to a target object; responding to the first input, and sending a first message corresponding to the target message to the target object according to the communication record of the user and the target object; the type of the first message is associated with the type of the message contained in the communication record, and the first message is a voice message or a text message.
In one embodiment, the processor 610 is further configured to: determining the priority relation between the voice type historical information and the text type historical information according to the parameters of the historical information; under the condition that the priority of the voice class is higher than that of the text class, determining the type of the first message as the voice class; or determining the type of the first message as the literal class under the condition that the priority of the literal class is higher than the priority of the voice class.
In one embodiment, the processor 610 is further configured to: if the number of the voice type historical messages is larger than the number of the text type historical messages, determining that the priority of the voice type historical messages is higher than that of the text type historical messages; or alternatively, the first and second heat exchangers may be,
If the message time of the voice type historical message is later than the message time of the text type historical message, determining that the priority of the voice type historical message is higher than the priority of the text type historical message; or alternatively, the first and second heat exchangers may be,
if the number of the text type historical messages is larger than the number of the voice type historical messages, determining that the priority of the text type historical messages is higher than that of the voice type historical messages; or alternatively, the first and second heat exchangers may be,
if the message time of the text type historical message is later than the message time of the voice type historical message, determining that the priority of the text type historical message is higher than the priority of the voice type historical message.
In one embodiment, the processor 610 is further configured to: under the condition that the type of the first message is determined to be a voice class, converting the target message into the first message corresponding to the target voice parameter;
the target voice parameter is a voice parameter of a user.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction implements each process of the above embodiment of the method for sending a message when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the above message sending method embodiment is implemented, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A method of transmitting a message, comprising:
receiving a first input of a user on a target message, wherein the first input is a forwarding operation pointing to a target object;
determining communication habits between a user and different target objects according to communication records of the user and the target objects in response to the first input, and sending first messages corresponding to the target messages to the target objects based on the communication habits;
wherein the type of the first message is associated with the type of the message contained in the communication record, and the first message is a voice message or a text message;
the sending, according to the communication record between the user and the target object, a first message corresponding to the target message to the target object specifically includes:
acquiring parameters of historical messages in the communication record;
determining the type of the first message according to the parameters of the history message;
sending a first message corresponding to the target message to the target object;
wherein the parameters of the history message include at least one of: the message types of the historical messages, the message quantity corresponding to each type of the historical messages and the time of the historical messages; the types of the first message include a voice class and a text class.
2. The message transmission method according to claim 1, wherein the determining the type of the first message according to the parameter of the history message includes:
determining the priority relation between the voice type historical information and the text type historical information according to the parameters of the historical information;
determining the type of the first message as a voice class under the condition that the priority of the voice class is higher than that of the text class; or (b)
And determining the type of the first message as a text class under the condition that the priority of the text class is higher than that of the voice class.
3. The message transmission method according to claim 2, wherein said determining the priority relationship between the voice class and the text class based on the message type and the message number comprises:
if the number of the voice type historical messages is larger than the number of the text type historical messages, determining that the priority of the voice type historical messages is higher than that of the text type historical messages; or alternatively, the first and second heat exchangers may be,
if the message time of the voice type historical message is later than the message time of the text type historical message, determining that the priority of the voice type historical message is higher than the priority of the text type historical message; or alternatively, the first and second heat exchangers may be,
If the number of the text type historical messages is larger than the number of the voice type historical messages, determining that the priority of the text type historical messages is higher than that of the voice type historical messages; or alternatively, the first and second heat exchangers may be,
if the message time of the text type historical message is later than the message time of the voice type historical message, determining that the priority of the text type historical message is higher than the priority of the voice type historical message.
4. The message transmission method according to claim 1, characterized in that before the transmission of the first message to the target object, further comprising:
under the condition that the type of the first message is determined to be a voice class, converting the target message into a first message corresponding to a target voice parameter;
wherein the target voice parameter is a voice parameter of a user.
5. A message transmission apparatus, comprising:
the receiving module is used for receiving a first input of a target message from a user, wherein the first input is a forwarding operation pointing to a target object;
a sending module, configured to determine, in response to the first input, a communication habit between a user and different target objects according to a communication record of the user and the target objects, and send, to the target objects, a first message corresponding to the target message based on the communication habit;
The transmitting module includes:
an obtaining unit, configured to obtain parameters of a history message in the communication record;
a determining unit, configured to determine a type of the first message according to the parameter of the history message;
a sending unit, configured to send a first message corresponding to the target message to the target object;
wherein the parameters of the history message include at least one of: the message types of the historical messages, the message quantity corresponding to each type of the historical messages and the time of the historical messages; the types of the first message include a voice class and a text class.
6. The message transmission apparatus according to claim 5, wherein the determining unit is specifically configured to:
determining the priority relation between the voice type historical information and the text type historical information according to the parameters of the historical information;
determining the type of the first message as a voice class under the condition that the priority of the voice class is higher than that of the text class; or (b)
And determining the type of the first message as a text class under the condition that the priority of the text class is higher than that of the voice class.
7. The message transmission apparatus according to claim 6, wherein the determining unit is further configured to:
If the number of the voice type historical messages is larger than the number of the text type historical messages, determining that the priority of the voice type historical messages is higher than that of the text type historical messages; or alternatively, the first and second heat exchangers may be,
if the number of the text type historical messages is larger than the number of the voice type historical messages, determining that the priority of the text type historical messages is higher than that of the voice type historical messages; or alternatively, the first and second heat exchangers may be,
if the message time of the voice type historical message is later than the message time of the text type historical message, determining that the priority of the voice type historical message is higher than the priority of the text type historical message; or alternatively, the first and second heat exchangers may be,
if the message time of the text type historical message is later than the message time of the voice type historical message, determining that the priority of the text type historical message is higher than the priority of the voice type historical message.
8. The message transmission apparatus according to claim 5, further comprising:
the conversion module is used for converting the target message into a first message corresponding to the target voice parameter under the condition that the type of the first message is determined to be a voice type;
wherein the target voice parameter is a voice parameter of a user.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor implements the steps of the messaging method of any of claims 1 to 4.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the message sending method according to any of claims 1 to 4.
CN202110370298.5A 2021-04-07 2021-04-07 Message transmission method, message transmission device, electronic device, and storage medium Active CN113079086B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110370298.5A CN113079086B (en) 2021-04-07 2021-04-07 Message transmission method, message transmission device, electronic device, and storage medium
PCT/CN2022/085136 WO2022213943A1 (en) 2021-04-07 2022-04-02 Message sending method, message sending apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110370298.5A CN113079086B (en) 2021-04-07 2021-04-07 Message transmission method, message transmission device, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN113079086A CN113079086A (en) 2021-07-06
CN113079086B true CN113079086B (en) 2023-06-27

Family

ID=76615211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110370298.5A Active CN113079086B (en) 2021-04-07 2021-04-07 Message transmission method, message transmission device, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN113079086B (en)
WO (1) WO2022213943A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079086B (en) * 2021-04-07 2023-06-27 维沃移动通信有限公司 Message transmission method, message transmission device, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550146A (en) * 2016-10-28 2017-03-29 努比亚技术有限公司 A kind of chat message dispensing device and method
CN109068276A (en) * 2018-06-28 2018-12-21 维沃移动通信有限公司 A kind of message conversion method and terminal
CN112311654A (en) * 2019-07-29 2021-02-02 腾讯科技(深圳)有限公司 Instant messaging message processing method, device, medium and electronic equipment
CN112578965A (en) * 2020-12-25 2021-03-30 维沃移动通信有限公司 Processing method and device and electronic equipment

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7653691B2 (en) * 2000-11-15 2010-01-26 Pacific Datavision Inc. Systems and methods for communicating using voice messages
JP2006270891A (en) * 2005-03-25 2006-10-05 Nec Corp Message conversion system, message conversion method and program
US9491249B2 (en) * 2013-10-25 2016-11-08 Dorin ROSENSHINE Integrating offsite activities related to chat and text messaging with online data records
CN107103899B (en) * 2017-04-24 2020-06-19 北京小米移动软件有限公司 Method and apparatus for outputting voice message
US10425373B2 (en) * 2017-07-19 2019-09-24 Citrix Systems, Inc. Systems and methods for prioritizing messages for conversion from text to speech based on predictive user behavior
CN107995101B (en) * 2017-11-30 2021-03-23 上海掌门科技有限公司 Method and equipment for converting voice message into text message
CN108307043A (en) * 2017-12-28 2018-07-20 努比亚技术有限公司 Speech message conversion method, mobile terminal and computer readable storage medium
CN109412932B (en) * 2018-09-28 2021-03-19 维沃移动通信有限公司 Screen capturing method and terminal
CN110096701A (en) * 2019-04-16 2019-08-06 珠海格力电器股份有限公司 Message conversion process method, device, storage medium and electronic equipment
CN110083687B (en) * 2019-04-28 2022-01-04 上海盛付通电子支付服务有限公司 Information conversion method, equipment and storage medium
CN112035878A (en) * 2020-08-31 2020-12-04 维沃移动通信(杭州)有限公司 Information display method and device and electronic equipment
CN112287162A (en) * 2020-10-27 2021-01-29 维沃移动通信有限公司 Message searching method and device and electronic equipment
CN113079086B (en) * 2021-04-07 2023-06-27 维沃移动通信有限公司 Message transmission method, message transmission device, electronic device, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550146A (en) * 2016-10-28 2017-03-29 努比亚技术有限公司 A kind of chat message dispensing device and method
CN109068276A (en) * 2018-06-28 2018-12-21 维沃移动通信有限公司 A kind of message conversion method and terminal
CN112311654A (en) * 2019-07-29 2021-02-02 腾讯科技(深圳)有限公司 Instant messaging message processing method, device, medium and electronic equipment
CN112578965A (en) * 2020-12-25 2021-03-30 维沃移动通信有限公司 Processing method and device and electronic equipment

Also Published As

Publication number Publication date
WO2022213943A1 (en) 2022-10-13
CN113079086A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
US20210118463A1 (en) Interactive server, control method thereof, and interactive system
CN107609092B (en) Intelligent response method and device
CN109309751B (en) Voice recording method, electronic device and storage medium
US20020188670A1 (en) Method and apparatus that enables language translation of an electronic mail message
CN109726367A (en) A kind of method and relevant apparatus of annotation displaying
CN107071512B (en) A kind of dubbing method, apparatus and system
CN114003326A (en) Message processing method, device, equipment and storage medium
CN109782997B (en) Data processing method, device and storage medium
CN113094143B (en) Cross-application message sending method and device, electronic equipment and readable storage medium
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
US20220391058A1 (en) Interaction information processing method and apparatus, electronic device and storage medium
CN106558311B (en) Voice content prompting method and device
JP2009075977A (en) Portable terminal browsing document distribution server, portable terminal, and portable terminal browsing document distribution system
CN113285866A (en) Information sending method and device and electronic equipment
CN113079086B (en) Message transmission method, message transmission device, electronic device, and storage medium
CN111966257A (en) Information processing method and device and electronic equipment
CN106445479B (en) Information-pushing method and device
CN113593614B (en) Image processing method and device
CN111158838B (en) Information processing method and device
CN114022300A (en) Social dynamic information publishing method and device, storage medium and electronic equipment
CN112578965A (en) Processing method and device and electronic equipment
CN105450510A (en) Friend management method, device and server for social network platform
CN112291420A (en) Message display method and terminal equipment
CN114124864B (en) Message processing method and device
CN112764553B (en) Chat expression collection method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 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