WO2020078078A1 - Instant messaging notification method and apparatus, electronic device, and storage medium - Google Patents

Instant messaging notification method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2020078078A1
WO2020078078A1 PCT/CN2019/099632 CN2019099632W WO2020078078A1 WO 2020078078 A1 WO2020078078 A1 WO 2020078078A1 CN 2019099632 W CN2019099632 W CN 2019099632W WO 2020078078 A1 WO2020078078 A1 WO 2020078078A1
Authority
WO
WIPO (PCT)
Prior art keywords
notification
current
copy
voice
text
Prior art date
Application number
PCT/CN2019/099632
Other languages
French (fr)
Chinese (zh)
Inventor
刘硕
李明
马彦兵
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2020078078A1 publication Critical patent/WO2020078078A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding

Definitions

  • the present application relates to the field of communication technology, and in particular, to an instant communication notification method, device, electronic device, and storage medium.
  • IM Instant messaging
  • IM is a real-time communication system that allows two or more people to use the network to deliver text messages, files, voices, or communicate through video in real time.
  • broadcast and notification functions are sometimes needed.
  • the information received by the corresponding users is the same, similar to wireless broadcasting; however, the notification function is different from the broadcast function.
  • the notification function different users need to be targeted. Push different information to suit the identity of the corresponding user.
  • the present application discloses an instant communication notification method, device, electronic device, and storage medium.
  • an instant communication notification method including:
  • an instant communication notification device including:
  • the relationship judgment module is configured to judge the relationship between the current client and the event
  • the voice selection module is configured to select the current voice according to the relationship
  • the copy selection module is configured to read the target copy corresponding to the current voice form from a plurality of preset notification copy
  • the information filling module is configured to fill the target copy with information to obtain the notification text
  • the notification sending module is configured to send the notification text to the current client.
  • an electronic device including:
  • This application proposes a notification method for instant messaging, by judging the relationship between the current client and the event; and then judging the voice according to the relationship to get the current voice; and reading from the preset multiple notification texts
  • the target copy corresponding to the current voice fill in the target copy with information to get the notification text; send the notification text to the current client to realize the message notification to the relevant users. Since the target copy is determined according to the relationship between the current client and the event, the finally pushed notification text is adapted to the identity of the user who adapts to the current client, thereby adapting to the identity characteristics of the corresponding user.
  • Fig. 1 is a flow chart showing an instant communication notification method according to an exemplary embodiment
  • Fig. 2 is a flowchart of another instant messaging notification method according to an exemplary embodiment
  • Fig. 3 is a flowchart illustrating yet another instant messaging notification method according to an exemplary embodiment
  • Fig. 4 is a block diagram of an instant communication notification device according to an exemplary embodiment
  • Fig. 5 is a block diagram of another instant messaging notification device according to an exemplary embodiment
  • Fig. 6 is a block diagram of yet another instant messaging notification device according to an exemplary embodiment
  • Fig. 7 is a block diagram of a mobile terminal according to an exemplary embodiment
  • Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
  • Fig. 1 is a flowchart of an instant communication notification method according to an exemplary embodiment.
  • the instant communication notification method provided in this embodiment is applied to a server of an instant communication system, and includes the following steps.
  • the current client refers to the client that uploads the corresponding request according to the user's operation. At this time, the relationship between the current client sending the request and the corresponding event is judged, or whether the event is generated by the current client, or whether the event Whether it is applied to the current client, or whether the active or passive side of the event is not the current client.
  • the current voice matching the relationship is selected from multiple voices according to the relationship.
  • multiple voices are main, guest, and third person.
  • the master state means that the current client is the executor of the event
  • the guest state means that the current client is the executor of the event
  • the third person state is that the current client is neither the executor of the event nor the executed event By.
  • the current voice is selected according to the following situation.
  • the current voice is selected as the main human state; when the current client is determined to be the executor of the event, for example, When someone joins a group chat, the current voice is selected as the guest; when it is determined that the current client is neither the executor nor the executor, the current voice is selected as the third person.
  • the preset notification copy includes the host notification copy, the guest notification copy and the third person notification copy, which correspond to the host state, guest state and Third person.
  • the notification copy corresponding to the current voice is selected from the multiple notification texts as the selected target copy.
  • the notice text includes the target copy, embedded necessary information, such as "User 1", and other non-essential information, such as certain additional information.
  • the notification text is sent to the current client, so that the user of the current client can receive the corresponding message notification.
  • the Locale uploaded by the current client is detected, and the region, country, or language area where the current client is located is obtained by detecting the Locale.
  • the internationalized notification text is sent to the current client. In this way, only the necessary information needs to be stored, and when the internationalization is needed, only the current area is rendered to obtain the internationalized notification text. Not only reduces the amount of data, but also very flexible to use.
  • this embodiment further includes the following steps to achieve the purpose of presetting multiple notification texts.
  • the text input by the user is translated using the resource bundle tool to obtain multiple notification texts, each of which corresponds to a voice.
  • Fig. 4 is a block diagram of an instant communication notification device according to an exemplary embodiment.
  • the instant communication notification device provided by the embodiment of the present application is applied to a server of an instant communication system, and includes:
  • the relationship judgment module 10 the voice judgment module 20, the copy selection module 30, the information filling module 40, and the notification sending module 50.
  • the relationship determination module 10 is used to determine the relationship between the current client and the event.
  • the current client refers to the client that uploads the corresponding request according to the user's operation. At this time, the relationship between the current client that sent the request and the corresponding event is judged, or whether the event is generated by the current client, or whether the event Whether it is applied to the current client, or whether the active or passive side of the event is not the current client.
  • the voice judgment module 20 is used to determine the current voice according to the relationship between the current client and the event.
  • the current voice matching the relationship is selected from multiple voices according to the relationship.
  • multiple voices are main, guest, and third person.
  • the module includes a first selected unit, a second selected unit, and a third selected unit.
  • the first selected unit is used for determining that the current client is the performer of the event, for example, if it adds someone to the group chat, the current voice is selected as the main human state; the second selected unit is used for determining When the current client is the executor of the event, for example, if it is added to a group chat by someone else, the current voice is selected as the guest; the third selected unit is used to determine that the current client is also a non-executor When not being executed, the current voice is selected as the third person.
  • the area detection module 60 is used to detect the current area of the current client before the notification sending module 50 sends the notification text to the current client.
  • the Locale uploaded by the current client is detected, and the locale, country or language area where the current client is located can be obtained by detecting the Locale.
  • the internationalization processing module 70 is used to internationalize the notification text according to the current region.
  • the text input by the user is translated using the resource bundle tool to obtain multiple notification texts, each of which corresponds to a voice.
  • the present application also provides a computer program for executing the notification method of instant communication shown in FIGS. 1 to 3.
  • Fig. 7 is a block diagram of a mobile terminal according to an exemplary embodiment.
  • the mobile terminal 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
  • the mobile terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, and a sensor component 814 , ⁇ ⁇ ⁇ 816.
  • the processing component 802 generally controls the overall operations of the mobile terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps in the above method.
  • the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the peripheral interface module may be a keyboard, a click wheel, or a button. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 814 includes one or more sensors for providing the mobile terminal 800 with status evaluation in various aspects.
  • the sensor component 814 can detect the on / off state of the device 800, and the relative positioning of the components, such as the display and the keypad of the mobile terminal 800, and the sensor component 814 can also detect the mobile terminal 800 or a component of the mobile terminal 800 , The location of the user changes, the presence or absence of user contact with the mobile terminal 800, the orientation or acceleration / deceleration of the mobile terminal 800, and the temperature change of the mobile terminal 800.
  • the sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 814 may further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the mobile terminal 800 may be used by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), The programming gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented to perform the notification method of instant communication as shown in FIGS. 1-3.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA programming gate array
  • controller microcontroller, microprocessor or other electronic components are implemented to perform the notification method of instant communication as shown in FIGS. 1-3.
  • Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
  • the electronic device 1900 may be provided as a server.
  • the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by the memory 1932 for storing instructions executable by the processing component 1922, such as application programs.
  • the application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above method.

Abstract

Provided in the present application are an instant messaging notification method and apparatus, an electronic device, and a storage medium, the notification method and apparatus specifically being: determining the relationship between a current client terminal and an event; on the basis of the relationship, implementing voice determination to obtain a current voice; from a pre-arranged plurality of items of notification copy, reading target copy corresponding to the current voice; implementing information filling of the target copy to obtain a notification text; and sending the notification text to the current client terminal, thereby implementing message notification to the related client. As the target copy is determined on the basis of the relationship between the current client terminal and the event, the final pushed notification text is adapted to the identity of the user of the client terminal, and thereby adapted to the identity features of the corresponding user.

Description

一种即时通信的通知方法、装置、电子设备及存储介质Notification method, device, electronic equipment and storage medium for instant communication
相关申请的交叉引用Cross-reference of related applications
本申请要求于2018年10月17日提交中国专利局、申请号为201811210242.8,发明名称为“一种即时通信的通知方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on October 17, 2018, with the application number 201811210242.8 and the invention titled "an instant communication notification method, device, electronic equipment and storage medium", all The contents are incorporated in this application by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种即时通信的通知方法、装置、电子设备及存储介质。The present application relates to the field of communication technology, and in particular, to an instant communication notification method, device, electronic device, and storage medium.
背景技术Background technique
即时通信(Instant Messaging,简称IM)是一种实时通信系统,允许两人或多人使用网络实时地传递文字消息、文件、语音,或者通过视频进行交流。Instant messaging (IM) is a real-time communication system that allows two or more people to use the network to deliver text messages, files, voices, or communicate through video in real time.
即时通信中有时需要用到广播和通知功能,广播功能中,相应用户收到的信息是相同的,类似于无线广播;然而,通知功能不同于广播功能,在通知功能中,需要针对不同的用户推送不同的信息,以适应相应用户的身份特征。In instant messaging, broadcast and notification functions are sometimes needed. In the broadcast function, the information received by the corresponding users is the same, similar to wireless broadcasting; however, the notification function is different from the broadcast function. In the notification function, different users need to be targeted. Push different information to suit the identity of the corresponding user.
发明人意识到,相关技术中的通知功能,无法针对不同的用户推送不同的信息。The inventor realized that the notification function in the related art cannot push different information for different users.
发明内容Summary of the invention
为克服相关技术中通知功能无法针对不同的用户推送不同的信息的问题,本申请公开一种即时通信的通知方法、装置、电子设备及存储介质。In order to overcome the problem that the notification function in the related art cannot push different information for different users, the present application discloses an instant communication notification method, device, electronic device, and storage medium.
根据本申请实施例的第一方面,提供一种即时通信的通知方法,包括:According to a first aspect of the embodiments of the present application, there is provided an instant communication notification method, including:
判断当前客户端与事件之间的关系;Determine the relationship between the current client and the event;
根据所述关系选定当前语态;Select the current voice according to the relationship;
从预置的多个通知文案中读取与所述当前语态相对应的目标文案;Reading the target copy corresponding to the current voice from the preset multiple notification copy;
对所述目标文案进行信息填充,得到通知文本;Fill in the target copy with information to get the notification text;
将所述通知文本发送到所述当前客户端。Sending the notification text to the current client.
根据本申请实施例的第二方面,提供了一种即时通信的通知装置,包括:According to a second aspect of the embodiments of the present application, there is provided an instant communication notification device, including:
关系判断模块,被配置为判断当前客户端与事件之间的关系;The relationship judgment module is configured to judge the relationship between the current client and the event;
语态选定模块,被配置为根据所述关系选定当前语态;The voice selection module is configured to select the current voice according to the relationship;
文案选定模块,被配置为从预置的多个通知文案中读取与所述当前语态相对应的目标文案;The copy selection module is configured to read the target copy corresponding to the current voice form from a plurality of preset notification copy;
信息填充模块,被配置为对所述目标文案进行信息填充,得到通知文本;The information filling module is configured to fill the target copy with information to obtain the notification text;
通知发送模块,被配置为将所述通知文本发送到所述当前客户端。The notification sending module is configured to send the notification text to the current client.
根据本申请实施例的第三方面,提供了一种电子设备,包括:According to a third aspect of the embodiments of the present application, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory for storing processor executable instructions;
其中,所述处理器被配置为:当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现下列过程:Wherein, the processor is configured to: when the one or more programs are executed by the one or more processors, so that the one or more processors implement the following processes:
判断当前客户端与事件之间的关系;Determine the relationship between the current client and the event;
根据所述关系选定当前语态;Select the current voice according to the relationship;
从预置的多个通知文案中读取与所述当前语态相对应的目标文案;Reading the target copy corresponding to the current voice from the preset multiple notification copy;
对所述目标文案进行信息填充,得到通知文本;Fill in the target copy with information to get the notification text;
将所述通知文本发送到所述当前客户端。Sending the notification text to the current client.
根据本申请实施例的第四方面,提供了一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行如第一方面所述的通知方法。According to a fourth aspect of the embodiments of the present application, there is provided a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to execute as described in the first aspect The notification method mentioned.
根据本申请实施例的第五方面,提供一种应用程序/计算机程序产品,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行如第一方面所述的通知方法。According to a fifth aspect of the embodiments of the present application, there is provided an application program / computer program product which, when an instruction in the storage medium is executed by a processor of a mobile terminal, enables the mobile terminal to perform the notification as described in the first aspect method.
本申请提出了一种即时通信的通知方法,通过判断当前客户端与事件之间的关系;再根据关系进行语态判断,得到当前语态;并从预置的多个通知文案中读取与当前语态相对应的目标文案;对目标文案进行信息填充,得到通知文本;将通知文本发送到当前客户端,从而实现对相关用户的消息通知。 由于其中的目标文案是根据当前客户端与事件之间的关系确定的,因此最终推送的通知文本与适应当前客户端的用户的身份相适应,从而适应相应用户的身份特征。This application proposes a notification method for instant messaging, by judging the relationship between the current client and the event; and then judging the voice according to the relationship to get the current voice; and reading from the preset multiple notification texts The target copy corresponding to the current voice; fill in the target copy with information to get the notification text; send the notification text to the current client to realize the message notification to the relevant users. Since the target copy is determined according to the relationship between the current client and the event, the finally pushed notification text is adapted to the identity of the user who adapts to the current client, thereby adapting to the identity characteristics of the corresponding user.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure.
附图说明BRIEF DESCRIPTION
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The drawings herein are incorporated into and constitute a part of this specification, show embodiments consistent with the present invention, and are used to explain the principles of the present invention together with the specification.
图1是根据一示例性实施例示出的一种即时通信的通知方法的流程图;Fig. 1 is a flow chart showing an instant communication notification method according to an exemplary embodiment;
图2是根据一示例性实施例示出的另一种即时通信的通知方法的流程图;Fig. 2 is a flowchart of another instant messaging notification method according to an exemplary embodiment;
图3是根据一示例性实施例示出的又一种即时通信的通知方法的流程图;Fig. 3 is a flowchart illustrating yet another instant messaging notification method according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种即时通信的通知装置的框图;Fig. 4 is a block diagram of an instant communication notification device according to an exemplary embodiment;
图5是根据一示例性实施例示出的另一种即时通信的通知装置的框图;Fig. 5 is a block diagram of another instant messaging notification device according to an exemplary embodiment;
图6是根据一示例性实施例示出的又一种即时通信的通知装置的框图;Fig. 6 is a block diagram of yet another instant messaging notification device according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种移动终端的框图;Fig. 7 is a block diagram of a mobile terminal according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种电子设备的框图。Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail here, examples of which are shown in the drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of devices and methods consistent with some aspects of the invention as detailed in the appended claims.
图1是根据一示例性实施例示出的一种即时通信的通知方法的流程图。Fig. 1 is a flowchart of an instant communication notification method according to an exemplary embodiment.
如图1所示,本实施例所提供的即时通信的通知方法应用于即时通信系统的服务器中,包括以下步骤。As shown in FIG. 1, the instant communication notification method provided in this embodiment is applied to a server of an instant communication system, and includes the following steps.
S1、判断当前客户端与事件之间的关系。S1. Determine the relationship between the current client and the event.
当前客户端是指根据用户的操作上传相应请求的客户端,此时判断发送该请求的当前客户端与相应事件之间的关系,或者说该事件是否由当前客户端产生、或者说该事件是否施加于该当前客户端,或者该事件的主动方或被动方是否均非该当前客户端。The current client refers to the client that uploads the corresponding request according to the user's operation. At this time, the relationship between the current client sending the request and the corresponding event is judged, or whether the event is generated by the current client, or whether the event Whether it is applied to the current client, or whether the active or passive side of the event is not the current client.
S2、根据该关系确定当前语态。S2. Determine the current voice according to the relationship.
在确定上述关系之后,根据该关系从多个语态中选定与该关系匹配的当前语态。对于群聊环境来说,多个语态分别为主人态、客人态和第三人态。其中,主人态是指当前客户端为事件的执行者,客人态是指当前客户端为事件的被执行者,第三人态是指当前客户端既非事件的执行者也非事件的被执行者。After the above relationship is determined, the current voice matching the relationship is selected from multiple voices according to the relationship. For a group chat environment, multiple voices are main, guest, and third person. Among them, the master state means that the current client is the executor of the event, the guest state means that the current client is the executor of the event, and the third person state is that the current client is neither the executor of the event nor the executed event By.
具体来说,根据下面的情况选定当前语态。Specifically, the current voice is selected according to the following situation.
当确定当前客户端为该事件的执行者时,例如其将某人加入了群聊,则选定该当前语态为主人态;当确定当前客户端为该事件的被执行者时,例如其被别人加入了某个群聊,则选定当前语态为客人态;当确定当前客户端既非执行者也非被执行者时,则选定当前语态为第三人态。When it is determined that the current client is the executor of the event, for example, if it adds someone to a group chat, the current voice is selected as the main human state; when the current client is determined to be the executor of the event, for example, When someone joins a group chat, the current voice is selected as the guest; when it is determined that the current client is neither the executor nor the executor, the current voice is selected as the third person.
S3、读取与当前语态对应的目标文案。S3. Read the target copy corresponding to the current voice.
从预置的多个通知文案中选定与当前语态对应的目标文案,例如预置的通知文案有主人通知文案、客人通知文案和第三人通知文案,分别对应于主人态、客人态和第三人态。当确定当前语态时,从多个通知文案中选择与当前语态对应的通知文案作为选定的目标文案。Select the target copy corresponding to the current voice from the preset multiple notification copy, for example, the preset notification copy includes the host notification copy, the guest notification copy and the third person notification copy, which correspond to the host state, guest state and Third person. When determining the current voice, the notification copy corresponding to the current voice is selected from the multiple notification texts as the selected target copy.
例如,预置的通知文案可以如:For example, the preset notification copy may be as follows:
“你邀请${0}加入了群聊”,“${0}邀请你加入了群聊,群成员还有${1}”,或者,“${0}邀请${1}加入了群聊”。然后根据当前语态从中选择一个作为目标文案。"You invited $ {0} to join the group chat", "$ {0} invited you to join the group chat, and the group members have $ {1}", or, "$ {0} invited $ {1} to join the group chat". Then choose one as the target copy according to the current voice.
S4、对目标文案进行信息填充,得到通知文本。S4. Fill the target copy with information to get the notification text.
即将需要的相关信息填入到该目标文案中,然后根据当前语态从中选择一个作为目标文案。例如将“用户1”填入${0}处,将“用户2”填入${1}处,从而得到完整的通知文本。例如,“你邀请用户1加入了群聊”,“用户1邀请你加入了群聊,群成员还有用户2”,或者,“用户1邀请用户2加入了群聊”。Fill in the target copy with the relevant information that is needed, and then choose one from the target copy according to the current voice. For example, fill in "user 1" into $ {0}, and "user 2" into $ {1}, so as to get the complete notification text. For example, "You invited user 1 to join group chat", "User 1 invited you to join group chat, group members and user 2", or, "User 1 invited user 2 to join group chat".
该通知文本中包括目标文案、嵌入的必要信息,如“用户1”,和其他非必 要信息,如一定的附加信息。The notice text includes the target copy, embedded necessary information, such as "User 1", and other non-essential information, such as certain additional information.
S5、将通知文本发送到当前客户端。S5. Send the notification text to the current client.
在得到该通知文本之后,将该通知文本发送到该当前客户端,从而使当前客户端的用户能够收到相应的消息通知。After obtaining the notification text, the notification text is sent to the current client, so that the user of the current client can receive the corresponding message notification.
本申请实施例提供了一种即时通信的通知方法,具体为判断当前客户端与事件之间的关系;根据关系进行语态判断,得到当前语态;从预置的多个通知文案中读取与当前语态相对应的目标文案;对目标文案进行信息填充,得到通知文本;将通知文本发送到当前客户端,从而实现对相关客户的消息通知。由于其中的目标文案是根据当前客户端与事件之间的关系确定的,因此最终推送的通知文本与当前客户端的用户的身份相适应,从而适应相应用户的身份特征。The embodiment of the present application provides a notification method for instant communication, specifically to determine the relationship between the current client and the event; to judge the voice according to the relationship to obtain the current voice; to read from a plurality of preset notices The target copy corresponding to the current voice; fill in the target copy with information to get the notification text; send the notification text to the current client to realize the message notification to the relevant client. Since the target copy is determined according to the relationship between the current client and the event, the final notification text is adapted to the identity of the user of the current client, thereby adapting to the identity characteristics of the corresponding user.
另外,在本实施例中,如图2所示,在对目标文案进行信息填充,得到通知文本之后,将通知文本发送到当前客户端之前,还包括如下操作:In addition, in this embodiment, as shown in FIG. 2, after the target copy is filled with information to obtain the notification text, before the notification text is sent to the current client, the following operations are also included:
S41、检测当前客户端的当前区域。S41. Detect the current area of the current client.
具体实施时,检测当前客户端上传的Locale,通过检测该Locale得到当前客户端所在的地区、国家或者语言区域。During specific implementation, the Locale uploaded by the current client is detected, and the region, country, or language area where the current client is located is obtained by detecting the Locale.
S42、根据当前区域对通知文本进行国际化处理。S42. Internationalize the notification text according to the current region.
具体可以利用resource bundle工具对通知文本进行翻译,从而得到与当前区域的语言种类相匹配的通知文本。Specifically, you can use the resource bundle tool to translate the notification text to obtain the notification text that matches the language type of the current region.
在得到该国际化的通知文本之后,再将该国际化的通知文本发送到当前客户端。这样,只需存储必备信息,在需要国际化时仅根据当前区域进行渲染即可得到国际化的通知文本。不但降低了数据量,而且用起来非常灵活。After obtaining the internationalized notification text, the internationalized notification text is sent to the current client. In this way, only the necessary information needs to be stored, and when the internationalization is needed, only the current area is rendered to obtain the internationalized notification text. Not only reduces the amount of data, but also very flexible to use.
在一些选择性实施例中,如图3所示,本实施例还包括如下步骤,以实现预置多个通知文案的目的。In some optional embodiments, as shown in FIG. 3, this embodiment further includes the following steps to achieve the purpose of presetting multiple notification texts.
S101、对输入的文案进行翻译,得到多个通知文案。S101. Translate the input copy to obtain multiple notification copy.
即响应用户的输入请求,对用户输入的文案利用resource bundle工具进行翻译,从而得到多个通知文案,每个通知文案对应于一种语态。That is, in response to the user's input request, the text input by the user is translated using the resource bundle tool to obtain multiple notification texts, each of which corresponds to a voice.
S102、存储多个通知文案。S102. Store multiple notification texts.
在得到多个通知文案之后,将多个通知文案予以存储,以便在后续使用时从中选定目标文案。After getting multiple notice copy, store the multiple notice copy to select target copy for subsequent use.
图4是根据一示例性实施例示出的一种即时通信的通知装置的框图。如图4所示,本申请实施例所提供的即时通信的通知装置应用于即时通信系统的服务器中,包括:Fig. 4 is a block diagram of an instant communication notification device according to an exemplary embodiment. As shown in FIG. 4, the instant communication notification device provided by the embodiment of the present application is applied to a server of an instant communication system, and includes:
关系判断模块10、语态判断模块20、文案选定模块30、信息填充模块40和通知发送模块50。The relationship judgment module 10, the voice judgment module 20, the copy selection module 30, the information filling module 40, and the notification sending module 50.
关系判断模块10用于判断当前客户端与事件之间的关系。The relationship determination module 10 is used to determine the relationship between the current client and the event.
当前客户端是指根据用户的操作上传相应请求的客户端,此时判断发送该请求的当前客户端与相应事件之间的关系,或者说该事件是否由当前客户端产生、或者说该事件是否施加于该当前客户端,或者该事件的主动方或被动方是否均非该当前客户端。The current client refers to the client that uploads the corresponding request according to the user's operation. At this time, the relationship between the current client that sent the request and the corresponding event is judged, or whether the event is generated by the current client, or whether the event Whether it is applied to the current client, or whether the active or passive side of the event is not the current client.
语态判断模块20用于根据当前客户端与事件之间的关系确定当前语态。The voice judgment module 20 is used to determine the current voice according to the relationship between the current client and the event.
在确定上述关系后,根据该关系从多个语态中选定与该关系匹配的当前语态。对于群聊环境来说,多个语态分别为主人态、客人态和第三人态。具体来说,该模块包括第一选定单元、第二选定单元和第三选定单元。After the above relationship is determined, the current voice matching the relationship is selected from multiple voices according to the relationship. For a group chat environment, multiple voices are main, guest, and third person. Specifically, the module includes a first selected unit, a second selected unit, and a third selected unit.
第一选定单元用于当确定当前客户端为该事件的执行者时,例如其将某人加入了群聊,则选定该当前语态为主人态;第二选定单元用于当确定当前客户端为该事件的被执行者时,例如其被别人加入了某个群聊,则选定当前语态为客人态;第三选定单元用于当确定当前客户端即非执行者也非被执行者时,则选定当前语态为第三人态。The first selected unit is used for determining that the current client is the performer of the event, for example, if it adds someone to the group chat, the current voice is selected as the main human state; the second selected unit is used for determining When the current client is the executor of the event, for example, if it is added to a group chat by someone else, the current voice is selected as the guest; the third selected unit is used to determine that the current client is also a non-executor When not being executed, the current voice is selected as the third person.
文案选定模块30用于读取与当前语态对应的目标文案。The copy selection module 30 is used to read the target copy corresponding to the current voice.
从预置的多个通知文案中选定与当前语态对应的目标文案,例如预置有主人通知文案、客人通知文案和第三人通知文案,分别对应于主人态、客人态和第三人态。当确定当前语态时,则从多个通知文案中选择与当前语态对应的通知文案作为选定的目标文案。Select the target copy corresponding to the current voice from the preset multiple notification copy, for example, preset master copy, guest notice copy and third person notification copy, which correspond to the master state, guest state and third person respectively state. When the current voice is determined, the notification copy corresponding to the current voice is selected from the multiple notification texts as the selected target copy.
例如,预置的通知文案可以如:For example, the preset notification copy may be as follows:
“你邀请${0}加入了群聊”,“${0}邀请你加入了群聊,群成员还有${1}”,或者,“${0}邀请${1}加入了群聊”。然后根据当前语态从中选择一个作为目标文案。"You invited $ {0} to join the group chat", "$ {0} invited you to join the group chat, and the group members have $ {1}", or, "$ {0} invited $ {1} to join the group chat". Then choose one as the target copy according to the current voice.
信息填充模块40用于对目标文案进行信息填充,得到通知文本。The information filling module 40 is used to fill in information on the target copy to obtain the notification text.
即将需要的相关信息填入到该目标文案中,然后根据当前语态从中选择 一个作为目标文案。例如将“用户1”填入${0}处,将“用户2”填入${1}处,从而得到完整的通知文本。例如,“你邀请用户1加入了群聊”,“用户1邀请你加入了群聊,群成员还有用户2”,或者,“用户1邀请用户2加入了群聊”。Fill in the target copy with the relevant information that is needed, and then select one from the target copy according to the current voice. For example, fill in "user 1" into $ {0}, and "user 2" into $ {1}, so as to get the complete notification text. For example, "You invited user 1 to join group chat", "User 1 invited you to join group chat, group members and user 2", or, "User 1 invited user 2 to join group chat".
该通知文本中包括目标文案、嵌入的必要信息,如“用户1”,和其他非必要信息,如一定的附加信息。The notice text includes the target copy, embedded necessary information, such as "User 1", and other non-essential information, such as certain additional information.
通知发送模块50用于将通知文本发送到当前客户端。The notification sending module 50 is used to send the notification text to the current client.
在得到该通知文本后,将该通知文本发送到该当前客户端,从而使当前客户端的用户能够收到相应的消息通知。After obtaining the notification text, the notification text is sent to the current client, so that the user of the current client can receive the corresponding message notification.
本申请实施例提供了一种即时通信的通知装置,具体为判断当前客户端与事件之间的关系;根据关系进行语态判断,得到当前语态;从预置的多个通知文案中读取与当前语态相对应的目标文案;对目标文案进行信息填充,得到通知文本;将通知文本发送到当前客户端,从而实现对相关客户的消息通知。由于其中的目标文案是根据当前客户端与事件之间的关系确定的,因此最终推送的通知文本与当前客户端的用户的身份相适应,从而适应相应用户的身份特征。The embodiment of the present application provides a notification device for instant communication, specifically to determine the relationship between the current client and the event; to determine the voice according to the relationship to obtain the current voice; to read from a plurality of preset notification texts The target copy corresponding to the current voice; fill in the target copy with information to get the notification text; send the notification text to the current client to realize the message notification to the relevant client. Since the target copy is determined according to the relationship between the current client and the event, the final notification text is adapted to the identity of the user of the current client, thereby adapting to the identity characteristics of the corresponding user.
另外,在本申请实施例中,如图5所示,还包括区域检测模块60和国际化处理模块70。In addition, in the embodiment of the present application, as shown in FIG. 5, it further includes an area detection module 60 and an internationalization processing module 70.
区域检测模块60用于在通知发送模块50将通知文本发送到当前客户端之前,检测当前客户端的当前区域。The area detection module 60 is used to detect the current area of the current client before the notification sending module 50 sends the notification text to the current client.
实际是检测当前客户端上传的Locale,通过检测该Locale得到当前客户端所在的地区、国家或者语言区域。Actually, the Locale uploaded by the current client is detected, and the locale, country or language area where the current client is located can be obtained by detecting the Locale.
国际化处理模块70用于根据当前区域对通知文本进行国际化处理。The internationalization processing module 70 is used to internationalize the notification text according to the current region.
具体可以利用resource bundle工具对通知文本进行翻译,从而得到预当前区域的语言种类相匹配的通知文本。Specifically, you can use the resource bundle tool to translate the notification text to obtain the notification text that matches the language type of the current region.
在得到该国际化的通知文本之后,再将该国际化的通知文本发送到当前客户端。这样,只需存储必备信息,在需要国际化时仅根据当前区域进行渲染即可得到国际化的通知文本。一是降低了数据量,二是用起来非常灵活。After obtaining the internationalized notification text, the internationalized notification text is sent to the current client. In this way, only the necessary information needs to be stored, and when the internationalization is needed, only the current area is rendered to obtain the internationalized notification text. One is to reduce the amount of data, and the other is to use it very flexibly.
还有,如图6所示,本申请实施例还包括文案翻译模块80和文案存储模块90,以实现预置多个通知文案的目的。In addition, as shown in FIG. 6, the embodiment of the present application further includes a copy translation module 80 and a copy storage module 90 to achieve the purpose of presetting multiple notification copy.
文案翻译模块80用于对输入的文案进行翻译,得到多个通知文案。The copy translation module 80 is used to translate the input copy to obtain multiple notification copy.
即响应用户的输入请求,对用户输入的文案利用resource bundle工具进行翻译,从而得到多个通知文案,每个通知文案对应于一种语态。That is, in response to the user's input request, the text input by the user is translated using the resource bundle tool to obtain multiple notification texts, each of which corresponds to a voice.
文案存储模块90用于存储多个通知文案。The copy storage module 90 is used to store a plurality of notification copy.
在得到多个通知文案之后,将多个通知文案予以存储,以便在后续使用时从中选定目标文案。After getting multiple notice copy, store the multiple notice copy to select target copy for subsequent use.
本申请还提供一种计算机程序,该计算机程序用于执行如图1~图3所示的即时通信的通知方法。The present application also provides a computer program for executing the notification method of instant communication shown in FIGS. 1 to 3.
图7是根据一示例性实施例示出的一种移动终端的框图。例如,移动终端800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of a mobile terminal according to an exemplary embodiment. For example, the mobile terminal 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
参照图7,移动终端800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。7, the mobile terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, and a sensor component 814 , 和 通信 元件 816.
处理组件802通常控制移动终端800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便完成多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the mobile terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps in the above method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在移动终端800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operation at the device 800. Examples of these data include instructions for any application or method operating on the mobile terminal 800, contact data, phone book data, messages, pictures, videos, and so on. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable and removable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
电源组件806为移动终端800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为移动终端800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the mobile terminal 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the mobile terminal 800.
多媒体组件808包括在所述移动终端800和用户之间的提供一个输出接 口的屏幕。在一些本申请实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些本申请实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen providing an output interface between the mobile terminal 800 and the user. In some embodiments of the present application, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or sliding action, but also detect the duration and pressure related to the touch or sliding operation. In some embodiments of the present application, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当移动终端800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些本申请实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC). When the mobile terminal 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments of the present application, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, or a button. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为移动终端800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为移动终端800的显示器和小键盘,传感器组件814还可以检测移动终端800或移动终端800一个组件的位置改变,用户与移动终端800接触的存在或不存在,移动终端800方位或加速/减速和移动终端800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些本申请实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the mobile terminal 800 with status evaluation in various aspects. For example, the sensor component 814 can detect the on / off state of the device 800, and the relative positioning of the components, such as the display and the keypad of the mobile terminal 800, and the sensor component 814 can also detect the mobile terminal 800 or a component of the mobile terminal 800 , The location of the user changes, the presence or absence of user contact with the mobile terminal 800, the orientation or acceleration / deceleration of the mobile terminal 800, and the temperature change of the mobile terminal 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments of the present application, the sensor assembly 814 may further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于移动终端800和其他设备之间有线或无线方式的通信。移动终端800可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中, 通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the mobile terminal 800 and other devices. The mobile terminal 800 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
在示例性实施例中,移动终端800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行如图1~图3所示的即时通信的通知方法。In an exemplary embodiment, the mobile terminal 800 may be used by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), The programming gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented to perform the notification method of instant communication as shown in FIGS. 1-3.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由移动终端800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by the processor 820 of the mobile terminal 800 to complete the above method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, or the like.
图8是根据一示例性实施例示出的一种电子设备的框图。例如,电子设备1900可以被提供为一服务器。参照图8,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或多个的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Referring to FIG. 8, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by the memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to the network, and an input output (I / O) interface 1958 . The electronic device 1900 can operate an operating system based on the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。After considering the description and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the invention. This application is intended to cover any variations, uses, or adaptive changes of the present invention that follow the general principles of the present invention and include common general knowledge or customary technical means in the technical field not disclosed in the present disclosure . The description and examples are to be considered exemplary only, and the true scope and spirit of the invention are pointed out by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确 结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims.

Claims (14)

  1. 一种即时通信的通知方法,包括:An instant communication notification method, including:
    判断当前客户端与事件之间的关系;Determine the relationship between the current client and the event;
    根据所述关系选定当前语态;Select the current voice according to the relationship;
    从预置的多个通知文案中读取与所述当前语态相对应的目标文案;Reading the target copy corresponding to the current voice from the preset multiple notification copy;
    对所述目标文案进行信息填充,得到通知文本;Fill in the target copy with information to get the notification text;
    将所述通知文本发送到所述当前客户端。Sending the notification text to the current client.
  2. 如权利要求1所述的通知方法,所述当前语态为主人态、客人态或者第三人态。The notification method according to claim 1, wherein the current voice is a main human state, a guest state or a third human state.
  3. 如权利要求2所述的通知方法,所述根据所述关系选定当前语态,包括:The notification method according to claim 2, wherein the selecting the current voice according to the relationship includes:
    如果所述当前客户端为所述事件的执行者,则选定所述当前语态为主人态;If the current client is the executor of the event, the current voice is selected as the main human voice;
    如果所述当前客户端为所述事件的被执行者,则选定所述当前语态为客人态;If the current client is the subject of the event, the current voice is selected as the guest;
    如果所述当前客户端不是所述执行者和所述被执行者,则选定所述当前语态为第三人态。If the current client is not the performer and the executed person, the current voice is selected as the third human state.
  4. 如权利要求1所述的通知方法,所述通知文本包括目标文案、嵌于所述目标文案中的必要信息和附加信息。The notification method according to claim 1, wherein the notification text includes target copy, necessary information and additional information embedded in the target copy.
  5. 如权利要求1所述的通知方法,在对所述目标文案进行信息填充,得到通知文本之后,将所述通知文本发送到所述当前客户端之前,所述方法还包括:The notification method according to claim 1, after information filling the target copy to obtain the notification text, before sending the notification text to the current client, the method further comprises:
    检测所述当前客户端的当前区域;Detect the current area of the current client;
    根据所述当前区域对所述通知文本进行国际化处理;Internationalize the notification text according to the current area;
    所述将所述通知文本发送到所述当前客户端,包括:The sending the notification text to the current client includes:
    将进行国际化处理后的通知文本发送到所述当前客户端。Send the notification text after the internationalization processing to the current client.
  6. 如权利要求1-5任一项所述的通知方法,所述预置的多个通知文案通过以下方式生成:The notification method according to any one of claims 1 to 5, wherein the preset multiple notification texts are generated in the following manner:
    响应文案存储请求,对输入的文案进行翻译,得到多个通知文案;In response to the copy storage request, translate the input copy to obtain multiple notification copy;
    存储所述多个通知文案,作为预置的多个通知文案。The plurality of notification texts are stored as preset notification texts.
  7. 一种即时通信的通知装置,包括:An instant communication notification device, including:
    关系判断模块,被配置为判断当前客户端与事件之间的关系;The relationship judgment module is configured to judge the relationship between the current client and the event;
    语态选定模块,被配置为根据所述关系选定当前语态;The voice selection module is configured to select the current voice according to the relationship;
    文案选定模块,被配置为从预置的多个通知文案中读取与所述当前语态相对应的目标文案;The copy selection module is configured to read the target copy corresponding to the current voice form from a plurality of preset notification copy;
    信息填充模块,被配置为对所述目标文案进行信息填充,得到通知文本;The information filling module is configured to fill the target copy with information to obtain the notification text;
    通知发送模块,被配置为将所述通知文本发送到所述当前客户端。The notification sending module is configured to send the notification text to the current client.
  8. 一种电子设备,包括:An electronic device, including:
    处理器;processor;
    用于存储处理器可执行指令的存储器;Memory for storing processor executable instructions;
    其中,所述处理器被配置为:当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现下列过程:Wherein, the processor is configured to: when the one or more programs are executed by the one or more processors, so that the one or more processors implement the following processes:
    判断当前客户端与事件之间的关系;Determine the relationship between the current client and the event;
    根据所述关系选定当前语态;Select the current voice according to the relationship;
    从预置的多个通知文案中读取与所述当前语态相对应的目标文案;Reading the target copy corresponding to the current voice from the preset multiple notification copy;
    对所述目标文案进行信息填充,得到通知文本;Fill in the target copy with information to get the notification text;
    将所述通知文本发送到所述当前客户端。Sending the notification text to the current client.
  9. 如权利要求8所述的电子设备,所述当前语态为主人态、客人态或者第三人态。The electronic device according to claim 8, wherein the current voice is a main human state, a guest state or a third human state.
  10. 如权利要求9所述的电子设备,所述根据所述关系选定当前语态,包括:The electronic device according to claim 9, wherein the selecting the current voice according to the relationship includes:
    如果所述当前客户端为所述事件的执行者,则选定所述当前语态为主人态;If the current client is the executor of the event, the current voice is selected as the main human voice;
    如果所述当前客户端为所述事件的被执行者,则选定所述当前语态为客人态;If the current client is the subject of the event, the current voice is selected as the guest;
    如果所述当前客户端不是所述执行者和所述被执行者,则选定所述当前语态为第三人态。If the current client is not the performer and the executed person, the current voice is selected as the third human state.
  11. 如权利要求8所述的电子设备,所述通知文本包括目标文案、嵌于所述目标文案中的必要信息和附加信息。The electronic device according to claim 8, wherein the notification text includes target copy, necessary information and additional information embedded in the target copy.
  12. 如权利要求8所述的电子设备,在对所述目标文案进行信息填充,得到通知文本之后,将所述通知文本发送到所述当前客户端之前,还包括:The electronic device according to claim 8, after performing information filling on the target copy to obtain the notification text, before sending the notification text to the current client, further comprising:
    检测所述当前客户端的当前区域;Detect the current area of the current client;
    根据所述当前区域对所述通知文本进行国际化处理;Internationalize the notification text according to the current area;
    所述将所述通知文本发送到所述当前客户端,包括:The sending the notification text to the current client includes:
    将进行国际化处理后的通知文本发送到所述当前客户端。Send the notification text after the internationalization processing to the current client.
  13. 如权利要求8-12任一项所述的电子设备,所述预置的多个通知文案通过以下方式生成:The electronic device according to any one of claims 8-12, the preset plurality of notification texts are generated in the following manner:
    响应文案存储请求,对输入的文案进行翻译,得到多个通知文案;In response to the copy storage request, translate the input copy to obtain multiple notification copy;
    存储所述多个通知文案,作为预置的多个通知文案。The plurality of notification texts are stored as preset notification texts.
  14. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行如权利要求1-6任一项所述的通知方法。A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enable the mobile terminal to execute the notification method according to any of claims 1-6.
PCT/CN2019/099632 2018-10-17 2019-08-07 Instant messaging notification method and apparatus, electronic device, and storage medium WO2020078078A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811210242.8 2018-10-17
CN201811210242.8A CN109543008A (en) 2018-10-17 2018-10-17 A kind of notification method of instant messaging, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020078078A1 true WO2020078078A1 (en) 2020-04-23

Family

ID=65844077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/099632 WO2020078078A1 (en) 2018-10-17 2019-08-07 Instant messaging notification method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN109543008A (en)
WO (1) WO2020078078A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442325A (en) * 2022-08-23 2022-12-06 北京达佳互联信息技术有限公司 Message processing method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543008A (en) * 2018-10-17 2019-03-29 北京达佳互联信息技术有限公司 A kind of notification method of instant messaging, device, electronic equipment and storage medium
CN110460512B (en) * 2019-08-01 2021-10-22 北京达佳互联信息技术有限公司 System message generation method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313534A1 (en) * 2005-01-07 2008-12-18 At&T Corp. System and method for text translations and annotation in an instant messaging session
CN104125140A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Message sending method and message sending device
CN104881279A (en) * 2015-05-12 2015-09-02 广东欧珀移动通信有限公司 Mass messaging method and device
CN105335343A (en) * 2014-07-25 2016-02-17 北京三星通信技术研究有限公司 Text editing method and apparatus
CN109543008A (en) * 2018-10-17 2019-03-29 北京达佳互联信息技术有限公司 A kind of notification method of instant messaging, device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259714A (en) * 2013-04-28 2013-08-21 深圳市深信服电子科技有限公司 Instant information notification method and device
HK1197632A2 (en) * 2014-08-08 2015-01-30 創萬科技有限公司 An instantaneous communication system
KR102449543B1 (en) * 2015-07-21 2022-10-04 삼성전자주식회사 Electronic device and method for obtaining user information in electronic device
CN106789575B (en) * 2016-12-22 2020-08-28 太和县科维生产力促进中心有限公司 Information sending device and method
CN106940646A (en) * 2017-03-17 2017-07-11 微梦创科网络科技(中国)有限公司 A kind of International Software processing method, apparatus and system
CN107707454A (en) * 2017-09-19 2018-02-16 广东小天才科技有限公司 A kind of information processing method and device based on instant messaging or social networking application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313534A1 (en) * 2005-01-07 2008-12-18 At&T Corp. System and method for text translations and annotation in an instant messaging session
CN104125140A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Message sending method and message sending device
CN105335343A (en) * 2014-07-25 2016-02-17 北京三星通信技术研究有限公司 Text editing method and apparatus
CN104881279A (en) * 2015-05-12 2015-09-02 广东欧珀移动通信有限公司 Mass messaging method and device
CN109543008A (en) * 2018-10-17 2019-03-29 北京达佳互联信息技术有限公司 A kind of notification method of instant messaging, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442325A (en) * 2022-08-23 2022-12-06 北京达佳互联信息技术有限公司 Message processing method and device

Also Published As

Publication number Publication date
CN109543008A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
US10728196B2 (en) Method and storage medium for voice communication
US10104599B2 (en) Device binding methods and apparatuses
US10242168B2 (en) Methods and apparatuses for controlling smart device
US9667774B2 (en) Methods and devices for sending virtual information card
US20160269527A1 (en) Methods and apparatuses for binding with device
KR101834163B1 (en) Transfer method and apparatus
US10530836B2 (en) Methods and apparatuses for acquiring image
EP3070905A1 (en) Method and apparatus for binding device
US20220295119A1 (en) Method and apparatus for interacting in live stream
WO2016086581A1 (en) Instant communication method and device
US20170060599A1 (en) Method and apparatus for awakening electronic device
US20170064182A1 (en) Method and device for acquiring image file
WO2017036039A1 (en) Method for remote assistance and client
US20170031640A1 (en) Method, device and system for starting target function
WO2016134600A1 (en) Method and apparatus for detecting intelligent device
WO2017096783A1 (en) Account management method and apparatus
WO2017088247A1 (en) Input processing method, device and apparatus
US20170272425A1 (en) Method and device for accessing smart camera
WO2016045277A1 (en) Method, device, and system for information acquisition
WO2020078078A1 (en) Instant messaging notification method and apparatus, electronic device, and storage medium
WO2017008400A1 (en) Method and device for controlling intelligent device
WO2016155304A1 (en) Wireless access point control method and device
US20170249513A1 (en) Picture acquiring method, apparatus, and storage medium
WO2017219497A1 (en) Message generation method and apparatus
WO2016015404A1 (en) Call transfer method, device and terminal

Legal Events

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

Ref document number: 19873224

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19873224

Country of ref document: EP

Kind code of ref document: A1