METHOD, APPARATUS, AND PORTABLE ELECTRONIC DEVICE
20170339278 · 2017-11-23
Assignee
Inventors
Cpc classification
H04M1/72436
ELECTRICITY
H04L51/02
ELECTRICITY
H04M3/60
ELECTRICITY
H04M1/575
ELECTRICITY
H04M3/42093
ELECTRICITY
H04M1/64
ELECTRICITY
H04M3/527
ELECTRICITY
H04M3/38
ELECTRICITY
H04M1/72454
ELECTRICITY
International classification
Abstract
This application discloses a method, an apparatus, and a portable electronic device. The method includes: detecting an incoming phone call; automatically answering the phone call; determining that in at least one pre-stored event, there is an event matching a telephone number of the phone call, where the event includes: at least one of content of the event, a starting time of the event, or a location of the event, contact information of a participant, and permission of the participant; and the contact information of participant includes a telephone number; obtaining and parsing audio content of the phone call; and automatically answering the telephone call according to the audio content and permission that corresponds to the telephone number of the phone call. The method provided in this application has an advantage of effective privacy protection.
Claims
1. A method, wherein the method is applied to a portable electronic device, and the method comprises: detecting an incoming telephone call; automatically answering the phone call; determining that in at least one pre-stored event, there is an event matching a telephone number of the phone call, wherein the event comprises: at least one of content of the event, a starting time of the event, or a location of the event, contact information of a participant, and permission of the participant; and the contact information of the participant comprises a telephone number; obtaining and parsing audio content of the phone call; and automatically responding to the audio content with response content according to the audio content and permission that corresponds to the telephone number of the phone call.
2. The method according to claim 1, wherein the method further comprises: determining that in the at least one pre-stored event, there is no event matching the telephone number of the phone call; and automatically responding with preset content.
3. The method according to claim 1, wherein the permission of the participant comprises at least one of obtaining a type of information, obtaining content of information, or obtaining a range of information.
4. The method according to claim 1, wherein the automatically responding to the audio content with response content according to the audio content and permission that corresponds to the telephone number of the telephone call comprises: determining a participant at least according to a mapping relationship between the telephone number of the telephone call and the contact information of the participant, and determining permission of the participant according to a mapping relationship between the participant and the permission of the participant; determining the response content for the audio content; and determining that the response content satisfies the permission of the participant, and automatically responding with the response content; or determining that the response content does not satisfy the permission of the participant, automatically responding with the preset content.
5. The method according to claim 1, wherein the automatically responding to the audio content with response content according to the audio content and permission that corresponds to the telephone number of the telephone call comprises: determining a participant at least according to a mapping relationship between the telephone number of the telephone call and the contact information of the participant, and determining permission of the participant according to a mapping relationship between the participant and the permission of the participant; and determining that a response type of the audio content satisfies the permission of the participant, and automatically responding to the audio content with the response content; or determining that a response type does not satisfy the permission of the participant, and automatically responding with the preset content.
6. A method, wherein the method is applied to a portable electronic device, and the method comprises: receiving a message of an application, wherein the application comprises one of a short message service, instant messaging, or an email; obtaining information about the message, wherein the information comprises content of the message, and a telephone number or an account for sending the message; determining, according to the information, that in at least one pre-stored event, there is an event matching the telephone number or the account of the message, wherein the event comprises: at least one of a telephone number of a participant or an account of a participant, at least one of a starting time of the event or a location of the event, content of the event, and permission of the participant; and automatically replying to the message according to permission corresponding to the telephone number or the account of the message, and according to the information.
7. The method according to claim 6, wherein, determining that in the at least one pre-stored event, there is no event matching the telephone number or the account of the message; and automatically replying with preset content or skipping replying to the message.
8. The method according to claim 6, wherein the permission of the participant comprises at least one of obtaining a type of information, obtaining content of information, or obtaining a range of information.
9. The method according to claim 6, wherein the automatically replying to the message according to permission corresponding to the telephone number or the account of the message, and according to the information comprises: determining the permission corresponding to the telephone number or the account of the message, according to a mapping relationship between the telephone number or the account of the message and the permission of the participant; and determining that reply content for the message satisfies the permission corresponding to the telephone number or the account of the message, and automatically replying with the reply content; or determining that reply content does not satisfy the permission corresponding to the telephone number or the account of the message, and automatically replying with preset content or skipping replying to the message.
10. The method according to claim 6, wherein the automatically replying to the message according to permission corresponding to the telephone number or the account of the message, and according to the information comprises: determining the permission corresponding to the telephone number or the account of the message, according to a mapping relationship between the telephone number or the account of the message and the permission of the participant; and determining that a reply type of the message satisfies the permission corresponding to the telephone number or the account of the message, and automatically replying with reply content for the message; or determining that a reply type does not satisfy the permission corresponding to the telephone number or the account of the message, and automatically replying with preset content or skipping replying to the message.
11. A portable electronic device, wherein the portable electronic device comprises: a transceiver, configured to receive a message of an application, wherein the application comprises one of a short message service, instant messaging, or an email; a processor, configured to: obtain information about the message, wherein the information comprises: content of the message, and a telephone number or an account for sending the message; determine, according to the information, that in at least one pre-stored event, there is an event matching the telephone number or the account of the message, wherein the event comprises: at least one of a telephone number of a participant or an account of a participant, at least one of a starting time of the event or a location of the event, content of the event, and permission of the participant; and automatically reply to the message according to permission corresponding to the telephone number or the account of the message, and according to the information.
12. The portable electronic device according to claim 11, wherein the processor is further configured to: determine that in the at least one pre-stored event, there is no event matching the telephone number or the account of the message; and automatically reply with preset content or skip replying to the message.
13. The portable electronic device according to claim 11, wherein the permission of the participant comprises at least one of obtaining a type of information, obtaining content of information, or obtaining a range of information.
14. The portable electronic device according to claim 11, wherein the processor is configured to: determine the permission corresponding to the telephone number or the account of the message, according to a mapping relationship between the telephone number or the account of the message and the permission of the participant; and determine that reply content for the message satisfies the permission corresponding to the telephone number or the account of the message, and automatically reply with the reply content; or determine that reply content does not satisfy the permission corresponding to the telephone number or the account of the message, and automatically reply with preset content or skip replying to the message.
15. The portable electronic device according to claim 11, wherein the processor is configured to: determine the permission corresponding to the telephone number or the account of the message, according to a mapping relationship between the telephone number or the account of the message and the permission of the participant; and determine that a reply type of the message satisfies the permission corresponding to the telephone number or the account of the message, and automatically reply with reply content for the message; or determine that a reply type does not satisfy the permission corresponding to the telephone number or the account of the message, and automatically reply with preset content or skip replying to the message.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0047] To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
DESCRIPTION OF EMBODIMENTS
[0057] The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0058] Unless otherwise specified, an application in specific implementation manners of this application may be short message service, instant messaging, email, or the like. A portable electronic device in this application includes, but is not limited to, an electronic device that is easy to carry, such as a mobile phone, a tablet computer, a notebook computer, a smartwatch, or a PDA. A voice assistant in specific embodiments of this application may include, but is not limited to, Siri, Cortana, and Google Now. Referring to
[0059] The memory 102 stores program code. The processor 101 is configured to invoke the program code stored in the memory 102 to perform steps according to another embodiment or still another embodiment below. For specific steps, refer to descriptions of the another embodiment of this application or the still another embodiment of this application, and details are not described herein.
[0060] The display 105 may be a touch control display. The display 105 may display a user-operable graphical user interface. The display 105 may receive a touch control message that is sent by the user by using the graphical user interface and send the touch control message to the processor 101 for processing. The processor 101 may perform the steps in the another embodiment or the still another embodiment below according to the touch control message and the program code that is stored in the memory 102. For specific steps, refer to descriptions of the another embodiment of this application or the still another embodiment of this application, and details are not described herein.
[0061] Referring to
[0062] Step 201: Detect an incoming telephone call and automatically answer the phone call.
[0063] In step 201, there may be multiple conditions for automatically answering the phone call. For example, the voice assistant is triggered to automatically answer the call. Certainly, the electronic device may be in a particular mode, and when a call is incoming, the call is automatically answered immediately. Alternatively, when a particular specified condition is reached and the user does not respond, the electronic device may enter an auto-response mode of the voice assistant. The specified condition includes, but is not limited to: time for which the electronic device rings before the call is answered. Certainly, the call may be answered automatically when the electronic device is in a conference mode or a silent mode.
[0064] Step 202: Determine that in at least one pre-stored event, there is an event matching a telephone number of the phone call, where the event may include: at least one of content of the event, a starting time of the event, or a location of the event, contact information of a participant, and permission of the participant.
[0065] The contact information of the participant may be specifically a telephone number of the participant. Certainly, the contact information of the participant may further include information such as a name of the participant.
[0066] The event in step 202 may be manually entered and stored by the user by using the graphical user interface displayed by the display. Certainly, in an actual application, the event may also be automatically generated by the portable electronic device. A specific implementation manner may be: obtaining context information stored in the portable electronic device; after parsing the context information, determining whether the context information satisfies a creation condition; if the creation condition is satisfied, creating an initial event, and enabling a confirmation message for the initial event to pop up; and when the user confirms the initial event, converting the initial event to the event and storing the event. The context information may be specifically a stored historical chat record, for example, a historical chat record of an instant messaging application. Certainly, the context information may be other context information, for example, a program that has context information such as a short message service message record, schedule information, memo information, a reminder, and email content. The creation condition may be specifically: parsing the context information to determine whether at least one of the content of the event, the starting time of the event, or the location of the event, and the participant can be obtained.
[0067] A structure of the event in step 202 may be a universal set of information types, for example, {a location, a participant, permission of the participant, a contact list, a calendar, a status, a starting time . . . }. A format of the event is shown in
[0068] The permission of the participant in step 202 may specifically include: at least one of obtaining a type of information, obtaining content of the information, or obtaining a range of the information. Certainly, in an actual application, the permission of the participant may be the same, or may certainly be different. For example, in a specific event, permission of all participants may be the same, that is, all participants have permission to obtain same information from the portable electronic device. Certainly, in an actual application, the user may separately set the permission of the participants. For example, when the participant is a family member, the participant correspondingly has large participant permission, and when the participant is a stranger, the participant correspondingly has small participant permission.
[0069] Step 203: If it is determined that in the at least one pre-stored event, there is the event matching the telephone number of the phone call, obtain and parse audio content of the phone call; and automatically respond to the audio content with response content according to the audio content, the telephone number, and permission that corresponds to the telephone number.
[0070] An implementation method of step 203 may specifically include:
[0071] recording audio content of a caller, and parsing the audio content to learn a call demand; and
[0072] determining a participant at least according to a mapping relationship between the telephone number of the telephone call and the contact information of the participant, and determining permission of the participant according to the participant and the permission of the participant; and determining that a response type of the audio content satisfies the permission of the participant, and automatically responding to the audio content with the response content; or determining that the response type does not satisfy the permission of the participant, and automatically responding with the preset content.
[0073] A specific implementation manner of determining whether the response type of the audio content satisfies the permission of the participant may be: parsing the audio content of the telephone call by using a natural language analysis processing algorithm to obtain the response type, and if the response type satisfies the permission of the participant and it is assumed that the permission of the participant is “contact” and the response type is “contact”, obtaining the response content for the audio content, and automatically responding with the response content. As shown in
[0074] An implementation method of step 203 may specifically include:
[0075] determining a participant at least according to a mapping relationship between the telephone number of the telephone call and the contact information of the participant, and determining permission of the participant according to the participant and the permission of the participant; determining the response content for the audio content; and determining that the response content satisfies the permission of the participant, and automatically responding with the response content; or determining that the response content does not satisfy the permission of the participant, automatically responding with the preset content.
[0076] A specific implementation manner of the determining that the response content satisfies the permission of the participant may be: parsing the audio content of the telephone call by using the natural language analysis processing algorithm to obtain the response content, and if the response content satisfies the permission of the participant, automatically responding with the response content. For example, as shown in
[0077] Step 204: If it is determined that in the at least one pre-stored event, there is no event matching the telephone number of the phone call, automatically respond with preset content.
[0078] There may be multiple types of preset content according to actual cases. For example, the preset content may be audio. Certainly, in an actual application, the preset content may be a text, for example, I am busy now, please leave a message. Certainly, the preset content may be another text. A specific form of the preset content is not limited in this application.
[0079] According to this solution, a telephone call is automatically responded to, it is determined in the auto-response whether response content satisfies permission of a participant, and when the response content satisfies the permission of the participant, the telephone call is automatically responded to with the response content, or when the response content does not satisfy the permission of the participant, the telephone call is automatically responded to with preset content, to automatically distinguish between permission of different participants, and provide different response content for the participants according to different permission, thereby effectively protecting user privacy.
[0080] Optionally, the contact information of the participant may further include: voiceprint information. When the voiceprint information is included, the determining a participant at least according to a mapping relationship between the telephone number of the telephone call and the contact information of the participant may be specifically: determining the participant according to a mapping relationship among the telephone number of the phone call, voiceprint information in the content of the phone call, and the contact information of the participant.
[0081] The determining the participant according to a mapping relationship among the telephone number of the phone call, voiceprint information in the content of the phone call, and the contact information of the participant may specifically include: matching voiceprint information in the audio content of the telephone call with voiceprint information in the contact information of the participant by using a voiceprint information matching algorithm, so as to determine whether the voiceprint information is from the participant.
[0082] In the voiceprint information matching solution, it can be determined whether a calling terminal is used by the participant, and when the voiceprint information is matched, it is determined that the calling terminal is used by the participant, and the response content satisfying the permission of the participant is provided, or when the voiceprint information is not matched, the preset content is automatically responded with.
[0083] According to the method provided in the another embodiment of this application, after an incoming telephone call is detected, a telephone number of the telephone call is matched with a pre-stored event, and if it is determined that the telephone number matches an event, the telephone call is automatically responded to according to permission corresponding to the telephone number. By means of the technical solution, the telephone call is automatically responded to, and different permission can be provided for different participants, so that a problem of dynamically adjusting permission of a participant is resolved, and user privacy is protected when auto-response is implemented.
[0084] Referring to
[0085] Step 205: Detect an incoming phone call.
[0086] Step 206: Determine that in at least one pre-stored event, there is an event matching a telephone number of the phone call, where the event may include: at least one of content of the event, a starting time of the event, or a location of the event, contact information of a participant, and permission of the participant.
[0087] For a specific implementation of step 206, refer to step 202.
[0088] Step 207: If it is determined that in the at least one pre-stored event, there is the event matching the telephone number of the phone call, automatically answer the phone call.
[0089] In step 207, there may be multiple conditions for automatically answering the phone call. The conditions may be, for example, determining that ringing duration exceeds a preset time, or the telephone call being from a particular contact. The conditions include, but are not limited to, automatically answering the call by triggering the voice assistant. Certainly, the electronic device may enter a particular mode, for example, a conference mode or a silent mode, and when a call is incoming, the call is automatically answered; or when a particular specified condition is reached and the user does not respond, the electronic device may enter an auto-response mode of the voice assistant.
[0090] Step 208: Obtain and parse audio content of the phone call, and automatically respond to the audio content with response content according to the audio content, the telephone number, and permission that corresponds to the telephone number.
[0091] For a specific implementation of step 208, refer to step 203.
[0092] Step 209: If it is determined that in the at least one pre-stored event, there is no event matching the telephone number of the phone call, skip automatically answering the phone call.
[0093] According to this solution, a telephone call is automatically responded to, the telephone call is automatically answered when a preset event is matched, it is determined in the auto-response whether response content satisfies permission of a participant, and when the response content satisfies the permission of the participant, the telephone call is automatically responded to with the response content, or when the response content does not satisfy the permission of the participant, the telephone call is automatically responded to with preset content, to distinguish between permission of different participants, provide different response content for the participants according to different permission, and effectively help a user process a call, thereby effectively protecting user privacy.
[0094] Referring to
[0095] Step 301: Receive a message of an application, and obtain information about the message.
[0096] The information about the message in step 301 includes, but is not limited to, content of the message, and a telephone number or an account for sending the message.
[0097] The content of the message includes, but is not limited to, one or more of a theme of the message, a type of the message, or a description of the message.
[0098] Step 302: Determine whether in at least one pre-stored event, there is an event matching a telephone number or an account of the message, where the event includes: at least one of a telephone number of a participant or an account of a participant, at least one of a starting time of the event or a location of the event, content of the event, and permission of a participant.
[0099] For an event obtaining manner and the permission of the participant in step 302, refer to the description of step 202, and details are not described herein again.
[0100] Step 303: If it is determined that in the at least one pre-stored event, there is the event matching the telephone number or the account of the message, automatically reply to the message according to permission corresponding to the telephone number or the account of the message, and according to the information about the message.
[0101] The automatically replying to the message according to permission corresponding to the telephone number or the account of the message, and according to the information about the message in step 303 may specifically include:
[0102] determining the permission corresponding to the telephone number or the account of the message, according to a mapping relationship between the telephone number or the account of the message and the permission of the participant; and determining that a reply type of the message satisfies the permission corresponding to the telephone number or the account of the message, and automatically replying with reply content; or determining that the reply type does not satisfy the permission corresponding to the telephone number or the account of the message, and automatically replying with preset content or skipping replying to the message.
[0103] The automatically replying to the message according to permission corresponding to the telephone number or the account of the message, and according to the information about the message in step 303 may specifically include:
[0104] determining the permission corresponding to the telephone number or the account of the message, according to a mapping relationship between the telephone number or the account of the message and the permission of the participant; and determining that reply content for the message satisfies the permission corresponding to the telephone number or the account of the message, and automatically replying with the reply content; or determining that the reply content does not satisfy the permission corresponding to the telephone number or the account of the message, and automatically replying with preset content or skipping replying to the message.
[0105] The reply content may be obtained by parsing the content of the message, and a specific implementation manner may be: parsing the content of the message by using a natural language analysis processing algorithm to obtain the reply content, and if the reply content satisfies the permission corresponding to the telephone number or the account of the message, automatically replying with the reply content. For example, using an instant messaging application as an example, as shown in
[0106] Step 304: If it is determined that in the at least one pre-stored event, there is no event matching the telephone number or the account of the message, automatically reply with preset content or skip replying to the message.
[0107] For the preset content in step 304, refer to the description in the embodiment shown in
[0108] According to this solution, a message of an application is automatically replied to, it is determined in the auto-response whether reply content satisfies permission of a participant, and when the reply content satisfies the permission of the participant, the application message is automatically replied to with the reply content, or when the reply content does not satisfy the permission of the participant, the application message is automatically replied to with the preset content, to distinguish between permission of different participants, and provide different reply content for the participants according to different permission, thereby effectively protecting user privacy.
[0109] According to the method provided in the still another embodiment of this application, after a message of an application is received, a telephone number or an account of the message is matched with a pre-stored event, and if it is determined that the telephone number or the account matches an event, the message is automatically replied to according to permission corresponding to the telephone number or the account. By means of the technical solution, the message is automatically replied to, and different permission can be provided for different participants, so that a problem of dynamically adjusting permission of a participant is resolved, and user privacy is protected when a message is automatically replied to.
[0110] Yet another embodiment of this application provides a portable electronic device. The portable electronic device includes:
[0111] one or more processors, a memory, a bus system, a transceiver, and one or more programs, where the processor, the memory, and the transceiver are connected by using the bus system; and
[0112] the one or more programs are stored in the memory, the one or more programs include an instruction, and when the instruction is executed by the portable electronic device, the portable electronic device executes the method according to the another embodiment or the still another embodiment.
[0113] Still yet another embodiment of this application further provides a computer readable storage medium storing one or more programs. The one or more programs include an instruction, and when the instruction is executed by the portable electronic device, the portable electronic device executes the method according to the another embodiment or the still another embodiment.
[0114] An additional embodiment of this application provides a graphical user interface on a portable electronic device. The portable electronic device includes a display, a memory, multiple application programs, and one or more processors that are configured to execute one or more programs stored in the memory, the graphical user interface includes the user interface displayed in the method according to the another embodiment or the still another embodiment, and the display includes a touch-sensitive surface and a display screen.
[0115] A further embodiment of this application provides a portable electronic device. As shown in
[0116] When the portable electronic device receives a message of an application, the transceiver 103 is configured to receive the message of the application, and the processor 101 is configured to obtain information about the message and perform step 302, step 303, step 304, and the solution of the embodiment shown in
[0117] A person of ordinary skill in the art may understand that all or some of the processes of the methods in the embodiments may be implemented by a computer program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program runs, the processes of the methods in the embodiments are performed. The foregoing storage medium may include: a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM).
[0118] What are disclosed above are merely exemplary embodiments of the present invention, and certainly are not intended to limit the protection scope of the present invention. A person of ordinary skill in the art may understand that all or some of processes that implement the foregoing embodiments and equivalent modifications made in accordance with the claims of the present invention shall fall within the scope of the present invention.