









技术领域technical field
本申请属于通信技术领域,具体涉及一种消息发送方法、消息发送装置、电子设备和存储介质。The present application belongs to the technical field of communications, and in particular relates to a message sending method, a message sending device, electronic equipment and a storage medium.
背景技术Background technique
用户使用社交软件与目标对象进行聊天的时候,用户能够选择历史消息或与其他对象的聊天消息进行转发。When a user uses social software to chat with a target object, the user can select historical messages or chat messages with other objects to forward.
在对消息进行转发时,由于用户对发送消息的需求不同,往往需要用户对原消息进行操作处理后才能发送,影响用户使用体验。When forwarding a message, due to the different needs of users for sending messages, it is often necessary for the user to operate and process the original message before sending it, which affects the user experience.
如何减少用户在转发消息时对原消息的操作步骤成为亟需解决的问题。How to reduce the user's operation steps on the original message when forwarding the message has become an urgent problem to be solved.
发明内容Contents 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 receiving a user's forwarding operation on a target message, the target message can be forwarded 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 perform the forwarding operation on the target message, the type of the forwarded target message can be guaranteed to be consistent with the type of the message in the communication record Conformity, no need for the user to perform other operations on the target message, and how to reduce the user's operation steps on the original message when forwarding the message has become an urgent problem to be solved.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:
第一方面,本申请实施例提供了消息发送方法,包括:In the first aspect, the embodiment of the present application provides a message sending method, including:
接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;receiving the user's first input on the target message, where the first input is a forwarding operation pointing to the target object;
响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息;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;
其中,第一消息的类型与通信记录包含的消息的类型相关联,第一消息为语音消息或文字消息。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.
第二方面,本申请实施例提供了消息发送装置,包括:接收模块,用于接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;发送模块,用于响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息。In the second aspect, the embodiment of the present application provides a message sending device, including: a receiving module, configured to receive a user's first input on a target message, where the first input is a forwarding operation directed to a target object; a sending module, configured to respond to the first Once input, according to the communication record between the user and the target object, send the first message corresponding to the target message to the target object.
第三方面,本申请实施例提供了电子设备,包括处理器,存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面提供的消息发送方法的步骤。In the third aspect, the embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and operable on the processor. The steps of the message sending method.
第四方面,本申请实施例提供了可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面提供的消息发送方法的步骤。In a fourth aspect, the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the message sending method provided in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,提供的芯片包括处理器和通信接口,提供的通信接口和提供的处理器耦合,提供的处理器用于运行程序或指令,实现如第一方面提供的消息发送方法的步骤。In the fifth aspect, the embodiment of the present application provides a chip, 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 programs or instructions, so as to implement the first aspect The steps of the provided message sending method.
在本申请实施例中,电子设备接收到用户对目标消息的第一输入后,第一输入为转发指令,确定第一输入指向的目标对象。获取用户与目标对象之间通信记录,根据用户与目标对象之间的历史通信记录,将第一消息转化为对应的消息类型。再将转化消息类型后第一消息转发至目标对象,完成向目标对象转发目标消息。实现了自动对用户所需转发的目标消息进行类型转化,无需用户手动对目标消息的类型进行转化,实现了用户仅需要发送消息转发指令后,直接将与通信记录相关联的消息发送至目标对象,减少了用户在转发消息时的操作步骤。In the embodiment of the present application, after the electronic device receives the user's first input on the target message, the first input is a forwarding instruction, and the target object pointed to by the first input is determined. Obtain communication records between the user and the target object, and convert the first message into a corresponding message type according to the historical communication records between the user and the target object. Then forward the first message after converting the message type to the target object, and complete the forwarding of the target message to the target object. It realizes the automatic conversion of the type 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 sends the message associated with the communication record to the target object , reducing the user's operation steps when forwarding a message.
附图说明Description of drawings
图1示出了根据本申请实施例的消息发送方法的流程图之一;Fig. 1 shows one of the flowcharts of the message sending method according to the 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 a second display interface of an electronic device according to an embodiment of the present application;
图4示出了根据本申请实施例的消息发送方法的流程图之二;FIG. 4 shows the second flowchart of the message sending method according to the embodiment of the present application;
图5示出了根据本申请实施例的消息发送方法的流程图之三;FIG. 5 shows the third flowchart of the message sending method according to the embodiment of the present application;
图6示出了根据本申请实施例的消息发送方法的流程图之四;FIG. 6 shows a fourth flowchart of a message sending method 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 device according to an embodiment of the present application;
图9示出了根据本申请实施例的消息发送装置的结构框图之二;FIG. 9 shows the second structural block diagram of a message sending device 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 following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the data so used can be interchanged under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的消息发送方法、消息发送装置、电子设备和存储介质进行详细地说明。The message sending method, message sending device, electronic device, and storage medium provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
在本申请的一些实施例中,图1示出了根据本申请实施例的消息发送方法的流程图之一,具体地,如图1所示,消息发送方法具体包括以下步骤:In some embodiments of the present application, FIG. 1 shows one of the flowcharts of the message sending method according to the embodiment of the present application. Specifically, as shown in FIG. 1 , the message sending method specifically includes the following steps:
步骤102,接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;
可以理解的,目标消息即为需要转发的消息,第一输入可以为对目标消息的转发输入,第一输入还可以为对目标消息所在界面的截屏输入。It can be understood that the target message is the message that needs to be forwarded, the first input can be the forwarding input of the target message, and the first input can also be the screenshot input of the interface where the target message is located.
具体地,在第一输入为对目标消息的转发输入的情况下,第一输入还包括对目标对象的选择输入。例如,在接收到用户对目标消息“你知道我们去哪儿吗”的转发输入后,会显示一联系人选择界面,用户通过对目标对象:小明的选择,实现将该“你知道我们去哪儿吗”的目标消息转发至小明(目标对象)的操作。Specifically, in the case that the first input is a forwarding input of a target message, the first input further includes a selection input of a target object. For example, after receiving the user's forwarding input of the target message "Do you know where we are going", a contact selection interface will be displayed, and the user can realize the "Do you know where we are going" by selecting the target object: Xiao Ming? The operation of forwarding the target message of "to Xiaoming (target object).
具体地,在第一输入为对目标消息所在界面的截屏输入的情况下,第一输入还包括对目标对象的选择输入。例如,在接收到用户对目标消息“你知道我们去哪儿吗”的界面截屏输入后,可以显示一联系人选择界面,用户通过对目标对象:小明的选择,实现将该包括“你知道我们去哪儿吗”的目标消息的截屏图片发送至小明(目标对象)的操作。Specifically, in the case that the first input is an input of a screenshot 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 screen capture input of the target message "Do you know where we are going?", a contact selection interface can be displayed. By selecting the target object: Xiao Ming, the user can include "Do you know where we are going?" The operation of sending the screenshot of the target message of "Where is it" to Xiao Ming (target object).
进一步地,若目标消息为语音消息,在第一输入为对目标消息所在界面的截屏输入的情况下,可以先将该目标消息转换为文字消息,再对包括该语音消息对应的文字消息的截屏图片发送至目标对象。示例性地,如图2、图3所示,在目标消息21为语音的情况下,接收对该界面20的截屏输入,则会生成如图3所示的截屏图片,即,将目标消息21的语音转换为文字消息并显示与该语音消息的位置之下,并将如图3所示的该截屏图片发送至目标对象。在本实施方式中,在目标消息为语音、且第一输入为对目标消息所在界面的截屏输入的情况下,通过将文字消息显示在目标消息的附近位置,使得目标对象能够清楚明了的查看转发的目标消息。避免目标对象由于接收不到原始的目标消息数据,导致的对目标消息的真实性缺乏信任的问题。Further, if the target message is a voice message, if the first input is a screenshot 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 capture of the text message corresponding to the voice message can be performed The picture is sent to the target audience. Exemplarily, as shown in FIG. 2 and FIG. 3 , in the case where the
步骤104,响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息;
其中,第一消息的类型与通信记录包含的消息的类型相关联,第一消息为语音消息或文字消息。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.
可以理解的,用户与目标对象的通信记录为与目标对象的历史通信记录。可选地,目标消息可以为语音消息,也可以为文字消息。It can be understood that the communication records between the user and the target object are historical communication records with the target object. Optionally, the target message may be a voice message or a text message.
具体地,在目标消息为语音消息的情况下,可以是根据与目标对象的历史通信记录,将该语音消息保持以语音的形式转发至目标对象,也可以是根据与目标对象的历史通信记录,将该语音消息转换为文字,并以文字的形式转发至目标对象。在目标消息为文字消息的情况下,可以是根据与目标对象的历史通信记录,将该文字消息保持以文字的形式转发至目标对象,也可以是根据与目标对象的历史通信记录,将该文字消息转换为对应的语音,并以语音的形式转发至目标对象。Specifically, in the case where the target message is a voice message, the voice message may be forwarded to the target object in the form of voice according to the historical communication record with the target object, or it may be based on the historical communication record with the target object, Convert the voice message to text and forward it to the target audience as text. In the case where the target message is a text message, the text message may be forwarded to the target object in the form of text according to the historical communication records with the target object, or the text message may be forwarded to the target object according to the historical communication records with the target object. The message is converted to 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, so that Choose the most appropriate message type to send a message to the target object. For example, if the target object is a parent, most of the historical communication records with the parent are voice messages, so no matter 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 a voice message The first message is forwarded.
在本申请的实施例中,电子设备接收到用户对目标消息的第一输入后,第一输入为转发指令,确定第一输入指向的目标对象。获取用户与目标对象之间通信记录,根据用户与目标对象之间的历史通信记录,将第一消息转化为对应的消息类型。再将转化消息类型后第一消息转发至目标对象,完成向目标对象转发目标消息。实现了自动对用户所需转发的目标消息进行类型转化,无需用户手动对目标消息的类型进行转化,实现了用户仅需要发送消息转发指令后,直接将与通信记录相关联的消息发送至目标对象,减少了用户在转发消息时的操作步骤。In the embodiment of the present application, after the electronic device receives the user's first input on the target message, the first input is a forwarding instruction, and the target object pointed to by the first input is determined. Obtain communication records between the user and the target object, and convert the first message into a corresponding message type according to the historical communication records between the user and the target object. Then forward the first message after converting the message type to the target object, and complete the forwarding of the target message to the target object. It realizes the automatic conversion of the type 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 sends the message associated with the communication record to the target object , reducing the user's operation steps when forwarding a message.
进一步地,如图4所示,可选地,根据用户与目标对象的通信记录,向目标对象发送与目标信息对应的第一消息,具体包括:Further, as shown in FIG. 4, optionally, according to the communication record between the user and the target object, the first message corresponding to the target information is sent to the target object, specifically including:
步骤202,获取通信记录中的历史消息的参数;
可以理解的是,通信记录中的历史消息的选取规则为根据用户实际需要进行设置的。可选为选取通信记录中最近的一条历史消息,也可选为选取通信记录中最近一段时间内的历史消息。It can be understood that the selection rules of the historical messages in the communication records are set according to the actual needs of the user. Optionally, select a recent historical message in the communication record, or select a historical message within the latest period of time in the communication record.
步骤204,根据历史消息的参数,确定第一消息的类型;
步骤206,向目标对象发送与目标消息对应的第一消息;
其中,历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间,第一消息的类型包括语音类和文字类。Wherein, the parameters of the historical message include at least one of the following: 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 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 a text message, a voice message, a picture message, a link message, and the like. The number of messages corresponding to various types of historical messages refers to the corresponding numbers of multiple 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 invoking the communication records between the user and the target object, read the historical messages in the communication records, and determine the parameters of all the historical messages in the communication records.
可选地,可以根据全部历史消息的参数确定用户向目标对象所需发送的第一消息的类型,并将目标信息转化为该类型的第一消息后,再将第一消息发送至目标对象。也可以只获取部分历史消息的参数来确定用户向目标对象所需发送的第一消息的类型。示例性的,可以将与该目标对象有记录以来的全部消息的消息均参数进行获取,也可以只将该目标对象最近一周消息的消息参数进行获取。在确定第一消息的类型后,需要判定是否需要对目标消息进行类型转化。如果目标消息的类型与第一消息的类型相同,则可选地直接将目标消息作为第一消息转发至目标对象。如果目标消息的类型与第一消息的类型不相同,则将目标消息通过类型转化,以得到第一消息。Optionally, the type of the first message that the user needs to send to the target object can be determined according to the parameters of all historical messages, and the target information is converted into the first message of this type before the first message is sent to the target object. It is also possible to obtain only some parameters of historical messages to determine the type of the first message that the user needs to send to the target object. Exemplarily, the message parameters of all the messages recorded with the target object may be obtained, or only the message parameters of the latest week's messages of the target object may be obtained. 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 may optionally be 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 voice, and the type of the first message is determined to be a text type according to the historical message parameters, then the target message is converted into the first message of the text class, and then the first message Forward to target audience.
在一种可选的实施方式中,目标消息的类型为文字类,根据历史消息参数确定第一消息的类型也为文字类,则将目标消息作为第一消息,转发至目标对象。In an optional implementation manner, the type of the target message is text, and the type of the first message is also determined to be text according to the historical message parameters, then the target message is forwarded to the target object as the first message.
在一些实施例中,历史消息的参数还可以包括语言种类,在发送第一消息之前,根据语言种类对第一消息的语言种类进行转化。In some embodiments, the parameter 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 obtained, 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 remains unchanged.
在本申请的实施例中,通过通信记录中的历史消息的参数能够得到用户与目标对象之间的通信习惯,根据得到的通信习惯确定第一消息的类型,能够保证发送的第一消息的类型符合用户与目标对象之间的通信习惯。当根据通信习惯确定符合通信习惯的类型后,则自动将目标消息转化为该类型的第一消息进行发送,无需用户进行其他例如手动转化消息类型的操作,在简化用户转发消息操作的同时,还保证了转发的消息符合用户与目标对象的通信习惯。In the embodiment of this application, the communication habits between the user and the target object can be obtained through the parameters of the historical messages in the communication records, the type of the first message can be determined according to the obtained communication habits, and the type of the first message sent can be guaranteed Conform to the communication habits between the user and the target audience. When the type that meets the communication habits is determined according to the communication habits, the target message will be automatically converted into the first message of this type for sending, without the need for the user to perform other operations such as manually converting the message type, while simplifying the user's operation of forwarding messages. It is ensured that the forwarded message conforms to the communication habits of the user and the target object.
如图5所示,可选地,根据历史消息的参数,确定第一消息的类型,包括:As shown in Figure 5, optionally, according to the parameters of the historical message, determine the type of the first message, including:
步骤302,根据历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系;
可以理解的是,语音类历史消息和文字类历史消息的优先级关系的确定规则与历史消息的参数有关。It can be understood that the rule for determining the priority relationship between the voice-type historical messages and the text-type historical messages is related to the parameters of the historical messages.
可选地,根据消息类型、消息数量和消息时间确定语音类和文字类的优先级关系。Optionally, the priority relationship between the speech category and the text category is determined according to the message type, message quantity and message time.
具体地,获取一段时间内的全部历史消息,将该段时间内的文字类历史消息和语音类历史消息的数量关系进行比较。如果语音类历史消息的数量比文字类历史消息数量多,则判定语音类的优先级较高,将第一消息的类型确定为语音类,如果文字类历史消息的数量比语音类历史消息数量多,则判定文字类的优先级较高,将第一消息的类型确定为文字类。Specifically, all historical messages within a period of time are obtained, and the quantitative relationship between the historical text messages and the historical messages of voice within the period is compared. If the number of voice history messages is more 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 as the voice class. If the number of text history messages is more than the number of voice history messages , it is determined that the priority of the text class is higher, and the type of the first message is determined as the text class.
值得说明的是,如果一段时间内的全部历史消息的数量为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 voice historical message, the priority of the voice category is higher than that of the text category, and if the historical message is a text category 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 historical message and the voice historical message.
在一种可选的实施方式中,获取通信记录中距离当前时间点最近的一次的历史消息,如果最近一次的历史消息的类型为语音类,则判定语音类历史消息的消息时间晚于文字类历史消息的消息时间,如果最近一次的历史消息的类型为文字类,则判定文字类历史消息的时间晚于语音类历史消息的消息时间。将最近一次的历史消息的消息类型作为优先级较高的消息类型。In an optional implementation manner, the latest historical message from the current time point in the communication record is obtained, and if the type of the latest historical message is voice, it is determined that the message time of the voice historical message is later than that of the text The message time of the historical message, if the type of the latest 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. Use the message type of the latest historical message as the message type with higher priority.
示例性地,用户接收到目标对象的语音消息,在对目标消息进行转发时,检测到通信记录最近一次的消息类型为语音类,则确定语音类历史消息的优先级高于文字类历史消息的优先级。For example, when a user receives a voice message from a target object, and when forwarding the target message, it is detected that the latest message type in the communication record is voice, 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 manner, the time information of receiving the first input is obtained, and the type of the historical message in the communication record corresponding to the time information is searched 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 the historical message corresponding to the time information in the communication record, and obtain the type and quantity of the historical message corresponding to the time information The quantity determines the priority relationship between voice history messages and text history messages.
示例性地,用户在晚上9点对目标消息进行转发。若通信记录中在晚上8点至晚上10点收发的文字类历史消息的数量为50条,语音类历史消息的数量为3条,则确定文字类历史消息的优先级高于语音类历史消息的优先级。Exemplarily, the user forwards the target message at 9:00 p.m. If the number of text history messages sent and received between 8:00 p.m. priority.
步骤304,在语音类的优先级高于文字类的优先级的情况下,确定第一消息的类型为语音类;或在文字类的优先级高于语音类的优先级的情况下,确定第一消息的类型为文字类。
本申请的实施例中,根据历史消息的参数能够确定语音类历史消息和文字类历史消息的优先级关系,根据优先级关系,选择第一消息为文字类或语音类。通过对历史消息的参数进行分析,能够根据历史消息的参数能够确定用户与目标对象之间的沟通习惯,从而得到文字类的优先级和语音类的优先级的关系。根据文字类的优先级和语音类的优先级的关系选择将第一消息设置为对应类型的消息,实现了对转发消息的消息类型智能化选择的效果,使转发的第一消息能够更符合用户需求,进一步提高了用户的使用体验。In the embodiment of the present application, the priority relationship between voice-type historical messages and text-type historical messages can be determined according to the parameters of the historical messages, and the first message is selected as text-type or voice-type according to the priority relationship. By analyzing the parameters of the historical messages, the communication habit between the user and the target object can be determined according to the parameters of the historical messages, so as to obtain the relationship between the priority of text and the priority of voice. 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, realizing the effect of intelligently selecting the message type of the forwarded message, so that the forwarded first message can be more in line with the user requirements, further improving the user experience.
可选地,根据消息类型和消息数量确定语音类和文字类的优先级关系。Optionally, the priority relationship between the speech category and the text category is determined according to the message type and message quantity.
具体地,若语音类历史消息的数量大于文字类历史消息的数量,则确定语音类历史消息的优先级高于文字类历史消息的优先级;Specifically, if the quantity of voice-type historical messages is greater than the quantity of text-type historical messages, then determine 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, then determine that the priority of text-type historical messages is higher than that of voice-type historical messages;
可以理解的,通过比较语音类历史消息的数量和文字类历史消息的数量确定文字类和语音类的优先级关系,再根据该优先级关系确定第一消息的类型,则使转发的第一消息的类型与通信记录中大部分历史消息的类型相符。It can be understood that, by comparing the number of historical messages of the voice class and the number of historical messages of the text class to determine the priority relationship between the text class and the speech class, and then determine the type of the first message according to the priority relationship, then the forwarded first message The type of corresponds to the type of most historical messages in the communication log.
或,若语音类历史消息的消息时间晚于文字类历史消息的消息时间,则确定语音类历史消息的优先级高于文字类历史消息的优先级;Or, if the message time of the voice-type historical message is later than the message time of the text-type historical message, it is determined that the priority of the voice-type historical message is higher than the priority of the text-type historical message;
或,若文字类历史消息的消息时间晚于语音类历史消息的消息时间,则确定文字类历史消息的优先级高于语音类历史消息的优先级。Or, if the message time of the text-type historical messages is later than the message time of the voice-type historical messages, it is determined that the priority of the text-type historical messages is higher than that of the voice-type historical messages.
可以理解的,通过比较文字类历史消息和语音类历史消息的时间,则使转发的第一消息的类型与最近一次收发的历史消息的类型相符。It can be understood that by comparing the time of the historical message of the text type and the historical message of the voice type, the type of the first forwarded message is made to match the type of the most recent historical message sent and received.
需要理解的是,用户在转发消息之前,可以对具体判断优先级的方式进行选择。It should be understood that, before forwarding a message, the user may choose a specific way of judging the priority.
如图6所示,可选地,向目标对象发送第一消息之前,还包括:As shown in FIG. 6, optionally, before sending the first message to the target object, further includes:
步骤402,确定第一消息的类型为语音类;
步骤404,将目标消息转换为目标语音参数对应的第一消息;
其中,目标语音参数为用户的语音参数。Wherein, the target speech parameter is the speech parameter of the user.
可以理解的,在将目标消息转化为第一消息,并将第一消息发送给目标对象之前,确定第一消息的类型为语音类时,则执行获取目标语音参数的步骤,并根据目标语音参数对目标消息进行转化。其中,目标语音参数为用户的语音参数,用户的语音参数具体包括用户的声纹特征和语调等参数。It can be understood that before converting the target message into the first message and sending the first message to the target object, when it is determined that the type of the first message is voice, the step of obtaining the target voice parameter is performed, and according to the target voice parameter Transform the targeted message. Wherein, the target voice parameter is the user's voice parameter, and the user's voice parameter specifically includes parameters such as the user's voiceprint feature and intonation.
具体地,当第一消息的类型为语音类,且目标消息的类型为文字类,则将文字类的目标消息转化为带有用户的声纹特征的语音类第一消息;当第一消息的类型为语音类,且目标消息的类型也为语音类,则将语音类的目标消息转化为带有用户的声纹特征的语音类第一消息,使目标对象接收到的第一消息,符合用户的语言习惯。Specifically, when the type of the first message is speech and the type of the target message is text, then the target message of text is converted into the first message of speech with the voiceprint feature of the user; If the type is voice, and the type of the target message is also voice, then the voice target message is converted into the first voice message with the user's voiceprint feature, so that the first message received by the target object meets the user's requirements. language habits.
具体地,当第一消息和目标消息的类型均为语音类时,解析目标消息中语义,根据语义和目标语音参数生成对应的第一消息,并将第一消息转发给目标对象。Specifically, when the types of the first message and the target message are both speech, analyze the semantics in the target message, generate a corresponding first message according to the semantics and target speech parameters, and forward the first message to the target object.
可以理解的是,根据消息记录中的语音类历史消息训练声学模型,将目标消息输入声学模型中,能够将目标消息快速转化为带有用户声纹特征的第一消息。It can be understood that the acoustic model is trained according to the voice history messages in the message records, and the target message is input into the acoustic model, so that the target message can be quickly converted into the first message with the user's voiceprint feature.
本申请的实施例中,在确定第一消息的类型为语音类后,通过将用户的语音参数作为目标语音参数,根据目标语音参数输出对应的第一消息。实现了向目标对象发送的第一消息具有用户的语音特征,使发送的语音类的第一消息更自然。In the embodiment of the present application, after it is determined that the type of the first message is voice, 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 voice characteristics of the user, so that the sent first message of the voice type 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
本申请的实施例中,当目标消息与第一消息的类型不同时,则生成并显示提示信息,以使用户能够自由选择是否对目标消息进行转化,并且用户能够直接对显示的提示信息进行触发操作,简化了用户的操作步骤。In the embodiment of the present application, when the target message is of a different type from the first message, a prompt message 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 message operation, which simplifies the user's operation steps.
需要说明的是,本申请实施例提供的消息发送方法,执行主体可以为消息发送装置,或者该消息发送装置中的用于执行消息发送方法的控制模块。本申请实施例中以消息发送装置执行消息发送方法为例,说明本申请实施例提供的消息发送装置。It should be noted that, the message sending method provided in the embodiment of the present application may be executed by a message sending device, or a control module in the message sending device for executing the message sending method. In the embodiment of the present application, the method for sending a message performed by the message sending device is taken as an example to illustrate the message sending device provided in the embodiment of the present application.
在本申请的一些实施例中,图8示出了根据本申请实施例的消息发送装置500的结构框图,如图8所示,消息发送装置500包括:In some embodiments of the present application, FIG. 8 shows a structural block diagram of a
接收模块510,用于接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;The receiving
可以理解的,目标消息即为需要转发的消息,第一输入可以为对目标消息的转发输入,第一输入还可以为对目标消息所在界面的截屏输入。It can be understood that the target message is the message that needs to be forwarded, the first input can be the forwarding input of the target message, and the first input can also be the screenshot input of the interface where the target message is located.
发送模块520,用于响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息;The sending
其中,第一消息的类型与通信记录包含的消息的类型相关联,第一消息为语音消息或文字消息。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.
可以理解的,用户与目标对象的通信记录为与目标对象的历史通信记录。可选地,目标消息可以为语音消息,也可以为文字消息。It can be understood that the communication records between the user and the target object are historical communication records 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 user's first input on the target message, the first input is a forwarding instruction, and the target object pointed to by the first input is determined. Obtain communication records between the user and the target object, and convert the first message into a corresponding message type according to the historical communication records between the user and the target object. Then forward the first message after converting the message type to the target object, and complete the forwarding of the target message to the target object. It realizes the automatic conversion of the type 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 sends the message associated with the communication record to the target object , reducing the user's operation steps when forwarding a message.
如图9所示,可选地,发送模块520包括:As shown in Figure 9, optionally, the sending
获取单元522,用于获取通信记录中的历史消息的参数;An
可以理解的是,通信记录中的历史消息的选取规则为根据用户实际需要进行设置的。可选为选取通信记录中最近的一条历史消息,也可选为选取通信记录中最近一段时间内的历史消息。It can be understood that the selection rules of the historical messages in the communication records are set according to the actual needs of the user. Optionally, select a recent historical message in the communication record, or select a historical message within the latest period of time in the communication record.
确定单元524,用于根据历史消息的参数,确定第一消息的类型;A determining
发送单元526,用于向目标对象发送与目标消息对应的第一消息;A sending
其中,历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间,第一消息的类型包括语音类和文字类。Wherein, the parameters of the historical message include at least one of the following: 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 voice and text.
在本申请的实施例中,通过通信记录中的历史消息的参数能够得到用户与目标对象之间的通信习惯,根据得到的通信习惯确定第一消息的类型,能够保证发送的第一消息的类型符合用户与目标对象之间的通信习惯。当根据通信习惯确定符合通信习惯的类型后,则自动将目标消息转化为该类型的第一消息进行发送,无需用户进行其他例如手动转化消息类型的操作,在简化用户转发消息操作的同时,还保证了转发的消息符合用户与目标对象的通信习惯。In the embodiment of this application, the communication habits between the user and the target object can be obtained through the parameters of the historical messages in the communication records, the type of the first message can be determined according to the obtained communication habits, and the type of the first message sent can be guaranteed Conform to the communication habits between the user and the target audience. When the type that meets the communication habits is determined according to the communication habits, the target message will be automatically converted into the first message of this type for sending, without the need for the user to perform other operations such as manually converting the message type, while simplifying the user's operation of forwarding messages. It is ensured that the forwarded message conforms to the communication habits of the user and the target object.
可选地,确定单元524具体用于根据历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系;Optionally, the determining
可以理解的是,语音类历史消息和文字类历史消息的优先级关系的确定规则与选择的历史消息的参数有关。It can be understood that the determination rule for the priority relationship between the voice-type historical messages and the text-type historical messages is related to the parameters of the selected historical messages.
可选地,根据消息类型、消息数量和消息时间确定语音类和文字类的优先级关系。Optionally, the priority relationship between the speech category and the text category is determined according to the message type, message quantity and message time.
本申请的实施例中,根据历史消息的参数能够确定语音类历史消息和文字类历史消息的优先级关系,根据优先级关系,选择第一消息为文字类或语音类。通过对历史消息的参数进行分析,能够根据历史消息的参数能够确定用户与目标对象之间的沟通习惯,从而得到文字类的优先级和语音类的优先级的关系。根据文字类的优先级和语音类的优先级的关系选择将第一消息设置为对应类型的消息,实现了对转发消息的消息类型智能化选择的效果,使转发的第一消息能够更符合用户需求,进一步提高了用户的使用体验。In the embodiment of the present application, the priority relationship between voice-type historical messages and text-type historical messages can be determined according to the parameters of the historical messages, and the first message is selected as text-type or voice-type according to the priority relationship. By analyzing the parameters of the historical messages, the communication habit between the user and the target object can be determined according to the parameters of the historical messages, so as to obtain the relationship between the priority of text and the priority of voice. 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, realizing the effect of intelligently selecting the message type of the forwarded message, so that the forwarded first message can be more in line with the user requirements, further improving the user experience.
可选地,确定单元524还用于:Optionally, the determining
若语音类历史消息的数量大于文字类历史消息的数量,则确定语音类历史消息的优先级高于文字类历史消息的优先级;If the quantity of voice historical messages is greater than the quantity of text historical messages, then determine that the priority of voice historical messages is higher than the priority of text historical messages;
或,若文字类历史消息的数量大于语音类历史消息的数量,则确定文字类历史消息的优先级高于语音类历史消息的优先级;Or, if the number of text-type historical messages is greater than the number of voice-type historical messages, then determine that the priority of text-type historical messages is higher than that of voice-type historical messages;
可以理解的,通过比较语音类历史消息的数量和文字类历史消息的数量确定文字类和语音类的优先级关系,再根据该优先级关系确定第一消息的类型,则使转发的第一消息的类型与通信记录中大部分历史消息的类型相符。It can be understood that, by comparing the number of historical messages of the voice class and the number of historical messages of the text class to determine the priority relationship between the text class and the speech class, and then determine the type of the first message according to the priority relationship, then the forwarded first message The type of corresponds to the type of most historical messages in the communication log.
或,若语音类历史消息的消息时间晚于文字类历史消息的消息时间,则确定语音类历史消息的优先级高于文字类历史消息的优先级;Or, if the message time of the voice-type historical message is later than the message time of the text-type historical message, it is determined that the priority of the voice-type historical message is higher than the priority of the text-type historical message;
或,若文字类历史消息的消息时间晚于语音类历史消息的消息时间,则确定文字类历史消息的优先级高于语音类历史消息的优先级。Or, if the message time of the text-type historical messages is later than the message time of the voice-type historical messages, it is determined that the priority of the text-type historical messages is higher than that of the voice-type historical messages.
可以理解的,通过比较文字类历史消息和语音类历史消息的时间,则使转发的第一消息的类型与最近一次收发的历史消息的类型相符。It can be understood that by comparing the time of the historical message of the text type and the historical message of the voice type, the type of the first forwarded message is made to match the type of the most recent historical message sent and received.
需要理解的是,用户在转发消息之前,可以对具体判断优先级的方式进行选择。It should be understood that, before forwarding a message, the user may choose a specific way of judging the priority.
如图8所示,可选地,消息发送装置500,还包括:As shown in FIG. 8, optionally, the
转换模块530,用于在确定第一消息的类型为语音类的情况下,将目标消息转换为目标语音参数对应的第一消息;其中,目标语音参数为用户的语音参数。The
可以理解的,在将目标消息转化为第一消息,并将第一消息发送给目标对象之前,确定第一消息的类型为语音类时,则执行获取目标语音参数的步骤,并根据目标语音参数对目标消息进行转化。其中,目标语音参数为用户的语音参数,用户的语音参数具体包括用户的声纹特征和语调等参数。It can be understood that before converting the target message into the first message and sending the first message to the target object, when it is determined that the type of the first message is voice, the step of obtaining the target voice parameter is performed, and according to the target voice parameter Transform the targeted message. Wherein, the target voice parameter is the user's voice parameter, and the user's voice parameter specifically includes parameters such as the user's voiceprint feature and intonation.
本申请的实施例中,在确定第一消息的类型为语音类后,通过将用户的语音参数作为目标语音参数,根据目标语音参数输出对应的第一消息。实现了向目标对象发送的第一消息具有用户的语音特征,使发送的语音类的第一消息更自然。In the embodiment of the present application, after it is determined that the type of the first message is voice, 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 voice characteristics of the user, so that the sent first message of the voice type 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 target message is of a different type from the first message, a prompt message 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 message operation, which simplifies the user's operation steps. The message sending device in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., non-mobile electronic equipment can be server, 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 device in the embodiment of the present application may be a device with 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 this embodiment of the present application.
需要注意的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned 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 Figure 10, the
用户输入单元607用于接收第一输入。The
存储器609用于存储消息发送方法。The
处理器610还用于:获取通信记录中历史消息的参数;根据历史消息的参数,确定第一消息的类型;向目标对象发送与目标消息对应的第一消息;其中,历史消息的参数包括以下至少一项:历史消息的消息类型,各类型的历史消息对应的消息数量,历史消息的时间,第一消息的类型包括语音类和文字类。The
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
在其中一个实施例中,存储器609存储有应用程序和操作系统,输入单元604可以包括图形处理器6041和麦克风6042,显示单元606包括显示面板6061。In one embodiment, the
在其中一个实施例中,处理器610用于:接收用户对目标消息的第一输入,第一输入为指向目标对象的转发操作;响应于第一输入,根据用户与目标对象的通信记录,向目标对象发送与目标消息对应的第一消息;其中,第一消息的类型与通信记录包含的消息的类型相关联,第一消息为语音消息或文字消息。In one embodiment, the
在其中一个实施例中,处理器610还用于:根据历史消息的参数,确定语音类历史消息和文字类历史消息的优先级关系;在语音类的优先级高于文字类的优先级的情况下,确定第一消息的类型为语音类;或在文字类的优先级高于语音类的优先级的情况下,确定第一消息的类型为文字类。In one of the embodiments, the
在其中一个实施例中,处理器610还用于:若语音类历史消息的数量大于文字类历史消息的数量,则确定语音类历史消息的优先级高于文字类历史消息的优先级;或,In one of the embodiments, the
若语音类历史消息的消息时间晚于文字类历史消息的消息时间,则确定语音类历史消息的优先级高于文字类历史消息的优先级;或,If the message time of the voice-type historical message is later than the message time of the text-type historical message, it is determined that the priority of the voice-type historical message is higher than the priority of the text-type historical 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 the text-type historical messages is higher than the priority of the voice-type historical messages; or,
若文字类历史消息的消息时间晚于语音类历史消息的消息时间,则确定文字类历史消息的优先级高于语音类历史消息的优先级。If the message time of the text-type historical message is later than the message time of the voice-type historical message, it is determined that the priority of the text-type historical message is higher than that of the voice-type historical message.
在其中一个实施例中,处理器610还用于:在确定第一消息的类型为语音类的情况下,将目标消息转换为目标语音参数对应的第一消息;In one of the embodiments, the
其中,目标语音参数为用户的语音参数。Wherein, the target speech parameter is the speech parameter of the user.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述消息发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above message sending method embodiment is realized, and the same technical Effect, in order to avoid repetition, will not repeat them here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the foregoing embodiments. 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.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述消息发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the various processes of the above message sending method embodiment, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, 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 certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method of each embodiment 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 implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110370298.5ACN113079086B (en) | 2021-04-07 | 2021-04-07 | Message transmission method, message transmission device, electronic device, and storage medium |
| PCT/CN2022/085136WO2022213943A1 (en) | 2021-04-07 | 2022-04-02 | Message sending method, message sending apparatus, electronic device, and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110370298.5ACN113079086B (en) | 2021-04-07 | 2021-04-07 | Message transmission method, message transmission device, electronic device, and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN113079086A CN113079086A (en) | 2021-07-06 |
| CN113079086Btrue CN113079086B (en) | 2023-06-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110370298.5AActiveCN113079086B (en) | 2021-04-07 | 2021-04-07 | Message transmission method, message transmission device, electronic device, and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN113079086B (en) |
| WO (1) | WO2022213943A1 (en) |
| 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 |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106550146A (en)* | 2016-10-28 | 2017-03-29 | 努比亚技术有限公司 | A kind of chat message dispensing device and method |
| CN109068276A (en)* | 2018-06-28 | 2018-12-21 | 维沃移动通信有限公司 | A kind of message conversion method and terminal |
| CN112311654A (en)* | 2019-07-29 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Instant messaging message processing method, device, medium and electronic equipment |
| CN112578965A (en)* | 2020-12-25 | 2021-03-30 | 维沃移动通信有限公司 | Processing method and device and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7653691B2 (en)* | 2000-11-15 | 2010-01-26 | Pacific Datavision Inc. | Systems and methods for communicating using voice messages |
| JP2006270891A (en)* | 2005-03-25 | 2006-10-05 | Nec Corp | Message conversion system, message conversion method and program |
| US9491249B2 (en)* | 2013-10-25 | 2016-11-08 | Dorin ROSENSHINE | Integrating offsite activities related to chat and text messaging with online data records |
| CN107103899B (en)* | 2017-04-24 | 2020-06-19 | 北京小米移动软件有限公司 | Method and apparatus for outputting voice message |
| US10425373B2 (en)* | 2017-07-19 | 2019-09-24 | Citrix Systems, Inc. | Systems and methods for prioritizing messages for conversion from text to speech based on predictive user behavior |
| CN107995101B (en)* | 2017-11-30 | 2021-03-23 | 上海掌门科技有限公司 | A method and device for converting a voice message into text information |
| CN108307043A (en)* | 2017-12-28 | 2018-07-20 | 努比亚技术有限公司 | Speech message conversion method, mobile terminal and computer readable storage medium |
| CN109412932B (en)* | 2018-09-28 | 2021-03-19 | 维沃移动通信有限公司 | A screen capture method and terminal |
| CN110096701A (en)* | 2019-04-16 | 2019-08-06 | 珠海格力电器股份有限公司 | Message conversion processing method and device, storage medium and electronic equipment |
| CN110083687B (en)* | 2019-04-28 | 2022-01-04 | 上海盛付通电子支付服务有限公司 | Information conversion method, equipment and storage medium |
| 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 search method, device and electronic device |
| CN113079086B (en)* | 2021-04-07 | 2023-06-27 | 维沃移动通信有限公司 | Message transmission method, message transmission device, electronic device, and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106550146A (en)* | 2016-10-28 | 2017-03-29 | 努比亚技术有限公司 | A kind of chat message dispensing device and method |
| CN109068276A (en)* | 2018-06-28 | 2018-12-21 | 维沃移动通信有限公司 | A kind of message conversion method and terminal |
| CN112311654A (en)* | 2019-07-29 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Instant messaging message processing method, device, medium and electronic equipment |
| CN112578965A (en)* | 2020-12-25 | 2021-03-30 | 维沃移动通信有限公司 | Processing method and device and electronic equipment |
| Publication number | Publication date |
|---|---|
| WO2022213943A1 (en) | 2022-10-13 |
| CN113079086A (en) | 2021-07-06 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107609092B (en) | Intelligent response method and device | |
| CN108305626A (en) | The sound control method and device of application program | |
| CN109309751B (en) | Voice recording method, electronic device and storage medium | |
| US9148741B2 (en) | Action generation based on voice data | |
| US20150254061A1 (en) | Method for user training of information dialogue system | |
| CN107612814A (en) | Method and apparatus for generating candidate's return information | |
| CN106302996B (en) | Message display method and device | |
| CN109726367A (en) | A kind of method and relevant apparatus of annotation displaying | |
| CN106302933B (en) | Call voice information processing method and terminal | |
| CN107464557A (en) | Call recording method, device, mobile terminal and storage medium | |
| CN113094143B (en) | Cross-application message sending method and device, electronic equipment and readable storage medium | |
| CN108701127A (en) | Electronic device and method of operation thereof | |
| US20120053937A1 (en) | Generalizing text content summary from speech content | |
| CN113055529B (en) | Recording control method and recording control device | |
| US10372512B2 (en) | Method and apparatus for automatic processing of service requests on an electronic device | |
| CN111312233A (en) | Voice data identification method, device and system | |
| US12314541B2 (en) | Interaction information processing method and apparatus, electronic device and storage medium | |
| CN107071512A (en) | A kind of dubbing method, apparatus and system | |
| CN114064943A (en) | Conference management method, conference management device, storage medium and electronic equipment | |
| CN107301176A (en) | A kind of interpretation method, device and storage medium, electronic equipment | |
| CN104363349A (en) | Short message processing method and portable terminal using same | |
| US20200220824A1 (en) | Method, a device and a storage medium of forwarding voice information in instant messaging | |
| CN113079086B (en) | Message transmission method, message transmission device, electronic device, and storage medium | |
| CN111966257A (en) | Information processing method, device and electronic device | |
| CN113823282A (en) | Voice processing method, system and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |