CN110601962B - Message prompting method, device, terminal and storage medium - Google Patents

Message prompting method, device, terminal and storage medium Download PDF

Info

Publication number
CN110601962B
CN110601962B CN201910861473.3A CN201910861473A CN110601962B CN 110601962 B CN110601962 B CN 110601962B CN 201910861473 A CN201910861473 A CN 201910861473A CN 110601962 B CN110601962 B CN 110601962B
Authority
CN
China
Prior art keywords
target
audio
prompt
message
session
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
CN201910861473.3A
Other languages
Chinese (zh)
Other versions
CN110601962A (en
Inventor
刘立强
何丹
莫志恒
柳欲浚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910861473.3A priority Critical patent/CN110601962B/en
Publication of CN110601962A publication Critical patent/CN110601962A/en
Application granted granted Critical
Publication of CN110601962B publication Critical patent/CN110601962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a message prompting method, a device, a terminal and a medium, wherein the method comprises the following steps: when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information; acquiring target prompt configuration information corresponding to the target session, wherein the target prompt configuration information comprises at least one of the following items: audio identification of the target prompt tone and element identification of the target prompt element; generating a message prompt notification of the target session according to the target prompt configuration information, wherein the message prompt notification comprises at least one of the following items: the target prompt tone and the target prompt element; and outputting a message prompt notice of the target session. The embodiment of the invention can carry out message prompt in a targeted manner and enhance the message prompt effect.

Description

Message prompting method, device, terminal and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a message prompting method, a message prompting device, a terminal, and a computer storage medium.
Background
With the development of internet technology, social applications are gradually widely used by users; the social application refers to an Application (APP) that enables information interaction between users through a network. The social application may establish a target session between the users such that information interaction between the users in the target session may occur through a session window of the target session. Currently, when a new session message exists in a target session, a message prompt notification is usually output to prompt a user so that the user can view the new session message in time. Therefore, how to better perform message prompting becomes a research hotspot.
Disclosure of Invention
The embodiment of the invention provides a message prompting method, a message prompting device, a terminal and a computer storage medium, which can be used for specifically prompting messages and enhancing the message prompting effect.
In one aspect, an embodiment of the present invention provides a message prompting method, where the message prompting method includes:
when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
acquiring target prompt configuration information corresponding to the target session, wherein the target prompt configuration information comprises at least one of the following items: audio identification of the target prompt tone and element identification of the target prompt element;
generating a message prompt notification of the target session according to the target prompt configuration information, wherein the message prompt notification comprises at least one of the following items: the target prompt tone and the target prompt element;
and outputting a message prompt notice of the target session.
On the other hand, an embodiment of the present invention provides a message prompting apparatus, where the message prompting apparatus includes:
the determining unit is used for determining a target session to which a new session message belongs when the social application is detected to exist; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
an obtaining unit, configured to obtain target prompt configuration information corresponding to the target session, where the target prompt configuration information includes at least one of the following: audio identification of the target prompt tone and element identification of the target prompt element;
a processing unit, configured to generate a message prompt notification of the target session according to the target prompt configuration information, where the message prompt notification includes at least one of: the target prompt tone and the target prompt element;
and the processing unit is used for outputting the message prompt notice of the target session.
In another aspect, an embodiment of the present invention provides a terminal, where the terminal includes an input device and an output device, and the terminal further includes:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
acquiring target prompt configuration information corresponding to the target session, wherein the target prompt configuration information comprises at least one of the following items: audio identification of the target prompt tone and element identification of the target prompt element;
generating a message prompt notification of the target session according to the target prompt configuration information, wherein the message prompt notification comprises at least one of the following items: the target prompt tone and the target prompt element;
and outputting a message prompt notice of the target session.
In yet another aspect, an embodiment of the present invention provides a computer storage medium, where one or more instructions are stored, and the one or more instructions are adapted to be loaded by a processor and execute the following steps:
when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
acquiring target prompt configuration information corresponding to the target session, wherein the target prompt configuration information comprises at least one of the following items: audio identification of the target prompt tone and element identification of the target prompt element;
generating a message prompt notification of the target session according to the target prompt configuration information, wherein the message prompt notification comprises at least one of the following items: the target prompt tone and the target prompt element;
and outputting a message prompt notice of the target session.
When detecting that a new session message exists in the social application, the embodiment of the invention can determine the target session to which the new session message belongs; then, target prompt configuration information corresponding to the target session can be obtained, and a message prompt notification of the target session is generated according to the target prompt configuration information. Because each conversation in the social application corresponds to the respective prompt configuration information, the message prompt notification generated according to the target prompt configuration information is more targeted; when the message prompt notice is output, the user can know that the target session has new session messages through the message prompt notice, and the message prompt effect can be improved, so that the personalized requirements of the user are met. In addition, the message prompt notification comprises one or more of a target prompt tone and a target prompt element, so that the content of the message prompt notification is enriched, and the message prompt effect can be further enhanced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is an architecture diagram of a communication session system according to an embodiment of the present invention;
fig. 1b is an architecture diagram of another communication session system provided by an embodiment of the present invention;
fig. 2a is a schematic flowchart of a process for setting personalized prompt configuration information according to an embodiment of the present invention;
fig. 2b is a schematic flowchart of pushing an offline session message according to an embodiment of the present invention;
fig. 2c is a schematic flow chart of pushing an online session message according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a message prompting method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a message prompting method according to another embodiment of the present invention;
fig. 5a is an application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5b is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5c is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5d is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5e is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5f is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5g is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5h is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5i is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5j is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5k is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5l is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5m is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5n is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5o is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 5p is another application scenario diagram of a message prompting method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message prompt apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a message prompt scheme, which can output a more targeted message prompt notice when a new session message exists in a communication session (hereinafter referred to as a session) so as to enhance the message prompt effect. The message prompting scheme can be applied to a communication session system; the communication session system herein may include: at least two terminals 11 and a server 12. The terminal 11 is an intelligent device loaded with an operating system (such as an IOS system, an Android system, a Linux system, a Windows system, and the like), and may specifically include any one of the following intelligent devices: a portable device such as a smartphone, laptop computer, tablet computer, or the like, or a desktop computer, or the like. A social application may be installed and run in the terminal 11, where the social application refers to an application that can implement information interaction between users through a network; it may specifically include any of the following applications: instant messaging applications such as WeChat and Tencent QQ, or information exchange applications such as microblog and blog; the instant messaging is a terminal service that allows two or more people to use a network to transmit information such as text, files, voice and the like and communicate audio and video in real time. In an implementation manner, the message prompting scheme proposed in the embodiment of the present invention may be executed by any terminal 11; in yet another embodiment, the message prompting scheme may also be executed by a social application running in any of the terminals 11. The server 12 is a device that can establish a session between at least two terminals 11 and provide multiple services such as data storage, message pushing, status monitoring, and the like for each terminal 11; it may specifically include but is not limited to: data servers, web servers, application servers, and the like. The server 12 may also be loaded with an operating system (e.g., a linux system), and the server 12 is implemented to run based on the operating system.
When the above-mentioned conversation session system is physically deployed, the server 12 may be deployed as a separate service device, as shown in fig. 1 a. The server 12 may also be deployed as a cluster device formed by multiple servers. For example, the server 12 is deployed as a cluster device formed by a data storage server 121, a message pushing server 122, and a monitoring server 123, as shown in fig. 1 b. The data storage server 121 refers to a server for storing data, and may include: a relation chain service end 1211 (such as the relation chain service end of the QQ) responsible for storing user relation data of friends, groups, and the like, a resource service end 1212 (such as a CDN (Content Delivery Network)) responsible for storing resource files, and the like. The message push server 122 refers to a server for pushing session messages to the respective terminals 11, and may include: an online server (MsgSvr)1221 responsible for message storage and pushing online session messages, an offline server (PushSvr)1222 responsible for pushing offline session messages, and so on; the online conversation message refers to a conversation message received in a time period when the user logs in the social application, and the offline conversation message refers to a conversation message received in a time period when the user does not log in the social application. The monitoring server (StateSvr)123 refers to a server for monitoring whether a user logs in to a social application.
The message prompting scheme executed by the terminal in the communication session system shown in fig. 1b, and the message prompting notification includes a message prompting tone, will be described as follows:
in a specific implementation, the terminal may provide a service function for setting a personalized message prompt notification for a user, so that the user may set respective message prompt notifications for each session in a social application running in the terminal through the service function, that is, different sessions may correspond to different message prompt notifications; the personalized message prompt notification refers to a special message prompt notification that is set by a user according to own requirements for different sessions, and may include but is not limited to: personalized prompt tones, personalized prompt elements, and the like. The personalized prompt tone (hereinafter referred to as a prompt tone) is a special message prompt sound which supports the user to set by himself; the personalized prompt element (hereinafter referred to as a prompt element) refers to a special message prompt element, such as a message prompt animation, which supports the user to set. Correspondingly, the terminal can respond to the message prompt notice set by the user for each session and respectively set a corresponding prompt configuration message for each session; alert configuration information herein refers to information used to generate message alert notifications, which may include, but is not limited to: audio identification of cue tones, element identification of cue elements, and the like.
Taking the example that the prompt configuration information includes an audio identifier of a prompt tone, the terminal responds to the prompt tone (i.e. a message prompt notification) set by the user for any session, and a specific flow for setting corresponding prompt configuration information for any session may be collectively referred to as shown in fig. 2 a: after detecting that the user a sets an alert tone for the session, the terminal a used by the user a may request a resource file of the alert tone set by the user a from the CDN, and save the resource file to a specified file directory (e.g., library/directories in the IOS system); the resource file herein may include an audio file of the alert tone and an audio identification of the alert tone. Then, the terminal a may add the audio identifier to the configuration prompting information, and send a setting request to the OIDB, where the setting request carries the configuration prompting information (i.e., carries the audio identifier), the user identifier of the user a, and the session identifier of the session, and the setting request is used to request the OIDB to set the configuration prompting information carried in the setting request as the configuration prompting information of the session. Correspondingly, after receiving the setting request, the OIDB may perform a relationship check to check whether the user a belongs to the user in the target session; if the verification is successful, setting and storing the corresponding relation between the prompt configuration information and the session identifier of the session, and returning an indication message of successful setting to the terminal A; and if the verification fails, returning an error code to the terminal A. It should be noted that the audio file acquired by the terminal a from the CDN may be pre-stored in the CDN by service personnel according to an operation requirement; or the user a may cut a certain music or record a certain sound and upload the sound to the CDN. If the audio file is uploaded to the CDN by user a, only the audio identifier may be included in the resource file.
When a user B sends a session message to the MsgSvr through a target session in a social application running in a terminal B, so that a new session message exists in the target session; MsgSvr may receive the new session message sent by subscriber B and request the communication status of subscriber a from StateSvr. If the communication status of the user a is online, the new session message may be pushed to the terminal a used by the user a as an online session message, and the specific pushing process may also refer to fig. 2 b: first, MsgSvr may request target-hint configuration information set by user a for the target session from the OIDB. Specifically, the MsgSvr may send an identifier request to the OIDB, where the identifier request carries a session identifier of the target session; correspondingly, after receiving the identifier request, the OIDB may use the prompt configuration information corresponding to the session identifier of the target session as the target prompt configuration information, and return the target prompt configuration information to the MsgSvr. Secondly, after receiving the target prompt configuration information, the MsgSvr can add the target prompt configuration information into message data and push the message data to the terminal A; the message data refers to a data compression packet including a plurality of data contents, and the format of the message data may be a lightweight data interaction format, such as JSON (JavaScript Object Notation); message data may include, but is not limited to: the nickname and the abstract of the session message, and the user identification of the user B, the session identification, the message type, the target prompt configuration information and other data contents. After receiving the message data, the terminal A can directly decompress the message data to obtain the audio identifier of the target prompt tone in the target prompt configuration information; then, finding out the audio file of the target prompt tone corresponding to the audio identification from the file directory, and playing the audio file to prompt the message.
If the communication status of the user a is an offline status, the new session message may be pushed to the terminal a used by the user a as an offline session message, and the specific pushing process may also refer to fig. 2 c: MsgSvr may send a notification message to PushSvr to notify PushSvr to push the new session message. Correspondingly, after receiving the notification message, PushSvr may request the OIDB for target prompt configuration information set by the user a for the target session; accordingly, the OIDB may return the target alert configuration information set by the user a to PushSvr. After PushSvr receives the target prompt configuration information, the target prompt configuration information may be added to the message data, and the message data is pushed to the terminal a. After receiving the message data, the terminal a may detect in real time whether the user a has logged in to the social application. After the fact that the user A logs in the social application is detected, decompressing the message data to obtain an audio identifier of a target prompt tone in the target prompt configuration information; then, finding out the audio file of the target prompt tone corresponding to the audio identification from the file directory, and playing the audio file to prompt the message.
It should be noted that, after the OIDB successfully sets the correspondence between the session identifier of each session and the prompt configuration information, the set correspondence may also be sent to the terminal a for storage through the indication message. In this case, if a new session message exists in the target session, the MsgSvr or PushSvr may directly send the message data including the user identifier of the user B, the session identifier, the message type, and other data contents to the terminal a without acquiring the target prompt configuration information from the OIDB when pushing the session message, so that the terminal a may use the prompt configuration information corresponding to the session identifier of the target session as the target prompt configuration information according to the stored multiple correspondence relationships, acquire the audio file of the target prompt tone from the file directory according to the audio identifier of the target prompt tone in the target prompt configuration information, and play the audio file to prompt the message. In addition, the terminal can also add the element identifier of the prompt element to the prompt configuration information by adopting the method, so that the prompt configuration information comprises the element identifier of the prompt element, and therefore, when a new session message exists in the target session, the terminal can acquire the target prompt element according to the element identifier and display the target prompt element.
The message prompting scheme provided by the embodiment of the invention can support that a user can self-define and set different prompting tones aiming at different conversations in the social process; when the new session message exists in the social application, the requirement that a user can know which session has the new session message only by hearing the prompt tone even if the user does not see the terminal can be met, so that the user can conveniently determine whether to take the terminal to view and reply the message or not. Therefore, the message prompting scheme can effectively enhance the message prompting effect and improve the convenience. Moreover, the message prompt scheme provided by the embodiment of the invention can support a background (such as a CDN) to uniformly manage and issue the audio file of the prompt tone, so that the update of the prompt tone material can be independent of a terminal; the method is beneficial to the expansion and operation of the prompt tone materials, the latest and most fierce prompt tones can be updated in real time through the background for the selection of users, the setting of the prompt tones becomes a place which can embody fashion and individuation, and therefore the requirements of different users are met.
Based on the above description, the embodiment of the present invention provides a message prompting method, which may be executed by a terminal or a social application; for convenience of explanation, the embodiment of the present invention is described by taking the terminal as an example to execute the message prompting method. Referring to fig. 3, the message prompting method may include the following steps S301 to S304:
s301, when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs.
As can be seen from the foregoing, when a new session message exists in the social application, the server (e.g., MsgSvr or PushSvr) may send corresponding message data to the terminal; therefore, after receiving the message data sent by the server, the terminal can determine that a new session message exists in the social application. Since the message data may include the session identifier, the terminal may determine the target session to which the new session message belongs according to the message data. In a specific implementation, the terminal may first parse the message data to obtain a session identifier; the session indicated by the session identification is then used as the target session to which the new session message belongs.
Wherein, the new session message may include any one of the following: a text message, a voice message, or an audio-video message; the text message refers to a message containing characters, the voice message refers to a message containing voice, and the audio-video message refers to a message for notifying the audio-video call. Optionally, the new session message may further include a file message, which refers to a message containing a file transmitted by the user. The target session may comprise a single chat session or a group session; a single chat session refers to a session in which two users participate, and a group session refers to a session in which at least three users participate. The session identification may include at least one of: session ID, session nickname, etc. Wherein, the session ID is a number for uniquely identifying the session; for example, when the target session is a group session, the session ID may be a group number (e.g., a QQ group number or a micro-cell number) of the group session, etc.; when the target session is a single chat session, the session ID may be a social account number (e.g., a QQ number or a micro-signal) of a user in the target session who sends a new session message, or the like. The session nickname refers to a name used for uniquely identifying a session; for example, when the target session is a group session, the session nickname may be a group nickname (e.g., a QQ group name or a wechat group name) of the group session, etc.; when the target session is a single chat session, the session ID may be a social nickname (e.g., a QQ name or a wechat name) used by the user sending the new session message in the target session, or the like.
S302, acquiring target prompt configuration information corresponding to the target session.
As can be seen from the foregoing, the social application may include a plurality of sessions, and each session may correspond to respective prompt configuration information; the prompt configuration information corresponding to each session may be the same or different. Therefore, after the target session is determined, target prompt configuration information corresponding to the target session can be acquired. As can be seen from the foregoing, the terminal may request the server (e.g., the OIDB) to set the corresponding relationship between each session and the configuration information; the message data sent to the terminal may include target prompt configuration information corresponding to the target session and a session identifier of the target session, or may include a session identifier of the target session and not include the target prompt configuration information. Accordingly, step S302 can have the following two embodiments: if the message data includes the target prompt configuration information corresponding to the target session, the terminal may analyze the message data after receiving the message data, so as to directly obtain the target prompt configuration information. If the message data does not include the target prompt configuration information corresponding to the target session, the terminal can analyze the message data to obtain a session identifier of the target session; and then according to the corresponding relation between each session and the prompt configuration information stored locally, using the prompt configuration information corresponding to the session identifier of the target session as the target prompt configuration information.
Wherein the target prompt configuration information may include at least one of: an audio identification of the target prompt tone and an element identification of the target prompt element. In one embodiment, the audio identification of the target alert tone may include: audio name, audio ID, etc. In yet another embodiment, the element identification of the target prompt element may include at least one of: animation identification of the target prompt animation and session identification of the target session; the animation identification may include one or more of an animation name and an animation ID.
S303, generating a message prompt notice of the target session according to the target prompt configuration information.
The message alert notification herein may include at least one of: target prompt tones and target prompt elements; in a specific implementation of step S303, if the target prompt configuration information includes an audio identifier of the target prompt tone, the target prompt tone of the target session may be obtained according to the audio identifier, and the target prompt tone may be added to the message prompt notification of the target session. Wherein the target alert tone may include any one of: system audio or custom audio. The system audio refers to audio added in the CDN by a service person according to an operation demand, and may be advertisement audio or non-advertisement audio; the advertisement video is audio capable of promoting advertisement object or service information, and the advertisement object information may include: merchandise, movie, game, music, etc. For example, audio a is audio containing classical lines in a certain movie, which can promote the movie, and audio a is advertisement-like audio; for another example, audio B is recorded audio of the sound of a character in a movie, which can promote the character in the movie, then audio B is advertisement-like audio, and so on. The customized audio refers to an audio that is obtained by cutting a certain music in the storage space by the terminal or recording a certain sound by the microphone and then uploading the sound to the CDN, and the customized audio may include a first customized audio obtained by cutting a target music in the storage space or a second customized audio obtained by recording the sound by the microphone.
If the target prompt configuration information includes the element identifier of the target prompt element, the prompt element of the target session can be acquired according to the element identifier, and the prompt element is added to the message prompt notification of the target session. Wherein the element identification of the target prompt element may include at least one of: an animation identification of the target prompt animation, and a session identification of the target session. If the element identifier comprises an animation identifier, the acquired prompt element according to the element identifier can comprise a target prompt animation; if the element identifier includes a session identifier, the hint element obtained from the element identifier may include a session token for the target session. That is, the target prompt element may include at least one of: a target-hint animation, and a session label for the target session, the session label including one or more of a session avatar and a session nickname. It should be noted that, if the target session is a single chat session, the session avatar may be a social avatar used by a user sending a new session message in the target session; if the target session is a group session, the session avatar may be a group avatar for the group session. Similarly, if the target session is a single chat session, the session avatar may be a social nickname used by the user sending the new session message in the target session; if the target session is a group session, the session header may be a group nickname for the group session.
S304, outputting the message prompt notice of the target session.
As can be appreciated from the foregoing, the message alert notification may include one or more of a target alert tone and a target alert element; correspondingly, when the message prompt notice of the target conversation is output, if the message prompt notice comprises the target prompt tone, the target prompt tone can be played. If the message alert notification includes a target alert element, the target alert element may be displayed. When the target prompt element is displayed, the target prompt element can be displayed on any interface of the terminal; specifically, when a new conversation message exists in the target conversation, the target prompt element can be displayed in any interface in a mode of adding a floating entry through animation.
When detecting that a new session message exists in the social application, the embodiment of the invention can determine the target session to which the new session message belongs; then, target prompt configuration information corresponding to the target session can be obtained, and a message prompt notification of the target session is generated according to the target prompt configuration information. Because each conversation in the social application corresponds to the respective prompt configuration information, the message prompt notification generated according to the target prompt configuration information is more targeted; when the message prompt notice is output, the user can know that the target session has new session messages through the message prompt notice, and the message prompt effect can be improved, so that the personalized requirements of the user are met. In addition, the message prompt notification comprises one or more of a target prompt tone and a target prompt element, so that the content of the message prompt notification is enriched, and the message prompt effect can be further enhanced.
Fig. 4 is a schematic flow chart of another message prompting method according to an embodiment of the present invention. The message prompting method can be executed by a terminal or a social application; for convenience of explanation, the embodiment of the present invention is described by taking the terminal as an example to execute the message prompting method. Referring to fig. 4, the message prompting method may include the following steps S401 to S407:
s401, responding to a prompt setting instruction aiming at the target conversation, and outputting a setting interface.
When the user wants to set the message prompt notification of the target session, a session interface of the target session may be opened and a session configuration interface may be entered through the session interface, as shown in fig. 5 a. The session configuration interface may include a configuration entry that a user may enter into the notification configuration interface by clicking on the configuration entry, as shown in fig. 5 b. The notification configuration interface can comprise a setting entrance, and a user can enter the setting interface by clicking the setting entrance; correspondingly, after the terminal detects the click operation of the user for the setting entrance, a prompt setting instruction for the target session can be generated; and may output a setup interface in response to the prompt setup instruction, as shown in fig. 5 c. The setting interface can comprise an audio list and an audio customization entry; the audio list may include audio identifications of a plurality of system audios, and the audio customization entry refers to an entry for setting a customized audio.
S402, according to the setting operation detected on the setting interface, obtaining the audio identification of the target prompt tone.
In one embodiment, the user may select an audio identifier of the system audio of interest from the audio list as the audio identifier of the target alert tone; in this case, the setting operation detected on the setting interface may include a selection operation of audio identification of the plurality of system audios. Accordingly, the specific implementation manner of step S402 may be: and if the setting operation is the selection operation of the audio identifiers of the plurality of system audios, taking the system audio corresponding to the selected audio identifier as the target prompt tone, and taking the selected audio identifier as the audio identifier of the target prompt tone.
In another embodiment, the user can also enter the audio customization interface by performing a trigger operation on the audio customization entry, and set the customized audio through the audio customization interface; in this case, the setting operation detected on the setting interface may include a trigger operation for the audio customization entry; the trigger operation may include a click operation, a press operation, a touch operation, and the like. Accordingly, the specific implementation manner of step S402 may be: if the setting operation is a trigger operation on the audio customization entry, switching from the setting interface to the audio customization interface, as shown in fig. 5 d; obtaining a customized audio through an audio customization interface; and taking the customized audio as a target prompt tone, and acquiring an audio identifier of the customized audio as an audio identifier of the target prompt tone. The audio customization interface may include a music selection entry and an audio recording entry. Correspondingly, when the customized audio is obtained through the audio customization interface, at least two embodiments can be included:
(1) when a music selection entry in the music customization interface is triggered, a music list may be displayed, which may include music identifications for a plurality of candidate music. When the music selection entrance is triggered by a user to perform a triggering operation (such as a clicking operation, a pressing operation and the like), the music selection entrance can also be triggered; the music identification of the candidate music may include a music ID, a music name, and the like. It should be noted that, in the embodiment of the present invention, a default triggered entry may also be preset for a scenario of switching from a setting interface to an audio customization interface, for example, a music selection entry may be preset as the default triggered entry; then, when switching from the settings interface to the audio customization interface, the default music selection entry may be triggered, at which point a music list may be displayed at the music customization interface, as shown in fig. 5 d. After the music list is displayed, the user can select an interesting music identifier from the music list; correspondingly, the terminal can take the candidate music corresponding to the selected music identifier as the target music according to the selection operation of the music identifiers aiming at the plurality of candidate music; and cutting the target music to obtain a first customized audio.
In one embodiment, the terminal may automatically clip the target music to obtain the first customized audio. Specifically, the terminal can determine the climax section of the target music, and then cut the climax section from the target music as a first customized audio; wherein the climax fragment can comprise any one of the following fragments: the fragments marked in advance by the service personnel, the fragment with the highest playing amount selected according to the playing amount of each fragment of the target music, and the like. In another embodiment, the terminal may also crop the target music according to the cropping operation of the user to obtain the first customized audio. Specifically, after the target music is determined, the terminal may switch from the audio customization interface to the cropping interface and display a waveform diagram of the target music in the cropping interface, as shown in fig. 5 e. Referring to fig. 5e, the cropping interface may include a cropping frame for cropping the target music, the audio corresponding to the waveform diagram in the cropping frame is to be used as the audio to be cropped, and the length of the cropping frame corresponds to the audio duration of the audio to be cropped. The user can perform a series of cutting operations on the target music through a cutting box in the cutting interface, so that the terminal determines the audio to be cut according to the cutting operations; wherein the cropping operation may include at least one of: and the method comprises the operation of changing the oscillogram in the cutting box and the operation of adjusting the length of the cutting box so as to adjust the audio time length of the audio to be cut. In a specific implementation, the user can change the waveform map in the crop box by sliding left and right in the crop box, as shown in fig. 5 f. The user can also adjust the audio time length of the audio to be cut by adjusting the length of the cutting box; for example, the user may reduce the length of the cropping box by fingers, so that the audio duration of the audio to be cropped is also reduced accordingly, as shown in fig. 5 g. It should be noted that, the embodiment of the present invention may also set a duration threshold (e.g., 20 seconds) to avoid the audio duration of the audio to be clipped being too long. Correspondingly, the terminal can obtain the clipping operation performed on the target music through the clipping box, and the audio corresponding to the oscillogram in the clipping box after the clipping operation is taken as the audio to be clipped. After the user performs a series of clipping operations so that the terminal determines the audio to be clipped, the user can also listen to the audio to be clipped by clicking a listen button in the clipping interface, as shown in fig. 5 h. If the user is satisfied with the audio to be cut, a cutting confirmation instruction can be input to the terminal by clicking a confirmation button in the cutting interface; accordingly, the terminal may clip the audio to be clipped from the target music as the first customized audio in response to the clipping confirmation instruction.
(2) When the audio recording inlet in the music customizing interface is triggered, switching from the audio customizing interface to a recording interface, wherein the recording interface can comprise a recording button for recording audio. Wherein, when the audio recording entry is triggered by the user, the music recording entry may be triggered, as shown in fig. 5 i. The user can record audio by performing touch operation on the recording button; correspondingly, the terminal can respond to the touch operation of the recording button and call the microphone to record audio. If the recording ending instruction is detected, the audio recording can be stopped, and the audio currently recorded by the microphone is used as second customized audio. In one embodiment, the terminal may directly use the audio currently recorded by the microphone as the second customized audio after stopping the audio recording. In another embodiment, the terminal may output the audition button on the recording interface after stopping audio recording. Wherein, the audition button and the recording button can be the same button; for example, the terminal may convert the recording button into a trial listening button after detecting the recording end instruction, as shown in fig. 5 j. The audition button and the recording button can be different buttons; for example, the terminal may output a trial listening button next to the recording button after detecting the recording end instruction, as shown in fig. 5 k. The user can listen to the currently recorded audio on trial through the listen-on-trial button, as shown in fig. 5 l. If the user is satisfied with the currently recorded audio, a confirmation button in a recording interface can be clicked to input a recording confirmation instruction to the terminal; correspondingly, the terminal can respond to the recording confirmation instruction and take the audio currently recorded by the microphone as the second customized audio.
After the customized video is obtained in the above manner, the audio file of the customized audio may be uploaded to the CDN, so that the CDN stores the audio file, and allocates an audio identifier to the customized audio. The terminal can obtain the audio identifier of the customized file from the CDN, and use the audio identifier of the customized audio as the audio identifier of the target alert tone.
S403, adding the audio identification of the target prompt tone to the target prompt configuration information corresponding to the target session.
After the audio identifier of the target prompt tone is acquired, the terminal may add the audio identifier of the target prompt tone to the target prompt configuration information.
In one embodiment, when the setting operation includes a selection operation of audio identifiers of a plurality of system audios, the target prompt tone is a system audio, and the system audio is an advertisement-type audio, the terminal may further output an animation option for turning on an animation prompt function in the setting interface in response to the setting operation detected in the setting interface, as shown in fig. 5 m. The user can decide whether to start the animation prompt function according to the self requirement; and if the terminal detects the confirmation operation aiming at the animation option, the advertisement animation corresponding to the target prompt tone can be used as the target prompt animation. In addition, if the terminal detects a confirmation operation for the animation option, the prompt animation may also be displayed on the setting interface, as shown in fig. 5 n. After the target prompt animation is determined, the animation identification of the target prompt animation can be obtained, and the obtained animation identification is added to the element identification of the target prompt element; the element identification of the target prompt element is then added to the target prompt configuration information. Optionally, the terminal may further add the session identifier of the target session to the element identifier of the target prompt element.
In another embodiment, when the setting operation comprises a triggering operation of an audio customization entry, the target prompt tone is customized audio; the terminal can also perform emotion analysis on the target prompt tone to obtain the music emotion corresponding to the target prompt tone. Specifically, the terminal can adopt a machine learning algorithm to train the neural network model in advance to obtain an emotion analysis model with better performance, and the emotion analysis model is called to carry out emotion analysis on the target prompt tone, so that the music emotion corresponding to the target prompt tone is obtained. The terminal can also pre-establish the corresponding relation between a plurality of music emotions and the expression images, so that after the music emotion of the target prompt tone is obtained, the expression image corresponding to the music emotion can be obtained as the target prompt animation, and the image identification of the expression image is obtained as the animation identification of the target prompt animation; and adding the animation identification of the target prompt animation to the element identification of the target prompt element, and adding the element identification of the target prompt element to the target prompt configuration information.
After obtaining the target prompt configuration information, the terminal may send a setting request to the OIDB to request the OIDB to establish a correspondence between the target prompt configuration information and the session identifier of the target session. Optionally, the terminal may further generate a storage request carrying the target prompt configuration information, and send the storage request to the node device in the blockchain network, so as to request the node device to store the target prompt configuration information in the blockchain network. The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm; it is essentially a decentralized database, a string of data blocks associated by cryptography, each data block containing information of a batch of network transactions for verifying the validity (anti-counterfeiting) of the information and generating the next block. By storing the target prompt configuration information to the blockchain network, the target prompt configuration can be disclosed to each user in the target session through the blockchain network, and the target prompt configuration information can be prevented from being maliciously tampered.
It should be noted that, in the embodiment of the present invention, in addition to supporting the user to set the personalized prompt message notifications for different sessions, the user may also be supported to set different prompt message notifications for different types of messages of the same session. In the application scenario, the terminal may provide a plurality of configuration entries in the session configuration interface, and the user may enter different configuration notification interfaces through the plurality of configuration entries, so as to enter different setting interfaces and set notification of the prompt message for different types of messages. For example, the user may set audio 1 as an alert tone for an audiovisual message of a target conversation, audio 2 as an alert tone for a text message of a target conversation, audio 3 as an alert tone for a voice message of a target conversation, and so on.
S404, when detecting that the social application has a new conversation message, determining a target conversation to which the new conversation message belongs.
S405, acquiring target prompt configuration information corresponding to the target session.
S406, generating a message prompt notice of the target session according to the target prompt configuration information.
It should be noted that, for specific implementation of steps S404 to S406, reference may be made to the related description of steps S301 to S303 in the foregoing embodiment of the present invention, and details are not described herein again.
S407, a message prompt notification of the target session is output.
In the specific implementation process, if the message prompt notification comprises a target prompt tone, the target prompt tone can be played; and if the message prompt notification comprises the target prompt element, displaying the target prompt element. In one embodiment, the target prompt element may be displayed in any interface; correspondingly, if the message alert notification includes the target alert element, the specific implementation of displaying the target alert element may be: and if the message prompt notification comprises the target prompt element, directly displaying the target prompt element on the current interface. For example, target-prompt elements are set to include target-prompt animations and session flags; if the current interface is a message notification interface of the social application, the target prompt element may be directly displayed on the message notification interface, as shown in the left diagram of fig. 5 o; if the current interface is a content interaction interface (e.g., an interface of a QQ space) of a social application, the target prompt element may be directly displayed on the content interaction interface, as shown in the right diagram of fig. 5 o.
It should be understood that in the case where the user is exchanging information with other users in the target session through the native session window of the target session, if a new session message exists in the target session, the user can see the new session message in time, which may not require the display of the target prompt element. Therefore, in another embodiment, the target prompt element may be displayed in an interface other than the interface where the native session window of the target session is located, so as to save processing resources; correspondingly, if the message alert notification includes the target alert element, the specific implementation of displaying the target alert element may be: if the message prompt notification comprises a target prompt element, detecting whether the current interface is the interface where the native session window of the target session is located; and if not, displaying the target prompt element in the current interface. The native session window refers to a session window (All In One, AIO) In an initial, unmodified session interface. Optionally, in this embodiment, when the new session message includes a text-type message or a voice-type message, the terminal may further provide a function that can support quick reply of the global page to the user through a convenient session window. In a specific application, a user can quickly and conveniently reply to a new session message by performing a triggering operation (such as a click operation and a press operation) on a target prompt element. Correspondingly, if the terminal detects the trigger operation aiming at the target prompt element, a convenient conversation window of the target conversation can be output in the current interface; and displays the new conversation message in the convenient conversation window as shown in fig. 5 p. If the terminal detects the reply message input by the user in the convenient session window, the terminal can also send the reply message to other users in the target session.
When detecting that a new session message exists in the social application, the embodiment of the invention can determine the target session to which the new session message belongs; then, target prompt configuration information corresponding to the target session can be obtained, and a message prompt notification of the target session is generated according to the target prompt configuration information. Because each conversation in the social application corresponds to the respective prompt configuration information, the message prompt notification generated according to the target prompt configuration information is more targeted; when the message prompt notice is output, the user can know that the target session has new session messages through the message prompt notice, and the message prompt effect can be improved, so that the personalized requirements of the user are met. In addition, the message prompt notification comprises one or more of a target prompt tone and a target prompt element, so that the content of the message prompt notification is enriched, and the message prompt effect can be further enhanced.
Based on the description of the above message prompting method embodiment, the embodiment of the present invention also discloses a message prompting device, which may be a computer program (including a program code) running in a terminal. The message prompting device may perform the methods illustrated in fig. 3-4. Referring to fig. 6, the message prompting apparatus may operate as follows:
the determining unit 101 is configured to determine, when it is detected that a new session message exists in the social application, a target session to which the new session message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
an obtaining unit 102, configured to obtain target prompt configuration information corresponding to the target session, where the target prompt configuration information includes at least one of the following: audio identification of the target prompt tone and element identification of the target prompt element;
a processing unit 103, configured to generate a message prompt notification of the target session according to the target prompt configuration information, where the message prompt notification includes at least one of the following: the target prompt tone and the target prompt element;
the processing unit 103 is configured to output a message prompt notification of the target session.
In one embodiment, the target session comprises a single chat session or a group session; the new session message includes any one of: a text message, a voice message, or an audio-video message; the target warning tone includes any one of: system audio or custom audio; the customized audio comprises a first customized audio obtained by cutting target music in a storage space or a second customized audio obtained by recording through a microphone; the target prompt element includes at least one of: a target hint animation and a session label for the target session, the session label including one or more of a session avatar and a session nickname; the element identification of the target prompt element comprises at least one of: animation identification of the target prompt animation and session identification of the target session.
In yet another embodiment, the processing unit 103 is further configured to: responding to a prompt setting instruction aiming at the target session, and outputting a setting interface; the setting interface comprises an audio list and an audio customization inlet; the audio list comprises audio identifiers of a plurality of system audios, and the audio customization entry is an entry for setting the customized audio; acquiring an audio identifier of a target prompt tone according to the setting operation detected on the setting interface; the setting operation comprises a selection operation of audio identifiers of the plurality of system audios or a trigger operation of the audio customization entry; and adding the audio identifier of the target prompt tone into the target prompt configuration information corresponding to the target session.
In another embodiment, the setting operation includes a selection operation of audio identifiers of the plurality of system audios, the target alert tone is a system audio, and the system audio is an advertisement audio; accordingly, the processing unit 103 is further operable to: responding to the setting operation detected on the setting interface, and outputting an animation option for starting an animation prompt function in the setting interface; if the confirmation operation aiming at the animation option is detected, taking the advertisement animation corresponding to the target prompt tone as the target prompt animation; acquiring an animation identifier of the target prompt animation, and adding the acquired animation identifier to an element identifier of the target prompt element; and adding the element identifier of the target prompt element into the target prompt configuration information.
In another embodiment, the setting operation includes a triggering operation on the audio customization entry, and the target prompt tone is the customized audio; accordingly, the processing unit 103 is further operable to: performing emotion analysis on the target prompt tone to obtain a music emotion corresponding to the target prompt tone; acquiring an expression image corresponding to the music emotion as the target prompting animation, and acquiring an image identifier of the expression image as an animation identifier of the target prompting animation; and adding the animation identification of the target prompt animation to the element identification of the target prompt element, and adding the element identification of the target prompt element to the target prompt configuration information.
In another embodiment, when the processing unit 103 is configured to obtain the audio identifier of the target alert tone according to the setting operation detected on the setting interface, specifically, the processing unit is configured to: if the setting operation is a selection operation of the audio identifiers of the plurality of system audios, taking the system audio corresponding to the selected audio identifier as the target prompt tone, and taking the selected audio identifier as the audio identifier of the target prompt tone; if the setting operation is the triggering operation of the audio customizing entrance, switching from the setting interface to an audio customizing interface, and obtaining the customized audio through the audio customizing interface; and taking the customized audio as the target prompt tone, and acquiring an audio identifier of the customized audio as the audio identifier of the target prompt tone.
In yet another embodiment, the audio customization interface includes a music selection entry; correspondingly, when the processing unit 103 is configured to obtain the customized audio through the audio customization interface, it is specifically configured to: when a music selection inlet in the music customization interface is triggered, displaying a music list, wherein the music list comprises music identifications of a plurality of candidate music; according to the selection operation of the music identifiers aiming at the plurality of candidate music, taking the candidate music corresponding to the selected music identifier as the target music; and cutting the target music to obtain a first customized audio.
In another embodiment, when the processing unit 103 is configured to crop the target music to obtain the first customized audio, it is specifically configured to: switching from the audio customization interface to a cutting interface, and displaying a waveform diagram of the target music in the cutting interface; the cutting interface comprises a cutting frame for cutting the target music; obtaining the clipping operation executed on the target music through the clipping box, and taking the audio corresponding to the oscillogram in the clipping box after the clipping operation as the audio to be clipped; and in response to a cutting confirmation instruction, cutting the audio to be cut out from the target music as first customized audio.
In yet another embodiment, the audio customization interface includes an audio recording portal; correspondingly, when the processing unit 103 is configured to obtain the customized audio through the audio customization interface, it may specifically be configured to: when an audio recording inlet in the music customizing interface is triggered, switching from the audio customizing interface to a recording interface, wherein the recording interface comprises a recording button for recording audio; calling a microphone to record audio in response to the touch operation of the recording button; and if the recording ending instruction is detected, stopping audio recording, and taking the audio currently recorded by the microphone as a second customized audio.
In another embodiment, when the processing unit 103 is configured to output the message prompt notification of the target session, it may specifically be configured to: if the message prompt notification comprises the target prompt tone, playing the target prompt tone; and if the message prompt notification comprises the target prompt element, displaying the target prompt element.
In another embodiment, when the processing unit 103 is configured to display the target prompt element if the message prompt notification includes the target prompt element, it may specifically be configured to: if the message prompt notification comprises the target prompt element, detecting whether a current interface is the interface where a native session window of the target session is located; and if not, displaying the target prompt element in the current interface.
In yet another embodiment, the new session message comprises a text type message or a voice type message; accordingly, the processing unit 103 is further operable to: if the trigger operation aiming at the target prompt element is detected, outputting a convenient conversation window of the target conversation in the current interface; displaying the new conversation message in the convenient conversation window.
In yet another embodiment, the processing unit 103 is further configured to: generating a storage request carrying the target prompt configuration information; and sending the storage request to node equipment in the blockchain network to request the node equipment to store the target prompt configuration information to the blockchain network.
According to an embodiment of the present invention, each step involved in the methods shown in fig. 3 to 4 may be executed by each unit in the message prompting device shown in fig. 6. For example, steps S301 and S302 shown in fig. 3 may be performed by the determining unit 101 and the acquiring unit 102 shown in fig. 6, respectively, and steps S303 and S304 may be performed by the processing unit 103 shown in fig. 6; as another example, steps S401 to S403 shown in fig. 4, and steps S406 to S407 may be performed by the processing unit 103 shown in fig. 6, and steps S404 and S406 may be performed by the determining unit 101 and the acquiring unit 102 shown in fig. 6, respectively.
According to another embodiment of the present invention, the units in the message prompting apparatus shown in fig. 6 may be respectively or entirely combined into one or several other units to form a structure, or some unit(s) therein may be further split into multiple functionally smaller units to form a structure, which may achieve the same operation without affecting the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the message-based prompting device may also include other units, and in practical applications, these functions may also be implemented by assistance of other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, the message presentation apparatus as shown in fig. 6 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the respective methods as shown in fig. 3 to 4 on a general-purpose computing device such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like as well as a storage element, and the message presentation method of the embodiment of the present invention may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
When detecting that a new session message exists in the social application, the embodiment of the invention can determine the target session to which the new session message belongs; then, target prompt configuration information corresponding to the target session can be obtained, and a message prompt notification of the target session is generated according to the target prompt configuration information. Because each conversation in the social application corresponds to the respective prompt configuration information, the message prompt notification generated according to the target prompt configuration information is more targeted; when the message prompt notice is output, the user can know that the target session has new session messages through the message prompt notice, and the message prompt effect can be improved, so that the personalized requirements of the user are met. In addition, the message prompt notification comprises one or more of a target prompt tone and a target prompt element, so that the content of the message prompt notification is enriched, and the message prompt effect can be further enhanced.
Based on the description of the method embodiment and the device embodiment, the embodiment of the present invention further provides a terminal, where a social application is installed and run in the terminal. Referring to fig. 7, the terminal includes at least a processor 201, an input device 202, an output device 203, and a computer storage medium 204. Wherein the processor 201, input device 202, output device 203, and computer storage medium 204 within the terminal may be connected by a bus or other means.
A computer storage medium 204 may be stored in the memory of the terminal, said computer storage medium 204 being adapted to store a computer program comprising program instructions, said processor 201 being adapted to execute said program instructions stored by said computer storage medium 204. The processor 201 (or CPU) is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; in an embodiment, the processor 201 according to the embodiment of the present invention may be configured to perform a series of message prompting processes, including: when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information; acquiring target prompt configuration information corresponding to the target session, wherein the target prompt configuration information comprises at least one of the following items: audio identification of the target prompt tone and element identification of the target prompt element; generating a message prompt notification of the target session according to the target prompt configuration information, wherein the message prompt notification comprises at least one of the following items: the target prompt tone and the target prompt element; outputting a message prompt notification for the target session, and so on.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 201. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 201 to perform the corresponding steps of the method described above in connection with the message prompt embodiment; in particular implementations, one or more instructions in the computer storage medium are loaded by processor 201 and perform the following steps:
when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
acquiring target prompt configuration information corresponding to the target session, wherein the target prompt configuration information comprises at least one of the following items: audio identification of the target prompt tone and element identification of the target prompt element;
generating a message prompt notification of the target session according to the target prompt configuration information, wherein the message prompt notification comprises at least one of the following items: the target prompt tone and the target prompt element;
and outputting a message prompt notice of the target session.
In one embodiment, the target session comprises a single chat session or a group session; the new session message includes any one of: a text message, a voice message, or an audio-video message; the target warning tone includes any one of: system audio or custom audio; the customized audio comprises a first customized audio obtained by cutting target music in a storage space or a second customized audio obtained by recording through a microphone; the target prompt element includes at least one of: a target hint animation and a session label for the target session, the session label including one or more of a session avatar and a session nickname; the element identification of the target prompt element comprises at least one of: animation identification of the target prompt animation and session identification of the target session.
In yet another embodiment, the one or more instructions may be further loaded and specifically executed by the processor 201: responding to a prompt setting instruction aiming at the target session, and outputting a setting interface; the setting interface comprises an audio list and an audio customization inlet; the audio list comprises audio identifiers of a plurality of system audios, and the audio customization entry is an entry for setting the customized audio; acquiring an audio identifier of a target prompt tone according to the setting operation detected on the setting interface; the setting operation comprises a selection operation of audio identifiers of the plurality of system audios or a trigger operation of the audio customization entry; and adding the audio identifier of the target prompt tone into the target prompt configuration information corresponding to the target session.
In another embodiment, the setting operation includes a selection operation of audio identifiers of the plurality of system audios, the target alert tone is a system audio, and the system audio is an advertisement audio; accordingly, the one or more instructions may also be loaded and specifically executed by processor 201: responding to the setting operation detected on the setting interface, and outputting an animation option for starting an animation prompt function in the setting interface; if the confirmation operation aiming at the animation option is detected, taking the advertisement animation corresponding to the target prompt tone as the target prompt animation; acquiring an animation identifier of the target prompt animation, and adding the acquired animation identifier to an element identifier of the target prompt element; and adding the element identifier of the target prompt element into the target prompt configuration information.
In another embodiment, the setting operation includes a triggering operation on the audio customization entry, and the target prompt tone is the customized audio; accordingly, the one or more instructions may also be loaded and specifically executed by processor 201: performing emotion analysis on the target prompt tone to obtain a music emotion corresponding to the target prompt tone; acquiring an expression image corresponding to the music emotion as the target prompting animation, and acquiring an image identifier of the expression image as an animation identifier of the target prompting animation; and adding the animation identification of the target prompt animation to the element identification of the target prompt element, and adding the element identification of the target prompt element to the target prompt configuration information.
In another embodiment, when the audio identifier of the target alert tone is obtained according to the setting operation detected in the setting interface, the one or more instructions are loaded and specifically executed by the processor 201: if the setting operation is a selection operation of the audio identifiers of the plurality of system audios, taking the system audio corresponding to the selected audio identifier as the target prompt tone, and taking the selected audio identifier as the audio identifier of the target prompt tone; if the setting operation is the triggering operation of the audio customizing entrance, switching from the setting interface to an audio customizing interface, and obtaining the customized audio through the audio customizing interface; and taking the customized audio as the target prompt tone, and acquiring an audio identifier of the customized audio as the audio identifier of the target prompt tone.
In yet another embodiment, the audio customization interface includes a music selection entry; correspondingly, when the customized audio is obtained through the audio customization interface, the one or more instructions are loaded and specifically executed by the processor 201: when a music selection inlet in the music customization interface is triggered, displaying a music list, wherein the music list comprises music identifications of a plurality of candidate music; according to the selection operation of the music identifiers aiming at the plurality of candidate music, taking the candidate music corresponding to the selected music identifier as the target music; and cutting the target music to obtain a first customized audio.
In yet another embodiment, when the target music is clipped to obtain the first customized audio, the one or more instructions are loaded and specifically executed by the processor 201: switching from the audio customization interface to a cutting interface, and displaying a waveform diagram of the target music in the cutting interface; the cutting interface comprises a cutting frame for cutting the target music; obtaining the clipping operation executed on the target music through the clipping box, and taking the audio corresponding to the oscillogram in the clipping box after the clipping operation as the audio to be clipped; and in response to a cutting confirmation instruction, cutting the audio to be cut out from the target music as first customized audio.
In yet another embodiment, the audio customization interface includes an audio recording portal; correspondingly, when the customized audio is obtained through the audio customization interface, the one or more instructions are loaded and specifically executed by the processor 201: when an audio recording inlet in the music customizing interface is triggered, switching from the audio customizing interface to a recording interface, wherein the recording interface comprises a recording button for recording audio; calling a microphone to record audio in response to the touch operation of the recording button; and if the recording ending instruction is detected, stopping audio recording, and taking the audio currently recorded by the microphone as a second customized audio.
In yet another embodiment, when outputting the message prompt notification of the target session, the one or more instructions are loaded and specifically executed by processor 201: if the message prompt notification comprises the target prompt tone, playing the target prompt tone; and if the message prompt notification comprises the target prompt element, displaying the target prompt element.
In another embodiment, when the target prompt element is displayed if the message prompt notification includes the target prompt element, the one or more instructions are loaded and specifically executed by the processor 201: if the message prompt notification comprises the target prompt element, detecting whether a current interface is the interface where a native session window of the target session is located; and if not, displaying the target prompt element in the current interface.
In yet another embodiment, the new session message comprises a text type message or a voice type message; accordingly, the one or more instructions may also be loaded and specifically executed by processor 201: if the trigger operation aiming at the target prompt element is detected, outputting a convenient conversation window of the target conversation in the current interface; displaying the new conversation message in the convenient conversation window.
In yet another embodiment, the one or more instructions may be further loaded and specifically executed by the processor 201: generating a storage request carrying the target prompt configuration information; and sending the storage request to node equipment in the blockchain network to request the node equipment to store the target prompt configuration information to the blockchain network.
When detecting that a new session message exists in the social application, the embodiment of the invention can determine the target session to which the new session message belongs; then, target prompt configuration information corresponding to the target session can be obtained, and a message prompt notification of the target session is generated according to the target prompt configuration information. Because each conversation in the social application corresponds to the respective prompt configuration information, the message prompt notification generated according to the target prompt configuration information is more targeted; when the message prompt notice is output, the user can know that the target session has new session messages through the message prompt notice, and the message prompt effect can be improved, so that the personalized requirements of the user are met. In addition, the message prompt notification comprises one or more of a target prompt tone and a target prompt element, so that the content of the message prompt notification is enriched, and the message prompt effect can be further enhanced.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (15)

1. A message prompting method is characterized by comprising the following steps:
when detecting that a new conversation message exists in the social application, determining a target conversation to which the new conversation message belongs; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
acquiring target prompt configuration information corresponding to the target session, wherein the target prompt configuration information comprises: audio identification of the target alert tone; the target alert tone includes: system audio or custom audio; the configuration process of the target prompt configuration information comprises the following steps: entering a setting interface through a session interface of the target session, wherein the setting interface comprises an audio list and an audio customization entry; selecting the system audio through the audio list, or entering an audio customization interface through the audio customization entry to set the customized audio; the customized audio comprises a first customized audio obtained by cutting target music in a storage space or a second customized audio obtained by recording through a microphone; the first customized audio is obtained by switching from the audio customized interface to a cutting interface after the target music is determined, and cutting the target music according to the cutting operation detected in the cutting interface;
generating a message prompt notification of the target session according to the target prompt configuration information, wherein the message prompt notification comprises: the target prompt tone;
and outputting a message prompt notice of the target session.
2. The method of claim 1, wherein the target session comprises a single chat session or a group session; the new session message includes any one of: a text message, a voice message, or an audio-video message;
the target prompt configuration information further comprises an element identifier of a target prompt element, and the message prompt notification further comprises the target prompt element;
the target prompt element includes at least one of: a target hint animation and a session label for the target session, the session label including one or more of a session avatar and a session nickname;
the element identification of the target prompt element comprises at least one of: animation identification of the target prompt animation and session identification of the target session.
3. The method of claim 2, wherein the method further comprises:
responding to a prompt setting instruction aiming at the target session, and outputting a setting interface; the audio list comprises audio identifiers of a plurality of system audios, and the audio customization entry is an entry for setting the customized audio;
acquiring an audio identifier of a target prompt tone according to the setting operation detected on the setting interface; the setting operation comprises a selection operation of audio identifiers of the plurality of system audios or a trigger operation of the audio customization entry;
and adding the audio identifier of the target prompt tone into the target prompt configuration information corresponding to the target session.
4. The method of claim 3, wherein the set operation comprises a select operation of an audio identification of the plurality of system audio, the target alert tone is system audio, and the system audio is advertising-like audio; the method further comprises the following steps:
responding to the setting operation detected on the setting interface, and outputting an animation option for starting an animation prompt function in the setting interface;
if the confirmation operation aiming at the animation option is detected, taking the advertisement animation corresponding to the target prompt tone as the target prompt animation;
acquiring an animation identifier of the target prompt animation, and adding the acquired animation identifier to an element identifier of the target prompt element;
and adding the element identifier of the target prompt element into the target prompt configuration information.
5. The method of claim 3, wherein the setting operation comprises a triggering operation on the audio customization entry, and the target alert tone is the customized audio; the method further comprises the following steps:
performing emotion analysis on the target prompt tone to obtain a music emotion corresponding to the target prompt tone;
acquiring an expression image corresponding to the music emotion as the target prompting animation, and acquiring an image identifier of the expression image as an animation identifier of the target prompting animation;
and adding the animation identification of the target prompt animation to the element identification of the target prompt element, and adding the element identification of the target prompt element to the target prompt configuration information.
6. The method of claim 3, wherein the obtaining an audio identification of a target alert tone according to the setting operation detected at the setting interface comprises:
if the setting operation is a selection operation of the audio identifiers of the plurality of system audios, taking the system audio corresponding to the selected audio identifier as the target prompt tone, and taking the selected audio identifier as the audio identifier of the target prompt tone;
if the setting operation is the triggering operation of the audio customizing entrance, switching from the setting interface to an audio customizing interface, and obtaining the customized audio through the audio customizing interface; and taking the customized audio as the target prompt tone, and acquiring an audio identifier of the customized audio as the audio identifier of the target prompt tone.
7. The method of claim 6, wherein the audio customization interface comprises a music selection entry; the obtaining of the customized audio through the audio customization interface includes:
when a music selection entry in the audio customization interface is triggered, displaying a music list, wherein the music list comprises music identifications of a plurality of candidate music;
according to the selection operation of the music identifiers aiming at the plurality of candidate music, taking the candidate music corresponding to the selected music identifier as the target music;
and cutting the target music to obtain a first customized audio.
8. The method of claim 7, wherein said cropping the target music to obtain a first customized audio comprises:
switching from the audio customization interface to a cutting interface, and displaying a waveform diagram of the target music in the cutting interface; the cutting interface comprises a cutting frame for cutting the target music;
obtaining the clipping operation executed on the target music through the clipping box, and taking the audio corresponding to the oscillogram in the clipping box after the clipping operation as the audio to be clipped;
and in response to a cutting confirmation instruction, cutting the audio to be cut out from the target music as first customized audio.
9. The method of claim 6, wherein the audio customization interface comprises an audio recording portal; the obtaining of the customized audio through the audio customization interface includes:
when an audio recording inlet in the audio customizing interface is triggered, switching from the audio customizing interface to a recording interface, wherein the recording interface comprises a recording button for recording audio;
calling a microphone to record audio in response to the touch operation of the recording button;
and if the recording ending instruction is detected, stopping audio recording, and taking the audio currently recorded by the microphone as a second customized audio.
10. The method of any of claims 1-9, wherein the outputting the message prompt notification of the target session comprises:
playing the target prompt tone;
and if the message prompt notification comprises a target prompt element, displaying the target prompt element.
11. The method of claim 10, wherein displaying the target alert element if the message alert notification includes the target alert element comprises:
if the message prompt notification comprises a target prompt element, detecting whether a current interface is the interface where a native session window of the target session is located;
and if not, displaying the target prompt element in the current interface.
12. The method of claim 11, wherein the new conversation message comprises a text-type message or a voice-type message; the method further comprises the following steps:
if the trigger operation aiming at the target prompt element is detected, outputting a convenient conversation window of the target conversation in the current interface;
displaying the new conversation message in the convenient conversation window.
13. The method of claim 1, wherein the method further comprises:
generating a storage request carrying the target prompt configuration information;
and sending the storage request to node equipment in the blockchain network to request the node equipment to store the target prompt configuration information to the blockchain network.
14. A message prompting apparatus, comprising:
the determining unit is used for determining a target session to which a new session message belongs when the social application is detected to exist; the social application comprises a plurality of conversations, and each conversation corresponds to respective prompt configuration information;
an obtaining unit, configured to obtain target prompt configuration information corresponding to the target session, where the target prompt configuration information includes: audio identification of the target alert tone; the target alert tone includes: system audio or custom audio; the configuration process of the target prompt configuration information comprises the following steps: entering a setting interface through a session interface of the target session, wherein the setting interface comprises an audio list and an audio customization entry; selecting the system audio through the audio list, or entering an audio customization interface through the audio customization entry to set the customized audio; the customized audio comprises a first customized audio obtained by cutting target music in a storage space or a second customized audio obtained by recording through a microphone; the first customized audio is obtained by switching from the audio customized interface to a cutting interface after the target music is determined, and cutting the target music according to the cutting operation detected in the cutting interface;
a processing unit, configured to generate a message prompt notification of the target session according to the target prompt configuration information, where the message prompt notification includes: the target prompt tone;
and the processing unit is used for outputting the message prompt notice of the target session.
15. A terminal comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to execute the message prompting method according to any of claims 1-13.
CN201910861473.3A 2019-09-11 2019-09-11 Message prompting method, device, terminal and storage medium Active CN110601962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910861473.3A CN110601962B (en) 2019-09-11 2019-09-11 Message prompting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910861473.3A CN110601962B (en) 2019-09-11 2019-09-11 Message prompting method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110601962A CN110601962A (en) 2019-12-20
CN110601962B true CN110601962B (en) 2022-02-22

Family

ID=68858937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910861473.3A Active CN110601962B (en) 2019-09-11 2019-09-11 Message prompting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110601962B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262778B (en) * 2020-01-17 2021-10-26 北京字节跳动网络技术有限公司 Invitation link information processing method and device, electronic equipment and readable medium
CN115344161A (en) * 2021-04-27 2022-11-15 中兴通讯股份有限公司 Message processing method, electronic device, and computer-readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661963A (en) * 2004-02-26 2005-08-31 腾讯科技(深圳)有限公司 Method and system of ring tone service in use for implementing instant communication
CN101184061A (en) * 2007-12-17 2008-05-21 腾讯科技(深圳)有限公司 Prompting method, device and instant communication terminal in instant communication
CN101909118A (en) * 2010-08-19 2010-12-08 惠州Tcl移动通信有限公司 Method for setting short message prompt tones of mobile communication terminal
CN101950236A (en) * 2010-09-06 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Method for processing message, device and mobile terminal thereof
CN104580670A (en) * 2013-10-23 2015-04-29 腾讯科技(深圳)有限公司 Method for processing notification message of mobile terminal and mobile terminal
CN104717341A (en) * 2013-12-11 2015-06-17 腾讯科技(深圳)有限公司 Message prompting method and terminal
CN105468357A (en) * 2015-11-16 2016-04-06 广东欧珀移动通信有限公司 Message prompting method and device of social application and mobile terminal
CN106886606A (en) * 2017-03-21 2017-06-23 联想(北京)有限公司 Method and system for recommending expression according to user speech
CN107943392A (en) * 2017-11-16 2018-04-20 珠海市魅族科技有限公司 Information cuing method, information presentation system, computer equipment and storage medium
CN109254669A (en) * 2017-07-12 2019-01-22 腾讯科技(深圳)有限公司 A kind of expression picture input method, device, electronic equipment and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022468A (en) * 2007-03-05 2007-08-22 华为技术有限公司 Mobile terminal cue sound playing method and device
CN102932547A (en) * 2012-11-01 2013-02-13 广东欧珀移动通信有限公司 Method and device for setting message alert tones of applications
CN104049724B (en) * 2013-03-13 2018-04-27 腾讯科技(深圳)有限公司 The sound generation method and device of touch event
KR102056485B1 (en) * 2013-05-09 2019-12-17 삼성전자 주식회사 Method and apparatus for notification of message reception according to property of received message
CN104348946A (en) * 2013-08-05 2015-02-11 西安易朴通讯技术有限公司 Mobile phone auto-answer method
CN103905635A (en) * 2014-03-03 2014-07-02 惠州Tcl移动通信有限公司 Mobile terminal and ringtone play method thereof
CN106506847A (en) * 2016-11-23 2017-03-15 北京小米移动软件有限公司 New information reminding method and device
CN107635083A (en) * 2017-09-28 2018-01-26 努比亚技术有限公司 The tinkle of bells method to set up, mobile terminal and readable storage medium storing program for executing

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661963A (en) * 2004-02-26 2005-08-31 腾讯科技(深圳)有限公司 Method and system of ring tone service in use for implementing instant communication
CN101184061A (en) * 2007-12-17 2008-05-21 腾讯科技(深圳)有限公司 Prompting method, device and instant communication terminal in instant communication
CN101909118A (en) * 2010-08-19 2010-12-08 惠州Tcl移动通信有限公司 Method for setting short message prompt tones of mobile communication terminal
CN101950236A (en) * 2010-09-06 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Method for processing message, device and mobile terminal thereof
CN104580670A (en) * 2013-10-23 2015-04-29 腾讯科技(深圳)有限公司 Method for processing notification message of mobile terminal and mobile terminal
CN104717341A (en) * 2013-12-11 2015-06-17 腾讯科技(深圳)有限公司 Message prompting method and terminal
CN105468357A (en) * 2015-11-16 2016-04-06 广东欧珀移动通信有限公司 Message prompting method and device of social application and mobile terminal
CN106886606A (en) * 2017-03-21 2017-06-23 联想(北京)有限公司 Method and system for recommending expression according to user speech
CN109254669A (en) * 2017-07-12 2019-01-22 腾讯科技(深圳)有限公司 A kind of expression picture input method, device, electronic equipment and system
CN107943392A (en) * 2017-11-16 2018-04-20 珠海市魅族科技有限公司 Information cuing method, information presentation system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110601962A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
US10873769B2 (en) Live broadcasting method, method for presenting live broadcasting data stream, and terminal
JP6501919B2 (en) Voice chat mode self-adaptation method and apparatus
US10469422B2 (en) System, method, and program that allow audio chatting
US10541955B2 (en) Message transmitting method, message processing method and terminal
US11025967B2 (en) Method for inserting information push into live video streaming, server, and terminal
CN113014732B (en) Conference record processing method and device, computer equipment and storage medium
US20100017483A1 (en) Multi-topic instant messaging chat session
CN105580325A (en) Voice communications with real-time status notifications
CN111913625A (en) Message processing method and device and electronic equipment
CN105204743A (en) Interaction control method and device for speech and video communication
CN110061910B (en) Method, device and medium for processing voice short message
US10541951B2 (en) Enhancing network messaging with a real-time, interactive representation of current messaging activity of a user's contacts and associated contacts
CN110601962B (en) Message prompting method, device, terminal and storage medium
CN112073294B (en) Voice playing method and device of notification message, electronic equipment and medium
TW201546704A (en) Instant messaging (1)
CN107562724B (en) Method, apparatus, server and computer-readable storage medium for guiding chat
WO2017172655A1 (en) Analysis of a facial image to extract physical and emotional characteristics of a user
CN111797271A (en) Method and device for realizing multi-person music listening, storage medium and electronic equipment
US9706055B1 (en) Audio-based multimedia messaging platform
JP2016005131A (en) Voice chat management device and method
US11588866B2 (en) Delivering tailored audio segments within live audio streams
CN114422468A (en) Message processing method, device, terminal and storage medium
CN110109597B (en) Singing list switching method, device, system, terminal and storage medium
US20120071142A1 (en) Generation of multi-media ringtones from a friend's recent social data
US20220180893A1 (en) Method and system for generating multimedia content

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