CN112383666B - Content sending method and device and electronic equipment - Google Patents

Content sending method and device and electronic equipment Download PDF

Info

Publication number
CN112383666B
CN112383666B CN202011241770.7A CN202011241770A CN112383666B CN 112383666 B CN112383666 B CN 112383666B CN 202011241770 A CN202011241770 A CN 202011241770A CN 112383666 B CN112383666 B CN 112383666B
Authority
CN
China
Prior art keywords
message
picture
keyword
target
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011241770.7A
Other languages
Chinese (zh)
Other versions
CN112383666A (en
Inventor
胡鹏程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011241770.7A priority Critical patent/CN112383666B/en
Publication of CN112383666A publication Critical patent/CN112383666A/en
Application granted granted Critical
Publication of CN112383666B publication Critical patent/CN112383666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种内容发送方法、装置和电子设备,属于通信技术领域,可以解决电子设备发送消息的效率较低的问题。该内容发送方法包括:在会话界面显示第一消息的情况下,根据第一消息,确定与该第一消息对应的第一关键词,并从电子设备中确定出与该第一关键词对应的M张第一图片,M为正整数;在会话界面中显示N个图片标识,每个图片标识分别用于指示一张第一图片;接收用户对N个图片标识中的目标图片标识的第一输入;响应于第一输入,发送目标内容,该目标内容包括目标图片标识指示的第一图片。本申请实施例提供的内容发送方法可以应用于电子设备发送消息的过程。

Figure 202011241770

The present application discloses a content sending method, device and electronic device, which belong to the field of communication technology and can solve the problem of low efficiency of sending messages by electronic devices. The content sending method includes: when a conversation interface displays a first message, determining a first keyword corresponding to the first message according to the first message, and determining a keyword corresponding to the first keyword from an electronic device M first pictures, where M is a positive integer; N picture identifiers are displayed in the conversation interface, and each image identifier is used to indicate a first picture; Input; in response to the first input, send target content, where the target content includes the first picture indicated by the target picture identifier. The content sending method provided by the embodiment of the present application can be applied to a process of sending a message by an electronic device.

Figure 202011241770

Description

内容发送方法、装置和电子设备Content transmission method, apparatus and electronic device

技术领域technical field

本申请属于通信技术领域,具体涉及一种内容发送方法、装置和电子设备。The present application belongs to the field of communication technologies, and in particular relates to a content sending method, apparatus and electronic device.

背景技术Background technique

通常,用户可以通过电子设备中的聊天类应用向其他电子设备发送文字、图片和语音等多种类型的消息,以实现与其他用户进行沟通交流。Generally, a user can send various types of messages, such as text, pictures, and voice, to other electronic devices through a chat application in an electronic device, so as to communicate with other users.

例如,用户可以先通过电子设备录制语音消息或者输入文字消息,并触发电子设备将该语音消息或文字消息发送至其他电子设备,然后再触发电子设备显示相册包括的所有图片,以在该所有图片中查找与该已发送消息的内容相关的图片,这样,用户可以对该图片进行多次操作,以触发电子设备将包含该图片的消息发送至其他电子设备,以与其他用户进行沟通交流。For example, the user can first record a voice message or input a text message through an electronic device, and trigger the electronic device to send the voice message or text message to other electronic devices, and then trigger the electronic device to display all the pictures included in the album, so that all the pictures can be displayed in the photo album. In this way, the user can perform multiple operations on the image to trigger the electronic device to send the message containing the image to other electronic devices to communicate with other users.

然而,由于用户需要在相册包括的所有图片中,逐一查找与发送的消息的内容相关的图片,并进行多次操作,才可以触发电子设备将包含该图片的消息发送至其他电子设备,因此,在发送包含图片的消息的过程中,用户的操作比较繁琐且耗时,如此导致电子设备发送消息的效率较低。However, since the user needs to search for pictures related to the content of the sent message among all the pictures included in the album, and perform multiple operations, the electronic device can be triggered to send the message containing the picture to other electronic devices. Therefore, In the process of sending a message including a picture, the user's operation is cumbersome and time-consuming, which leads to a low efficiency of the electronic device for sending the message.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种内容发送方法、装置和电子设备,能够解决电子设备发送消息的效率较低的问题。The purpose of the embodiments of the present application is to provide a content sending method, apparatus and electronic device, which can solve the problem of low efficiency of sending messages by the electronic device.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种内容发送方法,该方法包括:在会话界面显示第一消息的情况下,根据第一消息,确定与该第一消息对应的第一关键词,并从电子设备中确定出与该第一关键词对应的M张第一图片,M为正整数;在该会话界面中显示N个图片标识,每个图片标识分别用于指示一张第一图片,N为小于或等于M的正整数;接收用户对N个图片标识中的目标图片标识的第一输入;响应于第一输入,发送目标内容,该目标内容包括目标图片标识指示的第一图片。In a first aspect, an embodiment of the present application provides a method for sending content. The method includes: when a conversation interface displays a first message, determining a first keyword corresponding to the first message according to the first message, and M first pictures corresponding to the first keyword are determined from the electronic device, where M is a positive integer; N picture identifiers are displayed in the conversation interface, and each image identifier is used to indicate a first picture, respectively, N is a positive integer less than or equal to M; receiving the first input from the user to the target picture identification in the N picture identifications; in response to the first input, sending the target content, the target content includes the first picture indicated by the target picture identification.

第二方面,本申请实施例提供了一种内容发送装置,该内容发送装置包括:确定模块、显示模块、接收模块和发送模块。其中,确定模块,用于在会话界面显示第一消息的情况下,根据第一消息,确定与该第一消息对应的第一关键词,并从电子设备中确定出与该第一关键词对应的M张第一图片,M为正整数。显示模块,用于在该会话界面中显示N个图片标识,每个图片标识分别用于指示一张第一图片,N为小于或等于M的正整数。接收模块,用于接收用户对显示模块显示的N个图片标识中的目标图片标识的第一输入。发送模块,用于响应于接收模块接收的第一输入,发送目标内容,该目标内容包括目标图片标识指示的第一图片。In a second aspect, an embodiment of the present application provides a content sending device, where the content sending device includes: a determining module, a display module, a receiving module, and a sending module. Wherein, the determining module is configured to determine the first keyword corresponding to the first message according to the first message when the conversation interface displays the first message, and determine from the electronic device the first keyword corresponding to the first keyword The M first pictures of , where M is a positive integer. The display module is configured to display N picture identifiers in the conversation interface, each picture identifier is used to indicate a first picture, and N is a positive integer less than or equal to M. The receiving module is configured to receive the first input from the user to the target picture identification among the N picture identifications displayed by the display module. The sending module is configured to send target content in response to the first input received by the receiving module, where the target content includes the first picture indicated by the target picture identifier.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides 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, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.

在本申请实施例中,在会话界面显示第一消息的情况下,电子设备可以根据第一消息,确定与该第一消息对应的第一关键词,并从电子设备中确定出与该第一关键词对应的M张第一图片,然后再在该会话界面中显示M张第一图片中的N张第一图片的N个图片标识,这样,电子设备可以根据用户对该N个图片标识中的目标图片标识的第一输入,发送包括该目标图片标识指示的第一图片的目标内容。由于电子设备可以根据第一消息,确定与该第一消息对应的所有关键词,并直接从电子设备中确定出与该所有关键词对应的所有图片,然后再显示该所有图片中的某些图片的图片标识,这样,用户可以直接对该某些图片的图片标识中,与第一消息的内容相关的目标图片标识进行输入,以使得电子设备可以发送包括该目标图片标识指示的图片的目标内容,而无需用户在相册包括的所有图片中,逐一查找与第一消息的内容相关的图片,并进行多次操作,因此可以简化用户的操作、且减少耗时,如此可以提升电子设备发送消息的效率。In this embodiment of the present application, when the conversation interface displays the first message, the electronic device may determine the first keyword corresponding to the first message according to the first message, and determine from the electronic device the first keyword corresponding to the first message. The M first pictures corresponding to the keywords, and then display N picture identifiers of N first pictures in the M first pictures in the conversation interface, so that the electronic device can identify the N pictures according to the user. The first input of the target picture identifier, the target content including the first picture indicated by the target picture identifier is sent. Because the electronic device can determine all the keywords corresponding to the first message according to the first message, and directly determine all the pictures corresponding to all the keywords from the electronic device, and then display some pictures in the all pictures In this way, the user can directly input the target picture identification related to the content of the first message in the picture identification of some pictures, so that the electronic device can send the target content of the picture including the target picture identification indication , without the need for the user to search for pictures related to the content of the first message one by one in all pictures included in the album, and perform multiple operations, so the user's operation can be simplified and time-consuming can be reduced. efficiency.

附图说明Description of drawings

图1是本申请实施例提供的内容发送方法的示意图之一;1 is one of the schematic diagrams of a content sending method provided by an embodiment of the present application;

图2是本申请实施例提供的一种手机的界面的实例示意图之一;Fig. 2 is one of the example schematic diagrams of an interface of a mobile phone provided by an embodiment of the present application;

图3是本申请实施例提供的一种手机的界面的实例示意图之二;3 is the second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;

图4是本申请实施例提供的一种手机的界面的实例示意图之三;FIG. 4 is a third example schematic diagram of an interface of a mobile phone provided by an embodiment of the present application;

图5是本申请实施例提供的内容发送方法的示意图之二;FIG. 5 is the second schematic diagram of the content sending method provided by the embodiment of the present application;

图6是本申请实施例提供的一种手机的界面的实例示意图之四;6 is a fourth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;

图7是本申请实施例提供的一种手机的界面的实例示意图之五;FIG. 7 is a fifth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;

图8是本申请实施例提供的一种手机的界面的实例示意图之六;FIG. 8 is a sixth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;

图9是本申请实施例提供的一种手机的界面的实例示意图之七;FIG. 9 is a seventh schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;

图10是本申请实施例提供的一种手机的界面的实例示意图之八;10 is the eighth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;

图11是本申请实施例提供的一种手机的界面的实例示意图之九;11 is a ninth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application;

图12是本申请实施例提供的内容发送装置的结构示意图;12 is a schematic structural diagram of a content sending apparatus provided by an embodiment of the present application;

图13是本申请实施例提供的电子设备的结构示意图;13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图14是本申请实施例提供的电子设备的硬件示意图。FIG. 14 is a schematic diagram of hardware of an electronic device provided by 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 the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. 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 content sending method 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.

本申请实施例提供的内容发送方法可以应用于用户发送消息的场景,也可以应用于用户回复消息的场景。The content sending method provided in the embodiment of the present application can be applied to a scenario in which a user sends a message, and can also be applied in a scenario in which a user replies to a message.

针对用户发送消息的场景,假设用户1通过电子设备1中的聊天类应用(例如应用1)向用户2的电子设备2发送消息,在相关技术中,用户1可以先在该应用1中与用户2对应的会话界面1中,录制语音消息1,并点击该会话界面1中的“发送”控件,以触发电子设备可以将该语音消息1发送至用户2对应的电子设备2,然后再对电子设备1进行多次操作,以使得电子设备1可以显示“相册”应用程序中的所有图片,这样用户1可以在该所有图片中,逐一查找可以表达用户情绪状态的图片1,并对该图片1进行选择输入,以使得电子设备1可以选中该图片1,如此用户1可以点击该会话界面1中的“发送”控件,以使得电子设备1可以将包括该图片1的消息发送至电子设备2。然而,由于用户1需要在“相册”应用程序包括的所有图片中,逐一查找图片1,并对该图片1进行多次操作,才可以触发电子设备1将包含该图片1的消息发送至电子设备2,因此在发送包含图片1的消息的过程中,用户的操作比较繁琐。本申请实施例中,用户1可以先在该应用1中与用户2对应的会话界面1中,录制语音消息1,以使得电子设备1可以获取该语音消息1的关键词,并从电子设备1中确定出与该关键词对应的多张图片,并在该会话界面1中显示该多张图片中的某些图片的图片缩略图,这样,用户1可以直接对该某些图片的图片缩略图中,与该语音消息1的内容相关的图片的图片缩略图进行输入,以使得电子设备1可以发送包括与该语音消息1的内容相关的图片标识指示的图片的消息,因此可以简化用户的操作、且减少耗时。For the scenario in which the user sends a message, it is assumed that user 1 sends a message to user 2's electronic device 2 through a chat application (such as application 1) in electronic device 1. In the related art, user 1 can first communicate with the user in the application 1. 2 In the corresponding conversation interface 1, record the voice message 1, and click the "send" control in the conversation interface 1 to trigger the electronic device to send the voice message 1 to the electronic device 2 corresponding to the user 2, and then send the electronic device to the electronic device 2. The device 1 performs multiple operations, so that the electronic device 1 can display all the pictures in the "Album" application, so that the user 1 can find the pictures 1 that can express the user's emotional state one by one in all the pictures, and the picture 1 A selection input is made so that the electronic device 1 can select the picture 1 , so that the user 1 can click the “send” control in the conversation interface 1 , so that the electronic device 1 can send the message including the picture 1 to the electronic device 2 . However, since user 1 needs to search for picture 1 one by one among all the pictures included in the "Album" application, and perform multiple operations on the picture 1, the electronic device 1 can be triggered to send the message containing the picture 1 to the electronic device. 2. Therefore, in the process of sending the message including the picture 1, the user's operation is relatively cumbersome. In the embodiment of the present application, user 1 may first record voice message 1 in the conversation interface 1 corresponding to user 2 in the application 1, so that electronic device 1 Determine a plurality of pictures corresponding to the keyword in the session interface 1, and display the picture thumbnails of some pictures in the plurality of pictures, so that the user 1 can directly the picture thumbnails of the certain pictures , the picture thumbnail of the picture related to the content of the voice message 1 is input, so that the electronic device 1 can send a message including the picture indicated by the picture identification related to the content of the voice message 1, so the operation of the user can be simplified , and reduce time-consuming.

可以理解的,处理录制语音消息的情况外,用户1也可以是输入文字消息,并将文字消息发送给用户2对应的电子设备2,该方法同样适用。It can be understood that, in addition to processing the recorded voice message, the user 1 may also input a text message and send the text message to the electronic device 2 corresponding to the user 2, and this method is also applicable.

针对用户回复消息的场景,假设用户1通过电子设备1中的聊天类应用(例如应用1)回复用户2发送的消息1,用户1可以先在该应用1中与用户2对应的会话界面1中,收听或查看该消息1,然后再对电子设备1进行多次操作,以使得电子设备1可以显示“相册”应用程序中的所有图片,这样用户1可以在该所有图片中,逐一查找与该语音消息1的内容相关的图片1,并对该图片1进行选择输入,以使得电子设备1可以选中该图片1,如此用户1可以点击该会话界面1中的“发送”控件,以使得电子设备1可以将包括该图片1的消息发送至电子设备2。然而,由于用户1需要在“相册”应用程序包括的所有图片中,逐一查找图片1,并对该图片1进行多次操作,才可以出发电子设备1将包含该图片1的消息发送至电子设备2,因此在发送包含图片1的消息的过程中,用户的操作比较繁琐。For the scenario where the user replies to a message, suppose user 1 replies to message 1 sent by user 2 through a chat application (such as application 1) in electronic device 1. User 1 can first enter the conversation interface 1 corresponding to user 2 in application 1. , listen to or view the message 1, and then perform multiple operations on the electronic device 1, so that the electronic device 1 can display all the pictures in the "Album" application, so that the user 1 can search all the pictures one by one. A picture 1 related to the content of the voice message 1, and select and input the picture 1, so that the electronic device 1 can select the picture 1, so that the user 1 can click the "Send" control in the conversation interface 1, so that the electronic device 1 can select the picture 1. 1 can send a message including the picture 1 to the electronic device 2 . However, since user 1 needs to search for picture 1 one by one among all the pictures included in the "Album" application, and perform multiple operations on the picture 1, the electronic device 1 can send the message containing the picture 1 to the electronic device. 2. Therefore, in the process of sending the message including the picture 1, the user's operation is relatively cumbersome.

本申请实施例中,在该会话界面1中显示该消息1的情况下,电子设备1可以获取该消息1的关键词,并根据该关键词,从电子设备中确定出针对该消息1进行回复的消息内容的关键词,然后电子设备1可以根据该内容的关键词,从电子设备1中确定出与该内容的关键词对应的多张图片,并在该会话界面1中显示该多张图片中的某些图片的图片缩略图,这样,用户1可以直接对该某些图片的图片缩略图中,与该内容相关的图片标识进行输入,以使得电子设备1可以发送包括该内容相关的图片标识指示的图片的消息,以回复该消息1,因此可以简化用户的操作、且减少耗时。In the embodiment of the present application, when the message 1 is displayed in the conversation interface 1, the electronic device 1 can obtain the keyword of the message 1, and according to the keyword, determine from the electronic device to reply to the message 1 Then the electronic device 1 can determine a plurality of pictures corresponding to the keyword of the content from the electronic device 1 according to the keyword of the content, and display the plurality of pictures in the conversation interface 1 In this way, the user 1 can directly input the picture identifiers related to the content in the picture thumbnails of the certain pictures, so that the electronic device 1 can send the pictures that include the content. The message of the indicated picture is identified to reply to the message 1, so the operation of the user can be simplified and time-consuming can be reduced.

本申请实施例提供的内容发送方法,图1示出了本申请实施例提供的一种内容发送方法的流程图。如图1所示,本申请实施例提供的内容发送方法可以包括下述的步骤101至步骤104。In the content sending method provided by the embodiment of the present application, FIG. 1 shows a flowchart of a content sending method provided by the embodiment of the present application. As shown in FIG. 1 , the content sending method provided by this embodiment of the present application may include the following steps 101 to 104 .

步骤101、在会话界面显示第一消息的情况下,内容发送装置根据第一消息,确定与第一消息对应的第一关键词,并从内容发送装置中确定出与第一关键词对应的M张第一图片。Step 101: When the conversation interface displays the first message, the content sending device determines the first keyword corresponding to the first message according to the first message, and determines the M corresponding to the first keyword from the content sending device. first picture.

可选的,在一种场景下,在内容发送装置显示该第一应用的主界面的情况下,若内容发送装置检测到用户对该第一应用的主界面中,某个用户的用户标识的输入,则内容发送装置可以将该主界面切换为会话界面,这样,用户可以在该会话界面中进行输入,以使得内容发送装置可以获取第一消息,并在该会话界面显示该第一消息。Optionally, in one scenario, when the content sending apparatus displays the main interface of the first application, if the content sending apparatus detects that the user's user identifier of a certain user is in the main interface of the first application by the user. input, the content sending apparatus can switch the main interface to a conversation interface, so that the user can input in the conversation interface, so that the content sending apparatus can obtain the first message and display the first message on the conversation interface.

可以理解,会话界面为与上述某个用户对应的会话界面。It can be understood that the conversational interface is a conversational interface corresponding to one of the above-mentioned users.

举例说明,以内容发送装置为手机为例进行说明。如图2中的(A)所示,手机显示会话界面(例如界面10),该界面10中包括“请长按语音键说话”控件,从而用户可以对该“请长按语音键说话”控件进行输入,以使得手机可以录取第一消息;如图2中的(B)所示,在用户对“请长按语音键说话”控件进行输入之后,手机可以录取第一消息,并在界面10中显示该第一消息(例如消息11)。For example, the content sending device is a mobile phone as an example for description. As shown in (A) of FIG. 2 , the mobile phone displays a conversational interface (eg, interface 10 ), and the interface 10 includes a “please long press the voice key to speak” control, so that the user can talk to the “please long press the voice key to speak” control. Carry out input, so that the mobile phone can record the first message; as shown in (B) in Figure 2, after the user inputs the "please long press the voice key to speak" control, the mobile phone can record the first message, and in the interface 10 The first message (eg, message 11) is displayed in the .

进一步可选的,本申请实施例中,可以在会话界面中的文字输入框中,显示上述录制语音消息对应的文字信息。可以理解,在内容发送装置获取第一消息之后,内容发送装置并不立即发送该第一消息。Further optionally, in this embodiment of the present application, the text information corresponding to the above recorded voice message may be displayed in the text input box in the conversation interface. It can be understood that after the content sending apparatus acquires the first message, the content sending apparatus does not immediately send the first message.

可选的,在另一种场景下,在内容发送装置接收到其他用户发送的第一消息的情况下,若内容发送装置检查到用户对第一应用的应用标识的输入,则内容发送装置可以开启该第一应用,并显示该第一应用的主界面,这样,在内容发送装置检测到用户对该第一应用的主界面中,该其他用户的用户标识的输入的情况下,内容发送装置可以将该主界面切换为会话界面,该会话界面中显示有第一消息。Optionally, in another scenario, when the content sending apparatus receives a first message sent by another user, if the content sending apparatus checks the user's input of the application identifier of the first application, the content sending apparatus may The first application is opened, and the main interface of the first application is displayed. In this way, when the content sending device detects the user's input of the user ID of the other user in the main interface of the first application, the content sending device The main interface can be switched to a conversation interface in which the first message is displayed.

可选的,本申请实施例中,上述第一应用可以为聊天类应用程序。Optionally, in this embodiment of the present application, the above-mentioned first application may be a chat application.

可选的,本申请实施例中,上述第一消息可以为待发送的语音消息、文字消息,或者,可以为内容发送装置接收到的语音消息、文字消息。Optionally, in this embodiment of the present application, the above-mentioned first message may be a voice message or a text message to be sent, or may be a voice message or a text message received by the content sending apparatus.

可选的,本申请实施例中,在第一消息为待发送的语音消息的情况下,上述第一关键词具体可以为该语音消息中的关键词;在第一消息为待发送的文字消息的情况下,上述第一关键词具体可以为该文字消息中的关键词;在第一消息为内容发送装置接收到的语音消息的情况下,上述第一关键词具体可以为内容发送装置根据该语音消息中的关键词,确定的针对该语音消息进行回复的消息内容的关键词;在第一消息为内容发送装置接收到的文字消息的情况下,上述第一关键词具体可以为内容发送装置根据该文字消息中的关键词,确定的针对该文字消息进行回复的消息内容的关键词。Optionally, in the embodiment of the present application, in the case where the first message is a voice message to be sent, the above-mentioned first keyword may specifically be a keyword in the voice message; if the first message is a text message to be sent Under the circumstance, the above-mentioned first keyword may specifically be a keyword in the text message; if the first message is a voice message received by the content sending device, the above-mentioned first keyword may specifically be the content sending device according to the The keyword in the voice message, the determined keyword of the message content for replying to the voice message; if the first message is a text message received by the content sending device, the above-mentioned first keyword may specifically be the content sending device According to the keyword in the text message, the keyword of the message content for replying to the text message is determined.

可选的,本申请实施例中,内容发送装置可以对语音消息进行语音识别处理,以得到语音消息对应的文字,这样,内容发送装置可以从语音消息对应的文字中,获取该语音消息中的关键词,以确定与该语音消息对应的第一关键词。Optionally, in the embodiment of the present application, the content sending apparatus may perform speech recognition processing on the voice message to obtain the text corresponding to the voice message. In this way, the content sending apparatus may obtain the text in the voice message from the text corresponding to the voice message. keyword to determine the first keyword corresponding to the voice message.

进一步可选的,本申请实施例中,在内容发送装置得到该语音消息对应的文字之后,内容发送装置可以在会话界面中显示该文字,从而用户可以对该文字中的至少一个文字进行输入,以使得内容发送装置可以将该至少一个文字,确定为第一关键词。Further optionally, in this embodiment of the present application, after the content sending device obtains the text corresponding to the voice message, the content sending device may display the text in the conversation interface, so that the user can input at least one text in the text, So that the content sending apparatus can determine the at least one character as the first keyword.

进一步可选的,本申请实施例中,在内容发送装置得到该语音消息对应的文字之后,内容发送装置可以对该文字进行检测,以获取该语音消息中的关键词,以确定第一关键词。Further optionally, in this embodiment of the present application, after the content sending device obtains the text corresponding to the voice message, the content sending device may detect the text to obtain keywords in the voice message, so as to determine the first keyword. .

本申请实施例中,上述第一关键词可以包括一个关键词或多个关键词,该第一关键词对应至少一张第一图片,M为正整数。In this embodiment of the present application, the first keyword may include one keyword or multiple keywords, the first keyword corresponds to at least one first picture, and M is a positive integer.

可以理解,在第一关键词包括一个关键词的情况下,该一个关键词对应至少一张第一图片;在第一关键词包括多个关键词的情况下,该多个关键词中的每个关键词分别对应至少一张第一图片。It can be understood that in the case where the first keyword includes one keyword, the one keyword corresponds to at least one first picture; in the case where the first keyword includes multiple keywords, each of the multiple keywords The keywords respectively correspond to at least one first picture.

可选的,本申请实施例中,上述第一关键词分别与至少一张图片的图像信息相匹配,该图像信息可以包括以下任一项:图像名称、图像类型。Optionally, in this embodiment of the present application, the above-mentioned first keywords are respectively matched with image information of at least one picture, and the image information may include any one of the following: an image name and an image type.

可选的,本申请实施例中,上述M张图片可以包括以下至少一项:内容发送装置中存储的图片、内容发送装置对应用程序界面进行截屏得到的图片。Optionally, in this embodiment of the present application, the above M pictures may include at least one of the following: a picture stored in the content sending apparatus, and a picture obtained by the content sending apparatus taking a screenshot of an application program interface.

可选的,本申请实施例中,在M张图片为内容发送装置中存储的图片的情况下,内容发送装置可以根据第一关键词,从内容发送装置中,确定出图像信息与该第一关键词相匹配的至少一张第一图片,以确定出M张第一图片。Optionally, in this embodiment of the present application, in the case where the M pictures are pictures stored in the content sending device, the content sending device may, according to the first keyword, determine from the content sending device that the image information is related to the first keyword. At least one first picture matching the keyword is used to determine M first pictures.

示例性的,假设第一关键词包括多个关键词,例如“小猫”关键词和“小狗”关键词,则内容发送装置可以根据该“小猫”关键词,从内容发送装置中的本地相册中,确定出图像名称与“小猫”关键词相匹配的至少一张第一图片,并根据该“小狗”关键词,从内容发送装置中的本地相册中,确定出图像名称与“小狗”关键词相匹配的至少一张第一图片。Exemplarily, assuming that the first keyword includes multiple keywords, such as the keyword "kitten" and the keyword "dog", the content sending apparatus In the local album, at least one first picture whose image name matches the "kitten" keyword is determined, and according to the "puppy" keyword, from the local album in the content sending device, the image name and the image name are determined. At least one first image that matches the keyword "puppy".

可选的,本申请实施例中,在M张图片为内容发送装置对内容发送装置的应用程序界面进行截屏得到的图片的情况下,内容发送装置可以根据第一关键词,从内容发送装置中,确定出应用信息(例如应用类型)与该第一关键词相关联的至少一个应用程序(例如下述实施例中的目标应用程序),并从至少一个应用程序中,确定出至少一张第一图片,以确定出M张第一图片。Optionally, in this embodiment of the present application, in the case where the M pictures are pictures obtained by the content sending device taking screenshots of the application program interface of the content sending device, the content sending device may, according to the first keyword, select the images from the content sending device. , determine at least one application program (for example, the target application program in the following embodiment) associated with the application information (for example, the application type) and the first keyword, and from the at least one application program, determine at least one first keyword a picture to determine M first pictures.

示例性的,假设第一关键词包括一个关键词,例如“小猫”关键词,则内容发送装置可以根据该“小猫”关键词,从内容发送装置运行的(例如后台运行的)应用程序中,确定出应用类型与“小猫”关键词相关联的至少一个应用程序(例如“歌曲”应用程序),并对该“歌曲”应用程序的界面(即当前播放的歌曲对应的歌曲封面)进行截屏,以得到一张截屏图片,并将该截屏图片,确定为一张第一图片。Exemplarily, assuming that the first keyword includes a keyword, such as the "kitten" keyword, the content sending apparatus may, according to the "kitten" keyword, run an application program (for example, running in the background) from the content sending apparatus. , determine at least one application (such as a "song" application) whose application type is associated with the "kitten" keyword, and define the interface of the "song" application (that is, the song cover corresponding to the currently playing song) A screenshot is taken to obtain a screenshot, and the screenshot is determined as a first picture.

可选的,本申请实施例中,在内容发送装置确定内容发送装置中不存在与第一关键词对应的任一个第一图片的情况下,内容发送装置可以向服务器发送第一关键词,以使得服务器可以根据该第一关键词,获取与该第一关键词对应的多张第一图片,并向内容发送装置发送该多张第一图片。Optionally, in this embodiment of the present application, when the content sending device determines that there is no first picture corresponding to the first keyword in the content sending device, the content sending device may send the first keyword to the server to send the first keyword to the server. The server can obtain a plurality of first pictures corresponding to the first keyword according to the first keyword, and send the plurality of first pictures to the content sending apparatus.

步骤102、内容发送装置在会话界面中显示N个图片标识。Step 102: The content sending apparatus displays N picture identifiers in the conversation interface.

本申请实施例中,上述N个图片标识中的每个图片标识分别用于指示一张第一图片,N为小于或等于M的正整数。In the embodiment of the present application, each of the above N picture identifiers is used to respectively indicate a first picture, and N is a positive integer less than or equal to M.

可以理解,内容发送装置可以在会话界面中显示所有第一图片的图片标识(即N等于M),或者,可以在会话界面中显示M张第一图片中的部分第一图片的图片标识(即N小于M)。It can be understood that the content sending apparatus may display the picture identifiers of all the first pictures in the conversation interface (that is, N is equal to M), or may display the picture identifiers of some of the first pictures in the M first pictures (that is, N equals M) in the conversation interface. N is less than M).

可选的,本申请实施例中,在第一关键词为一个关键词的情况下,内容发送装置可以在会话界面中显示所有第一图片的图片标识;在第一关键词为多个关键词的情况下,内容发送装置可以在会话界面中显示M张第一图片中的部分第一图片(例如多个关键词中的第一个关键词对应的第一图片)的图片标识。Optionally, in this embodiment of the present application, when the first keyword is one keyword, the content sending apparatus may display the picture identifiers of all the first pictures in the conversation interface; when the first keyword is a plurality of keywords In this case, the content sending apparatus may display the picture identifiers of some of the first pictures in the M first pictures (for example, the first pictures corresponding to the first keywords in the multiple keywords) in the conversation interface.

可选的,本申请实施例中,内容发送装置可以在会话界面的第一区域上,悬浮显示目标窗口,该目标窗口中包括N个图片标识。Optionally, in this embodiment of the present application, the content sending apparatus may display a target window in a suspended manner on the first area of the conversation interface, where the target window includes N picture identifiers.

可选的,本申请实施例中,上述第一区域具体可以为:内容发送装置的显示屏的一条边缘线(例如下边缘线)的相邻区域。Optionally, in this embodiment of the present application, the first area may specifically be: an area adjacent to an edge line (for example, a lower edge line) of the display screen of the content sending apparatus.

需要说明的是,上述“一条边缘线的相邻区域”可以理解为:该一条边缘线的预设范围内的区域。It should be noted that the above-mentioned "adjacent area of an edge line" can be understood as an area within a preset range of the one edge line.

举例说明,结合图2中的(B),如图3所示,手机可以在界面10的第一区域(例如区域12(图中是以虚线框示意的))上,悬浮显示目标窗口(例如窗口13),该窗口13中包括N个图片标识(例如图片标识14、图片标识15和图片标识16),该图片标识14用于指示一张第一图片,该图片标识15用于指示另一张第一图片,该图片标识16用于指示又一张第一图片。For example, in conjunction with (B) in FIG. 2 , as shown in FIG. 3 , the mobile phone can display the target window (eg, the area 12 (shown as a dotted frame in the figure)) in the first area of the interface 10 in a suspended manner. Window 13), the window 13 includes N picture identifications (such as picture identification 14, picture identification 15 and picture identification 16), the picture identification 14 is used to indicate a first picture, and the picture identification 15 is used to indicate another a first picture, and the picture identifier 16 is used to indicate another first picture.

步骤103、内容发送装置接收用户对N个图片标识中的目标图片标识的第一输入。Step 103: The content sending apparatus receives a first input from the user for the target picture identification among the N picture identifications.

本申请实施例中,上述第一输入用于触发内容发送装置发送目标内容。In the embodiment of the present application, the above-mentioned first input is used to trigger the content sending apparatus to send the target content.

可选的,本申请实施例中,上述第一输入具体可以为用户对目标图片标识的点击输入。Optionally, in this embodiment of the present application, the above-mentioned first input may specifically be a user's click input on the target image identifier.

步骤104、内容发送装置响应于第一输入,发送目标内容。Step 104: The content sending apparatus sends the target content in response to the first input.

本申请实施例中,上述目标内容包括目标图片标识指示的第一图片。In the embodiment of the present application, the above-mentioned target content includes the first picture indicated by the target picture identifier.

可选的,本申请实施例中,在第一消息为待发送的消息的情况下,内容发送装置可以发送该目标图片标识指示的第一图片,或者,可以发送该目标图片标识指示的第一图片和该第一消息。Optionally, in this embodiment of the present application, when the first message is a message to be sent, the content sending apparatus may send the first picture indicated by the target picture identifier, or may send the first picture indicated by the target picture identifier. Pictures and that first message.

可以理解,在第一消息为待发送的语音消息的情况下,目标内容包括目标图片标识指示的第一图片,或者,包括目标图片标识指示的第一图片和第一消息。It can be understood that when the first message is a voice message to be sent, the target content includes the first picture indicated by the target picture identifier, or includes the first picture indicated by the target picture identifier and the first message.

可选的,本申请实施例中,在第一消息为内容发送装置接收到的消息的情况下,内容发送装置可以发送该目标图片标识指示的第一图片。Optionally, in this embodiment of the present application, when the first message is a message received by the content sending apparatus, the content sending apparatus may send the first picture indicated by the target picture identifier.

可以理解,在第一消息为待发送的消息的情况下,目标内容包括目标图片标识指示的第一图片。It can be understood that when the first message is a message to be sent, the target content includes the first picture indicated by the target picture identifier.

可选的,本申请实施例中,内容发送装置可以向会话界面对应的其他用户的内容发送装置,发送目标内容。Optionally, in this embodiment of the present application, the content sending apparatus may send the target content to the content sending apparatuses of other users corresponding to the session interface.

可选的,本申请实施例中,在内容发送装置发送目标内容之后,内容发送装置可以在会话界面中显示该目标内容。Optionally, in this embodiment of the present application, after the content sending apparatus sends the target content, the content sending apparatus may display the target content in the session interface.

举例说明,结合图3,如图4中的(A)所示,用户可以对图片标识15进行第一输入(例如点击输入),以使得手机可以发送该图片标识15指示的第一图片;如图4中的(B)所示,在用户进行第一输入之后,手机可以向界面10对应的其他用户的内容发送装置,发送该图片标识15指示的第一图片,并在界面10中显示该图片标识15指示的第一图片(例如图片17)。For example, in conjunction with FIG. 3, as shown in (A) in FIG. 4, the user can perform a first input (eg, click input) to the picture identification 15, so that the mobile phone can send the first picture indicated by the picture identification 15; such as As shown in (B) in FIG. 4 , after the user makes the first input, the mobile phone can send the first picture indicated by the picture identifier 15 to the content sending device of other users corresponding to the interface 10 , and display the first picture in the interface 10 . The first picture indicated by picture identification 15 (eg, picture 17).

本申请实施例中,在第一消息为待发送的消息的情况下,在用户触发内容发送装置获取第一消息之后,内容发送装置可以对该第一消息中的信息进行识别,例如,在第一消息为语音消息的情况下,将该语音消息中的信息转换成文字,并在会话界面中显示,由用户选择需要的第一关键词,或者,将该语音消息中的信息转换成文字,并从该文字中获取第一关键词;从而,内容发送装置可以根据该第一关键词,从内容发送装置中确定出与该第一关键词对应的M张第一图片,并在该会话界面中的输入区域显示该M张第一图片中的N张第一图片的图片标识。这样,若用户需要发送与第一消息相关的图片,则可以对该N张第一图片的图片标识中的某张图片的图片标识进行选择,并对该会话界面中的“发送”控件进行输入,以使得内容发送装置可以发送该第一消息和包括该某张图片的消息;若用户不需要发送与该第一消息相关的图片,则可以直接对该会话界面中的“发送”控件进行输入,以使得内容发送装置可以直接发送该第一消息。In this embodiment of the present application, when the first message is a message to be sent, after the user triggers the content sending apparatus to acquire the first message, the content sending apparatus may identify the information in the first message, for example, in the first message When a message is a voice message, the information in the voice message is converted into text and displayed in the conversation interface, and the user selects the required first keyword, or, the information in the voice message is converted into text, and obtain the first keyword from the text; thus, the content sending device can determine M first pictures corresponding to the first keyword from the content sending device according to the first keyword, and display the M first pictures corresponding to the first keyword in the conversation interface. The input area in displays the picture identifiers of N first pictures in the M first pictures. In this way, if the user needs to send a picture related to the first message, the user can select the picture ID of a certain picture among the picture IDs of the N first pictures, and input the "send" control in the conversation interface. , so that the content sending device can send the first message and the message including the certain picture; if the user does not need to send the picture related to the first message, he can directly input the "send" control in the conversation interface , so that the content sending apparatus can directly send the first message.

本申请实施例中,在第一消息为内容发送装置接收到的消息的情况下,在会话界面显示第一消息的情况下,用户可以对该第一消息进行输入,以使得内容发送装置可以显示该第一消息。在显示该第一消息之后(或者,显示该第一消息的同时),在第一消息为语音消息的情况下,内容发送装置可以对该语音消息中的信息进行识别,并在会话界面中显示,由用户选择需要的第二关键词,或者,将该语音消息中的信息转换成文字,并从该文字中获取第二关键词;从而,内容发送装置可以根据该第二关键词,确定与该第二关键词对应的第一关键词(即进行回复的消息内容的关键词),并从内容发送装置中确定出与该第一关键词对应的M张第一图片,并在该会话界面中的输入区域显示该M张第一图片中的N张第一图片的图片标识。这样,若用户需要回复与该第一消息相关的图片,则可以对该N张第一图片的图片标识中的某张图片的图片标识进行选择,并对该会话界面中的“发送”控件进行输入,以使得内容发送装置可以回复包括该某张图片的消息;若用户不需要回复与该第一消息相关的图片,则可以直接在输入区域中输入回复内容,并对该会话界面中的“发送”控件进行输入,以使得内容发送装置可以发送包括该回复内容的消息。In this embodiment of the present application, in the case where the first message is a message received by the content sending apparatus, and the conversation interface displays the first message, the user can input the first message, so that the content sending apparatus can display the first message. The first message. After displaying the first message (or while displaying the first message), if the first message is a voice message, the content sending apparatus may identify the information in the voice message, and display it in the conversation interface , the user selects the required second keyword, or, converts the information in the voice message into text, and obtains the second keyword from the text; thus, the content sending device can determine the relationship with the second keyword according to the second keyword. The first keyword corresponding to the second keyword (that is, the keyword of the message content for replying), and M first pictures corresponding to the first keyword are determined from the content sending device, and displayed on the conversation interface. The input area in displays the picture identifiers of the N first pictures in the M first pictures. In this way, if the user needs to reply to a picture related to the first message, the user can select the picture identification of a certain picture among the picture identifications of the N first pictures, and execute the "Send" control in the conversation interface. input, so that the content sending device can reply to the message including the certain picture; if the user does not need to reply to the picture related to the first message, he can directly enter the reply content in the input area, and the "" Send" control for input so that the content sending device can send a message including the content of the reply.

本申请实施例提供的内容发送方法,在会话界面显示第一消息的情况下,内容发送装置可以根据第一消息,确定与该第一消息对应的第一关键词,并从内容发送装置中确定出与该第一关键词对应的M张第一图片,然后再在该会话界面中显示M张第一图片中的N张第一图片的N个图片标识,这样,内容发送装置可以根据用户对该N个图片标识中的目标图片标识的第一输入,发送包括该目标图片标识指示的第一图片的目标内容。由于内容发送装置可以根据第一消息,确定与该第一消息对应的所有关键词,并直接从内容发送装置中确定出与该所有关键词对应的所有图片,然后再显示该所有图片中的某些图片的图片标识,这样,用户可以直接对该某些图片的图片标识中,与第一消息的内容相关的目标图片标识进行输入,以使得内容发送装置可以发送包括该目标图片标识指示的图片的目标内容,而无需用户在相册包括的所有图片中,逐一查找与第一消息的内容相关的图片,并进行多次操作,因此可以简化用户的操作、且减少耗时,如此可以提升内容发送装置发送消息的效率。In the content sending method provided by the embodiment of the present application, when the conversation interface displays the first message, the content sending apparatus may determine the first keyword corresponding to the first message according to the first message, and determine from the content sending apparatus Take out M first pictures corresponding to the first keyword, and then display N picture identifiers of N first pictures in the M first pictures in the conversation interface, so that the content sending device can The first input of the target picture identification among the N picture identifications sends the target content including the first picture indicated by the target picture identification. Because the content sending device can determine all the keywords corresponding to the first message according to the first message, directly determine all the pictures corresponding to all the keywords from the content sending device, and then display a certain one of the all the pictures. The picture identification of some pictures, in this way, the user can directly input the target picture identification related to the content of the first message in the picture identification of the certain pictures, so that the content sending device can send the picture including the target picture identification indication. without the need for the user to search for pictures related to the content of the first message one by one among all the pictures included in the album, and perform multiple operations, thus simplifying the user's operation and reducing time-consuming, which can improve content delivery. The efficiency with which the device sends messages.

下面将以第一消息为待发送的语音消息为例,举例说明内容发送装置是如何发送目标内容的。The following will take as an example that the first message is a voice message to be sent, to illustrate how the content sending apparatus sends the target content.

可选的,本申请实施例中,在第一消息为待发送的语音消息的情况下,目标内容还包括该第一消息。具体的,结合图1,如图5所示,在上述步骤104中的“发送目标内容”之前,本申请实施例提供的内容发送方法还可以包括下述的步骤201和步骤202,并且上述步骤104具体可以通过下述的步骤104a实现。Optionally, in this embodiment of the present application, when the first message is a to-be-sent voice message, the target content further includes the first message. Specifically, with reference to FIG. 1 , as shown in FIG. 5 , before the “send target content” in the above step 104 , the content sending method provided by this embodiment of the present application may further include the following steps 201 and 202 , and the above steps 104 can be specifically implemented through the following step 104a.

步骤201、内容发送装置响应于第一输入,在会话界面上显示至少一个控件。Step 201: In response to the first input, the content sending apparatus displays at least one control on the session interface.

本申请实施例中,上述至少一个控件中的每个控件分别用于指示一种发送方式。In this embodiment of the present application, each control in the at least one control is used to indicate a sending mode, respectively.

进一步可选的,本申请实施例中,至少一种发送方式包括以下至少一项:第一消息和图片同时发送的方式、分别发送第一消息和图片的方式、仅发送图片的方式。Further optionally, in this embodiment of the present application, the at least one sending method includes at least one of the following: a method of sending the first message and a picture at the same time, a method of sending the first message and the picture separately, and a method of sending only the picture.

可以理解的,在第一消息为语音消息的时候,还可以包括:语音对应的文字和图片同时发送的发送方式、分别发送语音对应的文字和图片的发送方式中的一种。It can be understood that when the first message is a voice message, it may further include one of: a sending method of simultaneously sending text and pictures corresponding to the voice, and a sending method of sending text and pictures corresponding to the voice separately.

需要说明的是,上述“第一消息和图片同时发送的方式”可以理解为:内容发送装置可以在图片上添加第一消息消息(即在该图片上显示第一消息消息),并发送该图片的方式。在发送该图片之后,若第一消息为语音消息,则在图片上显示为语音显示条,用户可以对语音显示条进行输入,以使得内容发送装置可以播放该语音消息;若第一消息为文字消息,则在图片上显示该段文字内容。上述“语音对应的文字和图片同时发送的发送方式”可以理解为:内容发送装置可以对语音消息进行语音识别处理,以得到该语音消息对应的文字,从而内容发送装置可以在图片上添加该文字,以生成新的图片,并发送该新的图片的方式。上述“分别发送第一消息和图片的方式”可以理解为:先发送第一消息,再发送图片的方式;或者,先发送图片,再发送第一消息的方式。It should be noted that the above-mentioned "method of sending the first message and the picture at the same time" can be understood as: the content sending apparatus may add the first message message to the picture (that is, display the first message message on the picture), and send the picture The way. After sending the picture, if the first message is a voice message, it will be displayed as a voice display bar on the picture, and the user can input the voice display bar, so that the content sending device can play the voice message; if the first message is a text message, the text will be displayed on the picture. The above-mentioned "sending mode of simultaneous sending of text and pictures corresponding to voice" can be understood as: the content sending device can perform speech recognition processing on the voice message to obtain the text corresponding to the voice message, so that the content sending device can add the text to the picture. , to generate a new picture and send the new picture. The above "method of respectively sending the first message and the picture" can be understood as: the method of sending the first message first, and then the picture; or, the method of sending the picture first, and then the first message.

进一步可选的,本申请实施例中,内容发送装置可以在会话界面的第二区域上,悬浮显示至少一个控件。Further optionally, in this embodiment of the present application, the content sending apparatus may display at least one control in a floating manner on the second area of the conversation interface.

进一步可选的,本申请实施例中,上述第一区域具体可以为:内容发送装置的显示屏的一条边缘线(例如右边缘线)的相邻区域。Further optionally, in this embodiment of the present application, the above-mentioned first area may specifically be: an area adjacent to an edge line (eg, a right edge line) of the display screen of the content sending apparatus.

举例说明,结合图4中的(A),如图6所示,在用户对图片标识15进行第一输入之后,手机可以在界面10的第二区域(例如区域18(图中是以虚线框示意的))上,悬浮显示至少一个控件(例如控件19、控件20、控件21、控件22和控件23),该控件19用于指示一种发送方式(例如仅发送图片的方式),该控件20用于指示另一种发送方式(例如第一消息和图片同时发送的方式),该控件21用于指示再一种发送方式(例如第一消息为语音消息时,语音对应的文字和图片同时发送的发送方式),该控件22用于指示又一种发送方式(例如分别发送第一消息和图片的方式),该控件23用于指示又一种(例如第一消息为语音消息时,分别发送语音对应的文字和图片的发送方式)。For example, in conjunction with (A) in FIG. 4 , as shown in FIG. 6 , after the user performs the first input on the picture identifier 15 , the mobile phone can display the second area (for example, area 18 in the figure with a dotted line frame) of the interface 10 Schematic)), at least one control (such as control 19, control 20, control 21, control 22 and control 23) is displayed in suspension, and the control 19 is used to indicate a sending method (for example, the method of sending only pictures), the control 20 is used to indicate another sending method (for example, the first message and the picture are sent at the same time), and the control 21 is used to indicate another sending method (for example, when the first message is a voice message, the text and the picture corresponding to the voice are simultaneously sent. Sending sending mode), the control 22 is used to indicate another sending method (for example, the method of sending the first message and the picture respectively), the control 23 is used to indicate another sending method (for example, when the first message is a voice message, respectively The sending method of text and pictures corresponding to the voice).

步骤202、内容发送装置接收用户对至少一个控件中的目标控件的第三输入。Step 202: The content sending apparatus receives a third input from the user to a target control in the at least one control.

本申请实施例中,上述第三输入用于触发内容发送装置发送第一消息和目标图片标识指示的第一图片。In the embodiment of the present application, the above-mentioned third input is used to trigger the content sending apparatus to send the first message and the first picture indicated by the target picture identifier.

进一步可选的,本申请实施例中,上述第三输入具体可以为用户对目标控件的点击输入。Further optionally, in this embodiment of the present application, the above-mentioned third input may specifically be a user's click input on the target control.

步骤104a、内容发送装置响应于第三输入,采用目标控件指示的发送方式,发送第一消息和目标图片标识指示的第一图片。Step 104a: In response to the third input, the content sending apparatus sends the first message and the first picture indicated by the target picture identifier in the sending manner indicated by the target control.

本申请实施例中,在不同的场景下,用户可能需求不同的发送方式发送第一消息和目标图片标识指示的第一图片,因此,内容发送装置可以显示至少一个控件(每个控件用于指示一种发送方式),从而用户可以根据使用需求,选择用户所需求的发送方式发送该第一消息和该目标图片标识指示的第一图片。In this embodiment of the present application, in different scenarios, users may require different sending methods to send the first message and the first picture indicated by the target picture identifier. Therefore, the content sending apparatus may display at least one control (each control is used to indicate A sending method), so that the user can select the sending method required by the user to send the first message and the first picture indicated by the target picture identifier according to the usage requirements.

本申请实施例中,由于内容发送装置可以在会话界面上显示至少一个控件,这样,用户可以根据使用需求,对该至少一个控件中的目标控件进行第三输入,以使得内容发送装置可以采用目标控件指示的发送方式,发送第一消息和目标图片标识指示的第一图片,因此可以提升内容发送装置发送消息的灵活性。In the embodiment of the present application, since the content sending apparatus can display at least one control on the session interface, the user can perform a third input on the target control in the at least one control according to the usage requirements, so that the content sending apparatus can use the target control In the sending mode indicated by the control, the first message and the first picture indicated by the target picture identifier are sent, so the flexibility of the content sending apparatus for sending messages can be improved.

可选的,本申请实施例中,在目标控件指示的发送方式为第一消息和图片同时发送的方式的情况下,在上述步骤104a之后,本申请实施例提供的内容发送方法还可以包括下述的步骤301。Optionally, in the embodiment of the present application, in the case where the sending mode indicated by the target control is the mode of sending the first message and the picture at the same time, after the above step 104a, the content sending method provided by the embodiment of the present application may further include the following: Step 301 described above.

步骤301、内容发送装置在会话界面中显示目标图片标识指示的第一图片,并在目标图片标识指示的第一图片上显示第一消息。Step 301: The content sending apparatus displays the first picture indicated by the target picture identifier in the conversation interface, and displays the first message on the first picture indicated by the target picture identifier.

进一步可选的,本申请实施例中,内容发送装置可以在目标图片标识指示的第一图片上,覆盖显示第一消息,例如,部分覆盖显示第一消息。Further optionally, in this embodiment of the present application, the content sending apparatus may overlay and display the first message on the first picture indicated by the target picture identifier, for example, partially overlay and display the first message.

需要说明的是,上述“在目标图片标识指示的第一图片上,部分覆盖显示第一消息”可以理解为:第一消息的显示区域,位于目标图片标识指示的第一图片的显示区域内。It should be noted that the above-mentioned "displaying the first message partially over the first picture indicated by the target picture identifier" can be understood as: the display area of the first message is located in the display area of the first picture indicated by the target picture identifier.

进一步可选的,本申请实施例中,在目标控件指示的发送方式为第一消息和图片同时发送的方式的情况下,内容发送装置在会话界面中显示目标图片标识指示的第一图片,并在目标图片标识指示的第一图片上覆盖显示第一消息。Further optionally, in this embodiment of the present application, in the case where the sending method indicated by the target control is the method of sending the first message and the picture at the same time, the content sending apparatus displays the first picture indicated by the target picture identifier in the conversation interface, and The first message is displayed overlaid on the first picture indicated by the target picture identifier.

举例说明,结合图4中的(A),如图7所示,在用户对图片标识15进行第一输入之后,手机可以向界面10对应的其他用户的手机,发送语音消息和该图片标识15指示的第一图片,并在界面10中显示该图片标识15指示的第一图片(例如图片24),以及在图片24上覆盖显示语音消息(例如消息25)。For example, in conjunction with (A) in FIG. 4 , as shown in FIG. 7 , after the user performs the first input on the picture identification 15, the mobile phone can send a voice message and the picture identification 15 to the mobile phones of other users corresponding to the interface 10. The first picture indicated, and the first picture indicated by the picture identifier 15 (eg, picture 24 ) is displayed in the interface 10 , and a voice message (eg, message 25 ) is displayed overlying the picture 24 .

进一步可选的,本申请实施例中,在目标控件指示的发送方式为在第一消息为语音时,语音对应的文字和图片同时发送的方式的情况下,内容发送装置在会话界面中显示目标图片标识指示的第一图片,并在目标图片标识指示的第一图片上覆盖显示语音对应的文字;在目标控件指示的发送方式为在第一消息为文字时,文字和图片同时发送的方式的情况下,内容发送装置在会话界面中显示目标图片标识指示的第一图片,并在目标图片标识指示的第一图片上覆盖显示对应的文字。Further optionally, in this embodiment of the present application, when the sending mode indicated by the target control is a mode in which the text and pictures corresponding to the voice are simultaneously sent when the first message is voice, the content sending device displays the target in the conversation interface. The first picture indicated by the picture identifier, and the text corresponding to the voice is overlaid and displayed on the first picture indicated by the target picture identifier; the sending method indicated by the target control is that when the first message is text, the text and the picture are sent at the same time. In this case, the content sending apparatus displays the first picture indicated by the target picture identifier in the conversation interface, and overlays and displays the corresponding text on the first picture indicated by the target picture identifier.

举例说明,结合图4中的(A),如图8所示,在用户对图片标识15进行第一输入之后,手机可以向界面10对应的其他用户的手机,发送第一消息和该图片标识15指示的第一图片,并在界面10中显示该图片标识15指示的第一图片(例如图片26),以及在图片26上覆盖显示语音消息对应的文字(例如文字27)。For example, in conjunction with (A) in FIG. 4 , as shown in FIG. 8 , after the user performs the first input on the picture identification 15, the mobile phone can send the first message and the picture identification to the mobile phones of other users corresponding to the interface 10 15, and display the first picture (eg, picture 26) indicated by the picture identifier 15 in the interface 10, and overlay and display the text (eg, text 27) corresponding to the voice message on the picture 26.

本申请实施例中,由于内容发送装置可以在目标图片标识指示的第一图片的显示区域中,覆盖显示第一消息,即内容发送装置可以在同一个显示区域中分别显示目标图片标识指示的第一图片和第一消息,因此,可以节省内容发送装置显示会话界面的显示空间。In this embodiment of the present application, because the content sending apparatus can display the first message overlying in the display area of the first picture indicated by the target picture identifier, that is, the content sending apparatus can display the first message indicated by the target picture identifier in the same display area respectively. Therefore, the display space of the content sending apparatus for displaying the conversation interface can be saved.

可以理解,内容发送装置并不是仅分别显示目标图片标识指示的第一图片和第一消息,因此,可以提升内容发送装置显示内容的多样性,如此可以提升用户的使用体验。It can be understood that the content sending apparatus does not only separately display the first picture and the first message indicated by the target picture identifier, therefore, the diversity of the content displayed by the content sending apparatus can be improved, and thus the user experience can be improved.

下面将以第一消息为待发送的消息为例,举例说明内容发送装置是如何发送目标内容的。The following will take the first message as the message to be sent as an example to illustrate how the content sending apparatus sends the target content.

可选的,本申请实施例中,在第一消息为待发送的消息的情况下,内容发送装置响应于第一输入,可以采用默认发送方式,发送目标图片标识指示的第一图片。Optionally, in this embodiment of the present application, when the first message is a message to be sent, the content sending apparatus may, in response to the first input, use a default sending mode to send the first picture indicated by the target picture identifier.

进一步可选的,本申请实施例中,上述默认发送方式具体可以为:仅发送图片的方式。Further optionally, in this embodiment of the present application, the above-mentioned default sending manner may specifically be: a manner of sending only pictures.

下面将举例说明内容发送装置是如何根据第一消息,确定与该第一消息对应的第一关键词的。The following will illustrate how the content sending apparatus determines the first keyword corresponding to the first message according to the first message.

可选的,在本申请实施例的一种可能的实现方式中,在第一消息为待发送的消息的情况下,上述步骤101具体可以通过下述的步骤101a或步骤101b实现。Optionally, in a possible implementation manner of the embodiment of the present application, when the first message is a message to be sent, the foregoing step 101 may be specifically implemented by the following step 101a or step 101b.

步骤101a、在会话界面显示第一消息的情况下,在第一消息为用户输入的语音消息的情况下,内容发送装置从第一消息对应的文字中,确定第一关键词。Step 101a: In the case where the conversation interface displays the first message, and in the case that the first message is a voice message input by the user, the content sending apparatus determines the first keyword from the text corresponding to the first message.

可以理解,在第一消息为用户输入的语音消息的情况下,用户可以进行第四输入,以使得内容发送装置响应于第四输入,对第一语音消息进行解析处理,以获取第一语音消息对应的文字,并在会话界面显示第一语音消息对应的文字,这样,用户可以对第一语音消息对应的文字中的第一关键词进行第五输入,以使得内容发送装置响应于第五输入,确定第一关键词;在第一消息为用户输入的文字消息的情况下,可以直接对文字消息进行解析,获取第一关键词。It can be understood that, in the case where the first message is a voice message input by the user, the user can perform a fourth input, so that the content sending apparatus performs parsing processing on the first voice message in response to the fourth input to obtain the first voice message The corresponding text, and the text corresponding to the first voice message is displayed on the conversation interface. In this way, the user can perform a fifth input on the first keyword in the text corresponding to the first voice message, so that the content sending device responds to the fifth input. , to determine the first keyword; if the first message is a text message input by the user, the text message can be directly parsed to obtain the first keyword.

进一步可选的,本申请实施例中,会话界面中还包括第一控件,用户可以对该第一控件进行第四输入,以使得内容发送装置可以对第一消息进行解析处理。Further optionally, in this embodiment of the present application, the conversation interface further includes a first control, and the user can perform a fourth input on the first control, so that the content sending apparatus can parse and process the first message.

进一步可选的,本申请实施例中,上述第四输入具体可以为用户对第一控件的点击输入。Further optionally, in this embodiment of the present application, the above-mentioned fourth input may specifically be a user's click input on the first control.

进一步可选的,本申请实施例中,内容发送装置可以在第一消息为语音消息的情况下,对语音消息进行语音识别处理,以获取语音消息对应的文字,并在会话界面上悬浮显示该语音消息对应的文字。Further optionally, in this embodiment of the present application, the content sending apparatus may perform voice recognition processing on the voice message when the first message is a voice message, so as to obtain the text corresponding to the voice message, and display the text in a suspended manner on the conversation interface. The text corresponding to the voice message.

举例说明,结合图2中的(B),如图9中的(A)所示,界面10中还包括第一控件(例如控件28),从而用户可以对该控件28进行第四输入(例如点击输入);如图9中的(B)所示,在用户进行第四输入之后,手机可以对语音消息进行语音识别处理,以获取该语音消息对应的文字,并在界面10上悬浮显示该语音消息对应的文字(例如文字29)。For example, in conjunction with (B) in FIG. 2 , as shown in (A) in FIG. 9 , the interface 10 further includes a first control (eg, control 28 ), so that the user can perform a fourth input (eg, control 28 ) on the control 28 Click to input); as shown in (B) in FIG. 9 , after the user performs the fourth input, the mobile phone can perform voice recognition processing on the voice message to obtain the text corresponding to the voice message, and display the voice message on the interface 10. Text corresponding to the voice message (eg text 29).

进一步可选的,本申请实施例中,上述第五输入具体可以为用户对第一消息对应的文字中的第一关键词的点击输入。Further optionally, in this embodiment of the present application, the fifth input may specifically be a user's click input on the first keyword in the text corresponding to the first message.

本申请实施例中,由于内容发送装置根据第一消息确定的关键词中,可能并不存在用户需求的关键词,因此,内容发送装置可以在会话界面中显示第一控件,这样,用户可以对第一控件进行输入,以使得内容发送装置可以对第一消息进行解析处理,并在会话界面中显示该第一消息对应的文字,从而用户可以从该文字中选择用户所需求的关键词。In the embodiment of the present application, since the keywords determined by the content sending apparatus according to the first message may not exist the keywords required by the user, the content sending apparatus may display the first control in the session interface, so that the user can The first control performs input, so that the content sending apparatus can parse and process the first message, and display the text corresponding to the first message in the conversation interface, so that the user can select the keyword required by the user from the text.

本申请实施例中,由于内容发送装置可以从待发送的第一消息对应的文字中,确定第一关键词,即内容发送装置可以确定出用户所需求的关键词,因此,内容发送装置可以根据用户所需求的关键词,从内容发送装置中确定出用户所需求的第一图片,如此,可以提升内容发送装置确定用户所需求的图片的准确性。In the embodiment of the present application, since the content sending device can determine the first keyword from the text corresponding to the first message to be sent, that is, the content sending device can determine the keyword required by the user, therefore, the content sending device can For the keywords required by the user, the first picture required by the user is determined from the content sending apparatus. In this way, the accuracy of the content sending apparatus in determining the picture required by the user can be improved.

步骤101b、在会话界面显示第一消息的情况下,在第一消息为内容发送装置接收到的消息的情况下,从第一消息对应的文字中,确定第二关键词,并根据第二关键词,确定与第二关键词对应的第一关键词。Step 101b: In the case where the conversation interface displays the first message, in the case that the first message is a message received by the content sending device, determine the second keyword from the text corresponding to the first message, and determine the second keyword according to the second keyword. word to determine the first keyword corresponding to the second keyword.

可以理解,在第一消息为内容发生装置接收到的消息的情况下,内容发送装置可以在第一消息为语音消息的情况下,对语音消息进行语音识别处理,以获取第二关键词,该第二关键词为语音消息的内容中包括的关键词。It can be understood that in the case where the first message is a message received by the content generating device, the content sending device may perform speech recognition processing on the voice message when the first message is a voice message to obtain the second keyword, the The second keyword is a keyword included in the content of the voice message.

本申请实施例中,上述第一关键词为针对第一消息进行消息回复的内容的关键词。In the embodiment of the present application, the above-mentioned first keyword is a keyword of the content of the message reply to the first message.

进一步可选的,本申请实施例中,在内容发送装置中预先存储有至少一个对应关系,一个对应关系为一个接收消息关键词和一个回复消息关键词的对应关系,从而内容发送装置可以根据第二关键词,从该至少一个对应关系中,确定出第一关键词。Further optionally, in this embodiment of the present application, at least one correspondence is pre-stored in the content sending apparatus, and one correspondence is a correspondence between a received message keyword and a reply message keyword, so that the content sending apparatus can Two keywords, the first keyword is determined from the at least one corresponding relationship.

示例性的,内容发送装置可以根据第二关键词,从至少一个对应关系中的至少一个接收消息关键词中,确定出与该第二关键词相匹配的一个接收消息关键词,并将该一个接收消息关键词对应的一个对应关系中的一个回复消息关键词,确定为第一关键词,以确定第一关键词。Exemplarily, the content sending apparatus may, according to the second keyword, determine a received message keyword matching the second keyword from at least one received message keyword in at least one corresponding relationship, and assign the one received message keyword to the received message keyword. A reply message keyword in a corresponding relationship corresponding to the received message keyword is determined as the first keyword to determine the first keyword.

本申请实施例中,由于内容发送装置可以从接收到的第一消息对应的文字中,确定出该文字中的所有关键词,并根据该所有关键词,确定出用户针对该第一消息进行回复的消息内容的关键词,这样,内容发送装置可以根据该内容的关键词,直接确定出与该内容的关键词对应的所有第一图片,以及显示该所有第一图像,而无需用户对内容发送装置进行多次操作,因此,可以提升内容发送装置显示用户需求回复的图像的效率,如此,可以提升内容发送装置回复消息的效率。In this embodiment of the present application, because the content sending apparatus can determine all keywords in the text corresponding to the received first message, and determine, according to all the keywords, that the user responds to the first message In this way, the content sending apparatus can directly determine all the first pictures corresponding to the keywords of the content according to the keywords of the content, and display all the first images without the need for the user to send the content The device performs multiple operations, therefore, the efficiency of the content sending device for displaying the image required to be replied by the user can be improved, and thus, the efficiency of the content sending device in replying to the message can be improved.

下面将针对从电子设备中确定出与所述第一关键词对应的M张第一图片,进行详细说明。The following will describe in detail the determination of M first pictures corresponding to the first keyword from the electronic device.

可选的,本申请实施例中,上述所述第一关键词对应的M张第一图片包括以下至少一项:Optionally, in this embodiment of the present application, the M first pictures corresponding to the first keyword include at least one of the following:

内容发送装置从电子设备的图片库中确定出与所述第一关键词对应的L张第一图片;The content sending apparatus determines, from the picture library of the electronic device, L first pictures corresponding to the first keywords;

或者,内容发送装置对目标应用程序的界面进行截屏,并将K张截屏图片确定为与所述第一关键词对应的K张第一图片;Or, the content sending device takes screenshots of the interface of the target application, and determines K screenshots as K first pictures corresponding to the first keyword;

其中,L和K均为小于或等于M的正整数。Wherein, L and K are both positive integers less than or equal to M.

可以理解,上述L张第一图片为:图像信息分别与第一关键词中的全部或部分相匹配的图片。It can be understood that the above-mentioned L first pictures are pictures whose image information respectively matches all or part of the first keywords.

进一步可选的,本申请实施例中,上述目标应用程序为:内容发送装置后台运行的、且应用类型分别与第一关键词中的全部或部分相匹配的应用程序,该目标应用程序可以包括一个应用程序或多个应用程序。Further optionally, in this embodiment of the present application, the above-mentioned target application is an application that runs in the background of the content sending device and whose application type matches all or part of the first keywords respectively, and the target application may include: an application or multiple applications.

示例性的,假设第一关键词包括“哪里”,则内容发送装置可以根据该“哪里”的关键词,从内容发送装置中的所有应用程序中,确定出后台运行的、且应用类型分别与“哪里”关键词相匹配的应用程序(例如“地图”应用程序),并对该“地图”应用程序的界面(例如后台运行前最后显示的界面)进行截屏,以确定出K张第一图片(即一张第一图片)。Exemplarily, assuming that the first keyword includes "where", the content sending apparatus may, according to the "where" keyword, determine from all the applications in the content sending apparatus that the application types running in the background are An application matching the keyword "where" (such as a "map" application), and taking a screenshot of the interface of the "map" application (such as the interface last displayed before running in the background) to determine the K first pictures (i.e. a first picture).

本申请实施例中,由于内容发送装置确定出的M张第一图片可以包括内容发送装置中的图片,和/或对目标应用程序的界面进行截屏得到的图片,即内容发送装置确定出的M张第一图片并不仅包括内容发送装置中存储的图片,因此,在第一关键词有多个的情况下,内容发送装置可以优先显示与第一关键词匹配次数较多的图片(即用户可能需求的图片)的图片标识,从而用户可以从该较多的图片标识中,快速选择用户所需求的图片标识,如此可以提升内容发送装置发送消息的效率。In the embodiment of the present application, since the M first pictures determined by the content sending device may include pictures in the content sending device, and/or pictures obtained by taking a screenshot of the interface of the target application, that is, the M first pictures determined by the content sending device The first picture does not only include the pictures stored in the content sending device, therefore, in the case of multiple first keywords, the content sending device can preferentially display the picture that matches the first keyword more often (that is, the user may The picture identification of the picture required by the user), so that the user can quickly select the picture identification required by the user from the large number of picture identifications, so that the efficiency of the content sending device for sending messages can be improved.

下面将以第一关键词为多个关键词为例,举例说明内容发送装置是如何显示图片标识的。The following will take the first keyword as a plurality of keywords as an example to illustrate how the content sending apparatus displays the picture identifier.

可选的,本申请实施例中,上述第一关键词为多个关键词,N小于M。具体的,在上述步骤102之前,本申请实施例提供的内容发送方法还可以包括下述的步骤401和步骤402,并且上述的步骤102具体可以通过下述的步骤102a实现。Optionally, in the embodiment of the present application, the above-mentioned first keyword is a plurality of keywords, and N is less than M. Specifically, before the above step 102, the content sending method provided in this embodiment of the present application may further include the following steps 401 and 402, and the above step 102 may be specifically implemented by the following step 102a.

步骤401、内容发送装置在会话界面中显示多个关键词,并在会话界面中显示P个图片标识。Step 401: The content sending apparatus displays a plurality of keywords in the conversation interface, and displays P picture identifiers in the conversation interface.

本申请实施例中,上述P个图片标识为多个关键词中的第一个关键词对应的图片标识,P为小于或等于M的正整数。In the embodiment of the present application, the above P picture identifiers are picture identifiers corresponding to the first keyword in the plurality of keywords, and P is a positive integer less than or equal to M.

进一步可选的,本申请实施例中,内容发送装置可以根据多个关键词在第一消息中的排列顺序,确定该多个关键词的排列顺序,从而内容发送装置可以在会话界面中显示多个关键词,并在会话界面中显示第一个关键词对应的图片标识。Further optionally, in this embodiment of the present application, the content sending apparatus may determine the arrangement order of the multiple keywords according to the arrangement order of the multiple keywords in the first message, so that the content sending apparatus may display multiple keywords in the conversation interface. keyword, and display the image ID corresponding to the first keyword in the conversation interface.

进一步可选的,本申请实施例中,内容发送装置可以在会话界面的第一区域上,悬浮显示目标窗口,该目标窗口中包括多个关键词和P个图片标识。Further optionally, in this embodiment of the present application, the content sending apparatus may display a target window in a suspended manner on the first area of the conversation interface, and the target window includes a plurality of keywords and P picture identifiers.

举例说明,结合图2中的(B),如图10所示,手机可以在界面10的第一区域(例如区域30(图中是以虚线框示意的))上,悬浮显示目标窗口(例如窗口31),该窗口31中包括多个关键词(例如关键词32、关键词33和关键词34)和P个图片标识(例如图片标识35、图片标识36、图片标识37和图片标识38),该图片标识35、图片标识36、图片标识37和图片标识38均为多个关键词中的第一个关键词(即关键词32)对应的图片标识。For example, in conjunction with (B) in FIG. 2 , as shown in FIG. 10 , the mobile phone can display the target window (eg, the area 30 (indicated by a dashed box in the figure)) in the first area of the interface 10 in suspension. window 31), the window 31 includes a plurality of keywords (eg, keyword 32, keyword 33, and keyword 34) and P image identifiers (eg, image identifier 35, image identifier 36, image identifier 37, and image identifier 38) , the picture identification 35 , the picture identification 36 , the picture identification 37 and the picture identification 38 are all picture identifications corresponding to the first keyword (ie the keyword 32 ) in the plurality of keywords.

步骤402、内容发送装置接收用户对多个关键词中的第i个关键词的第二输入。Step 402: The content sending apparatus receives a second input from the user for the i-th keyword among the plurality of keywords.

本申请实施例中,i为大于1的正整数。In the embodiments of the present application, i is a positive integer greater than 1.

可以理解,上述第i个关键词可以为多个关键词中的任一个关键词。It can be understood that the i-th keyword above may be any one of multiple keywords.

本申请实施例中,上述第二输入用于触发内容发送装置显示图片标识。In the embodiment of the present application, the above-mentioned second input is used to trigger the content sending apparatus to display the picture identifier.

进一步可选的,本申请实施例中,上述第二输入具体可以为用户对第i个关键词的点击输入。Further optionally, in this embodiment of the present application, the above-mentioned second input may specifically be a user's click input on the ith keyword.

步骤102a、内容发送装置响应于第二输入,在会话界面中显示第i个关键词对应的N个图片标识。Step 102a: In response to the second input, the content sending apparatus displays N picture identifiers corresponding to the ith keyword in the conversation interface.

进一步可选的,本申请实施例中,内容发送装置可以将会话界面中显示的P个图片标识,更新为N个图片标识,以在会话界面中显示该N个图片标识。Further optionally, in this embodiment of the present application, the content sending apparatus may update the P picture identifiers displayed in the conversation interface to N picture identifiers, so as to display the N picture identifiers in the conversation interface.

举例说明,结合图10,如图11中的(A)所示,用户可以对多个关键词(即关键词32、关键词33和关键词34)中的第i个关键词(例如关键词33)进行第二输入(例如点击输入),以使得手机可以显示该关键词33对应的N个图片标识;如图11中的(B)所示,在用户进行第二输入之后,手机可以将窗口31中的图片标识35、图片标识36、图片标识37和图片标识38,更新为N个图片标识(例如图片标识39、图片标识40、图片标识41和图片标识42),该图片标识39、图片标识40、图片标识41和图片标识42均为该关键词33对应的图片标识。For example, with reference to FIG. 10 , as shown in (A) of FIG. 11 , the user can search for the i-th keyword (eg keyword 33) Carry out the second input (for example, click input), so that the mobile phone can display the N picture identifiers corresponding to the keyword 33; as shown in (B) in Figure 11, after the user performs the second input, the mobile phone can The picture identification 35, the picture identification 36, the picture identification 37 and the picture identification 38 in the window 31 are updated to N picture identifications (such as the picture identification 39, the picture identification 40, the picture identification 41 and the picture identification 42), the picture identification 39, The picture identification 40 , the picture identification 41 and the picture identification 42 are all picture identifications corresponding to the keyword 33 .

本申请实施例中,由于内容发送装置可以先显示一个关键词对应的图片标识,然后再根据用户对另一个关键词的输入,显示该另一个关键词对应的图片标识,即内容发送装置可以根据用户的输入,显示用户需求的一个关键词对应的图片标识,而并不是显示多个关键词对应的图片标识,因此,可以减少内容发送装置显示的图片标识的数量,从而可以减少用户查找用户需求的图片标识的耗时,如此可以提升内容发送装置发送消息的效率。In this embodiment of the present application, because the content sending device can first display a picture identification corresponding to a keyword, and then display the picture identification corresponding to another keyword according to the user's input of another keyword, that is, the content sending device can display the picture identification corresponding to the other keyword according to the input of the user. The user's input displays the image identifier corresponding to a keyword required by the user, rather than displaying image identifiers corresponding to multiple keywords. Therefore, the number of image identifiers displayed by the content sending device can be reduced, thereby reducing the need for users to find the user. It is time-consuming to identify the pictures, so the efficiency of sending messages by the content sending device can be improved.

需要说明的是,本申请实施例提供的内容发送方法,执行主体可以为内容发送装置,或者该内容发送装置中的用于执行内容发送方法的控制模块。本申请实施例中以内容发送装置执行内容发送方法为例,说明本申请实施例提供的内容发送方法的装置。It should be noted that, in the content sending method provided by the embodiments of the present application, the execution subject may be a content sending apparatus, or a control module in the content sending apparatus for executing the content sending method. In this embodiment of the present application, an apparatus for the content sending method provided by the embodiment of the present application is described by taking the content sending apparatus executing the content sending method as an example.

图12示出了本申请实施例中涉及的内容发送装置的一种可能的结构示意图。如图12所示,内容发送装置60可以包括:确定模块61、显示模块62、接收模块63和发送模块64。FIG. 12 shows a possible schematic structural diagram of the content sending apparatus involved in the embodiment of the present application. As shown in FIG. 12 , the content sending apparatus 60 may include: a determining module 61 , a displaying module 62 , a receiving module 63 and a sending module 64 .

其中,确定模块61,用于在会话界面显示第一消息的情况下,根据第一消息,确定与该第一消息对应的第一关键词,并从内容发送装置中确定出与该第一关键词对应的M张第一图片,M为正整数。显示模块62,用于在会话界面中显示N个图片标识,每个图片标识分别用于指示一张第一图片,N为小于或等于M的正整数。接收模块63,用于接收用户对显示模块62显示的N个图片标识中的目标图片标识的第一输入。发送模块64,用于响应于接收模块63接收的第一输入,发送目标内容,该目标内容包括目标图片标识指示的第一图片。Wherein, the determining module 61 is configured to determine the first keyword corresponding to the first message according to the first message when the conversation interface displays the first message, and determine the first keyword from the content sending device. M first pictures corresponding to the word, where M is a positive integer. The display module 62 is configured to display N picture identifiers in the conversation interface, each picture identifier is used to indicate a first picture, and N is a positive integer less than or equal to M. The receiving module 63 is configured to receive the first input from the user to the target picture identification among the N picture identifications displayed by the display module 62 . The sending module 64 is configured to, in response to the first input received by the receiving module 63, send target content, where the target content includes the first picture indicated by the target picture identifier.

在一种可能的实现方式中,上述从电子设备中确定出与所述第一关键词对应的M张第一图片包括以下至少一项:从电子设备的图片库中确定出与所述第一关键词对应的L张第一图片;或者,对目标应用程序的界面进行截屏,并将K张截屏图片确定为与所述第一关键词对应的K张第一图片;其中,L和K均为小于或等于M的正整数。In a possible implementation manner, the above-mentioned determining from the electronic device that the M first pictures corresponding to the first keyword include at least one of the following: determining from a picture library of the electronic device that the first pictures are the same as the first keyword. L first pictures corresponding to the keyword; or, screen-capture the interface of the target application, and determine the K screenshots as the K first pictures corresponding to the first keyword; wherein, L and K are both is a positive integer less than or equal to M.

在一种可能的实现方式中,上述第一关键词为多个关键词,N小于M。上述显示模块62,还用于在会话界面中显示多个关键词,并在会话界面中显示P个图片标识,该P个图片标识为多个关键词中的第一个关键词对应的图片标识,P为小于或等于M的正整数。上述接收模块63,还用于接收用户对多个关键词中的第i个关键词的第二输入,i为大于1的正整数。上述显示模块62,具体用于响应于接收模块63接收的第二输入,在会话界面中显示第i个关键词对应的N个图片标识。In a possible implementation manner, the above-mentioned first keywords are multiple keywords, and N is less than M. The above-mentioned display module 62 is also used to display multiple keywords in the conversation interface, and display P picture identifiers in the conversation interface, and the P image identifiers are the image identifiers corresponding to the first keyword in the multiple keywords , and P is a positive integer less than or equal to M. The above receiving module 63 is further configured to receive a second input from the user for the i-th keyword in the plurality of keywords, where i is a positive integer greater than 1. The above-mentioned display module 62 is specifically configured to, in response to the second input received by the receiving module 63, display N picture identifiers corresponding to the ith keyword in the conversation interface.

在一种可能的实现方式中,上述目标内容还包括第一消息。上述显示模块62,还用于在会话界面上显示至少一个控件,每个控件分别用于指示一种发送方式。上述接收模块63,还用于接收用户对至少一个控件中的目标控件的第三输入。上述发送模块64,具体用于响应于接收模块63接收的第三输入,采用目标控件指示的发送方式,发送第一消息和目标图片标识指示的第一图片。In a possible implementation manner, the above-mentioned target content further includes the first message. The above-mentioned display module 62 is further configured to display at least one control on the session interface, and each control is respectively used to indicate a sending mode. The above receiving module 63 is further configured to receive a third input from the user to the target control in the at least one control. The above-mentioned sending module 64 is specifically configured to, in response to the third input received by the receiving module 63, send the first message and the first picture indicated by the target picture identifier in the sending manner indicated by the target control.

在一种可能的实现方式中,上述目标控件指示的发送方式为第一消息和图片同时发送的方式,或者为在第一消息为语音消息时,语音对应的文字和图片同时发送的方式。上述显示模块62,还用于在会话界面中显示目标图片标识指示的第一图片,并在目标图片标识指示的第一图片上显示第一消息。In a possible implementation manner, the sending method indicated by the above target control is the method of sending the first message and the picture at the same time, or the method of sending the text and the picture corresponding to the voice simultaneously when the first message is a voice message. The above-mentioned display module 62 is further configured to display the first picture indicated by the target picture identifier in the conversation interface, and display the first message on the first picture indicated by the target picture identifier.

在一种可能的实现方式中,上述确定模块61,具体用于在第一消息为用户输入的消息的情况下,从该第一消息中,确定第一关键词;或者,在第一消息为内容发送装置接收到的消息的情况下,从该第一消息对应的文字中,确定第二关键词,并根据该第二关键词,确定与该第二关键词对应的第一关键词;该第一关键词为针对第一消息进行回复的消息内容的关键词。In a possible implementation manner, the above determining module 61 is specifically configured to determine the first keyword from the first message when the first message is a message input by the user; or, when the first message is In the case of a message received by the content sending device, the second keyword is determined from the text corresponding to the first message, and the first keyword corresponding to the second keyword is determined according to the second keyword; the The first keyword is a keyword of the message content for replying to the first message.

本申请实施例提供的内容发送装置,由于内容发送装置可以根据第一消息,确定与该第一消息对应的所有关键词,并直接从内容发送装置中确定出与该所有关键词对应的所有图片,然后再显示该所有图片中的某些图片的图片标识,这样,用户可以直接对该某些图片的图片标识中,与第一消息的内容相关的目标图片标识进行输入,以使得内容发送装置可以发送包括该目标图片标识指示的图片的目标内容,而无需用户在相册包括的所有图片中,逐一查找与第一消息的内容相关的图片,并进行多次操作,因此可以简化用户的操作、且减少耗时,如此可以提升内容发送装置发送消息的效率。In the content sending device provided by the embodiment of the present application, the content sending device can determine all the keywords corresponding to the first message according to the first message, and directly determine all the pictures corresponding to all the keywords from the content sending device , and then display the picture identification of some pictures in all the pictures, so that the user can directly input the target picture identification related to the content of the first message in the picture identification of the certain pictures, so that the content sending device The target content including the picture indicated by the target picture identifier can be sent without the need for the user to search for pictures related to the content of the first message one by one in all pictures included in the album, and perform multiple operations, thus simplifying the user's operations, In addition, time-consuming is reduced, so that the efficiency of sending messages by the content sending apparatus can be improved.

本申请实施例中的内容发送装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The content 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). , PDA), etc., the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiments of the present application There is no specific limitation.

本申请实施例中的内容发送装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The content 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.

本申请实施例提供的内容发送装置能够实现图1至图11的方法实施例实现的各个过程,为避免重复,这里不再赘述。The content sending apparatus provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 11 , which is not repeated here to avoid repetition.

可选的,如图13所示,本申请实施例还提供一种电子设备70,包括处理器72,存储器71,存储在存储器71上并可在所述处理器72上运行的程序或指令,该程序或指令被处理器72执行时实现上述内容发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 13 , an embodiment of the present application further provides an electronic device 70 , including a processor 72 , a memory 71 , a program or instruction stored in the memory 71 and executable on the processor 72 , When the program or instruction is executed by the processor 72, each process of the above-mentioned content sending method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。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.

图14为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 14 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.

本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图14中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 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 110 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. 14 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .

其中,处理器110,用于在会话界面显示第一消息的情况下,根据第一消息,确定与该第一消息对应的第一关键词,并从电子设备中确定出与该第一关键词对应的M张第一图片,M为正整数。The processor 110 is configured to determine, according to the first message, a first keyword corresponding to the first message when the conversation interface displays the first message, and determine the first keyword from the electronic device. The corresponding M first pictures, where M is a positive integer.

显示单元106,用于在会话界面中显示N个图片标识,每个图片标识分别用于指示一张第一图片,N为小于或等于M的正整数。The display unit 106 is configured to display N picture identifiers in the conversation interface, each picture identifier is used to indicate a first picture, and N is a positive integer less than or equal to M.

用户输入单元107,用于接收用户对N个图片标识中的目标图片标识的第一输入。The user input unit 107 is configured to receive a first input from the user for the target picture identification in the N picture identifications.

射频单元101,用于响应于第一输入,发送目标内容,该目标内容包括目标图片标识指示的第一图片。The radio frequency unit 101 is configured to, in response to the first input, send target content, where the target content includes the first picture indicated by the target picture identifier.

本申请实施例提供的电子设备,由于电子设备可以根据第一消息,确定与该第一消息对应的所有关键词,并直接从电子设备中确定出与该所有关键词对应的所有图片,然后再显示该所有图片中的某些图片的图片标识,这样,用户可以直接对该某些图片的图片标识中,与第一消息的内容相关的目标图片标识进行输入,以使得电子设备可以发送包括该目标图片标识指示的图片的目标内容,而无需用户在相册包括的所有图片中,逐一查找与第一消息的内容相关的图片,并进行多次操作,因此可以简化用户的操作、且减少耗时,如此可以提升电子设备发送消息的效率。In the electronic device provided by the embodiment of the present application, the electronic device can determine all the keywords corresponding to the first message according to the first message, and directly determine all the pictures corresponding to all the keywords from the electronic device, and then Display the picture identifiers of some pictures in all the pictures, so that the user can directly input the target picture identifiers related to the content of the first message in the picture identifiers of the certain pictures, so that the electronic device can send the The target picture identifies the target content of the picture indicated by the user without the need for the user to search for pictures related to the content of the first message one by one in all pictures included in the album, and perform multiple operations, thus simplifying the user's operation and reducing time-consuming , so that the efficiency of sending messages by the electronic device can be improved.

可选的,本申请实施例中,显示单元106,还用于在会话界面中显示多个关键词,并在会话界面中显示P个图片标识,该P个图片标识为多个关键词中的第一个关键词对应的图片标识,P为小于或等于M的正整数。Optionally, in this embodiment of the present application, the display unit 106 is further configured to display a plurality of keywords in the conversation interface, and display P picture identifiers in the conversation interface, where the P picture identifiers are among the plurality of keywords. The image identifier corresponding to the first keyword, P is a positive integer less than or equal to M.

用户输入单元107,还用于接收用户对多个关键词中的第i个关键词的第三输入,i为大于1的正整数。The user input unit 107 is further configured to receive a third input from the user for the ith keyword in the plurality of keywords, where i is a positive integer greater than 1.

显示单元106,具体用于响应于第三输入,在会话界面中显示第i个关键词对应的N个图片标识。The display unit 106 is specifically configured to display N picture identifiers corresponding to the ith keyword in the conversation interface in response to the third input.

本申请实施例中,由于电子设备可以先显示一个关键词对应的图片标识,然后再根据用户对另一个关键词的输入,显示该另一个关键词对应的图片标识,即电子设备可以根据用户的输入,显示用户需求的一个关键词对应的图片标识,而并不是显示多个关键词对应的图片标识,因此,可以减少电子设备显示的图片标识的数量,从而可以减少用户查找用户需求的图片标识的耗时,如此可以提升电子设备发送消息的效率。In this embodiment of the present application, since the electronic device can first display a picture identification corresponding to a keyword, and then display the picture identification corresponding to another keyword according to the user's input of another keyword, that is, the electronic device can display the picture identification corresponding to the other keyword according to the user's input. Input, display the picture logo corresponding to one keyword required by the user, instead of displaying the picture logo corresponding to multiple keywords, therefore, the number of picture logos displayed by the electronic device can be reduced, thereby reducing the number of picture logos that users need to find. This can improve the efficiency of sending messages by electronic devices.

可选的,本申请实施例中,显示单元106,还用于在会话界面上显示至少一个控件,每个控件分别用于指示一种发送方式。Optionally, in this embodiment of the present application, the display unit 106 is further configured to display at least one control on the session interface, and each control is respectively used to indicate a sending mode.

用户接收单元107,还用于接收用户对至少一个控件中的目标控件的第二输入。The user receiving unit 107 is further configured to receive a second input from the user to the target control in the at least one control.

射频单元101,具体用于响应于第二输入,采用目标控件指示的发送方式,发送第一消息和目标图片标识指示的第一图片。The radio frequency unit 101 is specifically configured to, in response to the second input, send the first message and the first picture indicated by the target picture identifier in the sending manner indicated by the target control.

本申请实施例中,由于电子设备可以在会话界面上显示至少一个控件,这样,用户可以根据使用需求,对该至少一个控件中的目标控件进行第二输入,以使得电子设备可以采用目标控件指示的发送方式,发送第一消息和目标图片标识指示的第一图片,因此可以提升电子设备发送消息的灵活性。In this embodiment of the present application, since the electronic device can display at least one control on the session interface, the user can perform a second input on the target control in the at least one control according to usage requirements, so that the electronic device can use the target control to indicate In the sending method, the first message and the first picture indicated by the target picture identifier are sent, so the flexibility of the electronic device to send the message can be improved.

显示单元106,还用于在会话界面中显示目标图片标识指示的第一图片,并在目标图片标识指示的第一图片上显示第一消息。The display unit 106 is further configured to display the first picture indicated by the target picture identifier in the conversation interface, and display the first message on the first picture indicated by the target picture identifier.

本申请实施例中,由于电子设备可以在目标图片标识指示的第一图片的显示区域中,显示第一消息,即电子设备可以在同一个显示区域中分别显示目标图片标识指示的第一图片和第一消息,因此,可以节省电子设备显示会话界面的显示空间。In this embodiment of the present application, since the electronic device can display the first message in the display area of the first picture indicated by the target picture identifier, that is, the electronic device can display the first picture and the first picture indicated by the target picture identifier in the same display area respectively. The first message, therefore, can save the display space of the electronic device for displaying the conversation interface.

可选的,本申请实施例中,处理器110,具体用于在第一消息为用户输入的消息的情况下,从该第一消息对应的文字中,确定第一关键词;或者,在第一消息为电子设备接收到的消息的情况下,从该第一消息对应的文字中,确定第二关键词,并根据该第二关键词,确定与该第二关键词对应的第一关键词;该第一关键词为针对第一消息进行消息回复的内容的关键词。Optionally, in this embodiment of the present application, the processor 110 is specifically configured to determine the first keyword from the text corresponding to the first message when the first message is a message input by the user; When a message is a message received by an electronic device, a second keyword is determined from the text corresponding to the first message, and a first keyword corresponding to the second keyword is determined according to the second keyword ; the first keyword is a keyword for the content of the message reply to the first message.

本申请实施例中,由于内容发送装置可以从待发送的第一消息对应的文字中,确定第一关键词,即内容发送装置可以确定出用户所需求的关键词,因此,内容发送装置可以根据用户所需求的关键词,从内容发送装置中确定出用户所需求的第一图片,如此,可以提升内容发送装置确定用户所需求的图片的准确性。In this embodiment of the present application, since the content sending device can determine the first keyword from the text corresponding to the first message to be sent, that is, the content sending device can determine the keyword required by the user, therefore, the content sending device can For the keywords required by the user, the first picture required by the user is determined from the content sending apparatus. In this way, the accuracy of the content sending apparatus in determining the picture required by the user can be improved.

本申请实施例中,由于内容发送装置可以从接收到的第一消息对应的文字中,确定出该文字中的所有关键词,并根据该所有关键词,确定出用户针对该第一消息进行消息回复的内容的关键词,这样,内容发送装置可以根据该内容的关键词,直接确定出与该内容的关键词对应的所有第一图片,以及显示该所有第一图像,而无需用户对内容发送装置进行多次操作,因此,可以提升内容发送装置显示用户需求回复的图像的效率,如此,可以提升内容发送装置回复消息的效率。In the embodiment of the present application, because the content sending apparatus can determine all keywords in the text corresponding to the received first message, and determine, according to all the keywords, that the user sends a message to the first message The keyword of the reply content, so that the content sending apparatus can directly determine all the first pictures corresponding to the keyword of the content according to the keyword of the content, and display all the first images without the need for the user to send the content The device performs multiple operations, therefore, the efficiency of the content sending device for displaying the image required to be replied by the user can be improved, and thus, the efficiency of the content sending device in replying to the message can be improved.

应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. camera) to process the image data of still pictures or videos. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述内容发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。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 foregoing content sending method embodiment can be achieved, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described 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.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述内容发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。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 to the processor, and the processor is configured to run a program or an instruction to implement the content sending method embodiments described above. Each process can achieve the same technical effect. In order to avoid repetition, it 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 make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this 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 (10)

1. A method for content delivery, the method comprising:
under the condition that a first message is displayed on a session interface, determining a first keyword corresponding to the first message according to the first message, and determining M first pictures corresponding to the first keyword from electronic equipment, wherein M is a positive integer;
displaying N picture identifications in the session interface, wherein each picture identification is used for indicating a first picture, and N is a positive integer less than or equal to M;
receiving first input of a user to a target picture identifier in the N picture identifiers;
in response to the first input, sending target content, wherein the target content comprises a first picture indicated by the target picture identification and the first message;
the sending target content comprises: adding the first message on the first picture, and sending the first picture added with the first message;
the determining, from the electronic device, M first pictures corresponding to the first keyword includes:
determining a target application program according to the first keyword, performing screen capture on an interface of the target application program, and determining K screen capture pictures as K first pictures corresponding to the first keyword; the target application program is an application program of which the application type is associated with the first keyword in application programs operated by the electronic equipment;
wherein K is a positive integer less than or equal to M.
2. The method of claim 1, wherein the target content further comprises the first message;
before the sending the target content, the method further comprises:
displaying at least one control on the session interface, wherein each control is used for indicating a sending mode;
receiving a second input of a target control in the at least one control from a user;
the sending target content comprises:
and responding to the second input, and sending the first message and the first picture indicated by the target picture identification in a sending mode indicated by the target control.
3. The method according to claim 2, wherein the sending mode indicated by the target control is a mode in which the first message and the first picture are sent simultaneously;
after the sending of the first message and the first picture indicated by the target picture identifier, the method further includes:
and displaying the first picture indicated by the target picture identification in the session interface, and displaying the first message on the first picture indicated by the target picture identification.
4. The method of claim 1, wherein determining, from the first message, a first keyword corresponding to the first message comprises:
determining the first keyword from the first message under the condition that the first message is a message input by a user;
or, under the condition that the first message is a message received by the electronic device, determining a second keyword from the first message, and determining the first keyword corresponding to the second keyword according to the second keyword; the first keyword is a keyword in the message content for replying the first message.
5. A content transmission apparatus, characterized in that the content transmission apparatus comprises: the device comprises a determining module, a display module, a receiving module and a sending module;
the determining module is used for determining a first keyword corresponding to a first message according to the first message under the condition that the first message is displayed on a session interface; determining M first pictures corresponding to the first keyword from a content sending device, wherein M is a positive integer;
the display module is used for displaying N picture identifications in the session interface, each picture identification is respectively used for indicating a first picture, and N is a positive integer less than or equal to M;
the receiving module is used for receiving first input of a target picture identifier in the N picture identifiers displayed by the display module by a user;
the sending module is configured to send target content in response to the first input received by the receiving module, where the target content includes a first picture indicated by the target picture identifier and the first message;
the sending module is specifically configured to add the first message to the first picture in response to the first input received by the receiving module, and send the first picture to which the first message is added;
the determining module is specifically configured to:
determining a target application program according to the first keyword, performing screen capture on an interface of the target application program, and determining K screen capture pictures as K first pictures corresponding to the first keyword; the target application program is an application program of which the application type is associated with the first keyword in application programs operated by the electronic equipment;
wherein K is a positive integer less than or equal to M.
6. The content transmitting apparatus according to claim 5, wherein the target content further includes the first message;
the display module is further configured to display at least one control on the session interface, where each control is used to indicate a sending method;
the receiving module is further configured to receive a second input of a user to a target control in the at least one control displayed by the display module;
the sending module is specifically configured to send, in response to the second input received by the receiving module, the first message and the first picture indicated by the target picture identifier in a sending manner indicated by the target control.
7. The content sending apparatus according to claim 6, wherein the target control indicates a sending mode in which the first message and the first picture are sent simultaneously;
the display module is further configured to display the first picture indicated by the target picture identifier in the session interface, and display the first message on the first picture indicated by the target picture identifier.
8. The content transmitting apparatus according to claim 5, wherein the determining module is specifically configured to:
determining the first keyword from the first message pair under the condition that the first message is a voice message input by a user;
or, under the condition that the first message is the message received by the content sending device, determining a second keyword from the first message, and determining the first keyword corresponding to the second keyword according to the second keyword; the first keyword is a keyword of message content for replying to the first message.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the content transmission method according to any one of claims 1 to 4.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the content transmission method according to any one of claims 1 to 4.
CN202011241770.7A 2020-11-09 2020-11-09 Content sending method and device and electronic equipment Active CN112383666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011241770.7A CN112383666B (en) 2020-11-09 2020-11-09 Content sending method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011241770.7A CN112383666B (en) 2020-11-09 2020-11-09 Content sending method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112383666A CN112383666A (en) 2021-02-19
CN112383666B true CN112383666B (en) 2022-05-17

Family

ID=74579090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011241770.7A Active CN112383666B (en) 2020-11-09 2020-11-09 Content sending method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112383666B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099033A (en) * 2021-03-29 2021-07-09 维沃移动通信有限公司 Information sending method, information sending device and electronic equipment
CN116366584A (en) * 2023-04-07 2023-06-30 阿里巴巴(中国)有限公司 Communication processing method, message display method and computing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017198013A1 (en) * 2016-05-19 2017-11-23 阿里巴巴集团控股有限公司 Method and device for processing group message
CN110312036A (en) * 2019-06-27 2019-10-08 维沃移动通信有限公司 A content sending and display method and terminal
CN111090489A (en) * 2019-12-26 2020-05-01 维沃移动通信有限公司 Information control method and electronic equipment
CN111638837A (en) * 2020-05-13 2020-09-08 维沃移动通信有限公司 Message processing method and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063369A (en) * 2014-06-26 2014-09-24 北京奇虎科技有限公司 Processing method, device and system of interactive text message
CN105159988B (en) * 2015-08-28 2018-08-21 广东小天才科技有限公司 Method and device for browsing photos
US9898847B2 (en) * 2015-11-30 2018-02-20 Shanghai Sunson Activated Carbon Technology Co., Ltd. Multimedia picture generating method, device and electronic device
CN105721283B (en) * 2016-01-26 2020-03-17 北京小米移动软件有限公司 Method, device and equipment for sending screenshot message
CN109684497B (en) * 2018-12-19 2021-08-24 北京金山安全软件有限公司 Image-text matching information sending method and device and electronic equipment
CN110297928A (en) * 2019-07-02 2019-10-01 百度在线网络技术(北京)有限公司 Recommended method, device, equipment and the storage medium of expression picture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017198013A1 (en) * 2016-05-19 2017-11-23 阿里巴巴集团控股有限公司 Method and device for processing group message
CN110312036A (en) * 2019-06-27 2019-10-08 维沃移动通信有限公司 A content sending and display method and terminal
CN111090489A (en) * 2019-12-26 2020-05-01 维沃移动通信有限公司 Information control method and electronic equipment
CN111638837A (en) * 2020-05-13 2020-09-08 维沃移动通信有限公司 Message processing method and electronic equipment

Also Published As

Publication number Publication date
CN112383666A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
US12113925B2 (en) Unread message management method and terminal device
CN111884908B (en) Contact person identification display method and device and electronic equipment
WO2022161431A1 (en) Display method, apparatus, and electronic device
CN113037924B (en) Voice transmission method, device, electronic device and readable storage medium
CN112671635B (en) Transmission method, device and electronic device
CN113094143A (en) Cross-application message sending method and device, electronic equipment and readable storage medium
CN112764603B (en) Message display method, device and electronic device
WO2022156674A1 (en) Chat content processing method and apparatus, and electronic device
WO2020192322A1 (en) Display method and terminal device
CN112702261B (en) Information display method and device and electronic equipment
CN111596819A (en) Unread message processing method and electronic device
CN110012151A (en) A kind of information display method and terminal device
CN112383666B (en) Content sending method and device and electronic equipment
WO2023011483A1 (en) Message sending method and apparatus, and electronic device
CN112162802A (en) Message reply method and device and electronic equipment
WO2022199614A1 (en) Interface input source switching method and apparatus, and electronic device
WO2023024970A1 (en) Information processing method, related device, and readable storage medium
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN111597435A (en) Voice search method and device and electronic equipment
WO2022253086A1 (en) Application function searching method and apparatus, and electronic device
WO2023046105A1 (en) Message sending method and apparatus and electronic device
CN116149488A (en) Input method starting method and device and electronic equipment
CN111813741B (en) File sharing method and electronic equipment
CN115086747A (en) Information processing method, apparatus, electronic device and readable storage medium
CN112437196B (en) Page display method, device and electronic device

Legal Events

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