Intelligent voice interaction method and electronic device
By judging the scene on the mobile terminal device and using voice interaction technology to play messages based on the index of unread messages, it solves the problem of users obtaining messages when it is inconvenient to operate, achieves convenient, private and efficient message acquisition, and improves User experience and device performance.
Patent Information
- Application Number
- CN202110851932.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-07-27
AI Technical Summary
When mobile terminal devices are inconvenient for users to operate, such as in scenarios such as learning, driving, cooking, etc., it is difficult for users to obtain message content conveniently. Existing technology cannot provide an intelligent and convenient way to obtain messages.
By determining whether the device is in a preset scene, and playing unread messages quickly and efficiently based on the user's voice input and the index of unread messages, combined with voice interaction technology, convenience and privacy are achieved, and the user interaction experience is more friendly.
When users are unable to operate manually, unread messages can be quickly obtained through voice interaction, which improves user experience, reduces power consumption and processing resource consumption, and increases product availability.
Smart Images

Figure CN115695636B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an intelligent voice interaction method and electronic device. Background Art
[0002] When a mobile terminal or other electronic device receives a message, the user can manually operate the device to obtain the content of the message, such as a message sent by other users through short messages, social applications, notification messages from applications, etc. However, there may be scenarios where it is inconvenient for the user to operate the device, such as in learning scenarios or driving scenarios, where the user needs to stay focused and is not convenient to check messages, or in cooking scenarios or laundry scenarios, where the user's hands may be occupied or wet or greasy, and cannot manually operate the device to obtain the content of the message. The way users obtain messages is not smart and convenient enough. Summary of the invention
[0003] The embodiments of the present application disclose an intelligent voice interaction method and electronic device, which can be combined with actual scenarios to quickly and efficiently play unread messages according to the user's voice input and the index of unread messages, making it more intelligent and convenient for users to use.
[0004] In a first aspect, an embodiment of the present application provides a method for intelligent voice interaction, which is applied to a first device, and the method includes: determining that a preset scenario is in place; receiving a first message; determining and storing an index of the first message, the index of the first message including at least one of the following: the time when the first message is received, the application that receives the first message, the contact information that sends the first message, part or all of the content of the first message, and the storage path of the first message; receiving a first voice command, the first voice command is used to play unread messages; playing a first message, the first message including at least one item of information in the index of the first message.
[0005] In the present application, when the first device determines that it is in a preset scenario, if the first message is received, the index of the first message is determined and stored. The first device can respond to the user's voice command based on the index of unread messages such as the first message, rather than directly playing the message after receiving it, taking into account convenience and privacy, and the user interaction experience is more friendly. In addition, compared with determining the first information to be played from a large number of stored messages, the method of determining the first information to be played based on the index of the unread message is faster and more efficient, and the power consumption is also lower.
[0006] In one possible implementation, the determining of being in a preset scene includes: determining whether the moving speed of the first device is greater than or equal to a preset speed threshold; when the moving speed of the first device is greater than or equal to the preset speed threshold, determining whether the first device has not received a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; when the first device has not received a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scene.
[0007] In the present application, the first device can first determine whether the moving speed of the first device is greater than or equal to a preset speed threshold. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging the preset scene and avoiding unnecessary power consumption and overhead.
[0008] In a possible implementation, the determination of being in a preset scene includes: determining whether the moving speed of the first device is greater than or equal to a preset speed threshold; when the moving speed of the first device is greater than or equal to the preset speed threshold, determining whether the first device displays a preset user interface of a first application; when the first device displays the user interface of the first application, determining whether the first device has not received a touch operation within a first time period; when the first device does not display the user interface of the first application, determining whether the first device has not received a touch operation within the first time period, and whether the physical posture of the first device remains unchanged within a second time period; in the case where the first device displays the user interface of the first application, when the first device has not received a touch operation within the first time period, determining that it is in the preset scene; or, in the case where the first device does not display the user interface of the first application, when the first device has not received a touch operation within the first time period, and when the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scene.
[0009] For example, the preset first application is a navigation application.
[0010] In the present application, the first device may first determine whether the moving speed is greater than or equal to a preset speed threshold. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging the preset scene and avoiding unnecessary power consumption and overhead.
[0011] In one possible implementation, the determining of being in a preset scenario includes: determining whether the first device displays a preset user interface of a second application; when the first device displays the user interface of the second application, determining whether the first device has not received a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; when the first device has not received a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scenario.
[0012] For example, the preset second application is a video application.
[0013] In the present application, the first device may first determine whether the user interface of the preset application is displayed in the foreground. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging the preset scene and avoiding unnecessary power consumption and overhead.
[0014] In one possible implementation, the determination of being in a preset scenario includes: determining whether the first device is connected to the second device via a wireless communication protocol; when the first device is connected to the second device via a wireless communication protocol, determining whether the first device is in a locked screen state; when the first device is in a locked screen state, determining whether the first device has not received a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; when the first device has not received a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scenario.
[0015] For example, the wireless communication protocol is a near field communication protocol such as Bluetooth, infrared, NFC, or a wireless fidelity Wi-Fi protocol.
[0016] In the present application, the first device can first determine whether the first device is connected to other devices through a wireless communication protocol and whether it is in a locked screen state. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging preset scenarios and avoiding unnecessary power consumption and overhead.
[0017] In a possible implementation, the method further includes: saving the first message; and determining and storing the index of the first message includes: determining the index of the first message based on the saved first message; and storing the index of the first message.
[0018] In a possible implementation, the method also includes: when the first device displays a notification of the first message, performing a screenshot operation to generate a first image; determining and storing the index of the first message includes: determining the index of the first message based on the first image; and storing the index of the first message.
[0019] In a possible implementation, determining the index of the first message based on the first image includes: determining a first area in the first image where a notification of the first message is located; identifying content in the first area; and determining the index of the first message based on the content in the first area.
[0020] In one possible implementation, the index of the first message includes the moment of receiving the first message; determining the index of the first message based on the first image includes: when the first area in the first image where the notification of the first message is located includes time information, determining the time in the first area as the moment of receiving the first message; when the first area does not include time information, determining the moment of generating the first image as the moment of receiving the first message.
[0021] In some embodiments, the generation time of the first image is the system time obtained by the first device from the first image.
[0022] In a possible implementation, before determining the index of the first message based on the first image, the method also includes: determining an application receiving the first message based on the first image; determining whether the application receiving the first message is a preset third application; determining the index of the first message based on the first image includes: when the application receiving the first message is the third application, determining the index of the first message based on the first image.
[0023] For example, the preset third application is an instant messaging application or a short message.
[0024] In some embodiments, the preset third application is determined based on user operations. In other embodiments, the preset third application is determined based on the user's usage duration or number of times.
[0025] In the present application, the index of unread messages can be determined and stored for some applications to avoid the index of unread messages that users do not care about and are not important to users (such as advertising messages) occupying storage resources and processing resources, and the product availability is higher.
[0026] In a possible implementation, the method also includes: determining keywords of the first voice command; determining an index of the first message based on the keywords of the first voice command; generating the first information based on the index of the first message, wherein the type of the first information is determined based on the keywords of the first voice command.
[0027] In a possible implementation, the first device stores an index of the second message, and determining the index of the first message according to the keywords of the first voice command includes: selecting the index of the first message from the index of the first message and the index of the second message according to the keywords of the first voice command.
[0028] In a possible implementation, the method further includes: saving the first message; generating the first information according to the index of the first message includes: searching for the saved first message according to the index of the first message; and generating the first information according to the saved first message.
[0029] In the present application, the saved first message can be found according to the index of the first message, and then the first information to be played can be generated according to the saved first message. Compared with directly searching for the saved first message from a large number of stored messages according to the user's voice command, it is faster and more efficient, and reduces power consumption and processing resources.
[0030] In a possible implementation manner, the method further includes: when the first message is a read message, deleting the index of the first message, and the first message is a read message after playing the first information.
[0031] In some embodiments, after information of the first message is displayed in response to a user operation, the first message is a read message.
[0032] In this application, the index of read messages can be deleted in time to avoid occupying storage resources and processing resources, and the product availability is higher.
[0033] In a possible implementation, the method further includes: when the duration for which the first device stores the index of the first message is greater than or equal to a preset duration, deleting the index of the first message.
[0034] In this application, the index of unread messages that the user has not obtained for a long time can be deleted in time, avoiding the index of unread messages that are not important or urgent to the user from occupying storage resources and processing resources, and the product availability is higher.
[0035] In the second aspect, an embodiment of the present application provides another method of intelligent voice interaction, which is applied to a first device, and the first device and the second device are connected through a wireless communication protocol, and the method includes: determining that it is in a preset scenario; receiving a first message; determining and storing an index of the first message, the index of the first message includes at least one of the following: the time of receiving the first message, the application receiving the first message, the contact information sending the first message, part or all of the content of the first message, and the storage path of the first message; receiving first instruction information sent by the second device, the first instruction information is obtained according to a first voice command received by the second device, and the first voice command is used to play unread messages; sending a first message to the second device, the first message includes at least one item of information in the index of the first message, and the first information is used for the second device to play.
[0036] For example, the wireless communication protocol is a near field communication protocol such as Bluetooth, infrared, NFC, or a wireless fidelity Wi-Fi protocol.
[0037] In this application, when the first device determines that it is in a preset scenario, if the first message is received, the index of the first message is determined and stored. When the second device connected to the first device receives a user's voice command, the first device can instruct the second device to respond to the user's voice command based on the index of unread messages such as the first message, rather than directly playing the message after receiving it, which takes into account convenience and privacy, and provides a more user-friendly interactive experience. In addition, compared to determining the first information to be played from a large number of stored messages, the method of determining the first information to be played based on the index of unread messages is faster and more efficient, and consumes less power.
[0038] In a possible implementation manner, the first instruction information is the first voice command.
[0039] In a possible implementation manner, the first instruction information is information obtained by the second device recognizing the first voice command.
[0040] In some embodiments, the first instruction information includes a keyword of the first voice command.
[0041] In a possible implementation manner, the first information is audio information, and the first information is used for direct playback by the second device.
[0042] In a possible implementation, the first information is character information, and the first information is converted into audio information by the second device for playback.
[0043] In one possible implementation, the method also includes: receiving the first voice command; sending the first information to the second device includes: when it is determined that the intensity of the first voice command received by the first device is lower than the intensity of the first voice command received by the second device, sending the first information to the second device, the first instruction information including the intensity of the first voice command received by the second device.
[0044] In the present application, the first device can send the first information to the second device so that the second device that receives the second voice command responds to the user's voice command, thereby avoiding the situation where the first device cannot effectively receive and respond to the user's voice command when the user is far away from the first device, broadening the application scenarios and making it more convenient for users to use.
[0045] In a possible implementation, the method also includes: determining keywords of the first voice command based on the first instruction information; determining an index of the first message based on the keywords of the first voice command; generating the first information based on the index of the first message, wherein the type of the first information is determined based on the keywords of the first voice command.
[0046] In a possible implementation, the first device stores an index of the second message, and determining the index of the first message according to the keywords of the first voice command includes: selecting the index of the first message from the index of the first message and the index of the second message according to the keywords of the first voice command.
[0047] In one possible implementation, the determining of being in a preset scene includes: determining whether the moving speed of the first device is greater than or equal to a preset speed threshold; when the moving speed of the first device is greater than or equal to the preset speed threshold, determining whether the first device has not received a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; when the first device has not received a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scene.
[0048] In the present application, the first device can first determine whether the moving speed of the first device is greater than or equal to a preset speed threshold. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging the preset scene and avoiding unnecessary power consumption and overhead.
[0049] In a possible implementation, the determination of being in a preset scene includes: determining whether the moving speed of the first device is greater than or equal to a preset speed threshold; when the moving speed of the first device is greater than or equal to the preset speed threshold, determining whether the first device displays a preset user interface of a first application; when the first device displays the user interface of the first application, determining whether the first device has not received a touch operation within a first time period; when the first device does not display the user interface of the first application, determining whether the first device has not received a touch operation within the first time period, and whether the physical posture of the first device remains unchanged within a second time period; in the case where the first device displays the user interface of the first application, when the first device has not received a touch operation within the first time period, determining that it is in the preset scene; or, in the case where the first device does not display the user interface of the first application, when the first device has not received a touch operation within the first time period, and when the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scene.
[0050] For example, the preset first application is a navigation application.
[0051] In the present application, the first device may first determine whether the moving speed is greater than or equal to a preset speed threshold. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging the preset scene and avoiding unnecessary power consumption and overhead.
[0052] In one possible implementation, the determining of being in a preset scenario includes: determining whether the first device displays a preset user interface of a second application; when the first device displays the user interface of the second application, determining whether the first device has not received a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; when the first device has not received a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scenario.
[0053] In the present application, the first device may first determine whether the user interface of the preset application is displayed in the foreground. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging the preset scene and avoiding unnecessary power consumption and overhead.
[0054] In one possible implementation, the determination of being in a preset scenario includes: determining whether the first device is connected to the second device via a wireless communication protocol; when the first device is connected to the second device via a wireless communication protocol, determining whether the first device is in a locked screen state; when the first device is in a locked screen state, determining whether the first device has not received a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; when the first device has not received a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, determining that it is in the preset scenario.
[0055] In the present application, the first device can first determine whether the first device is connected to other devices through a wireless communication protocol and whether it is in a locked screen state. When the judgment result is yes, the first device will perform subsequent judgments, thereby improving the efficiency of judging preset scenarios and avoiding unnecessary power consumption and overhead.
[0056] In a possible implementation, the method further includes: saving the first message; and determining and storing the index of the first message includes: determining the index of the first message based on the saved first message; and storing the index of the first message.
[0057] In a possible implementation, the method also includes: when the first device displays a notification of the first message, performing a screenshot operation to generate a first image; determining and storing the index of the first message includes: determining the index of the first message based on the first image; and storing the index of the first message.
[0058] In a possible implementation, determining the index of the first message based on the first image includes: determining a first area in the first image where a notification of the first message is located; identifying content in the first area; and determining the index of the first message based on the content in the first area.
[0059] In one possible implementation, the index of the first message includes the moment of receiving the first message; determining the index of the first message based on the first image includes: when the first area in the first image where the notification of the first message is located includes time information, determining the time in the first area as the moment of receiving the first message; when the first area does not include time information, determining the moment of generating the first image as the moment of receiving the first message.
[0060] In some embodiments, the generation time of the first image is the system time obtained by the first device from the first image.
[0061] In a possible implementation, before determining the index of the first message based on the first image, the method also includes: determining an application receiving the first message based on the first image; determining whether the application receiving the first message is a preset third application; determining the index of the first message based on the first image includes: when the application receiving the first message is the third application, determining the index of the first message based on the first image.
[0062] In the present application, the index of unread messages can be determined and stored for some applications to avoid the index of unread messages that users do not care about and are not important to users (such as advertising messages) occupying storage resources and processing resources, and the product availability is higher.
[0063] In a possible implementation, the method further includes: saving the first message; generating the first information according to the index of the first message includes: searching for the saved first message according to the index of the first message; and generating the first information according to the saved first message.
[0064] In the present application, the saved first message can be found according to the index of the first message, and then the first information to be played can be generated according to the saved first message. Compared with directly searching for the saved first message from a large number of stored messages according to the user's voice command, it is faster and more efficient, and reduces power consumption and processing resources.
[0065] In a possible implementation manner, the method further includes: when the first message is a read message, deleting the index of the first message, and the first message is a read message after playing the first information.
[0066] In some embodiments, after information of the first message is displayed in response to a user operation, the first message is a read message.
[0067] In this application, the index of read messages can be deleted in time to avoid occupying storage resources and processing resources, and the product availability is higher.
[0068] In a possible implementation, the method further includes: when the duration for which the first device stores the index of the first message is greater than or equal to a preset duration, deleting the index of the first message.
[0069] In this application, the index of unread messages that the user has not obtained for a long time can be deleted in time, avoiding the index of unread messages that are not important or urgent to the user from occupying storage resources and processing resources, and the product availability is higher.
[0070] In the third aspect, an embodiment of the present application provides an electronic device, including a transceiver, a processor and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the method of intelligent voice interaction provided by the first aspect to the second aspect of the embodiment of the present application, and any one of the implementation methods of the first aspect to the second aspect.
[0071] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method of intelligent voice interaction provided by the first aspect to the second aspect of the embodiment of the present application, and any one of the implementation methods of the first aspect to the second aspect.
[0072] In the fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method of intelligent voice interaction provided by the first aspect to the second aspect of the embodiment of the present application, and any one of the implementation methods of the first aspect to the second aspect.
[0073] In a sixth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a method or device for executing any of the embodiments of the present application. The electronic device is, for example, a chip.
[0074] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] The following is an introduction to the drawings used in the embodiments of the present application.
[0076] Figure 1 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0077] Figure 2 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0078] Figure 3-Figure 4 It is a schematic diagram of some flow charts for determining whether a preset scenario is in an embodiment of the present application;
[0079] Figure 5 It is a flowchart of obtaining an index of unread messages provided by an embodiment of the present application;
[0080] Figure 6 This is a user interface embodiment provided by the embodiment of the present application;
[0081] Figure 7 This is a schematic diagram of a scenario of intelligent voice interaction provided by an embodiment of the present application;
[0082] Figure 8 This is another flowchart for determining whether a preset scenario is present in an embodiment of the present application;
[0083] Fig. 9 This is another schematic diagram of an intelligent voice interaction scenario provided by an embodiment of the present application;
[0084] Fig.10 This is another flowchart for determining whether a preset scenario is present in an embodiment of the present application;
[0085] Fig.11 This is another schematic diagram of an intelligent voice interaction scenario provided by an embodiment of the present application;
[0086] Fig.12 This is another user interface embodiment provided by the embodiments of the present application;
[0087] Figure 13-14 It is a flowchart of some intelligent voice interaction methods provided in the embodiments of the present application. DETAILED DESCRIPTION
[0088] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0089] An embodiment of the present application provides a method for intelligent voice interaction, which is applied to electronic devices. Exemplarily, the electronic device can determine whether it is in a preset scene, such as a driving scene or other scene where it is inconvenient for the user to operate the device. When the electronic device determines that it is in a preset scene and receives a message, it can obtain and store the index of the message. The electronic device can quickly and efficiently determine the way to play unread messages (such as whether to play, what to play) based on the user's voice input and the index of the unread messages, rather than directly playing after receiving the message, taking into account convenience and privacy, and the user interaction experience is more friendly.
[0090] In this application, messages received by an electronic device include, but are not limited to, messages sent by other users through short messages, social applications, and other applications, notification messages pushed by applications, and the like. After an electronic device receives a message, before the user operates the electronic device to obtain the message, the message can be referred to as an unread message or an unchecked message. After the user operates the electronic device to obtain the unread message, the message can be referred to as a read message or a checked message.
[0091] In the present application, the index of messages stored by the electronic device is specifically the index of unread messages. In some embodiments, after the unread message is obtained by the user, the electronic device can delete the index of the message. The index of any unread message may include relevant information of the message, such as but not limited to at least one of the following: the time of receipt, the name or identifier of the application that receives the message, the name or identifier of the contact who sends the message, the specific content of the message, partial content of the message (such as some characters in the specific content, which can be called content summary), etc., the storage path of the message. It should be noted that the specific content or partial content of the message does not include the time of receipt of the message, the information of the application, and the contact information, but the character content of the message itself. The storage path of the message is the path where the electronic device stores the detailed information of the message, not the path where the index of the message is stored.
[0092] Exemplarily, the electronic device receives a message sent by user A via a text message at two points: Are you there?, where "two points" is the receiving time, "text message" is the name of the application that receives the message, "user A" is the name of the contact who sends the message, and "Are you there?" is the specific content of the message.
[0093] The electronic devices involved in the embodiments of the present application can be user terminal devices such as mobile phones, tablet computers, handheld computers, personal digital assistants (PDAs), smart home devices such as smart TVs and smart cameras, wearable devices such as smart bracelets, smart watches, smart glasses, or other desktop, laptop, notebook computer, ultra-mobile personal computer (UMPC), netbook, smart screen and other devices.
[0094] Next, an exemplary electronic device 100 according to an embodiment of the present application is introduced.
[0095] See also Figure 1 , Figure 1 A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0096] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0097] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0098] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0099] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0100] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0101] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0102] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0103] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0104] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0105] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0106] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0107] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0108] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as virtual reality devices, etc.
[0109] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0110] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0111] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0112] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0113] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0114] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0115] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0116] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0117] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0118] In some embodiments, the electronic device 100 may determine the location of the electronic device 100 through GNSS technology (e.g., GPS). In some embodiments, the electronic device 100 may process the location of a preset period of time to obtain the moving speed of the electronic device 100. Not limited thereto, in other embodiments, the electronic device 100 may also determine the moving speed through other modules such as radar, and the present application does not limit the module for measuring the moving speed.
[0119] In some embodiments, the moving speed determined by the electronic device 100 may be an average speed, for example, positioning is achieved through GNSS technology, and the moving speed determined based on the positioning is the average speed. In other embodiments, the moving speed measured by the electronic device 100 may be an instantaneous speed, for example, the moving speed measured by radar is an instantaneous speed.
[0120] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0121] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0122] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0123] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0124] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0125] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0126] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0127] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0128] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0129] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0130] The electronic device 100 can implement audio functions such as music playing, recording, intelligent voice interaction, etc. through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0131] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0132] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can implement functions such as listening to music, listening to hands-free calls, and playing unread messages through the speaker 170A.
[0133] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. Optionally, when the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear. Optionally, the electronic device 100 can play unread messages through the receiver 170B.
[0134] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. In some embodiments, when making a call or sending a voice message, the user can make a sound by approaching the microphone 170C with their mouth to input the sound signal into the microphone 170C. In other embodiments, the electronic device 100 can obtain the user's voice input through the microphone 170C to determine the way to play unread messages according to the user's voice input, such as whether to play unread messages and the content of the playback. In some embodiments, the electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording functions, etc.
[0135] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0136] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0137] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0138] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0139] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0140] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0141] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0142] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0143] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0144] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0145] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0146] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0147] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0148] In some embodiments, the electronic device 100 can determine whether the physical posture (e.g., horizontal screen posture, vertical screen posture, etc.) of the electronic device 100 has changed through at least one of the above sensors, for example, by detecting whether the angular velocity and acceleration of the electronic device 100 have changed through the gyroscope sensor 180B and the acceleration sensor 180E, and determining whether the flip leather case has been opened or closed through the magnetic sensor 180D. If the change value of the angular velocity and acceleration of the electronic device 100 is less than or equal to the preset change threshold, and the flip leather case has not been opened or closed, the electronic device 100 can determine that the physical posture remains unchanged. Without limitation to this, the electronic device can also combine or use other sensors, or use other methods to determine whether the physical posture of the electronic device 100 has changed, and this application does not limit this.
[0149] In some embodiments, the electronic device 100 can determine whether a touch operation is received through the pressure sensor 180A and / or the touch sensor 180K, which can also be understood as whether a touch event corresponding to the touch operation is received. Not limited to this, the electronic device can also combine or use other sensors, or use other methods to determine whether a touch event is received, and this application does not limit this.
[0150] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0151] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0152] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0153] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0154] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a microservice architecture, or a cloud architecture. For example, the software system of the layered architecture can be an Android system or a Huawei Mobile Services (HMS) system. Not limited to this, the software system of the electronic device 100 can also be an IOS system, which is not limited in this application. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100.
[0155] Figure 2 A schematic diagram of the software architecture of an electronic device 100 is exemplarily shown.
[0156] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0157] The application layer can include a series of application packages.
[0158] like Figure 2 As shown, the application package may include applications such as camera, gallery, music, browser, short message, navigation application, social application, video application, etc.
[0159] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0160] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0161] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0162] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0163] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0164] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0165] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0166] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0167] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0168] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0169] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0170] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0171] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0172] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0173] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0174] A 2D graphics engine is a drawing engine for 2D drawings.
[0175] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0176] The following is an example of the workflow of the software and hardware of the electronic device 100, in conjunction with the process of a user manually operating the electronic device 100 to obtain unread messages.
[0177] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation, and the control corresponding to the single-click operation is a notification control of a social application in the notification bar, the social application calls the interface of the application framework layer to start the social application, and then starts the display driver by calling the kernel layer, and displays the detailed information of the unread message corresponding to the notification control through the display screen 194.
[0178] Next, the application scenarios involved in the embodiments of the present application and the user interface embodiments in the application scenarios are introduced by way of example.
[0179] In a possible implementation, the electronic device 100 may first determine whether it is in a preset scene. In some embodiments, the electronic device 100 may periodically determine whether it is in a preset scene. In some embodiments, when the electronic device 100 determines that it is in a preset scene, if a message is received, the index of the message may be directly obtained and stored.
[0180] In another possible implementation, the electronic device 100 may determine whether it is in a preset scene each time it receives a message. If the electronic device determines that it is in a preset scene, it obtains and stores the index of the message.
[0181] In different application scenarios, the judgment process of whether it is in a preset scenario may be different. For an example of the judgment process, see the following Figure 3 , Figure 4 , Figure 8 , Fig.10 ,in, Figure 3 , Figure 4 Can be applied to Figure 7 Scene 1 shown, Figure 8 Can be applied to Fig. 9 Scene 2 shown, Fig.10 Can be applied to Fig.11 Scene 3 shown.
[0182] Scenario 1: User A using electronic device 100 is a driver. User A fixes electronic device 100 on the car and uses the navigation application on electronic device 100 for map navigation. In scenario 1, user A's hands are occupied and need to stay focused, so it is inconvenient for him to manually check unread messages. For specific examples, see Figure 7 .
[0183] See also Figure 3 , Figure 3 The following is a flow chart showing a process of judging whether a scene is in the first preset scene. The judging process may include but is not limited to the following steps:
[0184] S101: The electronic device determines whether the moving speed is greater than or equal to a preset speed threshold.
[0185] In some embodiments, the moving speed determined by the electronic device may be an average speed, for example, the location information of the electronic device is determined by GNSS technology (e.g., GPS) within a preset period, and then the location information of the electronic device within the preset period is processed to obtain the average speed of the electronic device within the preset period. For example, the preset period is the first period described below, or the second period described below. In other embodiments, the moving speed determined by the electronic device may be an instantaneous speed.
[0186] Specifically, when the electronic device determines that the moving speed is greater than or equal to a preset speed threshold (such as 20 kilometers per hour), it jumps to S102 and continues to execute the subsequent judgment process, otherwise it determines that it is not currently in the first preset scene.
[0187] S102: The electronic device determines whether the physical posture remains unchanged during the first period of time.
[0188] In some embodiments, the physical posture includes, for example but not limited to, a horizontal screen posture, a vertical screen posture, a folded posture, an unfolded posture, a bent posture, a posture with the display facing up, a posture with the display facing down, etc. The physical posture can be determined by, but not limited to, a posture angle measured by an inertial sensor (such as a gyroscope sensor, an acceleration sensor), an azimuth angle measured by a magnetic sensor, etc. For examples of sensors, see Figure 1 Exemplarily, when the electronic device determines that the change values of the attitude angle and the azimuth angle in the first time period are less than or equal to the preset change threshold, it determines that the physical attitude remains unchanged. It should be noted that the unchanged physical attitude does not include the unchanged moving speed.
[0189] In some embodiments, the first time period is a time period of a first preset duration, and the first preset duration is, for example, 10 minutes.
[0190] Specifically, if the electronic device determines that the physical posture remains unchanged during the first period of time, the process jumps to S103 , otherwise it determines that the device is not currently in the first preset scene.
[0191] S103: The electronic device determines whether no touch event is received within the second period of time.
[0192] In some embodiments, the second time period is a time period of a second preset duration, and the second preset duration is, for example, 10 minutes. In some embodiments, the first time period and the second time period may be time periods of the same length.
[0193] In some embodiments, the touch event is, for example, an event corresponding to a touch operation on an electronic device. In some embodiments, the touch operation specifically acts on a display screen of the electronic device. The electronic device can determine whether a touch event is received through, but is not limited to, a detection signal from a pressure sensor, a touch sensor, etc. For examples of sensors, see Figure 1 .
[0194] Specifically, if the electronic device determines that no touch event is received within the second time period, it determines that it is currently in the first preset scene; otherwise, it determines that it is not currently in the first preset scene.
[0195] It can be understood that the execution order of S102 and S103 is not limited to executing S102 first and then executing S103, but S103 may be executed first and then S102, or S102 and S103 may be executed simultaneously.
[0196] See also Figure 4 , Figure 4 A flowchart diagram exemplarily shows another process of determining whether the scene is in the first preset scene. The determination process may include but is not limited to the following steps:
[0197] S201: The electronic device determines whether the moving speed is greater than or equal to a preset speed threshold.
[0198] Specifically, when the electronic device determines that the moving speed is greater than or equal to the preset speed threshold, it jumps to S201 and continues to execute the subsequent judgment process, otherwise it determines that the current scene is not the first preset scene. Figure 3 S101.
[0199] S202: The electronic device determines whether a navigation application is running in the foreground.
[0200] Specifically, the electronic device running an application in the foreground specifically means that the electronic device displays the user interface of the application, and the user can operate the user interface, that is, the application and the user interface are visible and interactive to the user. In some embodiments, if the electronic device determines that the navigation application is not running in the foreground, it jumps to S203. In other embodiments, if the electronic device determines that the navigation application is running in the foreground, it jumps to S204.
[0201] S203: The electronic device determines whether the physical posture remains unchanged during the first period of time.
[0202] For details on the first period and physical posture, see Figure 3 If the electronic device determines that the physical posture remains unchanged during the first period of time, the process jumps to S204, otherwise it determines that the current scene is not in the first preset scene.
[0203] S204: The electronic device determines whether no touch event is received within the second time period.
[0204] For details on the second time period and the touch event, please refer to Figure 3 If the electronic device determines that no touch event is received within the second time period, it is determined that the device is currently in the first preset scene; otherwise, it is determined that the device is not currently in the first preset scene.
[0205] It can be understood that the execution order of S203 and S204 is not limited to executing S203 first and then executing S204, but S204 may be executed first and then S203, or S203 and S204 may be executed simultaneously.
[0206] Understandably, in Figure 3-Figure 4In the judgment process of the example, the electronic device will first determine whether the moving speed is greater than or equal to a preset speed threshold. When the judgment result is yes, the electronic device will perform subsequent judgments, thereby avoiding unnecessary power consumption and overhead.
[0207] In some embodiments, when the electronic device determines that it is in the first preset scene and receives information through system applications such as short messages, the index of the message can be obtained using the existing functions of the electronic device itself. Exemplarily, the module that obtains and stores the index of unread messages is called an intelligent voice interaction module. When the electronic device receives a message through a short message, the short message can send a broadcast message to the module inside the electronic device, and the broadcast message is used to indicate that the short message has received the message. Optionally, the broadcast message can also include relevant information of the received message. After the intelligent voice interaction module receives the broadcast message of the short message, it can determine whether the short message has received the message according to the broadcast message, and optionally obtain relevant information of the message, such as Android's android.provider.Telephony.SMS_RECEIVED can implement the above functions. Alternatively, the intelligent voice interaction module can monitor the database of short messages. When the electronic device receives a message through a short message, the database of the short message will change. At this time, the intelligent voice interaction module can read the database of the short message to obtain relevant information of the unread message. The intelligent voice interaction module can obtain the index of the unread message based on the relevant information of the unread message obtained.
[0208] In other embodiments, when the electronic device determines that it is in the first preset scene and receives a message through a third-party application (such as a social application) outside the system application, the index of the message can be obtained using the first permission that has been granted, and the first permission is the permission to obtain relevant information of unread messages of the third-party application. Exemplarily, the module that obtains and stores the index of unread messages is called an intelligent voice interaction module. When the electronic device receives a message through a social application, if the intelligent voice interaction module has been granted the first permission to obtain unread messages of the social application, the first permission can be used to determine that the social application has received the message, and to obtain relevant information of the unread message. If the intelligent voice interaction module is not granted the first permission, the first permission can be requested to be granted, for example, the electronic device can display the request information, which is used to request the first permission of the social application, and the electronic device can grant or not grant the first permission to the intelligent voice interaction module in response to the user operation. After the intelligent voice interaction module has been granted the first permission, the first permission can be used to obtain relevant information of the unread message. The intelligent voice interaction module can obtain the index of the unread message based on the relevant information of the unread message obtained. Not limited to the examples listed above, for example, the intelligent voice interaction module can also request the first permission when it is turned on.
[0209] In other embodiments, when the electronic device is determined to be in the first preset scenario and receives a message through a third-party application (such as a social application) other than the system application, the index of unread messages can be obtained by screenshot, image recognition, etc. For example, the module that obtains and stores the index of unread messages is called an intelligent voice interaction module, and the third-party application is an application that has not granted the first permission to the intelligent voice interaction module. The example of obtaining the index of unread messages is as follows: Figure 5 shown.
[0210] See also Figure 5 , Figure 5 The following is a flow chart showing an exemplary process of obtaining an index of unread messages. The process may include but is not limited to the following steps:
[0211] S301: When the electronic device receives a first message, it takes a screenshot of the screen interface to obtain a first image.
[0212] Specifically, when the electronic device receives the first message, it may display a notification of the first message, for example Figure 6 In the user interface 600 shown, the electronic device 100 displays a notification control 610 in a pop-up window at the top of the display screen. The notification control 610 is used to display messages received through the social application. In some embodiments, when the electronic device receives the first message, the display screen of the electronic device is lit. When the electronic device displays the first message in a pop-up window, it can take a screenshot of the currently displayed screen interface to obtain a first image. The first image is, for example, Figure 6 User interface 600 is shown. In other embodiments, when the electronic device receives the first message, the display screen of the electronic device is not lit, and the electronic device can first light up the display screen, and then display the first message in a pop-up window when the display screen is lit. When the electronic device displays the first message in a pop-up window, the screen interface can be screenshotted to obtain the first image, and the display screen can be controlled to turn off after the screenshot.
[0213] In some embodiments, the module that obtains and stores the index of unread messages is called an intelligent voice interaction module. After receiving the first message, the electronic device can trigger an event for pop-up window display, and the pop-up window displays the first message when the event is triggered. The electronic device can notify the intelligent voice interaction module that the event has been triggered. When the intelligent voice interaction module determines that the event has been triggered, it performs a screenshot operation to generate a first image.
[0214] S302: The electronic device performs edge detection on the first image to determine a first area where the notification of the first message is located.
[0215] In some embodiments, before S302, the acquisition process may further include: the electronic device performs image preprocessing on the first image, such as mean filtering, high-speed filtering, histogram equalization, etc.
[0216] Exemplarily, the first image is Figure 6 In the user interface 600 shown in FIG. 1 , the notification of the first message is a notification control 610 in the user interface 600, such as Figure 6 As shown, there is a clear boundary between the edge of the notification control 610 and the surrounding area, and the electronic device can perform edge detection on the first image to determine the area where the notification control 610 of the first message is located. The edge detection algorithm can be obtained through a large number of image samples and deep learning training.
[0217] S303: The electronic device identifies the first area to obtain relevant information of the first message.
[0218] In some embodiments, the electronic device may identify controls (such as icons) in the first area through control recognition technology, and extract characters (such as text, letters) in the first area through optical character recognition (OCR) technology, thereby obtaining relevant information of the first message. The relevant information of the first message may include, for example but not limited to, at least one of the following: the time of receipt, the name or identifier of the application receiving the first message, the name or identifier of the contact sending the first message, the specific content of the first message, etc.
[0219] Exemplarily, the first image is Figure 6 In the user interface 600 shown, the first area is the area where the notification control 610 is located in the user interface 600. The electronic device can identify the icon 610A of the social application in the notification control 610 through the icon recognition technology, and extract the name 610B (i.e., "social application") of the social application in the notification control 610 through the OCR technology, the time 610C (i.e., "5:35") when the first message is received, the contact 610D (i.e., "user B") who sent the first message, and the partial content 610E of the first message (i.e., "there is a meeting at 7 pm...").
[0220] Not limited to the above examples, in other examples, if part of the information of the first message is omitted in the first area where the notification of the first message is located, the electronic device can only obtain the displayed content. For example, if the contact 610D and part of the content 610E are replaced with text: "A new message has been received", the electronic device can only obtain the receiving time and the name of the application that receives the first message.
[0221] Not limited to the above examples, in other embodiments, the time 610C at which the first message is received in the first area is not a specific time, such as "just now", and the electronic device can obtain the time when the first image is generated as the time when the first message is received. In some embodiments, the electronic device can obtain the system time from the first image, and the system time is the time when the first image is generated. In other embodiments, the electronic device can directly obtain the time when the first image is generated.
[0222] In some embodiments, after S303, the method further includes:
[0223] S304: The electronic device determines that the application receiving the first message is a preset application.
[0224] Specifically, the electronic device may determine whether the application for receiving the first message obtained in S303 is a preset application, and if the judgment result is yes, store the index of the first message. In some embodiments, the preset applications include short messages, social applications, and other applications used to communicate with other users that are set by default by the electronic device. In some embodiments, the preset applications include applications that are used more frequently determined by the electronic device based on historical records such as user browsing time and number of uses, but are not limited thereto. The preset applications may also include applications determined by the electronic device in response to user operations. The present application does not limit the specific type and determination method of the preset applications.
[0225] S305: The electronic device stores the index of the first message.
[0226] Specifically, the index of any unread message may include but is not limited to at least one of the following: the time of receipt, the name or identifier of the application receiving the message, the name or identifier of the contact sending the message, the specific content of the message, part of the content of the message (which may be called a content summary), and the storage path of the message. The electronic device may determine the index of the first message based on the relevant information of the first message obtained in S303, and store the index of the first message.
[0227] Exemplarily, assuming that the first image is Figure 6 In the user interface 600 shown, the first area is the area where the notification control 610 is located in the user interface 600. The index of the first message determined by the electronic device based on the relevant information of the first message obtained in S303 can be: five thirty-five (receiving time), social application (name of the application receiving the message), user B (name of the contact sending the message), "seven o'clock, meeting" (summary of the content of the message). It can be understood that the receiving time here is only an example. In other instances, the receiving time can also be a detailed time including year, month, day, hour, minute, and second. This application does not limit the specific format of the index of the message.
[0228] See also Figure 7 , Figure 7 A schematic diagram of a scenario of intelligent voice interaction is shown as an example.
[0229] like Figure 7 As shown, the electronic device 100 can be fixed on the car in a vertical screen posture. When user A is driving, he can use the navigation application on the electronic device 100 for map navigation. In some embodiments, the electronic device 100 can first determine whether it is in the first preset scene. For example, after user A gets in the car, fixes the electronic device 100 and opens the navigation application, he can drive normally. The electronic device 100 can perform subsequent judgments when it detects that the moving speed is greater than or equal to the preset speed threshold, for example Figure 3 S102-S103 shown or Figure 4 S202-S204 shown. Assuming that the electronic device 100 determines that it is in the first preset scene, when a message is subsequently received, the index of the message can be directly obtained and stored. In other embodiments, the electronic device 100 can determine whether it is in the first preset scene after receiving the message, and obtain and store the index of the message when it is determined to be in the first preset scene.
[0230] In some embodiments, the electronic device may enable the voice interaction function when it is determined that it is in the first preset scene. After the voice interaction function is enabled, the electronic device may receive the user's voice input, and determine the way to play the message (e.g., whether to play the unread message, the content to play, etc.) according to the user's voice input and the index of the stored unread messages. In other embodiments, the electronic device may enable the voice interaction function when it is determined that it is in the first preset scene, if it receives a voice wake-up word input by the user. In other embodiments, the electronic device may enable the voice interaction function and play a prompt message to prompt the user to obtain the unread message when it is determined that it is in the first preset scene, if the number of indexes of stored unread messages is greater than or equal to the number threshold. Not limited to this, in other embodiments, the voice interaction function may be enabled and the prompt message may be played when the storage duration of the index of the stored unread messages is greater than or equal to the duration threshold. In other embodiments, the electronic device may receive a user operation and enable the voice interaction function directly in response to the user operation. In other embodiments, the electronic device may receive a user operation and continuously or periodically determine whether it is in the first preset scene in response to the user operation. Examples of user operations are as follows Fig.12 This application does not limit the method of enabling the voice interaction function.
[0231] In some embodiments, the electronic device may periodically perform a process of determining whether it is in a preset scene, for example Figure 3 or Figure 4Process shown. In some embodiments, after the electronic device executes the judgment process, if it is determined that it is in the first preset scene, the index of the message can be obtained and stored when the message is received, and the voice interaction function is turned on. The next time the electronic device executes the judgment process and determines that it is not in the first preset scene, the index of the message will not be obtained and stored even if the message is received, and the voice interaction function will be turned off. It can be understood that the judgment result obtained by the electronic device when executing the judgment process is real-time, and the real-time judgment result is used to characterize whether it is in the first preset scene. If it is in the first preset scene, the voice interaction function is turned on, otherwise the voice interaction function is turned off.
[0232] For example, Figure 7 As shown, after the electronic device 100 determines that it is in the first preset scene, the voice interaction function is turned on. When user A perceives that the electronic device 100 has received a message, such as hearing a prompt sound or vibration sound of the electronic device 100, or seeing a prompt message of the electronic device 100 (such as Figure 6 When the user A wants to know whether the electronic device 100 has received any information, the user A can input a first voice: "Who sent the message?" After receiving the first voice, the electronic device 100 can recognize the first voice and determine whether there is an index of unread messages matching the first voice. If there is an index of unread messages matching the first voice, the content to be played is determined according to the first voice and the index. If there is no index of unread messages matching the first voice, the corresponding prompt can be played, such as "No new message received."
[0233] For example, the electronic device 100 may extract the keyword "who" of the first voice, and then determine the index of the unread messages matching the keyword, that is, the index of the unread messages of the contact who sent the message. Assume that the electronic device 100 stores the index of the first message, and the index of the first message is Figure 5The index of the first message in the example S305 is: five thirty-five (receiving time), social application (name of the application that receives the first message), user B (name of the contact who sent the first message), "seven o'clock, meeting" (content summary of the first message), then the electronic device 100 can determine that the index matching the first voice is the index of the first message. The electronic device 100 can determine that the playback content includes the contact who sent the first message based on the first voice, and determine that the contact to be played is: "User B" based on the index of the first message. Therefore, the electronic device 100 can play the first audio: "User B sent a message, do you need to play it?" After user A obtains the first audio, he can choose to play or not play. If he chooses not to play, he can reply "Don't play" or not reply. If he chooses to play, user A can output the second voice: "Play". After the electronic device 100 receives the second voice, it can determine the specific content of the first message to be played based on the second voice. The electronic device 100 can search for the specific content of the first message from a large number of stored messages according to the index of the first message, and then play it. For example, the electronic device 100 can determine to search for the first message with a receiving time of 5:35 in the storage path of the social application according to the index of the first message. The electronic device 100 can play the first message in the format of "contact-receiving time-name of the application that receives the message-specific content of the message", that is, play the second audio: "User B sends a message through the social application at 5:35: There is a meeting at 7 o'clock in the evening..."
[0234] In some embodiments, the electronic device can recognize the semantics of the user's voice and / or extract keywords, and determine the type of content to be played (which may be referred to as the first type) based on the recognized semantics and / or extracted keywords. In some embodiments, when the index of unread messages that matches the user's voice input includes information of the first type, the electronic device 100 can directly play the corresponding content based on the index of the unread messages. In other embodiments, when the index of unread messages that matches the user's voice input does not include information of the first type, the electronic device 100 can find out the stored detailed information of the unread message based on the index of the unread message, and obtain the first type of information from the detailed information for subsequent playback.
[0235] In some embodiments, the electronic device may delete the index of the first message after outputting the first message in response to the user operation for obtaining the first message, which may be understood as deleting the index of the read message. Figure 7 The index of the first message may be deleted after the process shown, or the index of the first message may be deleted after the electronic device displays the specific content of the first message in response to the touch operation for obtaining the first message.
[0236] In some embodiments, the electronic device 100 may only store the index of unread messages received within a preset time period, for example, only store the index of unread messages received within 24 hours, that is, only store the index of unread messages whose difference between the receiving time and the current time is less than or equal to 24 hours, and delete the index of unread messages whose difference is greater than 24 hours.
[0237] Scenario 2: User A uses the video application of the electronic device 100 to watch a video. User A is washing dishes. During the washing process, both hands are occupied and the electronic device 100 cannot be manually operated. For a specific example, see Fig. 9 .
[0238] See also Figure 8 , Figure 8 The following is a flow chart showing a process of judging whether the scene is in the second preset scene. The judging process may include but is not limited to the following steps:
[0239] S401: The electronic device determines whether a video application is running in the foreground.
[0240] For details about running applications in the foreground, see Figure 4 If the electronic device determines that the video application is running in the foreground, the process jumps to S402 to continue to execute the subsequent judgment process; otherwise, the process determines that the second preset scene is not currently in place.
[0241] S402: The electronic device determines whether the physical posture remains unchanged during the first period of time.
[0242] For details on the first period and physical posture, see Figure 3 If the electronic device determines that the physical posture remains unchanged during the first period of time, the process jumps to S403, otherwise it determines that the current scene is not in the second preset scene.
[0243] S403: The electronic device determines whether no touch event is received within the second time period.
[0244] For details on the second time period and the touch event, please refer to Figure 3 If the electronic device determines that no touch event is received within the second time period, it is determined that the device is currently in the second preset scene; otherwise, it is determined that the device is not currently in the second preset scene.
[0245] It can be understood that the execution order of S402 and S403 is not limited to executing S402 first and then executing S403, but S403 may be executed first and then S402, or S402 and S403 may be executed simultaneously.
[0246] Understandably, in Figure 8In the judgment process of the example, the electronic device will first determine whether the video application is running in the foreground. When the judgment result is yes, the electronic device will perform subsequent judgments, thereby avoiding unnecessary power consumption and overhead.
[0247] When the electronic device determines that it is in the second preset scene and receives a message, it can obtain and store the index of the message. For details, please refer to the description of obtaining and storing the index of the message when the electronic device determines that it is in the first preset scene (for example Figure 5 ).
[0248] See also Fig. 9 , Fig. 9 A schematic diagram of another intelligent voice interaction scenario is shown as an example.
[0249] like Fig. 9 As shown, the electronic device 100 can be placed on a desktop in a horizontal position. When user A washes dishes, he can use the video application on the electronic device 100 to watch the video. In some embodiments, the electronic device 100 can first determine whether it is in the second preset scene. For example, after user A opens the video application and fixes the electronic device 100, he can wash dishes. When the electronic device 100 detects that the video application is running in the foreground, it can perform subsequent judgments, such as Figure 8 As shown in S402-S403. Assuming that the electronic device 100 is determined to be in the second preset scene, when a message is subsequently received, the index of the message can be directly obtained and stored. In other embodiments, the electronic device 100 can determine whether it is in the second preset scene after receiving the message, and obtain and store the index of the message when it is determined to be in the second preset scene.
[0250] For instructions on how to enable the voice interaction function of the electronic device 100, please refer to the above Figure 7 Instructions for enabling the voice interaction function of the electronic device 100.
[0251] For example, Fig. 9 As shown, after the electronic device 100 determines that it is in the second preset scene, the voice interaction function is turned on. The electronic device can receive the user's voice input, and determine the way to play the message (for example, whether to play the unread message, the content to play, etc.) according to the user's voice input and the index of the stored unread messages. When user A perceives that the electronic device 100 has received a message, or wants to know whether the electronic device 100 has received a message, etc., user A can output a third voice: "Play the unread messages in the last half hour". After the electronic device 100 receives the third voice, it can determine the way to play the unread message according to the third voice and the index of the unread message.
[0252] Exemplarily, the electronic device 100 can extract the keyword of the third voice: "the last half hour", and then determine the index of the unread message that matches the keyword, that is, the index of the unread message whose difference between the receiving time and the current time is less than or equal to 30 minutes, assumed to be the second message (the message content is assumed to be information A) and the third message (the message content is assumed to be information B). The electronic device 100 can determine that the playback content is the specific content of the second message and the third message based on the third voice, the index of the second message and the index of the third message, then the electronic device 100 can play the third audio: "User C sends message A via SMS at 2 o'clock, and user D sends message B via a social application at 2:15".
[0253] Scenario 3: The electronic device 100 is connected to at least one device via a wired or wireless connection. User A is cleaning and not using the electronic device 100. The distance between user A and the electronic device 100 is far, so it is not convenient to manually operate the electronic device to obtain messages. For specific examples, see Fig.11 .
[0254] See also Fig.10 , Fig.10 The following is a flow chart showing a process of judging whether the scene is in the third preset scene. The judging process may include but is not limited to the following steps:
[0255] S501: The electronic device determines whether it is connected to at least one device wirelessly.
[0256] Specifically, the wireless method includes, but is not limited to, near field communication methods such as Bluetooth, infrared, NFC, or Wi-Fi. The at least one device includes, but is not limited to, smart home devices such as smart speakers and smart TVs, and smart wearable devices such as headphones, smart glasses, and smart bracelets.
[0257] S502: The electronic device determines whether it is in a locked screen state.
[0258] Specifically, in the lock screen state, the user needs to perform certain operations to unlock the electronic device, such as pressing the power button, touching the fingerprint recognition area with a finger for fingerprint authentication, lifting the phone and turning the face to authenticate the face, etc., wherein the user can use the electronic device normally only after the electronic device authenticates the user. If the electronic device is determined to be in the lock screen state, jump to S503 and continue to execute the subsequent judgment process, otherwise it is determined that the current state is not in the third preset scene.
[0259] S503: The electronic device determines whether the physical posture remains unchanged during the first period of time.
[0260] For details on the first period and physical posture, see Figure 3If the electronic device determines that the physical posture remains unchanged during the first period of time, the process jumps to S504, otherwise it determines that the current scene is not in the third preset scene.
[0261] S504: The electronic device determines whether no touch event is received within the second time period.
[0262] For details on the second time period and the touch event, please refer to Figure 3 If the electronic device determines that no touch event is received within the second period, it determines that the device is currently in the third preset scene; otherwise, it determines that the device is not currently in the third preset scene.
[0263] It can be understood that the execution order of S503 and S504 is not limited to executing S503 first and then executing S504. It can also be executing S504 first and then executing S503, or S503 and S504 are executed simultaneously.
[0264] Understandably, in Fig.10 In the judgment process of the example, the electronic device will first determine whether it is in a locked screen state. When the judgment result is yes, the electronic device will perform subsequent judgments, thereby avoiding unnecessary power consumption and overhead.
[0265] When the electronic device determines that it is in the third preset scene and receives a message, it can obtain and store the index of the message. For details, please refer to the description of obtaining and storing the index of the message when the electronic device determines that it is in the first preset scene (for example Figure 5 ). In some embodiments, the electronic device may send the index of the obtained unread messages to a neighboring device, wherein the neighboring device is a device to which the electronic device is connected via a wired or wireless manner.
[0266] See also Fig.11 , Fig.11 A schematic diagram of another intelligent voice interaction scenario is shown as an example.
[0267] like Fig.11 As shown, the space shown in scene 3 includes 5 areas: area 110, area 120, area 130, area 140 and area 150. Exemplarily, the space shown in scene 3 is a home, and each area is a room in the home. At least one of the areas may include an electronic device. For example, area 120 includes an electronic device 100 and a smart TV. The electronic device 100 can be placed on the bed with the display facing up. Area 150 includes a smart speaker 151, and user A is in area 150. User A is far away from the electronic device 100 located in area 120. The electronic device 100 can establish a connection and communication with any electronic device in the space shown in scene 3 through, but not limited to, a wired method (such as USB, coaxial cable, etc.) or a wireless method (such as Bluetooth, Wi-Fi, etc.).
[0268] In some embodiments, the electronic device 100 may first determine whether it is in the third preset scene. For example, after user A places the electronic device 100 on the bed in area 120, he may go to other areas such as area 150 to clean. The electronic device 100 may perform subsequent judgments when it detects that it is connected to at least one device wirelessly and is in a locked screen state, for example Fig.10 S503-S504 shown. Assuming that the electronic device 100 determines that it is in the third preset scene, when a message is subsequently received, the index of the message can be directly obtained and stored. In other embodiments, the electronic device 100 can determine whether it is in the third preset scene after receiving the message, and obtain and store the index of the message when it is determined to be in the third preset scene.
[0269] For instructions on how to enable the voice interaction function of the electronic device 100, please refer to the above Figure 7 Instructions for enabling the voice interaction function of the electronic device 100.
[0270] In some embodiments, the neighboring device may be any device other than the electronic device 100 in the space shown in scene 3. In some embodiments, the electronic device 100 may send the index of the unread message to the neighboring device. Fig.11 The description is made by taking the example of a smart speaker 151 in area 150 as an adjacent device.
[0271] For example, Fig.11As shown, after the electronic device 100 determines that it is in the third preset scene, it turns on the voice interaction function. The electronic device 100 and any of the adjacent devices can receive the user's voice input, and determine the way to play the message (such as whether to play the unread message, the content of the play, etc.) according to the user's voice input and the index of the stored unread messages. When user A perceives that the electronic device 100 has received a message, such as hearing the prompt sound of the electronic device 100 or the smart speaker 151, or wants to know whether the electronic device 100 has received a message, etc., user A can output the fourth voice: "Play the latest message of user E who sent a short message". The electronic device 100 and the smart speaker 151 that receive the fourth voice can determine that the device closer to user A is the smart speaker 151 according to the strength of the sound received by each, and the smart speaker 151 can determine the way to play the unread message according to the fourth voice and the index of the unread message. Exemplarily, the smart speaker 151 can extract the keywords of the fourth voice: "short message", "user E" and "latest one", and then determine the index that matches the keywords, that is, the application that receives the message is short message, the contact who sends the message is user E, and the index of the latest unread message received is assumed to be the fourth message (the message content is assumed to be message C). The electronic device 100 can determine that the playback content is the specific content of the fourth message based on the fourth voice and the index of the fourth message, and the electronic device 100 can play the fourth audio: "User E sends message C via short message at 7 o'clock".
[0272] Not limited to the above examples, in other embodiments, the device closer to user A can also be determined by other means such as infrared, and the device closest to the user responds to the user. In other embodiments, it is not the device closer to user A that performs voice interaction with the user, but the device that interacts with the user's voice is determined based on the user's voice input. For example, the voice wake-up word corresponding to the electronic device 100 is: "Little A", and the voice wake-up word corresponding to the smart speaker 151 is: "Little B". In other embodiments, the electronic device 100 and the adjacent device that receive the user's voice input may respond to the user. This application does not limit the method of determining the device that interacts with the user's voice.
[0273] It can be understood that not only can voice interaction be performed between the electronic device 100 and the user to provide the user with the desired playback content, that is, the function of intelligent voice interaction is realized, but the function of intelligent voice interaction can also be realized through adjacent devices connected to the electronic device 100, thereby expanding the full-scene ecology and making the interactive experience more friendly.
[0274] Not limited to the above examples, in other embodiments, the electronic device can also determine whether it is in a preset scene in combination with the network connection status (for example, whether the mode of the mobile network has been switched multiple times). In other embodiments, the electronic device can also be connected to a car to determine whether it is in a preset scene based on the data transmitted by the car. This application does not limit the specific method of determining whether it is in a preset scene, but it should be noted that the electronic device will always determine whether the physical posture remains unchanged during the first period of time, and whether a touch event is received during the second period of time.
[0275] In some embodiments, the electronic device can respond to user operations and turn on the voice interaction function. After the voice interaction function is turned on, the electronic device can first determine whether it is in a preset scene. If it is determined that it is in the preset scene, if a message is received, it will obtain and store the index of the message. The specific examples are as follows: Fig.12 shown.
[0276] See also Fig.12 , Fig.12 A schematic diagram exemplarily shows a user interface.
[0277] like Fig.12 As shown, the electronic device 100 can display a user interface 1200, and the user interface 1200 can be a notification interface. The user interface 1200 may include a quick operation box 1210 and a notification bar 1220. The quick operation box 1210 may include multiple operation controls, such as but not limited to a control for turning on or off a WLAN option, a control for turning on or off a Bluetooth option, a control for turning on or off mobile data, a control for turning on or off a silent mode, and a control 1210A for turning on or off an intelligent voice interaction. The notification bar 1220 can be used to display notification messages, such as notification messages of video applications. The electronic device 100 can receive a user operation (such as a touch operation) acting on the control 1210A, and in response to the user operation, turn the voice interaction function on or off. Not limited to Fig.12 In some other examples, the electronic device 100 may also receive a user's voice input to turn on or off the voice interaction function. This application does not limit the user operation of turning on or off the voice interaction function.
[0278] Not limited to the above examples, in other embodiments, the electronic device can also respond to user operations and set the voice interaction function to be enabled during a preset time period (for example, between 11:00 and 12:00 noon).
[0279] Understandably, the electronic device will not play the message directly after receiving it, but will choose whether to play it according to the voice input and the index of the stored unread messages after receiving the user's voice input, so as to avoid affecting the user's work and ensure privacy. Moreover, even if the electronic device does not display the notification of the unread message when the user wants to obtain the unread message (for example, the notification has been hidden or the display screen of the electronic device is turned off, etc.), the user can directly obtain the content of the unread message through voice interaction, which greatly facilitates the user's use and makes the interactive experience more friendly.
[0280] Based on Figure 1-Figure 12 Some embodiments are shown, and the method of intelligent voice interaction provided by the present application is introduced next.
[0281] See also Fig.13 , Fig.13 is a flow chart of a method for intelligent voice interaction provided by an embodiment of the present application. The method can be applied to Figure 1 The electronic device 100 shown. The method can be applied to Figure 2 The electronic device 100 is shown. The method may include but is not limited to the following steps:
[0282] S601: The electronic device receives a first message.
[0283] Specifically, the first message may be, but is not limited to, a message sent by other users (e.g., a message sent by a system application such as a short message, a message sent by a third-party application such as a social application), an advertisement, a notification, a prompt, etc. pushed by a system application or a third-party application. When the electronic device receives a message, it may determine whether it is in a preset scene, for details, see S602. When the electronic device receives the first message, it may store detailed information of the first message.
[0284] S602: The electronic device determines that it is in a preset scene.
[0285] In some embodiments, the electronic device can determine whether the physical posture of the electronic device remains unchanged during a first time period, and determine whether no touch event is received during a second time period. If the judgment result is yes, it is determined to be in a preset scene. The first time period and the second time period may be the same or different. A touch event is, for example, an event corresponding to a touch operation acting on the electronic device. Failure to receive a touch event means that no touch operation is received. Not limited to this, when the electronic device determines whether it is in a preset scene, it may also first determine whether the moving speed is greater than or equal to a preset speed threshold, first determine whether the application running in the foreground is a specific application, and so on. An example of the judgment process can be found above. Figure 3 , Figure 4 , Figure 8 , Fig.10 .
[0286] S603: The electronic device obtains and stores the index of the first message.
[0287] In some embodiments, when the electronic device is determined to be in a preset scenario and receives a message through a system application such as a short message, the index of the message can be obtained using the existing functions of the electronic device itself. In other embodiments, when the electronic device is determined to be in a preset scenario and receives a message through a third-party application outside the system application (such as a social application), the index of the message can be obtained using the first permission that has been granted. The first permission is the permission to obtain relevant information of unread messages of the third-party application. In other embodiments, when the electronic device is determined to be in a preset scenario and receives a message through a third-party application outside the system application (such as a social application), the index of the unread message can be obtained by screenshot, image recognition, etc. Optionally, the module that obtains and stores the index of the unread message is called an intelligent voice interaction module, and the third-party application is an application that has not granted the first permission to the intelligent voice interaction module. For specific examples, please refer to the description of obtaining and storing the index of the message when the electronic device is determined to be in the first preset scenario.
[0288] The index of the first message includes, for example but not limited to, at least one of the following: the time when the first message is received, the application receiving the first message, the contact sending the first message, part or all of the content of the first message, and the storage path of the first message. For example, the storage path of the first message is the path for storing detailed information of the first message in S601.
[0289] S604: The electronic device receives a user's voice input.
[0290] S605: The electronic device determines a method for playing the unread messages based on the user's voice input and the index of the unread messages.
[0291] Specifically, the electronic device can perform recognition processing on the user's voice input, such as recognizing semantics and extracting keywords, and then determine whether there is an index of unread messages that matches the user's voice input, such as an index of unread messages that matches the keywords, based on the result of the recognition processing. If the electronic device determines that there is an index of matching unread messages, it determines the content to be played based on the user's voice input and the index. For specific examples, see the above Figure 7 and Fig. 9. In some embodiments, the electronic device recognizes the semantics of the user's voice and / or extracts keywords, and determines the type of content to be played (which may be referred to as the first type) based on the recognized semantics and / or extracted keywords. In some embodiments, when the index of the matched unread information includes information of the first type, the electronic device can directly play the corresponding content based on the index. In other embodiments, when the index of the matched unread information does not include information of the first type, the electronic device can find the content to be played based on the index for subsequent playback, such as determining the storage path of the detailed information of the first message based on the index, obtaining the detailed information of the first message under the storage path, and obtaining the first type of information in the first message based on the detailed information.
[0292] Not limited to the above examples, in other embodiments, the electronic device may also send the index of the unread message to the connected adjacent device. Any of the electronic device and the adjacent device may receive the user's voice input, and determine the way to play the unread message based on the user's voice input and the index of the unread message. For specific examples, see the above Fig.11 .
[0293] In other embodiments, the electronic device may also determine whether it is in a preset scenario before receiving an unread message. The specific method flow is as follows: Fig.14 shown.
[0294] See also Fig.14 , Fig.14 is a flowchart of another intelligent voice interaction method provided by an embodiment of the present application. The method can be applied to Figure 1 The electronic device 100 shown. The method can be applied to Figure 2 The electronic device 100 is shown. The method may include but is not limited to the following steps:
[0295] S701: The electronic device determines that it is in a preset scene.
[0296] In some embodiments, the electronic device can determine whether the physical posture of the electronic device remains unchanged during a first time period, and determine whether no touch event is received during a second time period. If the judgment result is yes, it is determined to be in a preset scene. The first time period and the second time period may be the same or different. A touch event is, for example, an event corresponding to a touch operation acting on the electronic device. Failure to receive a touch event means that no touch operation is received. Not limited to this, when the electronic device determines whether it is in a preset scene, it may also first determine whether the moving speed is greater than or equal to a preset speed threshold, first determine whether the application running in the foreground is a specific application, and so on. An example of the judgment process can be found above. Figure 3 , Figure 4 , Figure 8 , Fig.10 .
[0297] In some embodiments, the electronic device may periodically perform a judgment process to determine whether it is in a preset scene. In some embodiments, after the electronic device 100 performs the judgment process, if it is determined to be in a preset scene, it may perform subsequent S702-S706, which may be called turning on the voice interaction function. The next time the electronic device performs the judgment process, if it is determined to be in a preset scene, the voice interaction function is kept turned on, and if it is determined not to be in a preset scene, the voice interaction function is turned off. For examples of voice interaction functions, see Figure 7 Instructions for enabling the voice interaction function of the electronic device 100.
[0298] In some embodiments, the electronic device can respond to user operations and enable the voice interaction function. In other embodiments, the electronic device can respond to user operations and continuously or periodically determine whether it is in a preset scene, and then enable the voice interaction function when it is determined to be in the preset scene. For examples of user operations, see Fig.12 .
[0299] S702: The electronic device receives a first message.
[0300] For details, please refer to Fig.13 Description of S601. When the electronic device receives the first message, it can store detailed information of the first message.
[0301] S703: The electronic device obtains and stores the index of the first message.
[0302] S704: The electronic device receives a user's voice input.
[0303] S705: The electronic device determines a method for playing the unread messages based on the user's voice input and the index of the unread messages.
[0304] Specifically, S703-S705 and Fig.13 Similar to S603-S605, please refer to Fig.13 Description of S603-S605.
[0305] In some embodiments, the electronic device may delete the index of the first message after outputting the first message in response to the user operation for obtaining the first message, which may be understood as deleting the index of the read message. Figure 7 , Fig. 9 , Fig.11 The index of the first message may be deleted after the process shown, or the index of the first message may be deleted after the electronic device displays the specific content of the first message in response to the touch operation for obtaining the first message.
[0306] In some embodiments, the electronic device may only store the index of unread messages received within a preset time period, for example, only store the index of unread messages received within 24 hours, that is, only store the index of unread messages whose difference between the receiving time and the current time is less than or equal to 24 hours, and delete the index of unread messages whose difference is greater than 24 hours.
[0307] In some embodiments, the algorithm for storing and obtaining the index of the message by the electronic device may be referred to as the first algorithm. When the electronic device only receives the message but is not sure that it is in the preset scene, the flag bit of the first algorithm may be set to 0, and the electronic device will not execute the first algorithm. When the electronic device determines that it is in the preset scene and receives the message, the flag bit of the first algorithm is set to 1, and the electronic device may execute the first algorithm.
[0308] In some embodiments, the electronic device determines that it is not in a preset scene, such as Figure 3 When the judgment result of any one of S101-S103 is no, it is determined that the scene is not the first preset scene. Figure 4 When the judgment result of any one of S201, S203-S204 is no, it is determined that the scene is not in the first preset scene, Figure 8 When the judgment result of any one of S401-S403 is no, it is determined that the scene is not in the second preset scene, Fig.10 When the judgment result of any one of S501-S504 is no, it is determined that it is not in the third preset scene. When the electronic device determines that it is not in the preset scene, when receiving a message, the electronic device can directly store the message, but does not obtain and store the index of the message, nor does it determine the way to play the unread message based on the user's voice input and the index of the unread message, and respond to the user's voice input.
[0309] In the present application, the electronic device can determine that it is in a preset scene and when a message is received, it can obtain and store the index of the message. The electronic device 100 can interact with the user by voice based on the index of unread messages, which is faster, more efficient, more accurate, and saves device power consumption compared to directly determining the content to be played from a large amount of stored content based on user voice input.
[0310] In addition, the indexes of read messages or messages that have not been read for a preset period of time can be deleted to prevent storage space from being occupied by messages that are not of interest to the user, are not urgent, are not important to the user, or have been read, thereby improving product usability.
[0311] It should be noted that in the embodiments of the present application, "at least one" refers to one or more, and more refers to two or more. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that, unless otherwise specified in the present application, " / " means or. For example, A / B can represent A or B. "And / or" in the present application is only a description of the association relationship of associated objects, indicating that there can be three relationships. It should be noted that in the embodiments of the present application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. Features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" are intended to present the relevant concepts in a concrete fashion.
[0312] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program or hardware related to the computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store computer program codes.
Claims
1. A method for intelligent voice interaction, characterized in that: Applied to a first device, the method includes: Make sure you are in the preset scene; receiving a first message; Determine and store an index of the first message, where the index of the first message includes at least one of the following: a time when the first message is received, an application that receives the first message, contact information that sends the first message, part or all of the content of the first message, and a storage path of the first message; receiving a first voice command, wherein the first voice command is used to play unread messages; determining a keyword of the first voice command; determining an index of the first message according to a keyword of the first voice command; generating first information according to the index of the first message, wherein the type of the first information is determined according to a keyword of the first voice command; The first information is played, where the first information includes at least one item of information in the index of the first message.
2. The method according to claim 1, characterized in that The determining that the scene is in a preset scenario includes: Determining whether the moving speed of the first device is greater than or equal to a preset speed threshold; When the moving speed of the first device is greater than or equal to the preset speed threshold, determining whether the first device has not received any touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; When the first device does not receive a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, it is determined that the device is in the preset scene.
3. The method according to claim 1, characterized in that The determining that the scene is in a preset scenario includes: Determining whether the moving speed of the first device is greater than or equal to a preset speed threshold; When the moving speed of the first device is greater than or equal to the preset speed threshold, determining whether the first device displays a preset user interface of the first application; When the first device displays the user interface of the first application, determining whether the first device does not receive a touch operation within a first time period; When the first device does not display the user interface of the first application, determining whether the first device does not receive a touch operation within the first time period, and whether the physical posture of the first device remains unchanged within a second time period; When the first device displays the user interface of the first application, when the first device does not receive a touch operation in the first time period, it is determined to be in the preset scene; or, when the first device does not display the user interface of the first application, when the first device does not receive a touch operation in the first time period and the physical posture of the first device remains unchanged in the second time period, it is determined to be in the preset scene.
4. The method according to claim 1, characterized in that The determining that the scene is in a preset scenario includes: Determining whether the first device displays a preset user interface of a second application; When the first device displays the user interface of the second application, determining whether the first device does not receive a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; When the first device does not receive a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, it is determined that the device is in the preset scene.
5. The method according to claim 1, characterized in that The determining that the scene is in a preset scenario includes: Determining whether the first device is connected to a second device via a wireless communication protocol; When the first device is connected to the second device through a wireless communication protocol, determining whether the first device is in a locked screen state; When the first device is in a locked screen state, determining whether the first device has not received a touch operation within a first time period, and whether the physical posture of the first device remains unchanged within a second time period; When the first device does not receive a touch operation within the first time period, and the physical posture of the first device remains unchanged within the second time period, it is determined that the device is in the preset scene.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: saving the first message; The determining and storing the index of the first message includes: Determine an index of the first message according to the saved first message; An index of the first message is stored.
7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the first device displays a notification of the first message, performing a screen capture operation to generate a first image; The determining and storing the index of the first message includes: determining an index of the first message according to the first image; An index of the first message is stored.
8. The method according to claim 7, characterized in that The determining the index of the first message according to the first image includes: determining a first area in the first image where a notification of the first message is located; identifying content in the first area; An index of the first message is determined according to content in the first area.
9. The method according to claim 8, characterized in that The index of the first message includes the time when the first message is received; and determining the index of the first message according to the first image includes: When the first area in the first image where the notification of the first message is located includes time information, determining the time in the first area as the moment of receiving the first message; When the first area does not include time information, the generation time of the first image is determined to be the time of receiving the first message.
10. The method according to claim 7, characterized in that Before determining the index of the first message according to the first image, the method further includes: determining an application program for receiving the first message according to the first image; Determining whether the application receiving the first message is a preset third application; The determining the index of the first message according to the first image includes: when an application receiving the first message is the third application, determining the index of the first message according to the first image.
11. The method according to any one of claims 1 to 5, characterized in that: The first device stores an index of the second message, and determining the index of the first message according to the keyword of the first voice command includes: According to a keyword of the first voice command, an index of the first message is selected from an index of the first message and an index of the second message.
12. The method according to any one of claims 1 to 5, characterized in that: The method further includes: saving the first message; The generating first information according to the index of the first message includes: Searching for the saved first message according to the index of the first message; The first information is generated according to the saved first message.
13. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the first message is a read message, the index of the first message is deleted, and the first message is a read message after the first message is played.
14. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the duration for which the first device stores the index of the first message is greater than or equal to a preset duration, the index of the first message is deleted.
15. An electronic device, characterized in that: The method comprises a transceiver, a processor and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the method according to any one of claims 1 to 14.
16. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
