CN113312662B - Message processing method and device and electronic equipment - Google Patents

Message processing method and device and electronic equipment Download PDF

Info

Publication number
CN113312662B
CN113312662B CN202110593816.XA CN202110593816A CN113312662B CN 113312662 B CN113312662 B CN 113312662B CN 202110593816 A CN202110593816 A CN 202110593816A CN 113312662 B CN113312662 B CN 113312662B
Authority
CN
China
Prior art keywords
message
content
preset
input
user
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
CN202110593816.XA
Other languages
Chinese (zh)
Other versions
CN113312662A (en
Inventor
刘茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110593816.XA priority Critical patent/CN113312662B/en
Publication of CN113312662A publication Critical patent/CN113312662A/en
Application granted granted Critical
Publication of CN113312662B publication Critical patent/CN113312662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a message processing method, a message processing device and electronic equipment, and belongs to the technical field of data processing. The message processing method comprises the following steps: receiving a first message; after a first input of the first message is received and the first message is played or displayed on a target interface for the first time in response to the first input, identifying target content, matched with preset first content, in the first message; replacing the target content with a preset second content, and generating a second message according to the first message; replacing the first message in the target interface with the second message.

Description

Message processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a message processing method and device and an electronic device.
Background
Currently, people rely more on electronic devices for social interaction. For example, people chat using chat software in electronic devices.
In the process of chatting by using the electronic equipment, some private contents are inevitably involved. For example, the private content includes a home address, a cell phone number, an identification number, and the like. Commonly, the chat message in the chat interface includes the home address of the buddy. Therefore, the phenomenon that the family address of the friend is leaked to other people after other people see the chat message is easily caused because the user does not delete the chat message in time.
Therefore, when people use the electronic equipment for social contact, the risk of revealing private data is high.
Disclosure of Invention
An object of the embodiments of the present application is to provide a message processing method, which can solve the problem in the prior art that when a message is processed on a certain shooting object in an image, inevitably, other shooting objects are affected, and thus an expected effect cannot be achieved.
In a first aspect, an embodiment of the present application provides a message processing method, where the method includes: receiving a first message; after a first input of the first message is received and the first message is played or displayed on a target interface for the first time in response to the first input, identifying target content, matched with preset first content, in the first message; replacing the target content with a preset second content, and generating a second message according to the first message; replacing the first message in the target interface with the second message.
In a second aspect, an embodiment of the present application provides a message processing method, where the method includes: in the case of receiving a third input for sending a first message, identifying target content in the first message, which matches preset first content, in response to the third input; replacing the target content with a preset second content, and generating a second message according to the first message; a merging module, configured to merge the first message and the second message in a preset manner; and sending the combined first message and the second message.
In a third aspect, an embodiment of the present application provides a message processing method, where the method includes: receiving a third message; under the condition that the third message is detected to be processed in a preset mode, splitting the third message into a first message and a second message according to splitting rule information corresponding to the preset mode; replacing the first message in the target interface with the second message after the first message is first played or displayed by the target interface in response to receiving a sixth input for the third message and in response to the sixth input.
In a fourth aspect, an embodiment of the present application provides a message processing apparatus, including: the first receiving module is used for receiving a first message; the first identification module is used for identifying target content matched with preset first content in the first message after the first message is played or displayed on a target interface for the first time in response to a first input of the first message; the first generation module is used for replacing the target content with preset second content and generating a second message according to the first message; a first replacement module to replace the first message in the target interface with the second message.
In a fifth aspect, an embodiment of the present application provides a message processing apparatus, where the apparatus includes: the second identification module is used for responding to a third input under the condition that the third input for sending the first message is received, and identifying target content matched with preset first content in the first message; the second generation module is used for replacing the target content with preset second content and generating a second message according to the first message; a merging module, configured to merge the first message and the second message in a preset manner; and the sending module is used for sending the combined first message and the second message.
In a sixth aspect, an embodiment of the present application provides a message processing apparatus, where the apparatus includes: a second receiving module, configured to receive a third message; the splitting module is used for splitting the third message into a first message and a second message according to splitting rule information corresponding to a preset mode under the condition that the third message is detected to be processed in the preset mode; a second replacement module, configured to replace the first message in the target interface with the second message after receiving a sixth input for the third message and in response to the sixth input, the first message is played or displayed for the first time on the target interface.
In a seventh aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to any one of the first, second, and third aspects.
In an eighth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to any one of the first, second, and third aspects.
In a ninth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to any one of the first, second, and third aspects.
Thus, in the embodiment of the application, after the electronic device receives the first message, the user views the first message through the first input for the first time, so that the first message is played or displayed in the target interface; after that, the message processing method in the application may identify the target content in the first message, which matches with the preset first content. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; and then, directly replacing the target content in the first message with preset second content, such as special characters and the like, combining with other content in the first message to generate a second message with complete semantics, and replacing the first message in the target interface with the second message. It can be seen that, in the embodiment of the present application, first, after receiving a message, a user can view a first message including all initial contents in time; secondly, after the user views the first message, the desensitization processing is automatically carried out on the first message so as to remove the content related to the privacy of the user, so that the privacy content can be prevented from being leaked to other people, and the risk of leaking privacy data when people use the electronic equipment for social contact is reduced.
Drawings
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present application;
FIG. 2 is a second flowchart of a message processing method according to an embodiment of the present application;
FIG. 3 is a third flowchart of a message processing method according to an embodiment of the present application;
FIG. 4 is one of block diagrams of a message processing apparatus of an embodiment of the present application;
FIG. 5 is a second block diagram of a message processing apparatus according to an embodiment of the present application;
FIG. 6 is a third block diagram of a message processing apparatus according to an embodiment of the present application;
fig. 7 is one of the hardware configuration diagrams of the electronic device according to the embodiment of the present application;
fig. 8 is a second hardware configuration diagram of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The message processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart of a message processing method according to an embodiment of the present application is shown, where the method is applied to an electronic device, and includes:
step S1: a first message is received.
The first message is a chat message, a short message, a third-party software notification message and the like in the chat software.
The first message is any one of a text message and a voice message.
Step S2: after receiving a first input for the first message and responding to the first input, and playing or displaying the first message for the first time on the target interface, identifying target content in the first message, wherein the target content is matched with preset first content.
The first input comprises touch input performed by a user on a screen, and is not limited to input of clicking, sliding, dragging and the like; the first input may also be a first operation, where the first operation includes a blank operation of the user, and is not limited to a gesture action operation, a face action operation, and the like, and the first operation also includes an operation of a physical key on the device, and is not limited to a press operation and the like. Furthermore, the first input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
In this step, after the electronic device receives the first message, the user may view the first message through the first input to cause the first message to be played or displayed in the target interface.
Optionally, the target interface is a chat interface, a short message interface, or the like.
Correspondingly, when the first message is a voice message, the user can enable the first message to be played on the target interface through the first input; when the first message is a text message, the user can display the first message on the target interface through the first input.
For example, after receiving the voice message, the user opens the target interface, clicks on the voice message, and plays the specific content of the voice message on the target interface.
For another example, after receiving the text message, the user opens the target interface, and the target interface directly displays the specific content of the currently received text message.
Therefore, based on the above scenario, after the first message is played or displayed for the first time by the target interface, the target content in the first message that matches the preset first content is identified.
It should be noted that, step S1 is used to limit that the first message is currently received, and correspondingly, the default is the first input in step S2, and is to receive the first input for the first time after receiving the first message.
Accordingly, after the first message is played for the first time or is displayed first, the target content in the first message, which is matched with the preset first content, is identified.
Optionally, the preset first content includes related private content.
Referably, based on big data, intelligently analyze out: the preset first content comprises an address, a name, a telephone number, an identity card number and the like.
Therefore, in the present application, based on the process of identifying the preset first content by matching, in the subsequent step, the target content successfully matched may be replaced, so that desensitization processing on the first message may be implemented.
Optionally, the matching method is as follows: if the first message is a voice message, firstly, the voice recognition analysis technology is adopted to convert the first message into a text message, and then, the semantic recognition technology is adopted to match the message content associated with the preset semantic of the first content to be used as the target content.
The matching method is as follows: and if the first message is a text message, matching message content associated with the preset semantics of the first content by a semantic recognition technology to serve as target content.
Illustratively, the first message is: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is zone a, zone B ". Through matching, the 'A city B district' is obtained to be associated with the 'address' in the preset first content, and then the target content is identified as follows: "district B, city A".
And step S3: and replacing the target content with preset second content, and generating a second message according to the first message.
Optionally, the preset second content includes special characters, blank content, and the like, which do not relate to the privacy of the user.
In this step, after replacing the target content in the first message with the preset second content, the second message may be generated by combining the initial message content included in the first message and the semantics in the first message.
The general purpose to be expressed is unchanged from the first message to the second message, but the privacy content in the message is hidden in the second message to achieve the desensitization purpose. The reason why the first message after replacing the content is not directly output as the second message is that the second message is generated after combining the first message is adopted, so that the output second message is also a message with complete and independent semantics to help the group user to understand the general intention of the message which is originally expressed.
For example, the first message is "a long-lasting what is free from what is done in my home? The old classmates narrate. The address of my home is district B of city A ", wherein the target content is: the second preset content adopted by the district B in the city A is as follows: empty content, i.e. the target content is deleted directly. Thus, the first message becomes: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is "so that it is obviously not a word with complete semantics, and thus the second message can be generated according to the whole content of the first message as follows: the effect of the medicine is not seen for a long time, what is free what is my home to eat? The old classmates narrate. "
And step S4: and replacing the first message in the target interface with the second message.
In the step, after replacing the first message in the target interface with the second message, synchronously deleting the first message in the message record, and only storing the second message to ensure that the target content is not leaked from the electronic device.
Optionally, after step S4, no matter the user performs operations such as clicking to listen to the message content, forwarding the message, converting the voice content into the text content, and the like again, the operated object is the desensitized second message.
Thus, in the embodiment of the application, after the electronic device receives the first message, the user views the first message through the first input for the first time, so that the first message is played or displayed in the target interface; after that, the message processing method in the application may identify the target content in the first message, which matches with the preset first content. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; and then, directly replacing the target content in the first message with preset second content, such as special characters and the like, combining with other content in the first message to generate a second message with complete semantics, and replacing the first message in the target interface with the second message. It can be seen that, in the embodiment of the present application, first, after receiving a message, a user can view a first message including all initial contents in time; secondly, after the user views the first message, the desensitization processing is automatically carried out on the first message so as to remove the content related to the privacy of the user, so that the privacy content can be prevented from being leaked to other people, and the risk of leaking privacy data when people use the electronic equipment for social contact is reduced.
Optionally, desensitization processing can be performed on the received message by the application, so that privacy data of a sending-end user are protected.
In the flow of the message processing method according to another embodiment of the present application, after step S4, the following steps are further included:
receiving input of a first message from a user in a target interface; in response to the input, the second message is restored to the first message.
For example, the user may press long on the control on which the first message is located to display a "resume" option, and the user may click on the "resume" option to resume the first message in the target interface.
In this embodiment, a way is provided for the user to recover the entire original content of the message. Based on the embodiment, the first message and the second message can be simultaneously saved in the message record, so that the user can conveniently view the whole initial content of the message at any time.
In a flow of a message processing method according to another embodiment of the present application, a first message is a voice message; the first input is for playing a first message at the target interface.
Before step S4, the method further includes:
step A1: a first play time duration for the first message is obtained, as well as a second play time duration associated with the first input.
In this step, the first playing duration is the playing duration of the first message. For example, a 3-minute voice message corresponds to a first play duration of 3 minutes.
The second play duration is a second play duration associated with the first input. For example, for a 3-minute voice message, the user starts playing the voice message after clicking, and when playing the voice message for 2 minutes, the user exits the target interface, or clicks the pause playing, and the like, the corresponding second playing time length is 2 minutes.
Correspondingly, step S4 includes:
substep A2: and replacing the first message in the target interface with the second message under the condition that the first playing time length is equal to the second playing time length.
Correspondingly, in this step, the user performs the first input for the first time, and after the listening of all the voice contents of the first message is completed, the desensitization replacement function of this embodiment is directly triggered, and the first message in the target interface is directly replaced with the second message.
Substep A3: and under the condition that the first playing time length is longer than the second playing time length, replacing the first message in the target interface with the second message after the preset time length.
Correspondingly, in this step, the user first inputs, and does not finish listening to all the voice content of the first message, the desensitization replacement function of this embodiment is triggered after the preset time duration, that is, the first message in the target interface is replaced with the second message after the preset time duration.
For example, after a fixed time period (e.g., after 2 hours) when the user listens to the voice content for the first time, the desensitization replacement function is triggered.
The fixed time limit is a preset time length in this embodiment, and in the preset time length, the user can listen to all the voice contents of the first message on the target interface at any time.
In this embodiment, two mechanisms are provided to trigger the desensitization replacement function, so long as the conditions for one mechanism are met. In one mechanism, desensitization replacement of private content may be performed directly upon detecting that a user has completed listening to all voice content of a first message; in another mechanism, a fixed time limit may be reserved for the user to listen to the entire voice content of the first message at any time within the reserved fixed time limit, and desensitization replacement of the private content is performed after the fixed time limit. Therefore, the method and the device can reduce the leakage of the privacy data and ensure that the user can normally acquire the initial content of the message.
In a flow of a message processing method according to another embodiment of the present application, a first message is a text message; the first input is for displaying a first message at the target interface.
Correspondingly, step S4, comprises;
substep B1: after receiving a second input to the target interface and closing the target interface in response to the second input, replacing the first message in the target interface with a second message.
The second input comprises touch input performed by a user on the screen, and is not limited to input of clicking, sliding, dragging and the like; the second input may also be a second operation, where the second operation includes a blank operation of the user, and is not limited to a gesture action operation, a face action operation, and the like, and the second operation also includes an operation of the user on a physical key on the device, and is not limited to a press operation and the like. Also, the second input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
In the application scenario of the embodiment, a user first inputs a first input to cause a first message to be displayed in a target interface, so that the user views the first message in the target interface, and after viewing, the user exits from the target interface to trigger a desensitization replacement function, so as to replace the first message in the target interface with a second message; when the user re-enters the target interface, the first message has been replaced with the second message.
In the application scenario of this embodiment, for example, the user first inputs the first message through the first input, so that the user views the first message in the target interface, and after viewing the first message, the user exits the target interface; and when the user enters the target interface again, triggering a desensitization replacement function, and replacing the first message in the target interface with a second message.
In this embodiment, a mechanism for triggering a desensitization replacement function is provided, in which a user may perform desensitization replacement on private content after viewing a text message on a target interface for the first time and exiting the target interface. Desensitization replacement can be performed immediately after the target interface is exited, and desensitization replacement can be performed when the target interface is entered again after the target interface is exited. Therefore, the embodiment can not only reduce the leakage of the privacy data, but also ensure that the user can normally acquire the initial content of the message.
Therefore, in the two embodiments, different mechanisms for triggering the desensitization replacement function are set for the voice message and the text message respectively and by combining respective characteristics, so that the initial content of the message can be normally acquired by a user while privacy data is protected.
In a flow of a message processing method according to another embodiment of the present application, the step of replacing the target content with a preset second content includes:
substep C1: and deleting the target content under the condition that the proportion of the target content in the first message content is smaller than the preset proportion.
The ratio of the target content in the first message content = number of words of the target content/number of words of the entire content of the first message.
Optionally, the preset ratio is customized by the system, and can also be customized by the user.
In addition, a specific word number may be defined to determine whether the number of words of the target content is less than the word number value.
Illustratively, the preset ratio is 10%.
Thus, in this step, one desensitization alternative is: and deleting the matched target content.
For example, the first message is "a long-lasting what is free from what is done in my home? The old classmates narrate. The address of the family is an area B in A city, the target content is the area B in A city, the proportion of the target content in the content of the first message is less than 10%, and by adopting the method in the step, the obtained second message is as follows: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. "
In the method, the target content can be directly deleted, so that in order to avoid incomplete message semantics after the content is deleted, a second message with complete semantics can be generated by combining with other message contents.
For example, the first message is "a long-lasting what is free from what is done in my home? The old classmates narrate. The address of our family is the A city B district, and after the 'A city B district' is deleted, the address becomes: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is "so that it is obviously not a semantic complete word, and a second message can be generated as follows: what is too much time, what is free for me to eat? The old classmates narrate. "
The alternatives provided in this step apply to: in the message content, almost a small part of the content relates to privacy, and even if the part of the privacy content is deleted, the situation that the user understands the whole message content is not influenced.
It can be understood that: and deleting the target content, and correspondingly, replacing the target content with the empty content.
And a substep C2: and replacing the target content with preset character content under the condition that the proportion of the target content in the first message content is greater than or equal to the preset proportion.
Optionally, the preset character content is customized by the system, and can also be customized by the user.
For example, the preset character content is "X". Specifically, there may be one "X" for each character in the target content; it is also possible that the target content corresponds to a fixed number of "X" no matter how many characters.
For example, the first message is "a long-lasting what is free from what is done in my home? The old classmates narrate. The address of the family is an area B in A city, the target content is the area B in A city, the proportion of the target content in the content of the first message is more than 10%, and by adopting the method in the step, the obtained second message is as follows: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is XXXX ".
The alternatives provided in this step apply to: in the message content, there are many contents related to privacy, and if the privacy content is deleted directly, the user will be influenced to understand the whole message content.
In the embodiment, two desensitization alternatives are provided, so that the corresponding desensitization alternative is selected according to different situations of the first message, and the understanding of the user about the intention of the message is not influenced on the basis of reducing the risk of revealing privacy data.
Fig. 2 is a flowchart illustrating a message processing method according to another embodiment of the present application, which is applied to an electronic device, and includes:
step S5: in case of receiving a third input for transmitting the first message, in response to the third input, target content in the first message that matches preset first content is identified.
The third input includes a touch input by the user on the screen, and is not limited to input such as clicking, sliding, dragging and the like; the third input may also be a third operation, where the third operation includes a blank operation of the user, and is not limited to a gesture action operation, a face action operation, and the like, and the third operation also includes an operation of the user on an entity key on the device, and is not limited to a press operation and the like. Also, the third input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
The third input is for sending the first message.
For example, the user clicks the "send" option after completing the editing of the first message in the target interface through the input box.
Correspondingly, in this step, before the first message is sent, the target content in the first message, which matches the preset first content, is identified.
Step S6: and replacing the target content with preset second content, and generating a second message according to the first message.
For this step, reference may be made to the specific process of step S3 in the foregoing embodiment, which is not described herein again.
Step S7: and combining the first message and the second message in a preset mode.
In this step, the initial first message and the desensitized second message may be merged together in a preset merging manner.
Step S8: and sending the combined first message and the second message.
In this step, the final message sent is, in response to the third input, the combined first and second messages.
In the embodiment of the application, when the user sends the first message, the target content matched with the preset first content in the first message can be identified. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; and then, directly replacing the target content in the first message with preset second content, such as special characters and the like, combining other content in the first message to generate a second message with complete semantics, combining the first message and the second message into a message in a preset mode, and sending the message. Therefore, based on the message processing method provided by the embodiment of the application, desensitization replacement is performed on the privacy content in the message at the sending end, so that the receiving end can directly obtain the message content before desensitization and the message content after desensitization; the message content before desensitization can be used for a receiving end user to obtain all initial message content, and the desensitized message content can be used for preventing privacy disclosure at the receiving end, so that the privacy content is prevented from being disclosed to other people, and the risk of disclosure of privacy data when people use the electronic equipment to socialize is reduced.
In the flow of the message processing method according to another embodiment of the present application, before step S6, the method further includes:
step D1: a fourth input is received.
The fourth input includes a touch input performed by the user on the screen, and is not limited to a click, a slide, a drag, and the like; the fourth input may also be a fourth operation, where the fourth operation includes a blank operation of the user, and is not limited to a gesture action operation, a face action operation, and the like, and the fourth operation also includes an operation of the user on an entity key on the device, and is not limited to a press operation and the like. Further, the fourth input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
Step D2: in response to the fourth input, content associated with the fourth input is determined to be preset second content.
And when the first message is a voice message, the preset second content is a voice content.
The fourth input is for the user to select a specific content as the preset second content.
Application scenarios, e.g., prior to sending the first message, target content in the first message is identified, so that the pop-up window asks the user whether the desensitized alternate content needs to be set. For example, the first message is: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is district a and district B ". If the target content is identified as the 'district B in city A', the user can be prompted to 'identify the private content and need to set the replacement content after desensitization', so that the user can set the replacement content after desensitization as 'certain city' based on the prompt and further determine 'certain city' as the preset second content.
For the text message, the user can directly select the text replacing content; for voice messages, a user needs to re-enter voice replacement content to ensure that the replaced content has the sound characteristics of the initial user (i.e., the user at the sending end).
In addition, in the fourth input, the user can also choose to desensitize and replace part of the privacy content according to the requirement, and other privacy content is kept unchanged.
In this embodiment, when the user sends a message, the privacy content included in the message can be automatically detected, so that the user can freely set the desensitized alternative content for the privacy content, so that the desensitized second message better conforms to the intention of the user to express.
In the flow of the message processing method according to another embodiment of the present application, step S7 includes:
substep E1: a fifth input is received.
The fifth input includes a touch input by the user on the screen, and is not limited to input such as clicking, sliding, dragging and the like; the fifth input may also be a fifth operation, where the fifth operation includes a blank operation of the user, and is not limited to a gesture action operation, a face action operation, and the like, and the fifth operation also includes an operation of the user on an entity key on the device, and is not limited to a press operation and the like. Moreover, the fifth input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
Substep E2: in response to a fifth input, a preset separator symbol associated with the fifth input is written between the last character of the first message and the first character of the second message.
In the present embodiment, a way of combining the first message and the second message by a preset separation symbol is provided.
The preset separation symbol in this embodiment is inserted between the first message and the second message, preferably the first message is before and the second message is after, so as to play or display the first message preferentially. On one hand, the preset separation symbol can play a role in splicing the first message and the second message; on the other hand, the preset separation symbol may serve to distinguish the first message from the second message.
Alternatively, the preset separation symbol may be composed of a plurality of symbols. For example, the preset separation symbol includes any one of "& &", "####" or the like.
Optionally, a plurality of separation symbols are preset, so that the user can select one of the separation symbols through a fifth input as the preset separation coincidence in the step E2.
For example, the first message is: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is city a "; the second message is: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is a certain city "; the user selects "& &" as the division coincidence used for this merging among the plurality of division coincidences after setting the desensitized alternative contents. Correspondingly, the merged message is: what is empty about what is done when people eat a meal for a long time? The old classmates narrate. The address of my home is A city & & good for a long time, what is about to be available to me to eat a meal? The old classmates narrate. The address of my home is a city ".
In this embodiment, a method is provided for combining pre-desensitized and post-desensitized messages using preset separation symbols. Thus, on one hand, two messages can be combined into one message for transmission, and on the other hand, the combined message can be distinguished based on the preset separation symbol so as to realize the combination of the messages and the distinction of the messages, and the independence of each message is ensured while the combined message is realized. Meanwhile, the user can select the preset separation symbol to improve the operation interest of the embodiment.
Fig. 3 is a flowchart of a message processing method according to another embodiment of the present application, where the method is applied to an electronic device, and includes:
step S9: a third message is received.
Step S10: and under the condition that the third message is detected to be processed in a preset mode, splitting the third message into a first message and a second message according to splitting rule information corresponding to the preset mode.
In this embodiment, the electronic device serves as a receiving end, and after receiving the third message, if it is detected that the third message is processed in a preset manner, the electronic device splits the third message into the first message and the second message according to a splitting rule corresponding to the preset manner. Thus, the message received by the electronic device is comprised of two parts, the first part being the pre-desensitization message and the second part being the post-desensitization message.
Step S11: after receiving a sixth input for the third message and in response to the sixth input, the first message in the target interface is replaced with the second message after the first message is first played or displayed by the target interface.
The sixth input includes a touch input by the user on the screen, and is not limited to input such as clicking, sliding, dragging and the like; the sixth input may also be a sixth operation, where the sixth operation includes a blank operation by the user and is not limited to a gesture action operation, a face action operation, and the like, and the sixth operation also includes an operation by the user on an entity key on the device and is not limited to a press operation and the like. Further, the sixth input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
For the case that the third message is a voice message, the first message is played on the target interface when the user clicks the third message for playing through the sixth input for the first time. After the user finishes listening to all voice contents of the first message or after the preset duration, the first message in the target interface is replaced by the second message, and when the user operates the third message again, all the operated objects are the second message.
For the case where the third message is a text message, the first message is displayed on the target interface when the user enters the target interface through the sixth input to view the third message for the first time. And if the user exits the target interface and enters the target interface again, the first message in the target interface is replaced by the second message, and when the user operates the third message again, the operated objects are the second message.
In the embodiment of the application, for the sending end, when the user sends the first message, the target content matched with the preset first content in the first message can be identified. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; further, the target content in the first message is directly replaced with a preset second content, such as a special character, and then, a second message with complete semantics is generated by combining with other contents in the first message, and the first message and the second message are combined into a message (a third message in this embodiment) in a preset manner and sent. Correspondingly, for the receiving end, when the third message which is merged and processed in the preset mode is received, the following information included in the third message can be obtained through the corresponding splitting rule: the message content before desensitization (first message), and the message content after desensitization (second message). Further, after the third message is received, when the user operates for the first time, the operation object is the first message, and then under the condition that the user is determined to obtain all initial contents of the message, if the user operates again, the operation object is automatically replaced by the second message, so that privacy contents are prevented from being revealed to other people, and the risk that privacy data are revealed when people use the electronic equipment to perform social contact is reduced. Meanwhile, in the embodiment, desensitization replacement processing is not required for the equipment, and the split first message and the split second message are directly used, so that processing links are reduced, and the processing amount is reduced.
In a flow of a message processing method according to another embodiment of the present application, step S10 includes:
substep F1: and under the condition that the third message is detected to comprise a preset separation symbol, taking the preset separation symbol as a splitting position, and splitting the third message into a first message and a second message.
In this embodiment, when the third message is received, if it is detected that the third message contains a special symbol, the multiple preset partition coincidences are sequentially used to match with the partition coincidences in the third message. Further, after successful matching, it indicates that the special symbol contained in the third message is used to merge the two messages, so that the separation symbol can be used as a splitting position to split all the initial message contents before desensitization, i.e. the first message, and the safety message contents after desensitization, i.e. the second message.
In the present embodiment, a method for identifying a preset separation symbol in a message and splitting a pre-desensitized message and a post-desensitized message by using the preset separation symbol as a splitting position is provided. Therefore, on one hand, the two messages can be merged into one message for receiving, and on the other hand, the merged message can be split into the two messages based on the preset separation symbol, so that the merging of the message at the sending end and the splitting of the message at the receiving end are ensured to be mutually corresponding.
In the message processing method according to another embodiment of the present application, a user may start a message processing function corresponding to the present application in advance in an electronic device through input, so as to implement the corresponding embodiment of the present application.
The embodiments shown in fig. 2 and 3 of the present application correspond to each other. The embodiment shown in fig. 2 is a transmission process of a transmitting end, and correspondingly, the embodiment shown in fig. 3 is a receiving process of a receiving end.
In the embodiment shown in the application, in one mode, a user can autonomously judge whether privacy exists or not, whether desensitization replacement is needed or not, and desensitization content can be set more freely. The desensitization process is more compliant with the privacy awareness needs of the user.
In another mode, the equipment can also automatically judge whether privacy exists or not, desensitization replacement is automatically carried out, and the desensitization process is more intelligent.
In practical application, the two modes can be combined together to determine which mode to realize the desensitization process according to the specific requirements of the user, so that the use experience of the user in the aspect of message privacy safety protection is improved comprehensively and more suitably and practically.
In summary, an object of the present application is to provide a method for desensitizing message content of private speech and text safely, conveniently, and universally, so as to help a user solve a security problem of private data leakage caused by the message content being acquired by others, wherein a receiving end user can be ensured to acquire all initial content of a message, and security protection can be provided for the private content in the message.
One of the improvements is: under the condition that the user allows, the received message content is desensitized after being subjected to semantic analysis automatically, and the security of the private data of the user in various scenes is protected more carefully and comprehensively.
The other improvement is as follows: the intention of the user is taken as the main purpose, semantic analysis is taken as the auxiliary purpose, and the content to be desensitized and the alternative content after desensitization in the message are defined by the user independently, so that the degree of freedom is higher.
The other improvement is as follows: the method and the device support desensitization of the content of the text message and the content of the voice message. For voice messages, under the condition that a user allows, private contents (names, identity cards, mobile phone numbers and the like) in the voice messages are identified through voice analysis and semantic identification technologies, and after the user listens to all initial contents of the voice messages for the first time, the private contents in the voice messages are automatically filtered out or replaced; the user listens to the voice message again and directly plays the desensitized message. The help user intelligence and conveniently protect the safety of having sent out the privacy message.
The other improvement is as follows: the method is based on the user privacy safety requirement, provides an intelligent and quick method for desensitizing the sent privacy message, meets the requirement that the user wants to protect the privacy message after sending the message, and solves the risk problem that the user is afraid of being leaked by other people after sending the message containing the privacy content. Desensitization process safety, privacy, automatic intelligence desensitization privacy message, original message data storage record is directly replaced, need not worry that message deposit record data is leaked, and message privacy security problem obtains guaranteeing. Under the condition of ensuring the communication efficiency, the message content privacy protection capability is improved.
The other improvement is as follows: the application provides a method for safely and freely desensitizing sent privacy messages, and the privacy information of users is protected. According to the requirement of desensitization privacy of a user, semantic recognition is adopted as an auxiliary prompt, the content of the desensitized message is freely set by the user, and the desensitized message is spliced behind the initial content of the message (distinguished by a special mark) and sent together. When the receiver listens to the message, the receiver firstly plays the initial message content of the first half part, and the message is converted into the desensitized message content spliced with the second half part after playing. The user is helped to freely and conveniently protect the safety of the sent privacy message.
It should be noted that, in the message processing method provided in the embodiment of the present application, the execution main body may be a message processing apparatus, or a control module in the message processing apparatus for executing the message processing method. The message processing apparatus provided in the embodiment of the present application is described with an example in which a message processing apparatus executes a message processing method.
Fig. 4 shows a block diagram of a message processing apparatus according to another embodiment of the present application, the apparatus including:
a first receiving module 10, configured to receive a first message;
the first identification module 20 is configured to identify target content in the first message, which matches with preset first content, after receiving a first input to the first message and responding to the first input and playing or displaying the first message on the target interface for the first time;
a first generating module 30, configured to replace the target content with a preset second content, and generate a second message according to the first message;
a first replacement module 40 for replacing the first message in the target interface with the second message.
Thus, in the embodiment of the application, after the electronic device receives the first message, the user views the first message through the first input for the first time, so that the first message is played or displayed in the target interface; after that, the message processing method in the application may identify the target content in the first message, which matches with the preset first content. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; and then, directly replacing the target content in the first message with preset second content, such as special characters and the like, combining with other content in the first message to generate a second message with complete semantics, and replacing the first message in the target interface with the second message. It can be seen that, in the embodiment of the present application, first, after receiving a message, a user can view a first message including all initial contents in time; secondly, after the user views the first message, the desensitization processing is automatically carried out on the first message so as to remove the content related to the privacy of the user, so that the privacy content can be prevented from being leaked to other people, and the risk of leaking privacy data when people use the electronic equipment for social contact is reduced.
Optionally, the first message is a voice message; the first input is used for playing a first message on the target interface;
the device, still include:
the acquisition module is used for acquiring a first playing time length of the first message and a second playing time length associated with the first input;
a first replacement module 40 comprising:
the first voice message replacing unit is used for replacing the first message in the target interface with the second message under the condition that the first playing time length is equal to the second playing time length;
and the second voice message replacing unit is used for replacing the first message in the target interface with the second message after the preset time length under the condition that the first playing time length is longer than the second playing time length.
Optionally, the first message is a text message; the first input is used for displaying a first message on the target interface;
a first replacement module 40 comprising:
and the text message replacing unit is used for replacing the first message in the target interface with the second message after receiving the second input to the target interface and responding to the second input and closing the target interface.
Optionally, the first generating module 30 comprises:
the content deleting unit is used for deleting the target content under the condition that the proportion of the target content in the first message content is smaller than the preset proportion;
and the character replacing unit is used for replacing the target content with the preset character content under the condition that the proportion of the target content in the first message content is greater than or equal to the preset proportion.
Fig. 5 is a block diagram of a message processing apparatus according to another embodiment of the present application, the apparatus including:
a second identifying module 50, configured to, in a case where a third input for sending the first message is received, identify, in response to the third input, a target content in the first message that matches a preset first content;
a second generating module 60, configured to replace the target content with a preset second content, and generate a second message according to the first message;
a merging module 70, configured to merge the first message and the second message in a preset manner;
a sending module 80, configured to send the combined first message and second message.
In the embodiment of the application, when the user sends the first message, the target content matched with the preset first content in the first message can be identified. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; and then, directly replacing the target content in the first message with preset second content, such as special characters and the like, combining other content in the first message to generate a second message with complete semantics, combining the first message and the second message into a message in a preset mode, and sending the message. Therefore, based on the message processing method provided by the embodiment of the application, desensitization replacement is performed on the privacy content in the message at the sending end, so that the receiving end can directly obtain the message content before desensitization and the message content after desensitization; the message content before desensitization can be used for a receiving end user to obtain all initial message content, and the desensitized message content can be used for preventing privacy disclosure at the receiving end, so that the privacy content is prevented from being disclosed to other people, and the risk of disclosure of privacy data when people use the electronic equipment to socialize is reduced.
Optionally, the apparatus further comprises:
a fourth input receiving module for receiving a fourth input;
a fourth input response module for determining content associated with the fourth input as preset second content in response to the fourth input;
and when the first message is a voice message, the preset second content is a voice content.
Optionally, the merging module 70 includes:
a fifth input receiving unit for receiving a fifth input;
a fifth input response unit for writing a preset separator symbol associated with the fifth input between the last character of the first message and the first character of the second message in response to the fifth input.
Fig. 6 shows a block diagram of a message processing apparatus according to another embodiment of the present application, the apparatus including:
a second receiving module 90, configured to receive a third message;
the splitting module 100 is configured to, when it is detected that the third message is processed in a preset manner, split the third message into a first message and a second message according to splitting rule information corresponding to the preset manner;
a second replacing module 110, configured to replace the first message in the target interface with the second message after receiving a sixth input for the third message and in response to the sixth input, the first message is played or displayed for the first time on the target interface.
In the embodiment of the application, for the sending end, when the user sends the first message, the target content matched with the preset first content in the first message can be identified. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; furthermore, the target content in the first message is directly replaced with a preset second content, such as a special character, and then a second message with complete semantics is generated by combining with other contents in the first message, and the first message and the second message are combined into a message (a third message in this embodiment) in a preset manner and sent. Correspondingly, for the receiving end, when the third message merged and processed in the preset mode is received, the information included in the third message can be obtained through the corresponding splitting rule: the message content before desensitization (first message), and the message content after desensitization (second message). Further, after the third message is received, when the user operates for the first time, the operation object is the first message, and then under the condition that the user is determined to obtain all initial contents of the message, if the user operates again, the operation object is automatically replaced by the second message, so that privacy contents are prevented from being revealed to other people, and the risk that privacy data are revealed when people use the electronic equipment to perform social contact is reduced. Meanwhile, in the embodiment, desensitization replacement processing is not required for the equipment, and the split first message and the split second message are directly used, so that processing links are reduced, and the processing amount is reduced.
Optionally, the splitting module 100 comprises:
and the separation symbol splitting unit is used for splitting the third message into the first message and the second message by taking the preset separation symbol as a splitting position under the condition that the preset separation symbol is detected to be included in the third message.
The message processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The message processing apparatus in the embodiment of the present application may be an apparatus having an action system. The action system may be an Android (Android) action system, an ios action system, or other possible action systems, and the embodiment of the present application is not particularly limited.
The message processing apparatus provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 1000 is further provided in the embodiment of the present application, and includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and capable of running on the processor 101, where the program or the instruction is executed by the processor 101 to implement each process of any one of the foregoing message processing method embodiments, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 10000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 10000 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
In a first aspect, the processor 1010 is configured to receive a first message; after a first input for the first message is received and the first message is played or displayed on a target interface for the first time in response to the first input, identifying target content, which is matched with preset first content, in the first message; replacing the target content with a preset second content, and generating a second message according to the first message; replacing the first message in the target interface with the second message.
Thus, in the embodiment of the application, after the electronic device receives the first message, the user views the first message through the first input for the first time, so that the first message is played or displayed in the target interface; after that, the message processing method in the application may identify the target content in the first message, which matches with the preset first content. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; and then, directly replacing the target content in the first message with preset second content, such as special characters and the like, combining with other content in the first message to generate a second message with complete semantics, and replacing the first message in the target interface with the second message. It can be seen that, in the embodiment of the present application, first, after receiving a message, a user can view a first message including all initial contents in time; secondly, after the user views the first message, the desensitization processing is automatically carried out on the first message so as to remove the content related to the privacy of the user, so that the privacy content can be prevented from being leaked to other people, and the risk of leaking privacy data when people use the electronic equipment for social contact is reduced.
Optionally, the first message is a voice message; the first input is used for playing the first message on the target interface; a processor 1010, further configured to obtain a first play duration of the first message and a second play duration associated with the first input; replacing the first message in the target interface with the second message when the first playing time length is equal to the second playing time length; and replacing the first message in the target interface with the second message after a preset time length under the condition that the first playing time length is longer than the second playing time length.
Optionally, the first message is a text message; the first input is used for displaying the first message on the target interface; the processor 1010 is further configured to replace the first message in the target interface with the second message after receiving a second input to the target interface and closing the target interface in response to the second input.
Optionally, the processor 1010 is further configured to delete the target content when a proportion of the target content in the first message content is smaller than a preset proportion; and replacing the target content with preset character content under the condition that the proportion of the target content in the first message content is greater than or equal to the preset proportion.
In a second aspect, a processor 1010, configured to, in a case where a third input for sending a first message is received, identify, in response to the third input, a target content in the first message that matches a preset first content; replacing the target content with a preset second content, and generating a second message according to the first message; merging the first message and the second message in a preset mode; and sending the combined first message and the second message.
In the embodiment of the application, when the user sends the first message, the target content matched with the preset first content in the first message can be identified. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; and then, directly replacing the target content in the first message with preset second content, such as special characters and the like, combining other content in the first message to generate a second message with complete semantics, combining the first message and the second message into a message in a preset mode, and sending the message. Therefore, based on the message processing method provided by the embodiment of the application, desensitization replacement is performed on the privacy content in the message at the sending end, so that the receiving end can directly obtain the message content before desensitization and the message content after desensitization; the message content before desensitization can be used for a receiving end user to obtain all initial message content, and the desensitized message content can be used for preventing privacy disclosure at the receiving end, so that the privacy content is prevented from being disclosed to other people, and the risk of disclosure of privacy data when people use the electronic equipment to socialize is reduced.
Optionally, a user input unit 1007 for receiving a fourth input; a processor 1010, further configured to determine, in response to the fourth input, content associated with the fourth input as the preset second content; and when the first message is a voice message, the preset second content is a voice content.
Optionally, the user input unit 1007 is further configured to receive a fifth input; a processor 1010, further responsive to the fifth input, for writing a preset separator symbol associated with the fifth input between the last character of the first message and the first character of the second message.
In a third aspect, a processor 1010 configured to receive a third message; under the condition that the third message is detected to be processed in a preset mode, splitting the third message into a first message and a second message according to splitting rule information corresponding to the preset mode; replacing the first message in the target interface with the second message after the first message is first played or displayed by the target interface in response to receiving a sixth input for the third message and in response to the sixth input.
In the embodiment of the application, for the sending end, when the user sends the first message, the target content matched with the preset first content in the first message can be identified. The preset first content comprises user privacy content, such as address, name, identification number, telephone number and the like. Thus, based on the identification of the target content, content in the first message associated with the user privacy may be determined; furthermore, the target content in the first message is directly replaced with a preset second content, such as a special character, and then a second message with complete semantics is generated by combining with other contents in the first message, and the first message and the second message are combined into a message (a third message in this embodiment) in a preset manner and sent. Correspondingly, for the receiving end, when the third message merged and processed in the preset mode is received, the information included in the third message can be obtained through the corresponding splitting rule: the message content before desensitization (first message), and the message content after desensitization (second message). Further, after the third message is received, when the user operates for the first time, the operation object is the first message, and then under the condition that the user is determined to obtain all initial contents of the message, if the user operates again, the operation object is automatically replaced by the second message, so that privacy contents are prevented from being revealed to other people, and the risk that privacy data are revealed when people use the electronic equipment to perform social contact is reduced. Meanwhile, in the embodiment, desensitization replacement processing is not required for the equipment, and the split first message and the split second message are directly used, so that processing links are reduced, and the processing amount is reduced.
Optionally, the processor 1010 is further configured to, when it is detected that a preset separation symbol is included in the third message, take the preset separation symbol as a splitting position, and split the third message into the first message and the second message.
In summary, an object of the present application is to provide a method for desensitizing message content of private speech and text safely, conveniently, and universally, so as to help a user solve a security problem of private data leakage caused by the message content being acquired by others, wherein a receiving end user can be ensured to acquire all initial content of a message, and security protection can be provided for the private content in the message.
One of the improvements is as follows: under the condition that the user allows, the received message content is desensitized after being subjected to semantic analysis automatically, and the security of the private data of the user in various scenes is protected more carefully and comprehensively.
The other improvement is as follows: the method has the advantages that the intention of the user is taken as the main purpose, the semantic analysis is taken as the auxiliary purpose, the content to be desensitized and the alternative content after desensitization in the message are defined by the user independently, and the degree of freedom is higher.
The other improvement is as follows: the method and the device support desensitization of the content of the text message and the content of the voice message. For voice messages, under the condition that a user allows, private contents (names, identity cards, mobile phone numbers and the like) in the voice messages are identified through voice analysis and semantic identification technologies, and after the user listens to all initial contents of the voice messages for the first time, the private contents in the voice messages are automatically filtered out or replaced; the user listens to the voice message again and directly plays the desensitized message. The help user intelligently and conveniently protects the safety of the sent privacy message.
The other improvement is as follows: the method is based on the user privacy safety requirement, provides an intelligent and quick method for desensitizing the sent privacy message, meets the requirement that the user wants to protect the privacy message after sending the message, and solves the risk problem that the user is afraid of being leaked by other people after sending the message containing the privacy content. Desensitization process safety, privacy, automatic intelligence desensitization privacy message, original message data storage record is directly replaced, need not worry that message deposit record data is leaked, and message privacy security problem obtains guaranteeing. Under the condition of ensuring the communication efficiency, the message content privacy protection capability is improved.
The other improvement is as follows: the application provides a method for safely and freely desensitizing sent privacy messages, and the privacy information of users is protected. According to the requirement of the desensitization privacy of the user, the semantic recognition is an auxiliary prompt, the desensitized message content is freely set by the user and spliced behind the initial content of the message (distinguished by a special mark) to be sent out together. When the receiver listens to the message, the receiver firstly plays the initial message content of the first half part, and the message is converted into the desensitized message content spliced with the second half part after playing. The user is helped to freely and conveniently protect the safety of the sent privacy message.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and an action stick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to applications and action systems. The processor 1010 may integrate an application processor, which mainly handles motion systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned message processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing message processing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (6)

1. A method of message processing, the method comprising:
in the case of receiving a third input for sending a first message, identifying target content in the first message, which matches preset first content, in response to the third input;
replacing the target content with a preset second content, and generating a second message according to the first message;
merging the first message and the second message in a preset mode;
sending the combined first message and the second message;
the merging the first message and the second message in a preset manner includes:
receiving a fifth input;
in response to the fifth input, writing a preset separator symbol associated with the fifth input between the last character of the first message and the first character of the second message, so that a receiving end is split into the first message and the second message according to the separator symbol, and replacing the first message in a target interface with the second message after the first message is played or displayed for the first time by the target interface.
2. The method of claim 1, wherein before replacing the target content with a preset second content and generating a second message according to the first message, the method further comprises:
receiving a fourth input;
determining, in response to the fourth input, content associated with the fourth input as the preset second content;
and when the first message is a voice message, the preset second content is a voice content.
3. A method of message processing, the method comprising:
receiving a third message;
under the condition that the third message is detected to be processed in a preset mode, splitting the third message into a first message and a second message according to splitting rule information corresponding to the preset mode;
replacing the first message in the target interface with the second message after the first message is played or displayed for the first time in the target interface in response to receiving a sixth input for the third message;
the splitting the third message into a first message and a second message according to splitting rule information corresponding to a preset mode when it is detected that the third message is processed in the preset mode includes:
and under the condition that the third message is detected to comprise a preset separation symbol, taking the preset separation symbol as a splitting position, and splitting the third message into a first message and a second message.
4. A message processing apparatus, characterized in that the apparatus comprises:
the second identification module is used for responding to a third input under the condition that the third input for sending the first message is received, and identifying target content matched with preset first content in the first message;
the second generation module is used for replacing the target content with preset second content and generating a second message according to the first message;
a merging module, configured to merge the first message and the second message in a preset manner;
a sending module, configured to send the combined first message and the second message;
a merge module comprising:
a fifth input receiving unit for receiving a fifth input;
and the fifth input response unit is used for responding to a fifth input, writing a preset separation symbol associated with the fifth input between the last character of the first message and the first character of the second message, so that the receiving end is split into the first message and the second message according to the separation symbol, and replacing the first message in the target interface with the second message after the first message is played or displayed on the target interface for the first time.
5. A message processing apparatus, characterized in that the apparatus comprises:
a second receiving module, configured to receive a third message;
the splitting module is used for splitting the third message into a first message and a second message according to splitting rule information corresponding to a preset mode under the condition that the third message is detected to be processed in the preset mode;
a second replacement module, configured to replace the first message in the target interface with the second message after receiving a sixth input for the third message and in response to the sixth input, the first message is played or displayed for the first time on the target interface;
a splitting module comprising:
and the separation symbol splitting unit is used for splitting the third message into the first message and the second message by taking the preset separation symbol as a splitting position under the condition that the preset separation symbol is detected to be included in the third message.
6. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the message processing method according to any one of claims 1-2.
CN202110593816.XA 2021-05-28 2021-05-28 Message processing method and device and electronic equipment Active CN113312662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110593816.XA CN113312662B (en) 2021-05-28 2021-05-28 Message processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110593816.XA CN113312662B (en) 2021-05-28 2021-05-28 Message processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113312662A CN113312662A (en) 2021-08-27
CN113312662B true CN113312662B (en) 2022-10-21

Family

ID=77376416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110593816.XA Active CN113312662B (en) 2021-05-28 2021-05-28 Message processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113312662B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610199B (en) * 2022-03-21 2023-04-21 北京明略昭辉科技有限公司 Session message processing method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348979A (en) * 2014-11-13 2015-02-11 深圳市中兴移动通信有限公司 Display method and device for mobile terminal and short messages thereof under encryption mode

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716229A (en) * 2013-12-27 2014-04-09 上海扑梭文化传播有限公司 Instant messaging chatting method used for mobile device and mobile phone
CN105791105A (en) * 2016-05-20 2016-07-20 北京北信源软件股份有限公司 Method for burning after reading instant messaging information
CN107743086B (en) * 2016-10-18 2020-03-17 腾讯科技(深圳)有限公司 Message processing method and system, and message sending and receiving device
CN106709383A (en) * 2016-11-30 2017-05-24 广东欧珀移动通信有限公司 Communication message protection method and device and mobile terminal
US10827319B2 (en) * 2017-06-02 2020-11-03 Apple Inc. Messaging system interacting with dynamic extension app
CN107766736A (en) * 2017-09-27 2018-03-06 维沃移动通信有限公司 A kind of information disguising method and mobile terminal
CN110798394A (en) * 2018-08-03 2020-02-14 腾讯科技(深圳)有限公司 Instant messaging message display method and device
CN112163239A (en) * 2020-09-29 2021-01-01 维沃移动通信有限公司 Privacy information protection method and device and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348979A (en) * 2014-11-13 2015-02-11 深圳市中兴移动通信有限公司 Display method and device for mobile terminal and short messages thereof under encryption mode

Also Published As

Publication number Publication date
CN113312662A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN111884908B (en) Contact person identification display method and device and electronic equipment
CN111581665B (en) Data processing method and device and electronic equipment
CN111796747B (en) Multi-open application processing method and device and electronic equipment
CN111859119A (en) Information processing method and device
CN112947807A (en) Display method and device and electronic equipment
CN112533072A (en) Image sending method and device and electronic equipment
CN114385049A (en) Message processing method, device, equipment and storage medium
CN113312662B (en) Message processing method and device and electronic equipment
CN111859900A (en) Message display method and device and electronic equipment
CN114827068A (en) Message sending method and device, electronic equipment and readable storage medium
CN113965614A (en) Session creation method and device and electronic equipment
CN112688859B (en) Voice message sending method and device, electronic equipment and readable storage medium
CN114327088A (en) Message sending method, device, electronic equipment and medium
CN112181351A (en) Voice input method and device and electronic equipment
CN113596555A (en) Video playing method and device and electronic equipment
CN112422735A (en) Information prompting method and device and electronic equipment
CN111897474A (en) File processing method and electronic equipment
CN111641551A (en) Voice playing method, voice playing device and electronic equipment
CN114374663B (en) Message processing method and message processing device
CN115412634A (en) Message display method and device
CN108108356B (en) Character translation method, device and equipment
CN114024929A (en) Voice message processing method and device, electronic equipment and medium
CN111857467B (en) File processing method and electronic equipment
CN113347076B (en) Session information deleting method and device
CN110598489A (en) Privacy protection method for inputting prompt information and related device

Legal Events

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