WO2022213943A1 - Message sending method, message sending apparatus, electronic device, and storage medium - Google Patents

Message sending method, message sending apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022213943A1
WO2022213943A1 PCT/CN2022/085136 CN2022085136W WO2022213943A1 WO 2022213943 A1 WO2022213943 A1 WO 2022213943A1 CN 2022085136 W CN2022085136 W CN 2022085136W WO 2022213943 A1 WO2022213943 A1 WO 2022213943A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
target
voice
historical
type
Prior art date
Application number
PCT/CN2022/085136
Other languages
French (fr)
Chinese (zh)
Inventor
周凤
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022213943A1 publication Critical patent/WO2022213943A1/en

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

Definitions

  • the present application belongs to the field of communication technologies, and specifically relates to a message sending method, a message sending apparatus, an electronic device and a storage medium.
  • the user can select historical messages or forward chat messages with other objects.
  • the purpose of the embodiments of the present application is to provide a message sending method, a message generating device, an electronic device and a storage medium.
  • the target message can be processed according to the communication record stored in the electronic device. Forwarding, and the type of the forwarded target message is associated with the type of the message in the communication record, so that after the user only needs to forward the target message, the type of the target message to be forwarded and the type of the message in the communication record can be guaranteed.
  • the user does not need to perform other operations on the target message, which solves the problem that how to reduce the operation steps of the user on the original message when forwarding the message has become an urgent problem to be solved.
  • an embodiment of the present application provides a method for sending a message, including:
  • the type of the first message is associated with the type of the message included in the communication record, and the first message is a voice message or a text message.
  • an embodiment of the present application provides an apparatus for sending a message, including: a receiving module, configured to receive a first input from a user to a target message, where the first input is a forwarding operation directed to the target object; a sending module, configured to respond to the first input of the target message; Upon input, send a first message corresponding to the target message to the target object according to the communication record between the user and the target object.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor.
  • the program or instruction is executed by the processor, the implementation of the first aspect provides The steps of the message sending method.
  • the embodiments of the present application provide a readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the steps of the message sending method provided in the first aspect are implemented.
  • an embodiment of the present application provides a chip, where the provided chip includes a processor and a communication interface, the provided communication interface is coupled with the provided processor, and the provided processor is used to run a program or an instruction, and the implementation is as described in the first aspect. Provides the steps of the message sending method.
  • the first input is a forwarding instruction
  • the target object pointed to by the first input is determined.
  • a communication record between the user and the target object is acquired, and the first message is converted into a corresponding message type according to the historical communication record between the user and the target object.
  • the first message after the converted message type is forwarded to the target object to complete the forwarding of the target message to the target object. It realizes the automatic type conversion of the target message that the user needs to forward, without the need for the user to manually convert the type of the target message, and realizes that the user only needs to send the message forwarding instruction, and directly send the message associated with the communication record to the target object. , which reduces the operation steps for users when forwarding messages.
  • FIG. 1 shows one of the flow charts of a message sending method according to an embodiment of the present application
  • FIG. 2 shows one of the display interfaces of the electronic device according to an embodiment of the present application
  • FIG. 3 shows the second display interface of the electronic device according to the embodiment of the present application
  • FIG. 4 shows the second flowchart of the method for sending a message according to an embodiment of the present application
  • FIG. 5 shows the third flowchart of the method for sending a message according to an embodiment of the present application
  • FIG. 6 shows the fourth flowchart of the method for sending a message according to an embodiment of the present application
  • FIG. 7 shows the third display interface of the electronic device according to the embodiment of the present application.
  • FIG. 8 shows one of the structural block diagrams of a message sending apparatus according to an embodiment of the present application.
  • FIG. 9 shows the second structural block diagram of a message sending apparatus according to an 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.
  • FIG. 1 shows one of the 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 the user's first input to the target message, where the first input is a forwarding operation pointing to the target object;
  • the target message is the message to be forwarded
  • the first input may be a forwarding input to the target message
  • the first input may also be a screen capture input of an interface where the target message is located.
  • the first input when the first input is a forwarding input to the target message, the first input further includes a selection input of the target object. For example, after receiving the forwarding input of the target message "Do you know where we are going?" from the user, a contact selection interface will be displayed. "The operation of forwarding the target message to Huawei (target object).
  • the first input further includes a selection input of the target object.
  • a selection input of the target object For example, after receiving the user's input of the target message "Do you know where we are going?" interface screenshot, a contact selection interface can be displayed, and the user can select the target object: Xiao Ming to realize the inclusion of "Do you know where we are going?" Where is the action of sending a screenshot of the target message to Xiao Ming (target).
  • the target message is a voice message
  • the first input is a screen shot input of the interface where the target message is located
  • the target message can be converted into a text message first, and then the screen shot including the text message corresponding to the voice message is taken.
  • the picture is sent to the target object.
  • FIG. 2 and FIG. 3 in the case where the target message 21 is voice, a screen shot input of the interface 20 is received, and the screen shot picture shown in FIG. 3 will be generated, that is, the target message 21 will be The voice is converted into a text message and displayed below the position of the voice message, and the screenshot shown in Figure 3 is sent to the target object.
  • the target message is voice and the first input is a screenshot input of the interface where the target message is located
  • the text message is displayed near the target message, so that the target object can view the forwarding clearly and clearly target message. Avoid the problem that the target object lacks trust in the authenticity of the target message because the target object cannot receive the original target message data.
  • Step 104 in response to the first input, according to the communication record between the user and the target object, send a first message corresponding to the target message to the target object;
  • the type of the first message is associated with the type of the message included in the communication record, and the first message is a voice message or a text message.
  • the communication record between the user and the target object is the historical communication record with the target object.
  • the target message may be a voice message or a text message.
  • the voice message can be forwarded to the target object in the form of voice according to the historical communication record with the target object, or it can be based on the historical communication record with the target object, Convert the voice message to text and forward the text to the target audience.
  • the target message is a text message
  • the text message can be forwarded to the target object in the form of text according to the historical communication record with the target object, or the text message can be forwarded to the target object according to the historical communication record with the target object.
  • the message is converted into the corresponding voice and forwarded to the target object in the form of voice.
  • the type of the first message is associated with the type of the message contained in the communication record, which means that the communication habits with different target objects can be determined according to the historical communication records with the target object, thereby choose the most appropriate message type to send a message to the target object. For example, if the target object is a parent, the historical communication records with the parent are mostly voice messages, then regardless of whether the target message is a voice message or a text message, if the forwarding object is a parent, the target message will be converted into voice and then forward the first message.
  • the first input is a forwarding instruction
  • the target object pointed to by the first input is determined.
  • a communication record between the user and the target object is acquired, and the first message is converted into a corresponding message type according to the historical communication record between the user and the target object.
  • the first message after the converted message type is forwarded to the target object to complete the forwarding of the target message to the target object. It realizes the automatic type conversion of the target message that the user needs to forward, without the need for the user to manually convert the type of the target message, and realizes that the user only needs to send the message forwarding instruction, and directly send the message associated with the communication record to the target object. , which reduces the operation steps for users when forwarding messages.
  • the communication record between the user and the target object send the first message corresponding to the target information to the target object, specifically including:
  • Step 202 obtain the parameters of the historical message in the communication record
  • the selection rule of the historical message in the communication record is set according to the actual needs of the user. It can be selected to select the most recent historical message in the communication record, or it can be selected to select the historical message in the most recent period of time in the communication record.
  • Step 204 determining the type of the first message according to the parameters of the historical message
  • Step 206 sending a first message corresponding to the target message to the target object
  • the parameters of the historical message include at least one of the following: message type of the historical message, number of messages corresponding to each type of historical message, time of the historical message, and the type of the first message includes voice and text.
  • the message type of the historical message refers to which type each historical message belongs to, and the specific message type may be text message, voice message, picture message, link message and so on.
  • the number of messages corresponding to each type of historical message refers to the number of the respective types of messages, such as the number of text messages and voice messages.
  • the time of the historical message refers to the time when the message was received or sent.
  • the historical messages in the communication record are read, and the parameters of all the historical messages in the communication record are determined.
  • the type of the first message to be sent by the user to the target object can be determined according to parameters of all historical messages, and the target information is converted into the first message of this type, and then the first message is sent to the target object. It is also possible to obtain only some parameters of the historical messages to determine the type of the first message that the user needs to send to the target object. Exemplarily, all message parameters of all messages recorded with the target object may be acquired, or only message parameters of messages of the target object in the last week may be acquired. After determining the type of the first message, it is necessary to determine whether to perform type conversion on the target message. If the type of the target message is the same as the type of the first message, the target message is optionally directly forwarded to the target object as the first message. If the type of the target message is different from the type of the first message, the target message is converted by type to obtain the first message.
  • the type of the target message is a voice type
  • the type of the first message is determined to be a text type according to historical message parameters
  • the target message is converted into a text type first message
  • the first message is converted into a text type first message. Forward to the target object.
  • the type of the target message is text, and it is determined according to historical message parameters that the type of the first message is also text, and the target message is taken as the first message and forwarded to the target object.
  • the parameters of the historical message may further include a language type, and before sending the first message, the language type of the first message is converted according to the language type.
  • the language type of the historical message is acquired, the target language type is determined according to the language type of the historical 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, and the user does not need to manually translate the message before sending it, which further improves the convenience for the user to forward the message.
  • the target language type is English
  • the first message in Chinese is translated into English, and the type of the first message is kept unchanged.
  • the communication habit between the user and the target object can be obtained through the parameters of the historical message in the communication record, and the type of the first message can be determined according to the obtained communication habit, and the type of the first message to be sent can be guaranteed.
  • the target message is automatically converted into the first message of this type and sent, without the need for the user to perform other operations such as manual conversion of the message type. It is ensured that the forwarded message conforms to the communication habits between the user and the target object.
  • the type of the first message is determined according to the parameters of the historical message, including:
  • Step 302 according to the parameters of the historical message, determine the priority relationship between the voice historical message and the textual historical message;
  • the rule for determining the priority relationship between the speech-type historical message and the text-type historical message is related to the parameters of the historical message.
  • the priority relationship between the speech class and the text class is determined according to the message type, the number of messages and the message time.
  • all the historical messages in a period of time are acquired, and the quantitative relationship between the historical messages of the text type and the historical messages of the voice type in the period of time is compared. If the number of voice history messages is larger than the number of text history messages, it is determined that the priority of the voice class is higher, and the type of the first message is determined to be the voice class. , then it is determined that the priority of the text category is higher, and the type of the first message is determined to be the text category.
  • the priority of the message type may also be judged according to the message time of the text-type historical message and the voice-type historical message.
  • the most recent historical message in the communication record from the current time point is obtained, and if the type of the most recent historical message is a voice type, it is determined that the message time of the voice type historical message is later than that of the text type. The message time of the historical message. If the type of the most recent historical message is text, it is determined that the time of the text historical message is later than the message time of the voice historical message. The message type of the latest historical message is used as the message type with higher priority.
  • the user when the user receives a voice message from the target object, and when forwarding the target message, it is detected that the last message type of the communication record is a voice type, and then it is determined that the priority of the voice type historical message is higher than that of the text type historical message. priority.
  • the time information on which the first input is received is acquired, and the type of the historical message in the communication record corresponding to the time information is searched for according to the time information.
  • obtain the time information when the user executes the forwarding instruction on the target message obtain the type and quantity of historical messages corresponding to the time information in the communication record, and obtain the type and number of historical messages corresponding to the time information according to the The quantity determines the priority relationship between the voice-type historical message and the text-type historical message.
  • the user forwards the target message at 9:00 pm. If the number of textual historical messages sent and received from 8:00 pm to 10:00 pm in the communication record is 50 and the number of voice-based historical messages is 3, it is determined that the priority of text-based historical messages is higher than that of voice-based historical messages priority.
  • Step 304 when the priority of the voice class is higher than the priority of the text class, determine that the type of the first message is the voice class; or when the priority of the text class is higher than the priority of the voice class, determine the first message type.
  • a message is of type literal.
  • the priority relationship between the voice historical message and the textual historical message can be determined according to the parameters of the historical message, and the first message is selected to be textual or voiced according to the priority relationship.
  • the communication habits between the user and the target object can be determined according to the parameters of the historical message, so as to obtain the relationship between the priority of the text category and the priority of the voice category.
  • the first message is selected as the corresponding type of message, which realizes the effect of intelligently selecting the message type of the forwarded message, and makes the forwarded first message more suitable for the user. requirements, further improving the user experience.
  • the priority relationship between the speech class and the text class is determined according to the message type and the number of messages.
  • the priority of the voice-type historical messages is higher than the priority of the text-type historical messages
  • the priority relationship between the text class and the phonetic class is determined by comparing the number of voice-type historical messages and the number of text-type historical messages, and then the type of the first message is determined according to the priority relationship, so that the forwarded first message The type matches the type of most of the historical messages in the communication log.
  • the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
  • the type of the forwarded first message is made consistent with the type of the most recent historical message sent and received.
  • the user may select a specific method for judging the priority.
  • the method before sending the first message to the target object, the method further includes:
  • Step 402 determine that the type of the first message is a voice class
  • Step 404 converting the target message into a first message corresponding to the target speech parameter
  • the target speech parameter is the user's speech parameter.
  • the step of obtaining the target voice parameter is performed, and the target voice parameter is obtained according to the target voice parameter. Convert the target message.
  • the target speech parameter is the user's speech parameter, and the user's speech parameter specifically includes parameters such as the user's voiceprint feature and intonation.
  • the text type target message is converted into a voice type first message with the user's voiceprint feature; If the type is voice, and the type of target message is also voice, then the target message of voice is converted into the first message of voice with the characteristics of the user's voiceprint, so that the first message received by the target object is in line with the user's voice. language habits.
  • the semantics in the target message are parsed, the corresponding first message is generated according to the semantics and the target speech parameters, and the first message is forwarded to the target object.
  • training the acoustic model according to the historical voice messages in the message record and inputting the target message into the acoustic model can quickly convert the target message into the first message with the features of the user's voiceprint.
  • the user's voice parameter is used as the target voice parameter, and the corresponding first message is output according to the target voice parameter. It is realized that the first message sent to the target object has the characteristics of the user's voice, so that the first message of the voice type to be sent is more natural.
  • prompt information is output according to the type of the first message and the type of the target message.
  • the screen capture input of the interface 20 is received, and the image shown in FIG. 7 will be generated.
  • the prompt information 22 is generated, the prompt information 22 is displayed in the form of a floating window, and the floating window of the prompt information 22 can select whether to convert the target message 21 in response to the user's selection instruction.
  • prompt information is generated and displayed, so that the user can freely choose whether to convert the target message, and the user can directly trigger the displayed prompt information operation, which simplifies the user's operation steps.
  • the execution body may be a message sending apparatus, or a control module in the message sending apparatus for executing the message sending method.
  • the message sending device provided by the embodiment of the present application is described by taking a message sending device executing a message sending method as an example.
  • FIG. 8 shows a structural block diagram of a message sending apparatus 500 according to an embodiment of the present application.
  • the message sending apparatus 500 includes:
  • the receiving module 510 is configured to receive the first input of the user to the target message, where the first input is a forwarding operation directed to the target object;
  • the target message is the message to be forwarded
  • the first input may be a forwarding input to the target message
  • the first input may also be a screen capture input of an interface where the target message is located.
  • the sending module 520 is configured to, in response to the first input, send 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 included in the communication record, and the first message is a voice message or a text message.
  • the communication record between the user and the target object is the historical communication record with the target object.
  • the target message may be a voice message or a text message.
  • the first input is a forwarding instruction
  • the target object pointed to by the first input is determined.
  • a communication record between the user and the target object is acquired, and the first message is converted into a corresponding message type according to the historical communication record between the user and the target object.
  • the first message after the converted message type is forwarded to the target object to complete the forwarding of the target message to the target object. It realizes the automatic type conversion of the target message that the user needs to forward, without the need for the user to manually convert the type of the target message, and realizes that the user only needs to send the message forwarding instruction, and directly send the message associated with the communication record to the target object. , which reduces the operation steps for users when forwarding messages.
  • the sending module 520 includes:
  • Obtaining unit 522 for obtaining the parameter of the historical message in the communication record
  • the selection rule of the historical message in the communication record is set according to the actual needs of the user. It can be selected to select the most recent historical message in the communication record, or it can be selected to select the historical message in the most recent period of time in the communication record.
  • determining unit 524 for determining the type of the first message according to the parameters of the historical message
  • a sending unit 526 configured to send a first message corresponding to the target message to the target object
  • the parameters of the historical message include at least one of the following: message type of the historical message, number of messages corresponding to each type of historical message, time of the historical message, and the type of the first message includes voice and text.
  • the communication habit between the user and the target object can be obtained through the parameters of the historical message in the communication record, and the type of the first message can be determined according to the obtained communication habit, and the type of the first message to be sent can be guaranteed.
  • the target message is automatically converted into the first message of this type and sent, without the need for the user to perform other operations such as manual conversion of the message type. It is ensured that the forwarded message conforms to the communication habits between the user and the target object.
  • the determining unit 524 is specifically configured to determine the priority relationship between the voice historical message and the textual historical message according to the parameters of the historical message;
  • the rule for determining the priority relationship between the speech type history message and the text type history message is related to the parameters of the selected history message.
  • the priority relationship between the speech class and the text class is determined according to the message type, the number of messages and the message time.
  • the priority relationship between the voice historical message and the textual historical message can be determined according to the parameters of the historical message, and the first message is selected to be textual or voiced according to the priority relationship.
  • the communication habits between the user and the target object can be determined according to the parameters of the historical message, so as to obtain the relationship between the priority of the text category and the priority of the voice category.
  • the first message is selected as the corresponding type of message, which realizes the effect of intelligently selecting the message type of the forwarded message, and makes the forwarded first message more suitable for the user. requirements, further improving the user experience.
  • the determining unit 524 is further configured to:
  • the priority relationship between the text class and the phonetic class is determined by comparing the number of voice-type historical messages and the number of text-type historical messages, and then the type of the first message is determined according to the priority relationship, so that the forwarded first message The type matches the type of most of the historical messages in the communication log.
  • the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
  • the type of the forwarded first message is made consistent with the type of the most recent historical message sent and received.
  • the user may select a specific method for judging the priority.
  • the message sending apparatus 500 further includes:
  • the conversion module 530 is configured to convert the target message into a first message corresponding to a target voice parameter when the type of the first message is determined to be a voice type, wherein the target voice parameter is a user's voice parameter.
  • the step of obtaining the target voice parameter is performed, and the target voice parameter is obtained according to the target voice parameter. Convert the target message.
  • the target speech parameter is the user's speech parameter, and the user's speech parameter specifically includes parameters such as the user's voiceprint feature and intonation.
  • the first input is a screenshot input of the interface where the target message is located, and the first message is a picture message; the sending module 520 is specifically configured to send the target object the interface where the target message is located when the target message is a text message.
  • a screenshot or, specifically, when the target message is a voice message, sending a screenshot including a text message corresponding to the target message to the target object.
  • the target message is a voice message
  • the target message after receiving the first input, the target message can be converted into a corresponding text message, and then a screenshot including the text message corresponding to the target message is sent to the target object.
  • the user's voice parameter is used as the target voice parameter, and the corresponding first message is output according to the target voice parameter. It is realized that the first message sent to the target object has the characteristics of the user's voice, so that the first message of the voice type to be sent is more natural.
  • the message sending apparatus in this embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • assistant, PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the message sending apparatus in this embodiment of the present application may be an apparatus having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, a first input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, Memory 609, processor 610 and other components.
  • the user input unit 607 is used to receive the first input.
  • the memory 609 is used to store the message sending method.
  • the processor 610 is further configured to: obtain the parameters of the historical message in the communication record; determine the type of the first message according to the parameters of the historical message; send the first message corresponding to the target message to the target object; wherein the parameters of the historical message include the following At least one item: the message type of the historical message, the number of messages corresponding to each type of historical message, the time of the historical message, and the type of the first message includes a voice type and a text type.
  • the electronic device 600 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the memory 609 stores application programs and an operating system
  • the input unit 604 may include a graphics processor 6041 and a microphone 6042
  • the display unit 606 includes a display panel 6061 .
  • the processor 610 is configured to: receive a first input from the user to the target message, where the first input is a forwarding operation directed to the target object; in response to the first input, according to the communication record between the user and the target object, send a message to the target object.
  • the target object sends a first message corresponding to the target message; 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 processor 610 is further configured to: determine, according to the parameters of the historical message, the priority relationship between the speech-type historical message and the text-type historical message; when the priority of the speech-type is higher than the priority of the text-type Next, the type of the first message is determined to be the voice type; or in the case that the priority of the text type is higher than the priority of the voice type, the type of the first message is determined to be the text type.
  • the processor 610 is further configured to: if the number of voice-type historical messages is greater than the number of text-type historical messages, determine that the priority of the voice-type historical message is higher than that of the text-type historical message; or,
  • the priority of the audio history message is determined to be higher than that of the text history message.
  • the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
  • the processor 610 is further configured to: convert the target message into a first message corresponding to the target voice parameter in the case that the type of the first message is determined to be a voice type;
  • the target speech parameter is the user's speech parameter.
  • the first input is a screenshot input of an interface where the target message is located, and the first message is a picture message; the processor 610 is specifically configured to send the target message to the target object when the target message is a text message A screenshot of the interface where it is located; or, specifically, when the target message is a voice message, sending a screenshot of the text message corresponding to the target message to the target object.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for sending a message can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here.
  • the processor is the processor in the electronic device in the above embodiment.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction to implement each process of the above-mentioned embodiment of the message sending method, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed in the present application are a message sending method, a message sending apparatus, an electronic device, and a storage medium, which belong to the technical field of communications. The message sending method comprises: receiving a first input of a target message from a user, wherein the first input is a forwarding operation which is directed to a target object; and in response to the first input, according to a communication record between the user and the target object, sending a first message, which corresponds to the target message, to the target object, wherein the type of the first message is associated with the type of a message that is included in the communication record, and the first message is a voice message or a text message.

Description

消息发送方法、消息发送装置、电子设备和存储介质Message sending method, message sending device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年04月07日在中国提交的中国专利申请号202110370298.5的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110370298.5 filed in China on Apr. 07, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种消息发送方法、消息发送装置、电子设备和存储介质。The present application belongs to the field of communication technologies, and specifically relates to a message sending method, a message sending apparatus, an electronic device and a storage medium.
背景技术Background technique
用户使用社交软件与目标对象进行聊天的时候,用户能够选择历史消息或与其他对象的聊天消息进行转发。When the user uses the social software to chat with the target object, the user can select historical messages or forward chat messages with other objects.
在对消息进行转发时,由于用户对发送消息的需求不同,往往需要用户对原消息进行操作处理后才能发送,影响用户使用体验。When forwarding a message, because users have different requirements for sending messages, it is often necessary for the user to operate and process the original message before sending, which affects the user experience.
如何减少用户在转发消息时对原消息的操作步骤成为亟需解决的问题。How to reduce the operation steps of the user on the original message when forwarding the message has become an urgent problem to be solved.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种消息发送方法、消息发生装置、电子设备和存储介质,当接收到用户对目标消息进行转发操作时,能够根据电子设备中存储的通信记录,对目标消息进行转发,且转发后的目标消息的类型与通信记录中的消息的类型相关联,实现了用户仅需要对目标消息进行转发操作后,就能够保证转发的目标消息的类型与通信记录中消息的类型符合,无需用户对目标消息进行其他操作,解决了如何减少用户在转发消息时对原消息的操作步骤成为亟需解决的问题。The purpose of the embodiments of the present application is to provide a message sending method, a message generating device, an electronic device and a storage medium. When a user performs a forwarding operation on a target message, the target message can be processed according to the communication record stored in the electronic device. Forwarding, and the type of the forwarded target message is associated with the type of the message in the communication record, so that after the user only needs to forward the target message, the type of the target message to be forwarded and the type of the message in the communication record can be guaranteed. In line with this, the user does not need to perform other operations on the target message, which solves the problem that how to reduce the operation steps of the user on the original message when forwarding the message has become an urgent problem to be solved.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了消息发送方法,包括:In a first aspect, an embodiment of the present application provides a method for sending a message, including:
接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;receiving a first input from the user to the target message, where the first input is a forwarding operation pointing to the target object;
响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息;In response to the first input, send 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 included 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 an apparatus for sending a message, including: a receiving module, configured to receive a first input from a user to a target message, where the first input is a forwarding operation directed to the target object; a sending module, configured to respond to the first input of the target message; Upon input, send a first message corresponding to the target message to the target object according to the communication record between the user and the target object.
第三方面,本申请实施例提供了电子设备,包括处理器,存储器及存储在存储器 上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面提供的消息发送方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the implementation of the first aspect provides The steps of the message sending method.
第四方面,本申请实施例提供了可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面提供的消息发送方法的步骤。In a fourth aspect, the embodiments of the present application provide a readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the steps of the message sending method provided in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,提供的芯片包括处理器和通信接口,提供的通信接口和提供的处理器耦合,提供的处理器用于运行程序或指令,实现如第一方面提供的消息发送方法的步骤。In a fifth aspect, an embodiment of the present application provides a chip, where the provided chip includes a processor and a communication interface, the provided communication interface is coupled with the provided processor, and the provided processor is used to run a program or an instruction, and the implementation is as described in the first aspect. Provides the steps of the message sending method.
在本申请实施例中,电子设备接收到用户对目标消息的第一输入后,第一输入为转发指令,确定第一输入指向的目标对象。获取用户与目标对象之间通信记录,根据用户与目标对象之间的历史通信记录,将第一消息转化为对应的消息类型。再将转化消息类型后第一消息转发至目标对象,完成向目标对象转发目标消息。实现了自动对用户所需转发的目标消息进行类型转化,无需用户手动对目标消息的类型进行转化,实现了用户仅需要发送消息转发指令后,直接将与通信记录相关联的消息发送至目标对象,减少了用户在转发消息时的操作步骤。In the embodiment of the present application, after the electronic device receives the first input of the target message from the user, the first input is a forwarding instruction, and the target object pointed to by the first input is determined. A communication record between the user and the target object is acquired, and the first message is converted into a corresponding message type according to the historical communication record between the user and the target object. Then, the first message after the converted message type is forwarded to the target object to complete the forwarding of the target message to the target object. It realizes the automatic type conversion of the target message that the user needs to forward, without the need for the user to manually convert the type of the target message, and realizes that the user only needs to send the message forwarding instruction, and directly send the message associated with the communication record to the target object. , which reduces the operation steps for users when forwarding messages.
附图说明Description of drawings
图1示出了根据本申请实施例的消息发送方法的流程图之一;FIG. 1 shows one of the flow charts of a message sending method according to an embodiment of the present application;
图2示出了根据本申请实施例的电子设备的显示界面之一;FIG. 2 shows one of the display interfaces of the electronic device according to an embodiment of the present application;
图3示出了根据本申请实施例的电子设备的显示界面之二;FIG. 3 shows the second display interface of the electronic device according to the embodiment of the present application;
图4示出了根据本申请实施例的消息发送方法的流程图之二;FIG. 4 shows the second flowchart of the method for sending a message according to an embodiment of the present application;
图5示出了根据本申请实施例的消息发送方法的流程图之三;FIG. 5 shows the third flowchart of the method for sending a message according to an embodiment of the present application;
图6示出了根据本申请实施例的消息发送方法的流程图之四;FIG. 6 shows the fourth flowchart of the method for sending a message according to an embodiment of the present application;
图7示出了根据本申请实施例的电子设备的显示界面之三;FIG. 7 shows the third display interface of the electronic device according to the embodiment of the present application;
图8示出了根据本申请实施例的消息发送装置的结构框图之一;FIG. 8 shows one of the structural block diagrams of a message sending apparatus according to an embodiment of the present application;
图9示出了根据本申请实施例的消息发送装置的结构框图之二;FIG. 9 shows the second structural block diagram of a message sending apparatus according to an embodiment of the present application;
图10示出了根据本申请实施例的电子设备的硬件结构示意图。FIG. 10 shows a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的消息发送方法、消息发送装置、电子设备和存储介质进行详细地说明。The message sending method, message sending apparatus, electronic device, and storage medium provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
在本申请的一些实施例中,图1示出了根据本申请实施例的消息发送方法的流程图之一,具体地,如图1所示,消息发送方法具体包括以下步骤:In some embodiments of the present application, FIG. 1 shows one of the 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:
步骤102,接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作; Step 102, receiving the user's first input to the target message, where the first input is a forwarding operation pointing to the target object;
可以理解的,目标消息即为需要转发的消息,第一输入可以为对目标消息的转发输入,第一输入还可以为对目标消息所在界面的截屏输入。It can be understood that the target message is the message to be forwarded, the first input may be a forwarding input to the target message, and the first input may also be a screen capture input of an interface where the target message is located.
具体地,在第一输入为对目标消息的转发输入的情况下,第一输入还包括对目标对象的选择输入。例如,在接收到用户对目标消息“你知道我们去哪儿吗”的转发输入后,会显示一联系人选择界面,用户通过对目标对象:小明的选择,实现将该“你知道我们去哪儿吗”的目标消息转发至小明(目标对象)的操作。Specifically, when the first input is a forwarding input to the target message, the first input further includes a selection input of the target object. For example, after receiving the forwarding input of the target message "Do you know where we are going?" from the user, a contact selection interface will be displayed. "The operation of forwarding the target message to Xiaoming (target object).
具体地,在第一输入为对目标消息所在界面的截屏输入的情况下,第一输入还包括对目标对象的选择输入。例如,在接收到用户对目标消息“你知道我们去哪儿吗”的界面截屏输入后,可以显示一联系人选择界面,用户通过对目标对象:小明的选择,实现将该包括“你知道我们去哪儿吗”的目标消息的截屏图片发送至小明(目标对象)的操作。Specifically, in the case where the first input is a screen capture input of an interface where the target message is located, the first input further includes a selection input of the target object. For example, after receiving the user's input of the target message "Do you know where we are going?" interface screenshot, a contact selection interface can be displayed, and the user can select the target object: Xiao Ming to realize the inclusion of "Do you know where we are going?" Where is the action of sending a screenshot of the target message to Xiao Ming (target).
进一步地,若目标消息为语音消息,在第一输入为对目标消息所在界面的截屏输入的情况下,可以先将该目标消息转换为文字消息,再对包括该语音消息对应的文字消息的截屏图片发送至目标对象。示例性地,如图2、图3所示,在目标消息21为语音的情况下,接收对该界面20的截屏输入,则会生成如图3所示的截屏图片,即,将目标消息21的语音转换为文字消息并显示与该语音消息的位置之下,并将如图3所示的该截屏图片发送至目标对象。在本实施方式中,在目标消息为语音、且第一输入为对目标消息所在界面的截屏输入的情况下,通过将文字消息显示在目标消息的附近位置,使得目标对象能够清楚明了的查看转发的目标消息。避免目标对象由于接收不到原始的目标消息数据,导致的对目标消息的真实性缺乏信任的问题。Further, if the target message is a voice message, in the case where the first input is a screen shot input of the interface where the target message is located, the target message can be converted into a text message first, and then the screen shot including the text message corresponding to the voice message is taken. The picture is sent to the target object. Exemplarily, as shown in FIG. 2 and FIG. 3 , in the case where the target message 21 is voice, a screen shot input of the interface 20 is received, and the screen shot picture shown in FIG. 3 will be generated, that is, the target message 21 will be The voice is converted into a text message and displayed below the position of the voice message, and the screenshot shown in Figure 3 is sent to the target object. In this embodiment, when the target message is voice and the first input is a screenshot input of the interface where the target message is located, the text message is displayed near the target message, so that the target object can view the forwarding clearly and clearly target message. Avoid the problem that the target object lacks trust in the authenticity of the target message because the target object cannot receive the original target message data.
步骤104,响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息; Step 104, in response to the first input, according to the communication record between the user and the target object, send a first message corresponding to the target message to the target object;
其中,第一消息的类型与通信记录包含的消息的类型相关联,第一消息为语音消息或文字消息。The type of the first message is associated with the type of the message included in the communication record, and the first message is a voice message or a text message.
可以理解的,用户与目标对象的通信记录为与目标对象的历史通信记录。可选地,目标消息可以为语音消息,也可以为文字消息。It can be understood that the communication record between the user and the target object is the historical communication record with the target object. Optionally, the target message may be a voice message or a text message.
具体地,在目标消息为语音消息的情况下,可以是根据与目标对象的历史通信记录,将该语音消息保持以语音的形式转发至目标对象,也可以是根据与目标对象的历史通信记录,将该语音消息转换为文字,并以文字的形式转发至目标对象。在目标消 息为文字消息的情况下,可以是根据与目标对象的历史通信记录,将该文字消息保持以文字的形式转发至目标对象,也可以是根据与目标对象的历史通信记录,将该文字消息转换为对应的语音,并以语音的形式转发至目标对象。Specifically, when the target message is a voice message, the voice message can be forwarded to the target object in the form of voice according to the historical communication record with the target object, or it can be based on the historical communication record with the target object, Convert the voice message to text and forward the text to the target audience. When the target message is a text message, the text message can be forwarded to the target object in the form of text according to the historical communication record with the target object, or the text message can be forwarded to the target object according to the historical communication record with the target object. The message is converted into the corresponding voice and forwarded to the target object in the form of voice.
需要理解的是,第一消息的类型与通信记录包含的消息的类型相关联,指的是,可以根据与目标对象之间的历史通信记录,来确定与不同目标对象之间的通信习惯,从而选择最合适的消息类型向目标对象发送消息。例如,在目标对象为父母的情况下,与父母的历史通信记录多为语音消息,那么不管目标消息是语音消息还是文字消息,在转发对象为父母的情况下,都将该目标消息转换成语音的第一消息再进行转发。It should 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 habits with different target objects can be determined according to the historical communication records with the target object, thereby Choose the most appropriate message type to send a message to the target object. For example, if the target object is a parent, the historical communication records with the parent are mostly voice messages, then regardless of whether the target message is a voice message or a text message, if the forwarding object is a parent, the target message will be converted into voice and then forward the first message.
在本申请的实施例中,电子设备接收到用户对目标消息的第一输入后,第一输入为转发指令,确定第一输入指向的目标对象。获取用户与目标对象之间通信记录,根据用户与目标对象之间的历史通信记录,将第一消息转化为对应的消息类型。再将转化消息类型后第一消息转发至目标对象,完成向目标对象转发目标消息。实现了自动对用户所需转发的目标消息进行类型转化,无需用户手动对目标消息的类型进行转化,实现了用户仅需要发送消息转发指令后,直接将与通信记录相关联的消息发送至目标对象,减少了用户在转发消息时的操作步骤。In the embodiment of the present application, after the electronic device receives the first input of the target message from the user, the first input is a forwarding instruction, and the target object pointed to by the first input is determined. A communication record between the user and the target object is acquired, and the first message is converted into a corresponding message type according to the historical communication record between the user and the target object. Then, the first message after the converted message type is forwarded to the target object to complete the forwarding of the target message to the target object. It realizes the automatic type conversion of the target message that the user needs to forward, without the need for the user to manually convert the type of the target message, and realizes that the user only needs to send the message forwarding instruction, and directly send the message associated with the communication record to the target object. , which reduces the operation steps for users when forwarding messages.
进一步地,如图4所示,可选地,根据用户与目标对象的通信记录,向目标对象发送与目标信息对应的第一消息,具体包括:Further, as shown in Figure 4, optionally, according to the communication record between the user and the target object, send the first message corresponding to the target information to the target object, specifically including:
步骤202,获取通信记录中的历史消息的参数; Step 202, obtain the parameters of the historical message in the communication record;
可以理解的是,通信记录中的历史消息的选取规则为根据用户实际需要进行设置的。可选为选取通信记录中最近的一条历史消息,也可选为选取通信记录中最近一段时间内的历史消息。It can be understood that the selection rule of the historical message in the communication record is set according to the actual needs of the user. It can be selected to select the most recent historical message in the communication record, or it can be selected to select the historical message in the most recent period of time in the communication record.
步骤204,根据历史消息的参数,确定第一消息的类型; Step 204, determining the type of the first message according to the parameters of the historical message;
步骤206,向目标对象发送与目标消息对应的第一消息; Step 206, sending a first message corresponding to the target message to the target object;
其中,历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间,第一消息的类型包括语音类和文字类。The parameters of the historical message include at least one of the following: message type of the historical message, number of messages corresponding to each type of historical message, time of the historical message, and the type of the first message includes voice and text.
需要理解的是,历史消息的消息类型指的是:各条历史消息分别属于哪一类型,具体的消息类型可以是文字消息、语音消息、图片消息、链接消息等。各类型的历史消息对应的消息数量则指的是多个类型的消息分别对应的数量是多少,如文字消息、语音消息分别有多少条。历史消息的时间则指的是接收或发送该消息的时间。It should be understood that the message type of the historical message refers to which type each historical message belongs to, and the specific message type may be text message, voice message, picture message, link message and so on. The number of messages corresponding to each type of historical message refers to the number of the respective types of messages, such as the number of text messages and voice messages. The time of the historical message refers to the time when the message was received or sent.
在本申请实施例中,调用用户与目标对象的通信记录后,读取通信记录中的历史消息,并确定通信记录中全部历史消息的参数。In the embodiment of the present application, after calling the communication record between the user and the target object, the historical messages in the communication record are read, and the parameters of all the historical messages in the communication record are determined.
可选地,可以根据全部历史消息的参数确定用户向目标对象所需发送的第一消息的类型,并将目标信息转化为该类型的第一消息后,再将第一消息发送至目标对象。也可以只获取部分历史消息的参数来确定用户向目标对象所需发送的第一消息的类型。示例性的,可以将与该目标对象有记录以来的全部消息的消息均参数进行获取, 也可以只将该目标对象最近一周消息的消息参数进行获取。在确定第一消息的类型后,需要判定是否需要对目标消息进行类型转化。如果目标消息的类型与第一消息的类型相同,则可选地直接将目标消息作为第一消息转发至目标对象。如果目标消息的类型与第一消息的类型不相同,则将目标消息通过类型转化,以得到第一消息。Optionally, the type of the first message to be sent by the user to the target object can be determined according to parameters of all historical messages, and the target information is converted into the first message of this type, and then the first message is sent to the target object. It is also possible to obtain only some parameters of the historical messages to determine the type of the first message that the user needs to send to the target object. Exemplarily, all message parameters of all messages recorded with the target object may be acquired, or only message parameters of messages of the target object in the last week may be acquired. After determining the type of the first message, it is necessary to determine whether to perform type conversion on the target message. If the type of the target message is the same as the type of the first message, the target message is optionally directly forwarded to the target object as the first message. If the type of the target message is different from the type of the first message, the target message is converted by type to obtain the first message.
在一种可选的实施方式中,目标消息的类型为语音类,根据历史消息参数确定第一消息的类型为文字类,则将目标消息转化为文字类的第一消息,再将第一消息转发至目标对象。In an optional implementation manner, the type of the target message is a voice type, and the type of the first message is determined to be a text type according to historical message parameters, the target message is converted into a text type first message, and then the first message is converted into a text type first message. Forward to the target object.
在一种可选的实施方式中,目标消息的类型为文字类,根据历史消息参数确定第一消息的类型也为文字类,则将目标消息作为第一消息,转发至目标对象。In an optional implementation manner, the type of the target message is text, and it is determined according to historical message parameters that the type of the first message is also text, and the target message is taken as the first message and forwarded to the target object.
在一些实施例中,历史消息的参数还可以包括语言种类,在发送第一消息之前,根据语言种类对第一消息的语言种类进行转化。In some embodiments, the parameters of the historical message may further include a language type, and before sending the first message, the language type of the first message is converted according to the language type.
具体地,获取历史消息的语言种类,根据历史消息的语言种类确定目标语言种类,在发送第一消息之前,根据目标语言种类对第一消息进行翻译,以得到以目标语言输出的第一消息。实现了自动对转发消息的翻译,无需用户在发送消息之前手动对其进行翻译,进一步提高了用户转发消息的便利性。Specifically, the language type of the historical message is acquired, the target language type is determined according to the language type of the historical 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, and the user does not need to manually translate the message before sending it, which further improves the convenience for the user to forward the message.
示例性地,在目标语言种类为英文的情况下,在为中文的第一消息发送之前,将该中文的第一消息翻译为英文,且保持第一消息的类型不变。Exemplarily, when the target language type is English, before the first message in Chinese is sent, the first message in Chinese is translated into English, and the type of the first message is kept unchanged.
在本申请的实施例中,通过通信记录中的历史消息的参数能够得到用户与目标对象之间的通信习惯,根据得到的通信习惯确定第一消息的类型,能够保证发送的第一消息的类型符合用户与目标对象之间的通信习惯。当根据通信习惯确定符合通信习惯的类型后,则自动将目标消息转化为该类型的第一消息进行发送,无需用户进行其他例如手动转化消息类型的操作,在简化用户转发消息操作的同时,还保证了转发的消息符合用户与目标对象的通信习惯。In the embodiment of the present application, the communication habit between the user and the target object can be obtained through the parameters of the historical message in the communication record, and the type of the first message can be determined according to the obtained communication habit, and the type of the first message to be sent can be guaranteed. In line with the communication habits between the user and the target audience. When the type that conforms to the communication habits is determined according to the communication habits, the target message is automatically converted into the first message of this type and sent, without the need for the user to perform other operations such as manual conversion of the message type. It is ensured that the forwarded message conforms to the communication habits between the user and the target object.
如图5所示,可选地,根据历史消息的参数,确定第一消息的类型,包括:As shown in Figure 5, optionally, the type of the first message is determined according to the parameters of the historical message, including:
步骤302,根据历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系; Step 302, according to the parameters of the historical message, determine the priority relationship between the voice historical message and the textual historical message;
可以理解的是,语音类历史消息和文字类历史消息的优先级关系的确定规则与历史消息的参数有关。It can be understood that the rule for determining the priority relationship between the speech-type historical message and the text-type historical message is related to the parameters of the historical message.
可选地,根据消息类型、消息数量和消息时间确定语音类和文字类的优先级关系。Optionally, the priority relationship between the speech class and the text class is determined according to the message type, the number of messages and the message time.
具体地,获取一段时间内的全部历史消息,将该段时间内的文字类历史消息和语音类历史消息的数量关系进行比较。如果语音类历史消息的数量比文字类历史消息数量多,则判定语音类的优先级较高,将第一消息的类型确定为语音类,如果文字类历史消息的数量比语音类历史消息数量多,则判定文字类的优先级较高,将第一消息的类型确定为文字类。Specifically, all the historical messages in a period of time are acquired, and the quantitative relationship between the historical messages of the text type and the historical messages of the voice type in the period of time is compared. If the number of voice history messages is larger than the number of text history messages, it is determined that the priority of the voice class is higher, and the type of the first message is determined to be the voice class. , then it is determined that the priority of the text category is higher, and the type of the first message is determined to be the text category.
值得说明的是,如果一段时间内的全部历史消息的数量为1,如果该历史消息为 语音类历史消息,则语音类的优先级高于文字类的优先级,如果该历史消息为文字类历史消息,则文字类的优先级高于语音类的优先级。It is worth noting that, if the number of all historical messages in a period of time is 1, if the historical message is a speech history message, the priority of the speech class is higher than that of the text class, and if the history message is a text class history message message, the priority of the text class is higher than that of the voice class.
可选地,还可以根据文字类历史消息与语音类历史消息的消息时间对消息类型的优先级进行判断。Optionally, the priority of the message type may also be judged according to the message time of the text-type historical message and the voice-type historical message.
在一种可选的实施方式中,获取通信记录中距离当前时间点最近的一次的历史消息,如果最近一次的历史消息的类型为语音类,则判定语音类历史消息的消息时间晚于文字类历史消息的消息时间,如果最近一次的历史消息的类型为文字类,则判定文字类历史消息的时间晚于语音类历史消息的消息时间。将最近一次的历史消息的消息类型作为优先级较高的消息类型。In an optional implementation manner, the most recent historical message in the communication record from the current time point is obtained, and if the type of the most recent historical message is a voice type, it is determined that the message time of the voice type historical message is later than that of the text type. The message time of the historical message. If the type of the most recent historical message is text, it is determined that the time of the text historical message is later than the message time of the voice historical message. The message type of the latest historical message is used as the message type with higher priority.
示例性地,用户接收到目标对象的语音消息,在对目标消息进行转发时,检测到通信记录最近一次的消息类型为语音类,则确定语音类历史消息的优先级高于文字类历史消息的优先级。Exemplarily, when the user receives a voice message from the target object, and when forwarding the target message, it is detected that the last message type of the communication record is a voice type, and then it is determined that the priority of the voice type historical message is higher than that of the text type historical message. priority.
在一种可选的实施例方式中,获取接收到第一输入的时间信息,根据时间信息查找与该时间信息对应的通信记录中的历史消息的类型。In an optional embodiment, the time information on which the first input is received is acquired, and the type of the historical message in the communication record corresponding to the time information is searched for according to the time information.
具体地,获取用户对目标消息执行转发指令的时间信息,获取通信记录中与该时间信息对应的历史消息的类型和历史消息的数量,根据与该时间信息对应的历史消息的类型和历史消息的数量确定语音类历史消息和文字类历史消息的优先级关系。Specifically, obtain the time information when the user executes the forwarding instruction on the target message, obtain the type and quantity of historical messages corresponding to the time information in the communication record, and obtain the type and number of historical messages corresponding to the time information according to the The quantity determines the priority relationship between the voice-type historical message and the text-type historical message.
示例性地,用户在晚上9点对目标消息进行转发。若通信记录中在晚上8点至晚上10点收发的文字类历史消息的数量为50条,语音类历史消息的数量为3条,则确定文字类历史消息的优先级高于语音类历史消息的优先级。Exemplarily, the user forwards the target message at 9:00 pm. If the number of textual historical messages sent and received from 8:00 pm to 10:00 pm in the communication record is 50 and the number of voice-based historical messages is 3, it is determined that the priority of text-based historical messages is higher than that of voice-based historical messages priority.
步骤304,在语音类的优先级高于文字类的优先级的情况下,确定第一消息的类型为语音类;或在文字类的优先级高于语音类的优先级的情况下,确定第一消息的类型为文字类。 Step 304, when the priority of the voice class is higher than the priority of the text class, determine that the type of the first message is the voice class; or when the priority of the text class is higher than the priority of the voice class, determine the first message type. A message is of type literal.
本申请的实施例中,根据历史消息的参数能够确定语音类历史消息和文字类历史消息的优先级关系,根据优先级关系,选择第一消息为文字类或语音类。通过对历史消息的参数进行分析,能够根据历史消息的参数能够确定用户与目标对象之间的沟通习惯,从而得到文字类的优先级和语音类的优先级的关系。根据文字类的优先级和语音类的优先级的关系选择将第一消息设置为对应类型的消息,实现了对转发消息的消息类型智能化选择的效果,使转发的第一消息能够更符合用户需求,进一步提高了用户的使用体验。In the embodiment of the present application, the priority relationship between the voice historical message and the textual historical message can be determined according to the parameters of the historical message, and the first message is selected to be textual or voiced according to the priority relationship. By analyzing the parameters of the historical message, the communication habits between the user and the target object can be determined according to the parameters of the historical message, so as to obtain the relationship between the priority of the text category and the priority of the voice category. According to the relationship between the priority of the text category and the priority of the voice category, the first message is selected as the corresponding type of message, which realizes the effect of intelligently selecting the message type of the forwarded message, and makes the forwarded first message more suitable for the user. requirements, further improving the user experience.
可选地,根据消息类型和消息数量确定语音类和文字类的优先级关系。Optionally, the priority relationship between the speech class and the text class is determined according to the message type and the number of messages.
具体地,若语音类历史消息的数量大于文字类历史消息的数量,则确定语音类历史消息的优先级高于文字类历史消息的优先级;Specifically, if the number of voice-type historical messages is greater than the number of text-type historical messages, it is determined that the priority of the voice-type historical messages is higher than the priority of the text-type historical messages;
或,若文字类历史消息的数量大于语音类历史消息的数量,则确定文字类历史消息的优先级高于语音类历史消息的优先级;Or, if the number of text-type historical messages is greater than the number of voice-type historical messages, it is determined that the priority of text-type historical messages is higher than the priority of voice-type historical messages;
可以理解的,通过比较语音类历史消息的数量和文字类历史消息的数量确定文字类和语音类的优先级关系,再根据该优先级关系确定第一消息的类型,则使转发的第一消息的类型与通信记录中大部分历史消息的类型相符。It can be understood that the priority relationship between the text class and the phonetic class is determined by comparing the number of voice-type historical messages and the number of text-type historical messages, and then the type of the first message is determined according to the priority relationship, so that the forwarded first message The type matches the type of most of the historical messages in the communication log.
或,若语音类历史消息的消息时间晚于文字类历史消息的消息时间,则确定语音类历史消息的优先级高于文字类历史消息的优先级;Or, if the message time of the audio history message is later than the message time of the text history message, determine that the priority of the audio history message is higher than the priority of the text history message;
或,若文字类历史消息的消息时间晚于语音类历史消息的消息时间,则确定文字类历史消息的优先级高于语音类历史消息的优先级。Or, if the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
可以理解的,通过比较文字类历史消息和语音类历史消息的时间,则使转发的第一消息的类型与最近一次收发的历史消息的类型相符。It can be understood that by comparing the time of the historical text message and the historical message of the voice, the type of the forwarded first message is made consistent with the type of the most recent historical message sent and received.
需要理解的是,用户在转发消息之前,可以对具体判断优先级的方式进行选择。It should be understood that, before forwarding the message, the user may select a specific method for judging the priority.
如图6所示,可选地,向目标对象发送第一消息之前,还包括:As shown in Figure 6, optionally, before sending the first message to the target object, the method further includes:
步骤402,确定第一消息的类型为语音类; Step 402, determine that the type of the first message is a voice class;
步骤404,将目标消息转换为目标语音参数对应的第一消息; Step 404, converting the target message into a first message corresponding to the target speech parameter;
其中,目标语音参数为用户的语音参数。The target speech parameter is the user's speech parameter.
可以理解的,在将目标消息转化为第一消息,并将第一消息发送给目标对象之前,确定第一消息的类型为语音类时,则执行获取目标语音参数的步骤,并根据目标语音参数对目标消息进行转化。其中,目标语音参数为用户的语音参数,用户的语音参数具体包括用户的声纹特征和语调等参数。It can be understood that, before the target message is converted into the first message and the first message is sent to the target object, when it is determined that the type of the first message is a voice class, the step of obtaining the target voice parameter is performed, and the target voice parameter is obtained according to the target voice parameter. Convert the target message. The target speech parameter is the user's speech parameter, and the user's speech parameter specifically includes parameters such as the user's voiceprint feature and intonation.
具体地,当第一消息的类型为语音类,且目标消息的类型为文字类,则将文字类的目标消息转化为带有用户的声纹特征的语音类第一消息;当第一消息的类型为语音类,且目标消息的类型也为语音类,则将语音类的目标消息转化为带有用户的声纹特征的语音类第一消息,使目标对象接收到的第一消息,符合用户的语言习惯。Specifically, when the type of the first message is a voice type and the type of the target message is a text type, the text type target message is converted into a voice type first message with the user's voiceprint feature; If the type is voice, and the type of target message is also voice, then the target message of voice is converted into the first message of voice with the characteristics of the user's voiceprint, so that the first message received by the target object is in line with the user's voice. language habits.
具体地,当第一消息和目标消息的类型均为语音类时,解析目标消息中语义,根据语义和目标语音参数生成对应的第一消息,并将第一消息转发给目标对象。Specifically, when the types of the first message and the target message are both speech types, the semantics in the target message are parsed, the corresponding first message is generated according to the semantics and the target speech parameters, and the first message is forwarded to the target object.
可以理解的是,根据消息记录中的语音类历史消息训练声学模型,将目标消息输入声学模型中,能够将目标消息快速转化为带有用户声纹特征的第一消息。It can be understood that, training the acoustic model according to the historical voice messages in the message record and inputting the target message into the acoustic model can quickly convert the target message into the first message with the features of the user's voiceprint.
本申请的实施例中,在确定第一消息的类型为语音类后,通过将用户的语音参数作为目标语音参数,根据目标语音参数输出对应的第一消息。实现了向目标对象发送的第一消息具有用户的语音特征,使发送的语音类的第一消息更自然。In the embodiment of the present application, after it is determined that the type of the first message is a voice type, the user's voice parameter is used as the target voice parameter, and the corresponding first message is output according to the target voice parameter. It is realized that the first message sent to the target object has the characteristics of the user's voice, so that the first message of the voice type to be sent is more natural.
进一步地,根据第一消息的类型和目标消息的类型输出提示信息。Further, prompt information is output according to the type of the first message and the type of the target message.
示例性地,如图7所示,在目标消息21为语音类消息的情况下,且确定第一消息为文字类消息的情况下,接收对该界面20的截屏输入,则会生成如图7所示的生成提示信息22,提示信息22以悬浮窗的形式显示,并提示信息22的悬浮窗能够响应于用户的选择指令,选择是否对目标消息21进行转化。Exemplarily, as shown in FIG. 7 , in the case where the target message 21 is a voice message, and it is determined that the first message is a text message, the screen capture input of the interface 20 is received, and the image shown in FIG. 7 will be generated. As shown, the prompt information 22 is generated, the prompt information 22 is displayed in the form of a floating window, and the floating window of the prompt information 22 can select whether to convert the target message 21 in response to the user's selection instruction.
本申请的实施例中,当目标消息与第一消息的类型不同时,则生成并显示提示信 息,以使用户能够自由选择是否对目标消息进行转化,并且用户能够直接对显示的提示信息进行触发操作,简化了用户的操作步骤。In the embodiment of the present application, when the type of the target message is different from that of the first message, prompt information is generated and displayed, so that the user can freely choose whether to convert the target message, and the user can directly trigger the displayed prompt information operation, which simplifies the user's operation steps.
需要说明的是,本申请实施例提供的消息发送方法,执行主体可以为消息发送装置,或者该消息发送装置中的用于执行消息发送方法的控制模块。本申请实施例中以消息发送装置执行消息发送方法为例,说明本申请实施例提供的消息发送装置。It should be noted that, in the message sending method provided by the embodiment of the present application, the execution body may be a message sending apparatus, or a control module in the message sending apparatus for executing the message sending method. In the embodiment of the present application, the message sending device provided by the embodiment of the present application is described by taking a message sending device executing a message sending method as an example.
在本申请的一些实施例中,图8示出了根据本申请实施例的消息发送装置500的结构框图,如图8所示,消息发送装置500包括:In some embodiments of the present application, FIG. 8 shows a structural 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:
接收模块510,用于接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;The receiving module 510 is configured to receive the first input of the user to the target message, where the first input is a forwarding operation directed to the target object;
可以理解的,目标消息即为需要转发的消息,第一输入可以为对目标消息的转发输入,第一输入还可以为对目标消息所在界面的截屏输入。It can be understood that the target message is the message to be forwarded, the first input may be a forwarding input to the target message, and the first input may also be a screen capture input of an interface where the target message is located.
发送模块520,用于响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息;The sending module 520 is configured to, in response to the first input, send 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 included in the communication record, and the first message is a voice message or a text message.
可以理解的,用户与目标对象的通信记录为与目标对象的历史通信记录。可选地,目标消息可以为语音消息,也可以为文字消息。It can be understood that the communication record between the user and the target object is the historical communication record with the target object. Optionally, the target message may be a voice message or a text message.
在本申请的实施例中,电子设备接收到用户对目标消息的第一输入后,第一输入为转发指令,确定第一输入指向的目标对象。获取用户与目标对象之间通信记录,根据用户与目标对象之间的历史通信记录,将第一消息转化为对应的消息类型。再将转化消息类型后第一消息转发至目标对象,完成向目标对象转发目标消息。实现了自动对用户所需转发的目标消息进行类型转化,无需用户手动对目标消息的类型进行转化,实现了用户仅需要发送消息转发指令后,直接将与通信记录相关联的消息发送至目标对象,减少了用户在转发消息时的操作步骤。In the embodiment of the present application, after the electronic device receives the first input of the target message by the user, the first input is a forwarding instruction, and the target object pointed to by the first input is determined. A communication record between the user and the target object is acquired, and the first message is converted into a corresponding message type according to the historical communication record between the user and the target object. Then, the first message after the converted message type is forwarded to the target object to complete the forwarding of the target message to the target object. It realizes the automatic type conversion of the target message that the user needs to forward, without the need for the user to manually convert the type of the target message, and realizes that the user only needs to send the message forwarding instruction, and directly send the message associated with the communication record to the target object. , which reduces the operation steps for users when forwarding messages.
如图9所示,可选地,发送模块520包括:As shown in FIG. 9, optionally, the sending module 520 includes:
获取单元522,用于获取通信记录中的历史消息的参数;Obtaining unit 522, for obtaining the parameter of the historical message in the communication record;
可以理解的是,通信记录中的历史消息的选取规则为根据用户实际需要进行设置的。可选为选取通信记录中最近的一条历史消息,也可选为选取通信记录中最近一段时间内的历史消息。It can be understood that the selection rule of the historical message in the communication record is set according to the actual needs of the user. It can be selected to select the most recent historical message in the communication record, or it can be selected to select the historical message in the most recent period of time in the communication record.
确定单元524,用于根据历史消息的参数,确定第一消息的类型;determining unit 524, for determining the type of the first message according to the parameters of the historical message;
发送单元526,用于向目标对象发送与目标消息对应的第一消息;a sending unit 526, configured to send a first message corresponding to the target message to the target object;
其中,历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间,第一消息的类型包括语音类和文字类。The parameters of the historical message include at least one of the following: message type of the historical message, number of messages corresponding to each type of historical message, time of the historical message, and the type of the first message includes voice and text.
在本申请的实施例中,通过通信记录中的历史消息的参数能够得到用户与目标对象之间的通信习惯,根据得到的通信习惯确定第一消息的类型,能够保证发送的第一 消息的类型符合用户与目标对象之间的通信习惯。当根据通信习惯确定符合通信习惯的类型后,则自动将目标消息转化为该类型的第一消息进行发送,无需用户进行其他例如手动转化消息类型的操作,在简化用户转发消息操作的同时,还保证了转发的消息符合用户与目标对象的通信习惯。In the embodiment of the present application, the communication habit between the user and the target object can be obtained through the parameters of the historical message in the communication record, and the type of the first message can be determined according to the obtained communication habit, and the type of the first message to be sent can be guaranteed. In line with the communication habits between the user and the target audience. When the type that conforms to the communication habits is determined according to the communication habits, the target message is automatically converted into the first message of this type and sent, without the need for the user to perform other operations such as manual conversion of the message type. It is ensured that the forwarded message conforms to the communication habits between the user and the target object.
可选地,确定单元524具体用于根据历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系;Optionally, the determining unit 524 is specifically configured to determine the priority relationship between the voice historical message and the textual historical message according to the parameters of the historical message;
可以理解的是,语音类历史消息和文字类历史消息的优先级关系的确定规则与选择的历史消息的参数有关。It can be understood that the rule for determining the priority relationship between the speech type history message and the text type history message is related to the parameters of the selected history message.
可选地,根据消息类型、消息数量和消息时间确定语音类和文字类的优先级关系。Optionally, the priority relationship between the speech class and the text class is determined according to the message type, the number of messages and the message time.
本申请的实施例中,根据历史消息的参数能够确定语音类历史消息和文字类历史消息的优先级关系,根据优先级关系,选择第一消息为文字类或语音类。通过对历史消息的参数进行分析,能够根据历史消息的参数能够确定用户与目标对象之间的沟通习惯,从而得到文字类的优先级和语音类的优先级的关系。根据文字类的优先级和语音类的优先级的关系选择将第一消息设置为对应类型的消息,实现了对转发消息的消息类型智能化选择的效果,使转发的第一消息能够更符合用户需求,进一步提高了用户的使用体验。In the embodiment of the present application, the priority relationship between the voice historical message and the textual historical message can be determined according to the parameters of the historical message, and the first message is selected to be textual or voiced according to the priority relationship. By analyzing the parameters of the historical message, the communication habits between the user and the target object can be determined according to the parameters of the historical message, so as to obtain the relationship between the priority of the text category and the priority of the voice category. According to the relationship between the priority of the text category and the priority of the voice category, the first message is selected as the corresponding type of message, which realizes the effect of intelligently selecting the message type of the forwarded message, and makes the forwarded first message more suitable for the user. requirements, further improving the user experience.
可选地,确定单元524还用于:Optionally, the determining unit 524 is further configured to:
若语音类历史消息的数量大于文字类历史消息的数量,则确定语音类历史消息的优先级高于文字类历史消息的优先级;If the number of voice-type historical messages is greater than the number of text-type historical messages, it is determined that the priority of voice-type historical messages is higher than the priority of text-type historical messages;
或,若文字类历史消息的数量大于语音类历史消息的数量,则确定文字类历史消息的优先级高于语音类历史消息的优先级;Or, if the number of text-type historical messages is greater than the number of voice-type historical messages, it is determined that the priority of text-type historical messages is higher than the priority of voice-type historical messages;
可以理解的,通过比较语音类历史消息的数量和文字类历史消息的数量确定文字类和语音类的优先级关系,再根据该优先级关系确定第一消息的类型,则使转发的第一消息的类型与通信记录中大部分历史消息的类型相符。It can be understood that the priority relationship between the text class and the phonetic class is determined by comparing the number of voice-type historical messages and the number of text-type historical messages, and then the type of the first message is determined according to the priority relationship, so that the forwarded first message The type matches the type of most of the historical messages in the communication log.
或,若语音类历史消息的消息时间晚于文字类历史消息的消息时间,则确定语音类历史消息的优先级高于文字类历史消息的优先级;Or, if the message time of the audio history message is later than the message time of the text history message, determine that the priority of the audio history message is higher than the priority of the text history message;
或,若文字类历史消息的消息时间晚于语音类历史消息的消息时间,则确定文字类历史消息的优先级高于语音类历史消息的优先级。Or, if the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
可以理解的,通过比较文字类历史消息和语音类历史消息的时间,则使转发的第一消息的类型与最近一次收发的历史消息的类型相符。It can be understood that by comparing the time of the historical text message and the historical message of the voice, the type of the forwarded first message is made consistent with the type of the most recent historical message sent and received.
需要理解的是,用户在转发消息之前,可以对具体判断优先级的方式进行选择。It should be understood that, before forwarding the message, the user may select a specific method for judging the priority.
如图8所示,可选地,消息发送装置500,还包括:As shown in FIG. 8, optionally, the message sending apparatus 500 further includes:
转换模块530,用于在确定第一消息的类型为语音类的情况下,将目标消息转换为目标语音参数对应的第一消息;其中,目标语音参数为用户的语音参数。The conversion module 530 is configured to convert the target message into a first message corresponding to a target voice parameter when the type of the first message is determined to be a voice type, wherein the target voice parameter is a user's voice parameter.
可以理解的,在将目标消息转化为第一消息,并将第一消息发送给目标对象之前, 确定第一消息的类型为语音类时,则执行获取目标语音参数的步骤,并根据目标语音参数对目标消息进行转化。其中,目标语音参数为用户的语音参数,用户的语音参数具体包括用户的声纹特征和语调等参数。It can be understood that, before the target message is converted into the first message and the first message is sent to the target object, when it is determined that the type of the first message is a voice class, the step of obtaining the target voice parameter is performed, and the target voice parameter is obtained according to the target voice parameter. Convert the target message. The target speech parameter is the user's speech parameter, and the user's speech parameter specifically includes parameters such as the user's voiceprint feature and intonation.
可选地,第一输入为对目标消息所在界面的截屏输入,第一消息为图片消息;发送模块520,具体用于在目标消息为文字消息的情况下,向目标对象发送目标消息所在界面的截屏图片;或者,具体用于在目标消息为语音消息的情况下,向目标对象发送包括目标消息对应的文字消息的截屏图片。Optionally, the first input is a screenshot input of the interface where the target message is located, and the first message is a picture message; the sending module 520 is specifically configured to send the target object the interface where the target message is located when the target message is a text message. A screenshot; or, specifically, when the target message is a voice message, sending a screenshot including a text message corresponding to the target message to the target object.
可以理解的,在目标消息为语音消息的情况下,在接收到第一输入之后,可以先将目标消息转换为对应的文字消息,再向目标对象发送包括该目标消息对应的文字消息的截屏图片。It can be understood that in the case where the target message is a voice message, after receiving the first input, the target message can be converted into a corresponding text message, and then a screenshot including the text message corresponding to the target message is sent to the target object. .
本申请的实施例中,在确定第一消息的类型为语音类后,通过将用户的语音参数作为目标语音参数,根据目标语音参数输出对应的第一消息。实现了向目标对象发送的第一消息具有用户的语音特征,使发送的语音类的第一消息更自然。In the embodiment of the present application, after it is determined that the type of the first message is a voice type, the user's voice parameter is used as the target voice parameter, and the corresponding first message is output according to the target voice parameter. It is realized that the first message sent to the target object has the characteristics of the user's voice, so that the first message of the voice type to be sent is more natural.
本申请的实施例中,当目标消息与第一消息的类型不同时,则生成并显示提示信息,以使用户能够自由选择是否对目标消息进行转化,并且用户能够直接对显示的提示信息进行触发操作,简化了用户的操作步骤。本申请实施例中的消息发送装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。In the embodiment of the present application, when the type of the target message is different from that of the first message, prompt information is generated and displayed, so that the user can freely choose whether to convert the target message, and the user can directly trigger the displayed prompt information operation, which simplifies the user's operation steps. The message sending apparatus in this embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的消息发送装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The message sending apparatus in this embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (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 devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图10为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
如图10所示,该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、第一输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。As shown in FIG. 10, the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, a first input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, Memory 609, processor 610 and other components.
用户输入单元607用于接收第一输入。The user input unit 607 is used to receive the first input.
存储器609用于存储消息发送方法。The memory 609 is used to store the message sending method.
处理器610还用于:获取通信记录中历史消息的参数;根据历史消息的参数,确 定第一消息的类型;向目标对象发送与目标消息对应的第一消息;其中,历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间,第一消息的类型包括语音类和文字类。The processor 610 is further configured to: obtain the parameters of the historical message in the communication record; determine the type of the first message according to the parameters of the historical message; send the first message corresponding to the target message to the target object; wherein the parameters of the historical message include the following At least one item: the message type of the historical message, the number of messages corresponding to each type of historical message, the time of the historical message, and the type of the first message includes a voice type and a text type.
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 600 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
在其中一个实施例中,存储器609存储有应用程序和操作系统,输入单元604可以包括图形处理器6041和麦克风6042,显示单元606包括显示面板6061。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 .
在其中一个实施例中,处理器610用于:接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息;其中,第一消息的类型与通信记录包含的消息的类型相关联,第一消息为语音消息或文字消息。In one embodiment, the processor 610 is configured to: receive a first input from the user to the target message, where the first input is a forwarding operation directed to the target object; in response to the first input, according to the communication record between the user and the target object, send a message to the target object. The target object sends a first message corresponding to the target message; 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.
在其中一个实施例中,处理器610还用于:根据历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系;在语音类的优先级高于文字类的优先级的情况下,确定第一消息的类型为语音类;或在文字类的优先级高于语音类的优先级的情况下,确定第一消息的类型为文字类。In one embodiment, the processor 610 is further configured to: determine, according to the parameters of the historical message, the priority relationship between the speech-type historical message and the text-type historical message; when the priority of the speech-type is higher than the priority of the text-type Next, the type of the first message is determined to be the voice type; or in the case that the priority of the text type is higher than the priority of the voice type, the type of the first message is determined to be the text type.
在其中一个实施例中,处理器610还用于:若语音类历史消息的数量大于文字类历史消息的数量,则确定语音类历史消息的优先级高于文字类历史消息的优先级;或,In one of the embodiments, the processor 610 is further configured to: if the number of voice-type historical messages is greater than the number of text-type historical messages, determine that the priority of the voice-type historical message is higher than that of the text-type historical message; or,
若语音类历史消息的消息时间晚于文字类历史消息的消息时间,则确定语音类历史消息的优先级高于文字类历史消息的优先级;或,If the message time of the audio history message is later than the message time of the text history message, the priority of the audio history message is determined to be higher than that of the text history message; or,
若文字类历史消息的数量大于语音类历史消息的数量,则确定文字类历史消息的优先级高于语音类历史消息的优先级;或,If the number of text-type historical messages is greater than the number of voice-type historical messages, it is determined that the priority of text-type historical messages is higher than that of voice-type historical messages; or,
若文字类历史消息的消息时间晚于语音类历史消息的消息时间,则确定文字类历史消息的优先级高于语音类历史消息的优先级。If the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
在其中一个实施例中,处理器610还用于:在确定第一消息的类型为语音类的情况下,将目标消息转换为目标语音参数对应的第一消息;In one of the embodiments, the processor 610 is further configured to: convert the target message into a first message corresponding to the target voice parameter in the case that the type of the first message is determined to be a voice type;
其中,目标语音参数为用户的语音参数。The target speech parameter is the user's speech parameter.
在其中一个实施例中,第一输入为对目标消息所在界面的截屏输入,第一消息为图片消息;处理器610,具体用于在目标消息为文字消息的情况下,向目标对象发送目标消息所在界面的截屏图片;或者,具体用于在目标消息为语音消息的情况下,向目标对象发送包括目标消息对应的文字消息的截屏图片。In one embodiment, the first input is a screenshot input of an interface where the target message is located, and the first message is a picture message; the processor 610 is specifically configured to send the target message to the target object when the target message is a text message A screenshot of the interface where it is located; or, specifically, when the target message is a voice message, sending a screenshot of the text message corresponding to the target message to the target object.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述消息发送方法实施例的各个过程,且能达到相同 的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for sending a message can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述消息发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction to implement each process of the above-mentioned embodiment of the message sending method, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes 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 the reverse order depending on the functions involved. To perform functions, for example, 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 some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (17)

  1. 一种消息发送方法,包括:A message sending method, comprising:
    接收用户对目标消息的第一输入,所述第一输入为指向目标对象的转发操作;receiving a first input from the user to the target message, where the first input is a forwarding operation directed to the target object;
    响应于所述第一输入,根据用户与所述目标对象的通信记录,向所述目标对象发送与所述目标消息对应的第一消息;In response to the first input, send a first message corresponding to the target message to the target object according to the communication record between the user and the target object;
    其中,所述第一消息的类型与所述通信记录包含的消息的类型相关联,所述第一消息为语音消息、图片消息或文字消息。Wherein, the type of the first message is associated with the type of the message included in the communication record, and the first message is a voice message, a picture message or a text message.
  2. 根据权利要求1所述的消息发送方法,其中,所述根据用户与所述目标对象的通信记录,向所述目标对象发送与所述目标消息对应的第一消息,具体包括:The message sending method according to claim 1, wherein the sending a first message corresponding to the target message to the target object according to the communication record between the user and the target object specifically includes:
    获取所述通信记录中历史消息的参数;Obtain the parameters of the historical message in the communication record;
    根据所述历史消息的参数,确定第一消息的类型;Determine 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;
    其中,所述历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间;所述第一消息的类型包括语音类和文字类。The parameters of the historical message include at least one of the following: message type of the historical message, the number of messages corresponding to each type of historical message, and the time of the historical message; the types of the first message include voice type and text type.
  3. 根据权利要求2所述的消息发送方法,其中,所述根据所述历史消息的参数,确定第一消息的类型,包括:The message sending method according to claim 2, wherein the determining the type of the first message according to the parameters of the historical message comprises:
    根据所述历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系;According to the parameters of the historical message, determine the priority relationship between the voice historical message and the textual historical message;
    在所述语音类的优先级高于所述文字类的优先级的情况下,确定所述第一消息的类型为语音类;或In the case that the priority of the speech class is higher than the priority of the text class, determine that the type of the first message is a speech class; or
    在所述文字类的优先级高于所述语音类的优先级的情况下,确定所述第一消息的类型为文字类。In the case that the priority of the text class is higher than the priority of the voice class, it is determined that the type of the first message is the text class.
  4. 根据权利要求3所述的消息发送方法,其中,所述根据所述消息类型和所述消息数量,确定所述语音类和所述文字类的优先级关系,包括:The method for sending a message according to claim 3, wherein the determining the priority relationship between the voice class and the text class according to the message type and the number of messages includes:
    若所述语音类历史消息的数量大于所述文字类历史消息的数量,则确定所述语音类历史消息的优先级高于所述文字类历史消息的优先级;或,If the number of the voice history messages is greater than the number of the text history messages, it is determined that the priority of the voice history messages is higher than the priority of the text history messages; or,
    若所述语音类历史消息的消息时间晚于所述文字类历史消息的消息时间,则确定所述语音类历史消息的优先级高于所述文字类历史消息的优先级;或,If the message time of the voice history message is later than the message time of the text history message, it is determined that the priority of the voice history message is higher than the priority of the text history message; or,
    若所述文字类历史消息的数量大于所述语音类历史消息的数量,则确定所述文字类历史消息的优先级高于所述语音类历史消息的优先级;或,If the number of the text-based historical messages is greater than the number of the voice-based historical messages, it is determined that the priority of the text-based historical messages is higher than the priority of the voice-based historical messages; or,
    若所述文字类历史消息的消息时间晚于所述语音类历史消息的消息时间,则确定所述文字类历史消息的优先级高于所述语音类历史消息的优先级。If the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
  5. 根据权利要求2所述的消息发送方法,其中,所述向所述目标对象发送所述第一消息之前,还包括:The method for sending a message according to claim 2, wherein before the sending the first message to the target object, the method further comprises:
    在确定所述第一消息的类型为语音类的情况下,将所述目标消息转换为目标语音 参数对应的第一消息;When it is determined that the type of the first message is a voice class, the target message is converted into the first message corresponding to the target voice parameter;
    其中,所述目标语音参数为用户的语音参数。Wherein, the target voice parameter is the user's voice parameter.
  6. 根据权利要求1所述的消息发送方法,其中,所述第一输入为对所述目标消息所在界面的截屏输入,所述第一消息为所述图片消息;The message sending method according to claim 1, wherein the first input is a screen shot input of an interface where the target message is located, and the first message is the picture message;
    所述向所述目标对象发送与所述目标消息对应的第一消息,包括:The sending the first message corresponding to the target message to the target object includes:
    在所述目标消息为文字消息的情况下,向所述目标对象发送所述目标消息所在界面的截屏图片;In the case that the target message is a text message, sending a screenshot of the interface where the target message is located to the target object;
    在所述目标消息为语音消息的情况下,向所述目标对象发送包括所述目标消息对应的文字消息的截屏图片。In the case that the target message is a voice message, a screen shot including a text message corresponding to the target message is sent to the target object.
  7. 一种消息发送装置,包括:A message sending device, comprising:
    接收模块,用于接收用户对目标消息的第一输入,所述第一输入为指向目标对象的转发操作A receiving module, configured to receive the user's first input to the target message, where the first input is a forwarding operation directed to the target object
    发送模块,用于响应于所述第一输入,根据用户与所述目标对象的通信记录,向所述目标对象发送与所述目标消息对应的第一消息。A sending module, configured to, in response to the first input, send a first message corresponding to the target message to the target object according to the communication record between the user and the target object.
  8. 根据权利要求7所述的消息发送装置,其中,所述发送模块包括:The message sending apparatus according to claim 7, wherein the sending module comprises:
    获取单元,用于获取所述通信记录中历史消息的参数;an acquisition unit for acquiring parameters of historical messages in the communication record;
    确定单元,用于根据所述历史消息的参数,确定第一消息的类型;a determining unit, configured to determine the type of the first message according to the parameters of the historical message;
    发送单元,用于向所述目标对象发送与所述目标消息对应的第一消息;a sending unit, configured to send a first message corresponding to the target message to the target object;
    其中,所述历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间;所述第一消息的类型包括语音类和文字类。The parameters of the historical message include at least one of the following: message type of the historical message, the number of messages corresponding to each type of historical message, and the time of the historical message; the types of the first message include voice type and text type.
  9. 根据权利要求8所述的消息发送装置,其中,所述确定单元具体用于:The message sending apparatus according to claim 8, wherein the determining unit is specifically configured to:
    根据所述历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系;According to the parameters of the historical message, determine the priority relationship between the voice historical message and the textual historical message;
    在所述语音类的优先级高于所述文字类的优先级的情况下,确定所述第一消息的类型为语音类;或In the case that the priority of the speech class is higher than the priority of the text class, determine that the type of the first message is a speech class; or
    在所述文字类的优先级高于所述语音类的优先级的情况下,确定所述第一消息的类型为文字类。In the case that the priority of the text class is higher than the priority of the voice class, it is determined that the type of the first message is the text class.
  10. 根据权利要求9所述的消息发送装置,其中,所述确定单元还用于:The message sending apparatus according to claim 9, wherein the determining unit is further configured to:
    若所述语音类历史消息的数量大于所述文字类历史消息的数量,则确定所述语音类历史消息的优先级高于所述文字类历史消息的优先级;或,If the number of the voice history messages is greater than the number of the text history messages, it is determined that the priority of the voice history messages is higher than the priority of the text history messages; or,
    若所述文字类历史消息的数量大于所述语音类历史消息的数量,则确定所述文字类历史消息的优先级高于所述语音类历史消息的优先级;或,If the number of the text-based historical messages is greater than the number of the voice-based historical messages, it is determined that the priority of the text-based historical messages is higher than the priority of the voice-based historical messages; or,
    若所述语音类历史消息的消息时间晚于所述文字类历史消息的消息时间,则确定所述语音类历史消息的优先级高于所述文字类历史消息的优先级;或,If the message time of the voice history message is later than the message time of the text history message, it is determined that the priority of the voice history message is higher than the priority of the text history message; or,
    若所述文字类历史消息的消息时间晚于所述语音类历史消息的消息时间,则确定 所述文字类历史消息的优先级高于所述语音类历史消息的优先级。If the message time of the text-based historical message is later than the message time of the voice-based historical message, it is determined that the priority of the text-based historical message is higher than the priority of the voice-based historical message.
  11. 根据权利要求8所述的消息发送装置,其中,还包括:The message sending apparatus according to claim 8, further comprising:
    转换模块,用于在确定所述第一消息的类型为语音类的情况下,将所述目标消息转换为目标语音参数对应的第一消息;a conversion module, configured to convert the target message into a first message corresponding to a target speech parameter when it is determined that the type of the first message is a voice class;
    其中,所述目标语音参数为用户的语音参数。Wherein, the target voice parameter is the user's voice parameter.
  12. 根据权利要求7所述的消息发送装置,其中,所述第一输入为对所述目标消息所在界面的截屏输入,所述第一消息为所述图片消息;The message sending apparatus according to claim 7, wherein the first input is a screen shot input of an interface where the target message is located, and the first message is the picture message;
    所述发送模块,具体用于在所述目标消息为文字消息的情况下,向所述目标对象发送所述目标消息所在界面的截屏图片;或者,具体用于在所述目标消息为语音消息的情况下,向所述目标对象发送包括所述目标消息对应的文字消息的截屏图片。The sending module is specifically configured to send a screenshot of the interface where the target message is located to the target object when the target message is a text message; or, is specifically configured to send a screenshot of the interface where the target message is located to the target object; In this case, a screenshot image including the text message corresponding to the target message is sent to the target object.
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的消息发送方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1 to 6 The steps of any one of the message sending methods.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的消息发送方法的步骤。A readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the message sending method according to any one of claims 1 to 6 are implemented.
  15. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的消息发送方法。A computer software product executed by at least one processor to implement the message sending method of any one of claims 1 to 6.
  16. 一种电子设备,包括电子设备被配置成用于执行如权利要求1至6中任一项所述的消息发送方法。An electronic device comprising an electronic device configured to perform the message sending method of any one of claims 1 to 6.
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的消息发送方法。A chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement a message as claimed in any one of claims 1 to 6 delivery method.
PCT/CN2022/085136 2021-04-07 2022-04-02 Message sending method, message sending apparatus, electronic device, and storage medium WO2022213943A1 (en)

Applications Claiming Priority (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
CN202110370298.5 2021-04-07

Publications (1)

Publication Number Publication Date
WO2022213943A1 true WO2022213943A1 (en) 2022-10-13

Family

ID=76615211

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085136 WO2022213943A1 (en) 2021-04-07 2022-04-02 Message sending method, message sending apparatus, 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270891A (en) * 2005-03-25 2006-10-05 Nec Corp Message conversion system, message conversion method and program
CN106550146A (en) * 2016-10-28 2017-03-29 努比亚技术有限公司 A kind of chat message dispensing device and method
CN109412932A (en) * 2018-09-28 2019-03-01 维沃移动通信有限公司 A kind of screenshotss method and terminal
CN110083687A (en) * 2019-04-28 2019-08-02 上海盛付通电子支付服务有限公司 A kind of information conversion method, equipment and storage medium
CN113079086A (en) * 2021-04-07 2021-07-06 维沃移动通信有限公司 Message transmitting method, message transmitting device, electronic device, and storage medium

Family Cites Families (12)

* 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
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
CN109068276B (en) * 2018-06-28 2020-09-11 维沃移动通信有限公司 Message conversion method and terminal
CN110096701A (en) * 2019-04-16 2019-08-06 珠海格力电器股份有限公司 Message conversion processing method and device, storage medium and electronic equipment
CN112311654A (en) * 2019-07-29 2021-02-02 腾讯科技(深圳)有限公司 Instant messaging message processing method, device, medium and electronic equipment
CN112035878B (en) * 2020-08-31 2024-07-05 维沃移动通信(杭州)有限公司 Information display method and device and electronic equipment
CN112287162A (en) * 2020-10-27 2021-01-29 维沃移动通信有限公司 Message searching method and device and electronic equipment
CN112578965A (en) * 2020-12-25 2021-03-30 维沃移动通信有限公司 Processing method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270891A (en) * 2005-03-25 2006-10-05 Nec Corp Message conversion system, message conversion method and program
CN106550146A (en) * 2016-10-28 2017-03-29 努比亚技术有限公司 A kind of chat message dispensing device and method
CN109412932A (en) * 2018-09-28 2019-03-01 维沃移动通信有限公司 A kind of screenshotss method and terminal
CN110083687A (en) * 2019-04-28 2019-08-02 上海盛付通电子支付服务有限公司 A kind of information conversion method, equipment and storage medium
CN113079086A (en) * 2021-04-07 2021-07-06 维沃移动通信有限公司 Message transmitting method, message transmitting device, electronic device, and storage medium

Also Published As

Publication number Publication date
CN113079086A (en) 2021-07-06
CN113079086B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US20210295842A1 (en) Word-level correction of speech input
US10489112B1 (en) Method for user training of information dialogue system
US10217463B2 (en) Hybridized client-server speech recognition
KR102108500B1 (en) Supporting Method And System For communication Service, and Electronic Device supporting the same
US9111539B1 (en) Editing voice input
JP2019520644A (en) Providing a state machine to a personal assistant module that can be selectively traced
US11527235B2 (en) Text independent speaker recognition
CN112291203A (en) Locally saving data for voice actions with selective offline capability
US11854533B2 (en) Speaker awareness using speaker dependent speech model(s)
CN113168336A (en) Client application of phone based on experiment parameter adaptation function
CN111742311A (en) Intelligent assistant method
CN114760387A (en) Method and device for managing maintenance
CN117882365A (en) Verbal menu for determining and visually displaying calls
WO2022213943A1 (en) Message sending method, message sending apparatus, electronic device, and storage medium
CN114064943A (en) Conference management method, conference management device, storage medium and electronic equipment
US11783836B2 (en) Personal electronic captioning based on a participant user's difficulty in understanding a speaker
US10847161B2 (en) Processing system using intelligent messaging flow markers based on language data
CN111968630B (en) Information processing method and device and electronic equipment
US20240169979A1 (en) Action topic ontology
US11722572B2 (en) Communication platform shifting for voice-enabled device
TWI857714B (en) An intelligent message reply and delivery system based on generative ai

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22784009

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22784009

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 22784009

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.11.2023)