Context-sensitive handling of interrupts

By assigning an urgency value to the digital assistant's notification items and adjusting them according to the user context, the problem of the digital assistant being unable to actively provide information and intelligently interrupting the user is solved, achieving the ability to promptly notify important information without disturbing the user.

CN112230878BActive Publication Date: 2024-09-27APPLE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011262218.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2013-03-15
Filing Date
2014-03-14
Publication Date
2024-09-27
Estimated Expiration
2034-03-14

AI Technical Summary

Technical Problem

Existing digital assistants are largely reactive, unable to proactively determine what information a user needs and provide it without requesting it, and unable to intelligently decide whether and how to interrupt the user to provide information.

Method used

The digital assistant dynamically and intelligently assigns an urgency value to notification items, provides audio prompts only when the urgency reaches a predetermined threshold, and adjusts the urgency value based on user context, location, time, and device settings to determine whether and how to alert items. Disconnect the user.

Benefits of technology

It realizes the ability to notify users of important information in a timely manner without disturbing them, and avoids the risk of missing important information due to low-priority notifications interrupting users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112230878B_ABST
    Figure CN112230878B_ABST
Patent Text Reader

Abstract

The present invention relates to context-dependent processing of interrupts. Specifically, a list of notification items is received, the list including a plurality of notification items, wherein each respective notification item in the plurality of notification items is associated with a respective urgency value. An information item is detected. In some embodiments, the information item is a communication (e.g., an email). In some embodiments, the information item is a change in context of a user. Upon determining that the information item is related to an urgency value of a first notification item, the urgency value of the first notification item is adjusted. Upon determining that the adjusted urgency value meets a predetermined threshold, a first audio prompt is provided to the user.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application number 2014800113099, application date March 14, 2014, and invention name “Context-dependent processing of interrupts”.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This patent application claims the benefit of U.S. Provisional Patent Application No. 61 / 799,996, filed on March 15, 2013, and entitled “CONTEXT-SENSITIVE HANDLINGOF INTERRUPTIONS,” which is hereby incorporated by reference in its entirety for all purposes. Technical Field

[0004] The disclosed embodiments relate generally to digital assistants, and more particularly to digital assistants that intelligently handle notifications based on current context. Background Art

[0005] Just like a human personal assistant, a digital assistant or virtual assistant can perform requested tasks and provide requested advice, information, or services. The ability of the assistant to satisfy the user's request depends on the assistant's correct understanding of the request or instruction. Recent developments in natural language processing have enabled users to interact with digital assistants using natural language in spoken or textual form, rather than using conventional user interfaces (e.g., menus or programmed commands). Such digital assistants can interpret the user's input to infer the user's intent, convert the inferred intent into executable tasks and parameters, perform operations or deploy services to perform tasks, and generate output that can be understood by the user. Ideally, the output generated by the digital assistant should implement the user's intent expressed during the natural language interaction between the user and the digital assistant system.

[0006] However, many digital assistants are merely reactive, i.e., they provide output to the user only in response to a user request for information. For example, a digital assistant will provide driving directions when the user asks them, will set reminders, search the web, etc. But the usefulness of a digital assistant is inherently limited by simply reacting to open requests for information. Human personal assistants, on the other hand, are proactive. They can determine what information someone may need and provide it before requesting it. Moreover, they can determine whether and how to interrupt the user to provide such information in the most appropriate manner.

[0007] Therefore, there is a need for methods of operating digital assistants that intelligently and intuitively determine what information to provide to a user without first receiving a specific request for it, and that intelligently determine what information is worth interrupting the user and how to present that information in an appropriate manner. Summary of the invention

[0008] The embodiments described below provide an improved method for providing audio prompts associated with notification items. Specifically, in some embodiments, the digital assistant dynamically and intelligently assigns urgency values ​​to notifications in a notification list, and only provides audio prompts when the urgency value meets a predetermined threshold. Therefore, in view of the fact that traditional notification technologies either provide all notifications to the user, or do not provide notifications (for example, if the device has been placed in silent mode), the present method allows the digital assistant to intelligently determine whether to interrupt the user based on the urgency of the message and the user context. In addition, in some specific implementations, the digital assistant detects changing conditions and monitors new incoming notifications to adjust the urgency values ​​of existing notification items. Therefore, the digital assistant provides real-time identification of user notifications, so that the user will not miss truly important notifications simply because the user does not want to be interrupted by notifications of sports score updates during a business lunch, including notifications that have recently become important only because of changes in conditions or newly received information.

[0009] Embodiments disclosed herein provide methods, systems, computer-readable storage media, and user interfaces for a digital assistant to intelligently and dynamically determine whether to provide voice output. The method includes providing a list of notification items, the list including a plurality of notification items, wherein each respective notification item in the plurality of notification items is associated with a respective urgency value. The method further includes detecting an information item, and determining whether the information item is associated with an urgency value of a first notification item in the plurality of notification items. The method further includes adjusting the urgency value of the first notification item when it is determined that the information item is associated with the urgency value of the first notification item. The method further includes determining whether the adjusted urgency value of the first notification item meets a predetermined threshold, and providing a first audio prompt to the user when it is determined that the adjusted urgency value meets the predetermined threshold.

[0010] In some embodiments, the method further includes establishing a predetermined threshold value based on the location of the device. In some embodiments, the method further includes establishing a predetermined threshold value based on the time of day. In some embodiments, the method further includes establishing a predetermined threshold value based on a calendar item associated with the current time. In some embodiments, the method further includes establishing a predetermined threshold value based on a user setting of the device.

[0011] In some embodiments, the information item is one of the group consisting of: an email; a voicemail; and a text message. In some embodiments, the information item is an application notification. In some embodiments, the information item is a change in device context.

[0012] In some embodiments, the method further comprises detecting two items of information comprising at least a change in the context of the communication and the device.

[0013] In some implementations, the corresponding urgency value is based on one or more of: a time associated with the corresponding notification item; a location associated with the corresponding notification item; and content of the corresponding notification item.

[0014] In some embodiments, the method further includes determining a topic that is important to a user of the device, and assigning at least one of the corresponding urgency values ​​to the corresponding notification item based on determining that the corresponding notification item corresponds to an important topic. In some specific implementations, the importance topic is automatically determined by the device without human intervention.

[0015] In some implementations, determining whether the information item is associated with the urgency value of the first notification item includes determining whether the information item corresponds to a change in a location associated with the first notification item. In some implementations, determining whether the information item is associated with the urgency value of the first notification item includes determining whether the information item corresponds to a change in a time associated with the first notification item.

[0016] In some embodiments, the method further comprises delaying providing an audio prompt to the user upon determining that the adjusted urgency value does not satisfy a predetermined threshold.

[0017] In some embodiments, detecting the information item includes receiving an incoming communication, and determining whether the information item is associated with the urgency value of the first notification item is performed in response to receiving the incoming communication.

[0018] In some embodiments, the method further includes determining whether the user has acknowledged the first audio prompt; and when it is determined that the user has not acknowledged the first audio prompt, providing a second audio prompt to the user, the second audio prompt being different from the first audio prompt. In some embodiments, the second audio prompt is louder than the first audio prompt. In some embodiments, the second audio prompt is longer than the first audio prompt. In some embodiments, the first audio prompt is a first ringtone, and the second audio prompt is a second ringtone that is different from the first ringtone.

[0019] In some embodiments, the method further includes determining whether the user has confirmed the second audio prompt; when it is determined that the user has not confirmed the second audio prompt, providing a third audio prompt to the user, the third audio prompt being different from the first audio prompt and the second audio prompt. In some embodiments, the third audio prompt is a voice output. In some embodiments, the first audio prompt is a ringtone, the second audio prompt is a first voice output at a first volume, and the third audio prompt is a second voice output at a second volume louder than the first volume. In some embodiments, the first audio prompt is a ringtone, the second audio prompt is a first voice output of a first length, and the third audio prompt is a second voice output of a second length longer than the first length.

[0020] In some embodiments, the method further includes incorporating information from the information item into the first notification item.

[0021] According to some embodiments, the electronic device includes a display, a touch-sensitive surface, one or more optional sensors for detecting the intensity of contact with the touch-sensitive surface, one or more processors, a memory, and one or more programs; the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for performing the operations of any of the above methods. According to some embodiments, a computer-readable storage medium stores therein instructions that, when executed by an electronic device having a display, a touch-sensitive surface, and one or more optional sensors for detecting the intensity of contact with the touch-sensitive surface, cause the device to perform the operations of any of the above-mentioned methods. According to some embodiments, the electronic device includes: a display, a touch-sensitive surface, one or more optional sensors for detecting the intensity of contact with the touch-sensitive surface; and a device for performing the operations of any of the above methods. According to some embodiments, an information processing device used in an electronic device having a display and a touch-sensitive surface, and one or more optional sensors for detecting the intensity of contact with the touch-sensitive surface includes a device for performing the operations of any of the above methods.

[0022] The details of one or more specific implementations of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a block diagram illustrating an environment in which a digital assistant operates according to some embodiments.

[0024] Figure 2 is a block diagram illustrating a digital assistant client system according to some embodiments.

[0025] Figure 3A is a block diagram illustrating a digital assistant system or a server portion thereof according to some embodiments.

[0026] Figure 3B is a diagram showing a method according to some embodiments Figure 3A A block diagram of the functionality of the digital assistant shown in FIG.

[0027] Figure 3C is an illustration of a portion of an ontology according to some embodiments.

[0028] Figure 4A-4C An exemplary scenario is shown in accordance with some embodiments in which a digital assistant determines whether to provide voice output.

[0029] Figure 5A-5D is a flowchart of an exemplary method implemented by a digital assistant according to some embodiments for determining whether to provide voice output to a user based on determining whether the device is currently receiving voice input from the user and the urgency of the voice output.

[0030] Figure 6 is a flow chart of an exemplary method for managing a notification list implemented by a digital assistant according to some embodiments.

[0031] Like reference numerals designate corresponding parts throughout the drawings. DETAILED DESCRIPTION

[0032] Figure 1 is a block diagram of an operating environment 100 of a digital assistant according to some embodiments. The terms "digital assistant," "virtual assistant," "intelligent automated assistant," or "automatic digital assistant" refer to any information processing system that interprets natural language input in spoken and / or textual form to infer user intent and performs actions based on the inferred user intent. For example, to implement the inferred user intent, the system may perform one or more of the following: identify a task flow using steps and parameters designed to implement the inferred user intent, input specific requirements from the inferred user intent into the task flow, execute the task flow by calling a program, method, service, API, etc.; and generate an output response to the user in the form of an auditory (e.g., voice) and / or visual form.

[0033] Specifically, the digital assistant can accept user requests that are at least partially natural language commands, requests, statements, narratives and / or inquiry forms. Typically, the user request either seeks to be answered informatively by the digital assistant, or seeks to be performed by the digital assistant. A satisfactory response to the user request is usually to provide the requested informative response, perform the requested task, or a combination of the two. For example, the user may ask the digital assistant a question, such as "where am I now?" Based on the user's current location, the digital assistant can answer "you are near the west gate of Central Park." The user can also request to perform a task, for example, "please invite my friends to my girlfriend's birthday party next week." In response, the digital assistant can confirm the request by saying "OK, right away", and then send appropriate calendar invitations to each friend of the user listed in the user's electronic address book on behalf of the user. During the execution of the requested task, the digital assistant sometimes interacts with the user in a continuous dialogue, which involves exchanging information multiple times over an extended period of time. There are many other ways to interact with the digital assistant to request information or perform various tasks. In addition to providing verbal responses and taking programmed actions, digital assistants can also provide responses in other visual or audio forms, such as text, alerts, music, video, animation, etc.

[0034] An example of a digital assistant is described in applicant's U.S. utility patent application serial number 12 / 987,982, filed on January 10, 2011, for "Intelligent Automated Assistant," the entire contents of which are incorporated herein by reference.

[0035] like Figure 1 As shown in , in some embodiments, the digital assistant is implemented according to a client-server model. The digital assistant includes a client portion 102a, 102b (hereinafter referred to as "DA client 102") executed on a user device 104a, 104b, and a server portion 106 (hereinafter referred to as "DA server 106") executed on a server system 108. The DA client 102 communicates with the DA server 106 via one or more networks 110. The DA client 102 provides client functions, such as user-oriented input and output processing, and communicates with the DA server 106. The DA server 106 provides server-side functions for any number of DA clients 102, each of which resides on a corresponding user device 104.

[0036] In some embodiments, the DA server 106 includes a client-facing I / O interface 112, one or more processing modules 114, data and models 116, and an I / O interface 118 to external services. The client-facing I / O interface facilitates client-facing input and output processing for the digital assistant server 106. One or more processing modules 114 utilize the data and models 116 to determine the user's intent based on natural language input and perform tasks based on the inferred user intent. In some embodiments, the DA server 106 communicates with external services 120 via one or more networks 110 for completing tasks or collecting information. The I / O interface 118 to external services facilitates such communications.

[0037] Examples of user devices 104 include, but are not limited to, handheld computers, personal digital assistants (PDAs), tablet computers, laptop computers, desktop computers, cellular phones, smart phones, enhanced general packet radio service (EGPRS) mobile phones, media players, navigation devices, game consoles, televisions, remote controls, or any combination of two or more of these data processing devices or other data processing devices. For more details about user devices 104, see Figure 2 An exemplary user device 104 is shown in FIG.

[0038] Examples of one or more communication networks 110 include local area networks ("LANs") and wide area networks ("WANs"), such as the Internet. One or more communication networks 110 may be implemented using any known network protocol, including various wired or wireless protocols, such as, for example, Ethernet, Universal Serial Bus (USB), FireWire, Global System for Mobile Communications (GSM), Enhanced Data GSM Environment (EDGE), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Bluetooth, Wi-Fi, Voice over Internet Protocol (VoIP), Wi-MAX, or any other suitable communication protocol.

[0039] The server system 108 may be implemented on one or more independent data processing devices or distributed networks of computers. In some embodiments, the server system 108 also uses various virtual devices and / or services of third-party service providers (e.g., third-party cloud service providers) to provide potential computing resources and / or infrastructure resources of the server system 108.

[0040] although Figure 1 The digital assistant shown in includes both a client side portion (e.g., DA client 102) and a server side portion (e.g., DA server 106), but in some embodiments, the functionality of the digital assistant is implemented as a standalone application installed on a user device. In addition, the functional division between the client and server portions of the digital assistant may be different in different embodiments. For example, in some embodiments, the DA client is a thin client that only provides user-oriented input and output processing functions and delegates all other functions of the digital assistant to a backend server.

[0041] Figure 2 1 is a block diagram of a user device 104 according to some embodiments. The user device 104 includes a memory interface 202, one or more processors 204, and a peripheral device interface 206. Various components in the user device 104 are coupled via one or more communication buses or signal lines. The user device 104 includes various sensors, subsystems, and peripheral devices coupled to the peripheral device interface 206. The sensors, subsystems, and peripheral devices collect information and / or facilitate various functions of the user device 104.

[0042] For example, motion sensor 210, light sensor 212, and proximity sensor 214 are coupled to peripheral device interface 206 to facilitate orientation, lighting, and proximity sensing functions. One or more other sensors 216 such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, a gyroscope, a compass, an accelerometer, etc. are also connected to peripheral device interface 206 to facilitate related functions.

[0043] In some embodiments, camera functions, such as taking pictures and recording video clips, are facilitated using camera subsystem 220 and optical sensor 222. Communication functions may be facilitated by one or more wired and / or wireless communication subsystems 224, which may include various communication pods, radio frequency receivers and transmitters, and / or optical (e.g., infrared) receivers and transmitters. Audio subsystem 226 may be coupled to speaker 228 and microphone 230 to facilitate voice-enabled functions, such as voice recognition, voice replication, digital recording, and telephony functions.

[0044] In some embodiments, the I / O subsystem 240 is also coupled to the peripherals interface 206. The I / O subsystem 240 includes a touch screen controller 242 and / or one or more other input controllers 244. The touch screen controller 242 is coupled to a touch screen 246. The touch screen 246 and the touch screen controller 242 may detect contact and movement or their interruption, for example, using any of a variety of touch sensitivity technologies, such as capacitive technology, resistive technology, infrared technology, surface acoustic wave technology, proximity sensor arrays, etc. The one or more other input controllers 244 may be coupled to other input / control devices 248, such as one or more buttons, rocker switches, thumb wheels, infrared ports, USB ports, and / or pointer devices such as a stylus.

[0045] In some embodiments, memory interface 202 is coupled to memory 250. Memory 250 may include high-speed random access memory and / or non-volatile memory, such as one or more magnetic disk storage devices, one or more optical storage devices, and / or flash memory (eg, NAND, NOR).

[0046] In some embodiments, the memory 250 stores an operating system 252, a communication module 254, a user interface module 256, a sensor processing module 258, a phone module 260, and an application 262. The operating system 252 includes instructions for handling basic system services and for performing hardware-related tasks. The communication module 254 facilitates communication with one or more additional devices, one or more computers, and / or one or more servers. The user interface module 256 facilitates graphical user interface processing and output processing using other output channels (e.g., speakers). The sensor processing module 258 facilitates sensor-related processing and functions. The phone module 260 facilitates phone-related processes and functions. The application module 262 facilitates various functions of user applications, such as electronic messaging, web browsing, media processing, navigation, imaging, and / or other processes and functions.

[0047] As described herein, the memory 250 also stores client digital assistant instructions (e.g., in a digital assistant client module 264) and various user data 266 (e.g., user-specific vocabulary data, preference data, and / or other data, such as a user's electronic address book, to-do list, shopping list, etc.) to provide the client functionality of the digital assistant.

[0048] In various embodiments, the digital assistant client module 264 can accept voice input (e.g., speech input), text input, touch input, and / or gesture input through various user interfaces (e.g., I / O subsystem 244) of the user device 104. The digital assistant client module 264 can also provide output in the form of audio (e.g., voice output), video, and / or tactile. For example, the output can be provided as voice, sound, alert, text message, menu, graphic, video, animation, vibration, and / or a combination of two or more of the above. During operation, the digital assistant client module 264 uses the communication subsystem 224 to communicate with the digital assistant server.

[0049] In some embodiments, the digital assistant client module 264 utilizes various sensors, subsystems, and peripherals to collect additional information from the surrounding environment of the user device 104 to establish a context associated with the user, the current user interaction, and / or the current user input. In some embodiments, the digital assistant client module 264 provides the context information or a subset thereof to the digital assistant server along with the user input to help infer the user's intent. In some embodiments, the digital assistant also uses the context information to determine how to prepare and deliver output to the user.

[0050] In some embodiments, the contextual information that may accompany the user input includes sensor information, such as lighting, ambient noise, ambient temperature, images or videos of the surrounding environment, etc. In some embodiments, the contextual information also includes the physical state of the device, such as device orientation, device location, device temperature, power level, speed, acceleration, motion pattern, cellular signal strength, etc. In some embodiments, information related to the software state of the user device 104, such as the running process of the user device 104, installed programs, past and current network activities, background services, error logs, resource usage, etc., is also provided to the digital assistant server as contextual information associated with the user input.

[0051] In some embodiments, the DA client module 264 selectively provides information stored on the user device 104 (e.g., user data 266) in response to a request from the digital assistant server. In some embodiments, the digital assistant client module 264 also elicits additional input from the user via a natural language dialog or other user interface when the digital assistant server 106 makes a request. The digital assistant client module 264 transmits the additional input to the digital assistant server 106 to assist the digital assistant server 106 in inferring intent and / or satisfying the user intent expressed in the user request.

[0052] In various embodiments, memory 250 includes additional instructions or fewer instructions. Furthermore, various functions of user device 104 may be implemented in hardware and / or firmware included in one or more signal processing circuits and / or application specific integrated circuits.

[0053] Figure 3A is a block diagram of an exemplary digital assistant system 300 according to some embodiments. In some embodiments, the digital assistant system 300 is implemented on a standalone computer system. In some embodiments, the digital assistant system 300 is distributed across multiple computers. In some embodiments, some modules and functions of the digital assistant are divided into a server portion and a client portion, where the client portion resides on a user device (e.g., user device 104) and communicates with the server portion (e.g., server system 108) via one or more networks, such as Figure 1 In some embodiments, the digital assistant system 300 is Figure 1 000 is an embodiment of the server system 108 (and / or digital assistant server 106) shown in . It should be noted that the digital assistant system 300 is only one example of a digital assistant system, and the digital assistant system 300 may have more or fewer components than shown, may combine two or more components, or may have a different configuration or arrangement of components. Figure 3A The various components shown in the drawings may be implemented in hardware, software instructions for execution by one or more processors, firmware (including one or more signal processing circuits and / or application specific integrated circuits), or a combination thereof.

[0054] The digital assistant system 300 includes a memory 302, one or more processors 304, an input / output (I / O) interface 306, and a network communication interface 308. These components communicate with each other via one or more communication buses or signal lines 310.

[0055] In some embodiments, memory 302 includes non-transitory computer-readable media, such as high-speed random access memory and / or non-volatile computer-readable storage media (e.g., one or more disk storage devices, flash memory devices, or other non-volatile solid-state memory devices).

[0056] In some embodiments, the I / O interface 306 couples the input / output devices 316 of the digital assistant system 300, such as a display, keyboard, touch screen, and microphone, to the user interface module 322. The I / O interface 306 in conjunction with the user interface module 322 receives user input (e.g., voice input, keyboard input, touch input, etc.) and processes the input accordingly. In some embodiments, such as when the digital assistant is implemented on a stand-alone user device, the digital assistant system 300 includes a plurality of interfaces with respect to the user interface module 322. Figure 2 In some embodiments, the digital assistant system 300 represents the server portion of a specific implementation of a digital assistant and is implemented by residing on a user device (e.g., Figure 2 The client portion on the user device 104 shown in FIG. 1 interacts with the user.

[0057] In some embodiments, the network communication interface 308 includes one or more wired communication ports 312 and / or wireless transmission and reception circuits 314. The wired communication port receives and transmits communication signals via one or more wired interfaces such as Ethernet, Universal Serial Bus (USB), FireWire, etc. The wireless circuit 314 receives RF signals and / or optical signals from a communication network and other communication devices and sends the RF signals and / or optical signals to the communication network and other communication devices. Wireless communication can use any of a variety of communication standards, protocols and technologies, such as GSM, EDGE, CDMA, TDMA, Bluetooth, Wi-Fi, VoIP, Wi-MAX, or any other suitable communication protocol. The network communication interface 308 enables communication between the digital assistant system 300 and a network such as the Internet, an intranet and / or a wireless network (such as a cellular telephone network, a wireless local area network (LAN) and / or a metropolitan area network (MAN)) and other devices.

[0058] In some embodiments, memory 302 or a computer-readable storage medium of memory 302 stores programs, modules, instructions, and data structures including all or a subset of the following: operating system 318, communication module 320, user interface module 322, one or more application programs 324, and digital assistant module 326. One or more processors 304 execute these programs, modules, and instructions and read from or write to data structures.

[0059] The operating system 318 (e.g., Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, or an embedded operating system such as VxWorks) includes various software components and / or drivers for controlling and managing general system tasks (e.g., memory management, storage device control, power management, etc.) and facilitating communication between various hardware, firmware, and software components.

[0060] The communication module 320 facilitates communication between the digital assistant system 300 and other devices via the network communication interface 308. For example, the communication module 320 can communicate with Figure 2 The communication module 320 also includes various components for processing data received by the wireless circuit 314 and / or the wired communication port 312.

[0061] The user interface module 322 receives commands and / or input from the user via the I / O interface 306 (e.g., from a keyboard, touch screen, pointing device, controller, and / or microphone) and generates user interface objects on the display. The user interface module 322 also prepares and delivers output (e.g., speech, sound, animation, text, icon, vibration, tactile feedback, and light, etc.) to the user via the I / O interface 306 (e.g., through a display, audio channel, speaker, touch pad, etc.).

[0062] Applications 324 include programs and / or modules configured to be executed by one or more processors 304. For example, if the digital assistant system is implemented on a stand-alone user device, applications 324 may include user applications such as games, calendar applications, navigation applications, or email applications. If the digital assistant system 300 is implemented on a server farm, applications 324 may include, for example, resource management applications, diagnostic applications, or scheduling applications.

[0063] The memory 302 also stores a digital assistant module (or the server portion of the digital assistant) 326. In some embodiments, the digital assistant module 326 includes the following submodules or subsets or supersets thereof: an input / output processing module 328, a speech-to-text (STT) processing module 330, a natural language processing module 332, a dialog flow processing module 334, a task flow processing module 336, a service processing module 338, and an interrupt handling module 340. Each of these processing modules has access to one or more of the following data and models of the digital assistant 326, or a subset or superset thereof: a knowledge ontology 360, a vocabulary index 344, user data 348, a task flow model 354, a service model 356, and a priority parameter database 358.

[0064] In some embodiments, using the processing modules, data, and models implemented in the digital assistant module 326, the digital assistant performs at least some of the following operations: identifying a user intent expressed in natural language input received from a user; proactively eliciting and obtaining information required to fully infer the user intent (e.g., by disambiguating words, names, intents, etc.); determining a task flow that satisfies the inferred intent; and executing the task flow to satisfy the inferred intent. More details on the use of the interrupt handling module and its priority parameters are provided later in this specification.

[0065] In some embodiments, Figure 3B As shown in FIG. , the I / O processing module 328 is Figure 3A The I / O device 316 in the Figure 3A The network communication interface 308 in the user device (eg, Figure 1 The I / O processing module 328 optionally obtains context information associated with the user input from the user device along with or shortly after receiving the user input. The context information includes user-specific data, vocabulary, and / or preferences related to the user input. In some embodiments, the context information also includes the device (e.g., Figure 1 The I / O processing module 328 may be configured to receive a user request and to receive a response from the user. ...

[0066] The speech-to-text processing module 330 receives speech input (e.g., user speech captured in a voice recording) through the I / O processing module 328. In some embodiments, the speech-to-text processing module 330 uses various sound and language models to recognize the speech input as a sequence of phonemes, and ultimately recognizes it as a sequence of words or symbols written in one or more languages. The speech-to-text processing module 330 can be implemented using any suitable speech recognition technology, sound model, and language model such as a hidden Markov model, speech recognition based on dynamic time warping (DTW), and other statistical and / or analytical techniques. In some embodiments, the speech-to-text processing may be performed at least in part by a third-party service or on the user's device. Once the speech-to-text processing module 330 obtains the result of the speech-to-text processing (e.g., a sequence of words or symbols), it transmits the result to the natural language processing module 332 for intention inference.

[0067] The digital assistant's natural language processing module 332 ("natural language processor") takes a sequence of words or symbols ("symbol sequence") generated by the speech-to-text processing module 330 and attempts to associate the symbol sequence with one or more "executable intents" recognized by the digital assistant. An "executable intent" represents a task that can be executed by the digital assistant and has an associated task flow implemented in the task flow model 354. The associated task flow is a series of programmed actions and steps taken by the digital assistant system to perform a task. The scope of the digital assistant's capabilities depends on the number and variety of task flows that have been implemented and stored in the task flow model 354, or in other words, on the number and variety of "executable intents" recognized by the digital assistant. However, the effectiveness of the digital assistant also depends on the digital assistant's ability to infer the correct "executable intent or intents" from user requests expressed in natural language.

[0068] In some embodiments, in addition to the sequence of words or symbols obtained from the speech-to-text processing module 330, the natural language processor 332 also receives context information associated with the user request (e.g., from the I / O processing module 328). The natural language processor 332 optionally uses the context information to clarify, supplement, and / or further qualify the information contained in the sequence of symbols received from the speech-to-text processing module 330. The context information includes, for example, user preferences, hardware and / or software state of the user's device, sensor information collected before, during, or shortly after the user's request, previous interactions (e.g., conversations) between the digital assistant and the user, and the like. As described in this specification, the context information is dynamic and may change with time, location, conversation content, and other factors.

[0069] In some embodiments, natural language processing is based on, for example, a knowledge ontology 360. The knowledge ontology 360 is a hierarchical structure comprising many nodes, each node representing an "executable intent" or an "attribute" related to one or more of the "executable intent" or other "attributes". As described above, an "executable intent" represents a task that the digital assistant can perform, i.e., it is "executable" or can be executed. An "attribute" represents a parameter associated with a sub-aspect of an executable intent or another attribute. The links between executable intent nodes and attribute nodes in the knowledge ontology 360 define how the parameters represented by the attribute nodes are subordinate to the tasks represented by the executable intent nodes.

[0070] In some embodiments, the knowledge ontology 360 is composed of executable intent nodes and attribute nodes. In the knowledge ontology 360, each executable intent node is directly linked to one or more attribute nodes or is linked to one or more attribute nodes through one or more intermediate attribute nodes. Similarly, each attribute node is directly linked to one or more executable intent nodes or is linked to one or more executable intent nodes through one or more intermediate attribute nodes. For example, Figure 3C As shown in , ontology 360 may include a "restaurant reservation" node (i.e., an executable intent node). The attribute nodes "restaurant", "date / time" (for reservations), and "number of people" are each directly linked to an executable intent node (i.e., the "restaurant reservation" node). In addition, the attribute nodes "cuisine", "price range", "phone number", and "location" are child nodes of the attribute node "restaurant" and are each linked to the "restaurant reservation" node (i.e., an executable intent node) through the intermediate attribute node "restaurant". As another example, Figure 3C As shown in , ontology 360 may also include a "set reminder" node (i.e., another executable intent node). The attribute nodes "date / time" (for setting reminders) and "subject" (for reminders) are each linked to the "set reminder" node. Since the attribute "date / time" is related to both the task of making a restaurant reservation and the task of setting a reminder, the attribute node "date / time" is linked to both the "restaurant reservation" node and the "set reminder" node in ontology 360.

[0071] The executable intent nodes, together with the concept nodes to which they are linked, can be described as "domains". In this discussion, each domain is associated with a corresponding executable intent and refers to a set of nodes (and the relationships between them) associated with a particular executable intent. For example, Figure 3CThe knowledge ontology 360 shown in includes an instance of a restaurant reservation domain 362 and an instance of a reminder domain 364 within the knowledge ontology 360. The restaurant reservation domain includes an executable intent node "restaurant reservation", attribute nodes "restaurant", "date / time" and "number of companions", and sub-attribute nodes "cuisine", "price range", "telephone number" and "location". The reminder domain 364 includes an executable intent node "set reminder" and attribute nodes "subject" and "date / time". In some embodiments, the knowledge ontology 360 consists of multiple domains. Each domain can share one or more attribute nodes with one or more other domains. For example, in addition to the restaurant reservation domain 362 and the reminder domain 364, the "date / time" attribute node can also be associated with many different domains (such as the itinerary scheduling domain, the itinerary booking domain, the movie ticket domain, etc.).

[0072] although Figure 3C Two exemplary domains within ontology 360 are shown, but other domains (or executable intents) include, for example, "initiate a phone call," "find directions," "schedule a meeting," "send a message," "provide an answer to a question," "read a list," "provide navigation instructions," "provide instructions for a task," etc. The "send message" domain is associated with the "send message" executable intent node, and may further include attribute nodes such as "one or more recipients," "message type," and "message body." For example, the attribute node "recipient" may be further qualified by child attribute nodes such as "recipient name" and "message address."

[0073] In some embodiments, ontology 360 includes all domains that the digital assistant can understand and act on (and therefore can execute intents). In some embodiments, ontology 360 can be modified, such as by adding or removing entire domains or nodes, or by modifying the relationships between nodes within ontology 360.

[0074] In some embodiments, nodes associated with multiple related executable intents may be clustered under a "superdomain" in the knowledge ontology 360. For example, the "itinerary" superdomain may include a cluster of itinerary-related attribute nodes and executable intent nodes. Executable intent nodes related to itineraries may include "ticket booking", "hotel booking", "car rental", "route planning", "find points of interest", and so on. Executable intent nodes under the same superdomain (e.g., the "itinerary" superdomain) may have multiple shared attribute nodes. For example, executable intent nodes for "ticket booking", "hotel booking", "car rental", "route planning", "find points of interest" may share one or more of the attribute nodes "starting location", "destination", "departure date / time", "arrival date / time", and "number of companions".

[0075] In some embodiments, each node in the knowledge ontology 360 is associated with a set of words and / or phrases that are related to the attribute or executable intent represented by the node. The corresponding set of words and / or phrases associated with each node is the so-called "vocabulary" associated with the node. The corresponding set of words and / or phrases associated with each node can be stored in a vocabulary index 344 associated with the attribute or executable intent represented by the node. For example, returning to Figure 3B , the vocabulary associated with the node for the attribute of "restaurant" may include words such as "food", "drinks", "cuisine", "hunger", "eat", "pizza", "fast food", "meals", etc. For another example, the vocabulary associated with the node for the executable intent of "initiate phone call" may include words and phrases such as "call", "phone", "dial", "make a call", "call the number", "make a call", etc. The vocabulary index 344 optionally includes words and phrases in different languages.

[0076] The natural language processor 332 receives a symbol sequence (e.g., a text string) from the speech-to-text processing module 330 and determines which nodes are involved in the words in the symbol sequence. In some embodiments, if a word or phrase in the symbol sequence is found to be associated with one or more nodes in the knowledge ontology 360 (via the vocabulary index 344), the word or phrase will "trigger" or "activate" these nodes. Based on the number and / or relative importance of the activated nodes, the natural language processor 332 will select one of the executable intents as the task that the user intends the digital assistant to perform. In some embodiments, the domain with the most "triggered" nodes is selected. In some embodiments, the domain with the highest confidence value (e.g., based on the relative importance of its various triggered nodes) is selected. In some embodiments, the domain is selected based on a combination of the number and importance of the triggered nodes. In some embodiments, additional factors are also considered in the process of selecting nodes, such as whether the digital assistant has previously correctly interpreted similar requests from the user.

[0077] In some embodiments, the digital assistant also stores the names of specific entities in the vocabulary index 344, so that when one of these names is detected in the user request, the natural language processor 332 will be able to recognize that the name refers to a specific instance of an attribute or sub-attribute in the knowledge body. In some embodiments, the name of the specific entity is the name of a business, a restaurant, a person, a movie, etc. In some embodiments, the digital assistant searches for and identifies specific entity names from other data sources, such as the user's address book, a movie database, a musician database, and / or a restaurant database. In some embodiments, when the natural language processor 332 recognizes that a word in the symbol sequence is the name of a specific entity (such as a name in the user's address book), additional importance is given to the word in the process of selecting an executable intent within the knowledge body for the user request.

[0078] For example, when the word "Mr. Santo" is identified from the user request, and the last name "Santo" is found in the vocabulary index 344 as one of the contacts in the user's contact list, the user request may correspond to the "send message" or "make phone call" domain. For another example, when the word "ABC Cafe" is found in the user request, and the term "ABC Cafe" is found in the vocabulary index 344 as the name of a specific restaurant in the user's city, the user request may correspond to the "restaurant reservation" domain.

[0079] User data 348 includes user-specific information, such as user-specific vocabulary, user preferences, user address, the user's default and second language, the user's contact list, and other short-term or long-term information for each user. In some embodiments, natural language processor 332 uses user-specific information to supplement the information contained in the user input to further define the user's intent. For example, for a user request to "invite my friends to my birthday party", natural language processor 332 can access user data 348 to determine who the "friends" are and when and where the "birthday party" will be held without requiring the user to explicitly provide such information in their request.

[0080] Additional details of searching an ontology based on symbol strings are described in U.S. utility model patent application serial number 12 / 341,743, filed on December 22, 2008, for "Method and Apparatus for Searching Using an Active Ontology," the entire contents of which are incorporated herein by reference.

[0081] In some embodiments, once the natural language processor 332 identifies an executable intent (or domain) based on a user request, the natural language processor 332 generates a structured query to represent the identified executable intent. In some embodiments, the structured query includes parameters for one or more nodes of the executable intent within the domain, and at least some of the parameters are filled with specific information and requirements specified in the user request. For example, the user may say: "Notify the sushi restaurant to reserve a seat at 7 pm." In this case, the natural language processor 332 may be able to correctly identify the executable intent as "restaurant reservation" based on the user input. According to the knowledge subject, a structured query for the "restaurant reservation" domain may include parameters such as {cuisine}, {time}, {date}, {number of companions}, etc. In some embodiments, based on the information contained in the user's speech, the natural language processor 332 generates a partially structured query for the restaurant reservation domain, wherein the partially structured query includes parameters {cuisine = "sushi"} and {time = "7 pm"}. However, in this example, the user's speech contains insufficient information to complete the structured query associated with the domain. Therefore, based on the currently available information, other necessary parameters such as {number of people in the group} and {date} are not specified in the structured query. In some embodiments, the natural language processor 332 uses the received contextual information to fill in some parameters of the structured query. For example, in some embodiments, if the user requests a sushi restaurant "near me", the natural language processor 332 may use the GPS coordinates from the user device 104 to fill in the {location} parameter in the structured query.

[0082] In some embodiments, the natural language processor 332 transmits the structured query (including any completed parameters) to the task flow processing module 336 ("task flow processor"). The task flow processing module 336 is configured to receive the structured query from the natural language processor 332, complete the structured query (if necessary), and perform the actions required to "complete" the user's final request. In some embodiments, the various processes necessary to complete these tasks are provided in the task flow model 354. In some embodiments, the task flow model includes processes for obtaining additional information from the user and task flows for performing actions associated with executable intents.

[0083] As described above, in order to complete the structured query, the task flow processor 336 may need to initiate additional dialogues with the user in order to obtain additional information, and / or clarify possibly ambiguous words. When such interaction is necessary, the task flow processor 336 calls the dialogue processing module 334 ("dialogue processor 334") to conduct a dialogue with the user. In some embodiments, the dialogue processor 334 determines how (and / or when) to ask the user for additional information, and receives and processes the user response. The question is provided to the user and the answer is received from the user through the I / O processing module 328. In some embodiments, the dialogue processor 334 presents the dialogue output to the user via audio and / or video output, and receives input from the user via verbal or physical (e.g., click) response. Continuing the example above, when the task flow processor 336 calls the dialogue flow processor 334 to determine the "number of people traveling together" and "date" information for the structured query associated with the domain "restaurant reservation", the dialogue flow processor 335 generates questions such as "how many people are dining together?" and "what specific day is dining?" to transmit to the user. Once a response is received from the user, the dialog flow processor 334 fills in the structured query with the missing information, or passes the information to the task flow processor 336 to complete the missing information based on the structured query.

[0084] In some cases, the task flow processor 336 may receive a structured query with one or more ambiguous attributes. For example, a structured query for the "send message" domain may indicate that the intended recipient is "Bob", and the user may have multiple contacts named "Bob". The task flow processor 336 will request the dialogue processor 334 to disambiguate this attribute of the structured query. The dialogue processor 334 may then ask the user "Which Bob?" and display (or read) a list of contacts named "Bob" from which the user can select.

[0085] Once the task flow processor 336 has completed the structured query for the executable intent, the task flow processor 336 proceeds to execute the final task associated with the executable intent. Thus, the task flow processor 336 executes the steps and instructions in the task flow model based on the specific parameters contained in the structured query. For example, the task flow model for the executable intent "restaurant reservation" may include steps and instructions for contacting a restaurant and actually requesting a reservation for a specific number of people at a specific time. For example, using a structured query such as: {restaurant reservation, restaurant = ABC Cafe, date = 3 / 12 / 2012, time = 7pm, number of people = 5}, the task flow processor 336 may perform the following steps: (1) Log in to the server of ABC Cafe, or a restaurant reservation system such as (2) entering the date, time, and number of party information into a form on the website, (3) submitting the form, and (4) making a calendar entry for the reservation in the user's calendar.

[0086] In some embodiments, the task flow processor 336 uses the assistance of the service processing module 338 ("service processor") to complete the task requested in the user input or provide the informational response requested in the user input. For example, the service processor 338 can make a phone call, set a calendar entry, call a map search, call or interact with other user applications installed on the user device, and call or interact with third-party services (e.g., restaurant reservation portals, social networking sites, bank portals, etc.) on behalf of the task flow processor 336. In some embodiments, the protocols and application programming interfaces (APIs) required for each service can be specified by corresponding service models between service models 356. The service processor 338 accesses the appropriate service model for the service and generates a request for the service based on the protocols and APIs required by the service model.

[0087] For example, if the restaurant has enabled an online reservation service, the restaurant may submit a service model that specifies the necessary parameters for making a reservation and an API for transmitting the values ​​of the necessary parameters to the online reservation service. When requested by the task flow processor 336, the service processor 338 may use the URL stored in the service model to establish a network connection with the online reservation service and send the necessary parameters for the reservation (e.g., time, date, number of companions) to the online reservation interface in a format according to the API of the online reservation service.

[0088] In some embodiments, the natural language processor 332, the dialog processor 334, and the task flow processor 336 are used together and iteratively to infer and qualify the user's intent, obtain information to further clarify and refine the user's intent, and ultimately generate a response (e.g., providing output to the user, or completing a task) to satisfy the user's intent.

[0089] In some embodiments, after having performed all tasks necessary to satisfy the user's request, the digital assistant 326 formulates a confirmation response and sends the response back to the user via the I / O processing module 328. If the user request seeks an informational response, the confirmation response presents the requested information to the user. In some embodiments, the digital assistant also requests the user to indicate whether the user is satisfied with the response generated by the digital assistant 326.

[0090] More details about digital assistants can be found in U.S. Utility Patent Application No. 12 / 987,982, filed on January 18, 2010, entitled “Intelligent Automated Assistant,” and U.S. Utility Application No. 61 / 493,201, filed on June 3, 2011, entitled “Generating and Processing Data Items That Represent Tasks to Perform,” the entire contents of which are incorporated herein by reference.

[0091] In most cases, when the digital assistant receives user input from the user, the digital assistant attempts to provide an appropriate response to the user input with as little delay as possible. For example, suppose the user requests specific information (e.g., current traffic information) by providing voice input (e.g., "What is the traffic condition like now?"). After the digital assistant has just received and processed the voice input, the digital assistant optionally provides a voice output confirming receipt of the user's request (e.g., "Check traffic information..."). After the digital assistant obtains the requested information in response to the user's request, the digital assistant continues to provide the requested information to the user without further delay. For example, in response to the user's request for traffic information, the digital assistant may provide a series of one or more discrete voice outputs separated by brief pauses immediately after generating the voice output, (e.g., "There are two accidents on the road. <Pause> One accident is on the northbound 101 near Whipple Avenue. <Pause> And the second accident is on the north side of 85 near 280.").

[0092] For the purposes of this specification, the initial confirmation of a user request and a series of one or more discrete speech outputs provided in response to the user request are considered sub-responses of a complete response to the user request. In other words, the digital assistant initiates an information provision process for the user request upon receipt of the user request, and during the information provision process, the digital assistant prepares and provides each sub-response of the complete response to the user request without further prompting from the user.

[0093] Sometimes, additional information or instructions (e.g., route information) are needed before the requested information can be obtained. In such cases, the digital assistant outputs a question to the user (e.g., "Where are you going?"), thereby asking for the additional information or instructions. In some embodiments, the question provided by the digital assistant is considered a complete response to the user's request, because the digital assistant will not take further action or provide any additional responses to the user's request until new input is received from the user. In some embodiments, once the user provides the additional information or instructions, the digital assistant initiates a new information provision process for a "new" user request established based on the initial user request and the additional user input.

[0094] In some embodiments, the digital assistant initiates a new information provision process as each new user input is received and terminates each existing information provision process when (1) all sub-responses to a complete response to the user request have been provided to the user, or when (2) the digital assistant provides the user with a request for additional information or clarification regarding a previous user request that began the existing information provision process.

[0095] Typically, after a digital assistant receives a user request for information or to perform a task, the digital assistant is expected to provide a response (e.g., an output containing the requested information, a confirmation of the requested task, or an output of the request instructions) quickly. The real-time responsiveness of the digital assistant is one of the key factors in evaluating the performance of the digital assistant. In this case, the response is prepared as quickly as possible, and the default delivery time for the response is the time immediately following the preparation of the response.

[0096] However, sometimes after providing an initial sub-response immediately after receiving the user input, the digital assistant provides the remaining one or more sub-responses at some time within an extended period of time. In some embodiments, the information provision process for the user request is extended over an extended period of time that is longer than the sum of the times required to provide each sub-response individually. For example, in some embodiments, when delivering the sub-responses to the user via an audio output channel, short pauses (i.e., brief periods of silence) are inserted between adjacent pairs of sub-responses (e.g., a pair of consecutive voice outputs).

[0097] In some embodiments, after the sub-response is prepared, it is put on hold and delivered only when a predetermined condition has been met. In some embodiments, the predetermined condition is met when a predetermined trigger time has been reached according to the system clock and / or a predetermined trigger event has occurred. For example, if the user says to the digital assistant "set a timer for me for 5 minutes", the digital assistant initiates the information provision process when receiving the user request. During the information provision process, the digital assistant immediately provides the first sub-response (e.g., "OK, the timer is started."), and does not provide the second sub-response and the final sub-response until 5 minutes later (e.g., "OK, five minutes are up"). In this case, the default delivery time for the first sub-response is the time immediately after the first sub-response is prepared, and the default delivery time for the second final sub-response is the time immediately after the trigger event occurs (e.g., 5 minutes have passed since the timer was started). When the digital assistant completes providing the final sub-response to the user, the information provision process terminates. In various embodiments, the second sub-response is prepared at any time before the default delivery time for the second sub-response (e.g., just after the first sub-response is prepared, or until shortly before the default delivery time for the second sub-response).

[0098] As will be described in more detail later in this specification, context-sensitive interrupt handlers (e.g., Figure 3A ). In some embodiments, the interruption processor collects information about the current context in real time and determines in real time whether the default rules for providing responses, reminders, and / or notifications need to be changed (e.g., because the device is currently receiving voice input from the user, or because additional information is detected that changes the urgency of the reminder, notification, or other voice output). For example, in some contexts, it may be more appropriate to delay (e.g., pause, at least temporarily) providing non-urgent voice output because the user is speaking into the device, or because the user's context suggests that interruptions should be avoided (e.g., because the user is in a meeting or sleeping), while at other times, it may be more appropriate to immediately provide urgent voice output (e.g., "interrupt" or interrupt the user). In addition, in some contexts, it is acceptable and actually more appropriate to completely forgo providing voice output.

[0099] The context-sensitive interruption handler also selects an audio prompt from among several possible audio prompts with which to alert the user of certain information (e.g., a notification item). In some embodiments, a particular audio prompt or type of audio prompt is selected based on the urgency of the notification and / or the context of the user. For example, in some embodiments, a notification item of low urgency is provided immediately upon receipt of the notification item of low urgency if the context of the user suggests that an interruption would not be inconvenient. On the other hand, in some embodiments, a notification item of higher urgency may be delayed if the user context suggests that an interruption would be unwelcome even for some important information.

[0100] Figure 4A-4C 2 shows an exemplary scenario in which a digital assistant provides speech output or does not provide speech output according to some embodiments. Figure 4A-4C In the figure, the solid-line boxes corresponding to speech output (e.g., Figure 4A SO1 in ) indicates the speech output actually provided by the device. On the other hand, the dashed box (e.g., Figure 4A S02) in the figure indicates a voice output that is not actually provided by the device at the corresponding time and location, but is provided by the device if no user's voice input is detected, as explained in more detail with reference to the various figures.

[0101] Figure 4AAn exemplary situation in which the device permanently abandons speech output is shown. Initially, the user travels east (401) on East Alder Avenue. At the first location specified by 402-1, the user requests the device to provide turn-by-turn navigation directions to the library by stating "Take me to the library" as speech input SI1. The location where the user ends speaking is specified by 402-2, which is different from 402-1 due to the fact that the user speaks while moving. Therefore, the bars corresponding to the corresponding speech inputs and outputs (e.g., the bars between 402-1 and 402-2 corresponding to SI1) indicate the distance, or equivalently, the length of time that the corresponding input / output requires narration (e.g., speech).

[0102] The device receives the voice input and performs the necessary operations to, for example, determine the location of the nearest library, as described in reference method 500 and Figure 5A-5D In this example, the device determines that library 404 is the nearest library and responds promptly with voice output SO1 ("OK, continue straight").

[0103] At the location specified by 405-1, a telephone feature on the same device as the digital assistant receives an incoming call, as shown by ringtone icon 406. The user answers the call by providing voice input SI2, stating "Hey, John! Long time no contact. How's home?" Upon completion of voice input SI2, the user is at the location specified by 405-2. However, in the transition period between 405-1 and 405-2, the device (e.g., from a server or a different module on the same device) receives voice output SO2 indicating "Turn right on First Street in 3 miles." In this example, voice output SO2 has a low urgency metric because the device is arranged to warn the user of the upcoming turn one or more times before the user reaches First Street (e.g., additional warnings such as "Turn right in 1 mile" and / or "Turn right now on First Street"). Because the device is receiving voice input SI2 when voice output SO2 is to be output (407-1 until 407-2), the device continues to output voice output SO2. Furthermore, because the priority associated with speech output SO2 is very low (e.g., due to redundancy associated with turn-by-turn navigation directions in this example), this stop actually forgoes outputting speech output SO2 entirely (e.g., never outputting a command to turn left after three miles, but instead relying on the 1 mile and immediate warning).

[0104] Figure 4B An exemplary scenario of providing speech output to a user immediately according to some embodiments is shown. Figure 4A and 4B Like reference numerals shared between the present invention refer to similar aspects of the corresponding embodiments. Therefore, for the sake of brevity, those similar aspects will not be repeated here.

[0105] Figure 4B and Figure 4A The difference is that the phone is Figure 4A 4. The user answers the call at a location much closer to First Street, as shown by ringtone icon 406. While the user answers the call via voice input SI2, the device receives voice output SO3 corresponding to a turn-by-turn navigation direction command indicating that the user should turn right soon (e.g., in this example, in 100 feet). Because the message is urgent, the device "interrupts" (e.g., interrupts the user while he is speaking) to output "Turn right in 100 feet."

[0106] Figure 4C An exemplary scenario of temporarily retaining speech output and then providing speech output to the user according to some embodiments is shown. Figure 4A and 4C Like reference numerals shared between the present invention refer to similar aspects of the corresponding embodiments. Therefore, for the sake of brevity, those similar aspects will not be repeated here.

[0107] During voice input SI3, the user requests that the device notify the user of Knicks' score whenever the game should end, thereby stating "Tell me Knicks' score when the game ends." The device responds immediately, thereby confirming the request and stating "Okay, I'll tell you Knicks' score when the game ends." As previously described, the phone receives an incoming call, and the user answers in voice input SI2 by stating "Hey, John! Long time no contact. How's home?" During SI2, Knicks' game ends, and the device receives a voice output SO5 indicating the score, which is provided to the user as requested. In this example, voice output SO5 is not considered urgent because Knicks' score will not change while the user is speaking (e.g., during the device is receiving voice input). Therefore, as shown by arrow 408, the device keeps voice output SO5 until the user has finished speaking, and then outputs voice output SO5. However, in some embodiments, the device responds to the user request in an inaudible manner, such as displaying Knicks' score on a device display. In some embodiments, such a response should be provided without delay because the displayed response does not interrupt the user's speech. In some embodiments, such displayed responses are provided in conjunction with or alternatively in place of maintained speech output (eg, speech output is abandoned entirely when a displayed response replaces speech output).

[0108] The device that provides the digital assistant (or the device that the user uses to interact with the digital assistant) is frequently used to provide various notifications to the user. For example, the device (e.g., user device 104) can receive emails, phone calls, voicemails, text messages, and other electronic communications, and provide notifications to the user that such communications have been received. For example, the device can provide an audible output (e.g., a ringtone, a beep, etc.) and / or a visual output to alert the user that the communication has been received. In addition, the device can provide notifications from many other sources, such as application notifications (e.g., messages from applications installed on the device, including social networking applications, utilities, games, etc.), task list notifications (e.g., reminders related to items placed on the task or reminder list by the user), calendar notifications (e.g., alerts or reminders related to calendar items and / or appointments), etc. In some cases, these notifications are provided to the user upon receipt of the notification and / or upon arrival of the associated reminder or alert time. If the user does not want to be disturbed, they can simply turn off all notifications, such as by placing the device in a "silent" mode. Alternatively, the user can create rules that allow the device to provide certain types of notifications but not other types of notifications. For example, a user may manually set a rule that notifications should be provided only for communications from a certain person.

[0109] In some embodiments, a digital assistant (e.g., digital assistant system 300) manages a list of notification items for a user and intelligently determines whether and how to interrupt the user to provide notifications. Thus, the digital assistant prevents the user from being unnecessarily disturbed by notifications with low urgency, while also ensuring that high urgency notifications are provided to the user even when it is somewhat inconvenient. As a specific example, if the user is in an important work meeting, the digital assistant determines that the urgency of the notification is low (e.g., a notification from a banking application indicating that the session has timed out), and delays or abandons providing the user with an audio prompt for the notification item. Nevertheless, if the user is just watching TV, the digital assistant still provides an audio prompt because the user's context suggests that interruption or interjection will not be a nuisance. However, if an important communication is received (e.g., a text message or voicemail about a family emergency), the digital assistant determines that the communication of this urgency is approved to be interrupted even when the user is in an important meeting.

[0110] In addition, as referenced below Figure 6As described, the digital assistant can gradually escalate notifications based on the user's context and the urgency of a particular notification. For example, upon determining that a notification item is urgent enough to approve an interruption, the device provides a first audio prompt to alert the user. If the user does not confirm the prompt, the device outputs a second audio prompt. If the user does not confirm the second audio prompt, the device outputs a third audio prompt. In some embodiments, the audio prompts are of different types and increase in uniqueness and / or intensity when they are provided. For example, the first audio prompt can be a single beep or ringtone, the second audio prompt can be a repeated beep or ringtone (or a louder beep or ringtone, or simply a different ringtone), and the third audio prompt can be a voice output (e.g., the assistant states "Sorry to bother you, but this is very important."). The following description is relative to Figure 6 Additional details and embodiments are provided related to a digital assistant managing a list of notifications.

[0111] The list of notifications is not static, as new notifications are constantly arriving, and new information that affects the urgency values ​​of existing notification items is frequently detected or detectable. The human assistant takes this information into account when determining how and whether to interrupt the user to provide notifications. Therefore, in some embodiments, the digital assistant disclosed herein adjusts the urgency value of notifications based on changing conditions related to the user and / or the notifications. Therefore, the digital assistant does not simply react to a static set of rules established by the user (e.g., a rule that only alerts on emails marked as "highly important"), but actually adjusts the urgency value based on unexpected and / or spontaneously occurring events. As a specific example, if the user is in a work meeting when the digital assistant detects an email requesting the user to take some action (e.g., "Please send me the latest sales figures"), the digital assistant determines that the urgency of this message is not sufficient to be approved to interrupt the user during such a busy period. However, if the digital assistant detects that a subsequent email has changed the deadline or otherwise increased the urgency of the previous message (e.g., "I need those numbers within 5 minutes or we'll lose the sale."), the digital assistant will adjust the urgency value of the notification associated with the initial message (and / or combine the two messages into one notification item with the increased urgency value). If the new urgency value is high enough to warrant the interruption, the digital assistant will alert the user for the email. Thus, the user is alerted to the existence of an important message that would otherwise not have passed a simple rule based on the "Do Not Disturb" filter (and would not have been provided if the device was in silent mode). As described in more detail below, many different situations cause the digital assistant to adjust the urgency of the notification item, such as received communications (e.g., subsequent emails and phone calls), changes in traffic conditions, changes in weather conditions, changes in the context of the device, etc.

[0112] Figure 5A-5Dis a flow chart of an exemplary method 500 implemented by a digital assistant for determining whether to provide voice output to a user based on the determination or whether the device is currently receiving voice input from the user and the urgency of the voice output. In some embodiments, an interrupt handler (e.g., Figure 3A The interrupt handler 340 in performs a determination of whether to provide speech output dynamically in real time based on the current context.

[0113] In some embodiments, before receiving the voice output (reference 506), the device receives (502) a request from the user to perform a digital assistant task. For example, the user requests the digital assistant to find a nearby cheap restaurant by stating, for example, "Help me find a place to eat dinner that's not too expensive" as voice input. Or, the user requests the digital assistant to make a reservation at a specific restaurant by stating, for example, "Book me a seat on Boulevard at 4 o'clock" as voice input, or the user asks for turn-by-turn navigation directions to a local landmark ("Directions to the Golden Gate Bridge") or asks for baseball scores ("How are the Sox playing?") or stock prices ("How is Apple's stock today?").

[0114] In some embodiments, before receiving the voice output (reference 506), the device sends (504) a request to the digital assistant server. The voice output is received from the server in response to the request. In some embodiments, before sending the request to the server, the device performs a speech-to-text operation (e.g., using the STT processing module 330). In some embodiments, speech-to-text is performed at the server. In some embodiments, the device performs natural speech processing (e.g., using the natural speech processing module 322), including using user data to perform knowledge ontology, vocabulary analysis, and context matching (e.g., based on preferences such as to figure out which "Sox" team the user is interested in, browsing history and / or digital assistant request history). The server then performs any remaining operations necessary to serve the request (e.g., identifying one or more executable items, one or more missing attributes from executable attributes, searching one or more databases and / or the Internet to find missing information, etc.). In some embodiments, the server prepares a response (e.g., a text string) and returns a response to the user. In some embodiments, the server prepares a voice response (e.g., audio data) and transmits the voice response to the digital assistant.

[0115] In any event, the device receives (506) speech output to be provided to a user of the device. In some embodiments, the speech output is received from the server in response to the request (e.g., the speech output is an appropriate response to a request made by the user, assuming it is a request for a dinner reservation or turn-by-turn navigation directions). In some embodiments, receiving the speech output includes (508) generating the speech output at the device (e.g., the server returns a text string in response to the request, and the device uses a text-to-speech engine to generate the speech output from the text string). It should be understood that in some embodiments, receiving the speech output means receiving from the server (which optionally includes additional processing operations, such as text-to-speech operations). Alternatively or in addition, receiving the speech output means receiving from a second device component (e.g., a module such as the interrupt handling module 340 or a processor 304 that executes instructions retained in a module such as the interrupt handling module 340) at a first device component.

[0116] The device determines (510) whether the device is currently receiving voice input from the user. For example, in some embodiments, the device is (512) a phone, and determining whether the device is currently receiving voice input from the user includes determining whether the user is participating in a conference call with a remote user. In such embodiments, if the user is currently speaking in a conference call, the device determines that it is currently receiving voice input from the user. In some embodiments, the device determines that it is not currently receiving voice input while one party at the other end of the conference call is speaking, or if there is a period of silence while the user and the other party are doing other things (for example, in some embodiments, an active conference call is sufficient to determine that the device is receiving voice input, while in alternative embodiments, the device determines that voice input is being received when the user is actually the person speaking in the meeting).

[0117] In some embodiments, determining whether the device is currently receiving voice input from the user includes (514) determining whether the last voice input was received within a predetermined time period. For example, because there are natural pauses in the ebb and flow of meetings (e.g., pauses to catch a breath, pauses to consider what to say next), in some embodiments, the device waits a predetermined amount of time before inferring that the user is not speaking, rather than detecting voice input in an instant or near-instant manner. In some embodiments, the predetermined time period is a function of an urgency metric output (516). For example, when the device has an urgent message in the output queue ("Turn right now!"), the device will wait a shorter amount of time before determining that the user is not speaking, thereby interrupting at the moment when the user pauses to catch a breath or consider what to say next. In some embodiments, determining whether the device is currently receiving voice input includes a silence determination (e.g., based on a particular strength or directionality threshold at the device microphone) to eliminate, for example, background noise and / or speech spoken by the user but not intended as voice input (e.g., during a conference call, when the user pauses the meeting to speak privately to another party).

[0118] When it is determined that the device does not currently receive voice input from the user, the device provides (518) voice output to the user. In some embodiments, the device provides (520) audio data (reference 512, when the user is participating by phone) and voice output received from the remote user to the user at the same time, without keeping providing voice output due to the received audio data. For example, in such embodiments, when the remote user (i.e., the other party) is speaking during a conference call, the device will still provide voice output from a digital assistant. In some embodiments, providing the audio data (e.g., voice) and voice output received from the remote user to the user at the same time means temporarily muting the audio data from the remote user while providing voice output. For example, in such embodiments, when the remote user states "eighty-seven years ago, our fathers developed a new country on this continent, yearning for freedom, and committed to the idea that all men are born equal", and the voice output in the output queue is "turn left", the audio actually provided to the user will be "eighty-seven years ago, our fathers developed on this continent...'turn left'...yearning for freedom, bigness is committed to the idea that all men are born equal". The user will thereby be aware that the remote user is reciting Lincoln's Gettysburg Address, and will also understand the instruction to turn left. In some embodiments, the audio data and speech output received from the remote user are provided using different accents and / or volumes to distinguish the remote user from the digital assistant.

[0119] In some cases, the user will have configured the device to override providing voice output. For example, when the device is in a do not disturb mode of operation, forgoing (522) providing voice output. In some embodiments, when the user has configured the device to be in the do not disturb mode of operation, the device is in the do not disturb mode of operation. In some embodiments, when the user has configured the device to operate in a mode different from do not disturb, the device is in the do not disturb mode of operation, but nonetheless includes do not disturb as a feature (e.g., the device is in airplane mode or silent mode, or the user has configured the device to be in silent mode during certain hours of the day, etc.).

[0120] In some embodiments, during the provision (524) of the voice output, the device receives (526) voice input from the user. For example, the device is in an intermediate state of providing the voice output when the user interrupts or speaks another request for the digital assistant operation by speaking as part of a conference call. As an example of the latter case, when the user has previously requested the device to locate a nearby Chinese restaurant, the user may interrupt the response to indicate that he or she also needs to send an SMS message to a colleague. In such embodiments, the device will not proceed with (528) the voice output. In such embodiments, the device will determine (530) whether the completion criteria corresponding to the voice output have been met. In some embodiments, the completion criteria (532) are met when a predefined percentage of the voice output has been provided to the user. For example, in some embodiments, the predefined percentage of the voice output is (534) a percentage from the group consisting of: 50%, 60%, 70%, and 80%. When it is determined that the completion criteria have not been met, the device retains (536) at least a portion of the voice output for use at a later time, and when it is determined that the completion criteria are met, the device completely abandons the remaining portion of the output voice output. In some embodiments, the completion criteria is met when the device determines that the remainder of the message is a debate (e.g., after requesting Chinese food, and while the device recites a list of local Chinese restaurants, the user states "That's okay, I want to eat Thai food.").

[0121] When it is determined that the device is receiving voice input from the user, the device determines (538) whether it is urgent to provide the voice output. In some embodiments, the voice output is urgent (540) when the voice output meets the user-configurable criteria for immediate provision. For example, in some embodiments, the user-configurable criteria are met (542) when the device receives an electronic message from a person that the user previously identified as a VIP. Alternatively or in addition, in some embodiments, the user-configurable criteria are met (544) when the device receives a stock price update and the user has previously configured the device to provide the stock price update immediately (e.g., the user has configured the device to alert him or her when a specific stock price exceeds a specific value so that the user can consider selling the stock as soon as possible). In some embodiments, it is determined based on context whether it is urgent to provide the voice input. For example, when the voice output includes directions to a turn soon ("Turn left now!"), the device recognizes that the message is urgent. When it is determined that providing the voice output is urgent, the device provides (546) the voice output to the user (e.g., the device "interrupts" and still provides the voice output despite receiving the voice input from the user). In some embodiments, the device provides (548) speech output to the user without delay (e.g., adding additional delay to any required processing time necessary to produce the output to take into account the fact that the user is speaking).

[0122] When it is determined that providing voice output is not urgent, the device keeps (550) providing voice output to the user. As described in more detail below, in some cases, keeping providing voice output means delaying providing voice output until a later time, and then providing voice output, while in other cases, keeping means completely giving up providing voice output, and never providing this particular voice output. In some cases, whether keeping means temporarily delaying providing voice output or permanently giving up providing voice output depends on the context around the specific embodiment, specific implementation and voice output (reference 562). In some embodiments, when the device is in a special operating mode, the device provides (552) voice output without delay (for example, even if the device is currently receiving voice input from the user). For example, in some embodiments, the device includes an "interrupt me" operating mode, whereby, regardless of whether the device is receiving voice input, the user is interrupted by the digital assistant (for example, the digital assistant interrupts). In some embodiments, the special operating mode is (553) one or more groups consisting of a hold operating mode and a silent operating mode.

[0123] Flow paths 553-1, 553-2, and 553-3 represent additional operations that are optionally performed when it is determined that providing speech output is not urgent, according to some embodiments of method 500. It should be understood that the various operations described with respect to flow path 553 are not necessarily mutually exclusive and are combined in some cases.

[0124] For example, according to some embodiments, when it is determined that the device is no longer receiving voice input from the user, the device provides (554) voice output to the user. In some embodiments, determining that the device is no longer receiving voice input from the user includes (556) determining that a predefined amount of time has passed between the time of the last voice input and the current time. In some embodiments, the predefined amount of time is a function of the urgency metric of the voice output. In some embodiments, the predetermined amount of time is a monotonically decreasing function of the urgency metric of the (560) voice output, thereby providing voice output with a greater urgency metric in a less amount of time. For example, in these embodiments, after the user has finished speaking and before providing an urgent voice output, the device waits a shorter amount of time than when the voice output is less urgent.

[0125] In some embodiments, the device determines (562) whether the output satisfies the message skip criteria. In some embodiments, the message skip criteria (564) are satisfied when the urgency metric is below a predefined threshold. For example, when the voice output is one of several warnings in a warning sequence, in some cases, it is not necessary to provide each warning in the warning sequence to the user. In some embodiments, the message skip criteria (566) are satisfied when the voice output is a navigation command in a set of turn-by-turn navigation directions and the device is scheduled to give the corresponding navigation command at a later time. For example, the device is scheduled to provide navigation commands 2 miles, 1 mile, 1 / 2 mile, and before the turn. In such a case, if the user is providing voice input when the 1 mile command is supposed to be recited, the device completely abandons providing the 1 mile command. The driver will accordingly still be notified of the turn by the 1 / 2 mile command and the moment before the turn.

[0126] In some embodiments, when the device includes a display, when it is determined that providing the voice output is not urgent, the device provides (568) a displayed output corresponding to the voice output.

[0127] Figure 6 6 is a flow chart of an exemplary method 600 implemented by a digital assistant for managing a list of notification items and providing an audio prompt for a notification item. In some embodiments, the method is performed at one or more devices (e.g., device 104 and / or components of digital assistant system 300, including, for example, server system 108) having a memory and one or more processors. In some embodiments, an interrupt handler (e.g., Figure 3AThe interrupt handler 340 in ) dynamically performs the determination of whether to provide an audio prompt for the notification item based on the current context of the device and / or user. Although the subsequent steps can be understood as being performed by a device (e.g., one device), the method is not limited to this particular embodiment. For example, in some embodiments, each step can be performed by different devices, including several devices working together to perform a single step, several devices each performing one or more steps one by one, and so on.

[0128] A list of notification items is provided (602). Notification items are items that are configured to provide notifications to a user. For example, notification items may be associated with and / or triggered by communications (e.g., received emails, text messages, voicemail messages, etc.), calendar alerts (e.g., reminders associated with appointments or other entries in a calendar application or service), reminder alerts (e.g., reminders or task items associated with a task list or reminder list), application alerts, etc. An application alert is an alert issued by an application installed on an electronic device and may include any information. For example, an application alert may include a notification of an action taken by the application (e.g., notifying a user that an online banking session will be terminated for security purposes), or a notification from a service associated with the application (e.g., notifying a user of activity in a social network to which the application provides access). For example, a notification item corresponds to an item displayed in the "Notification Center" in iOS by APPLE, INC.

[0129] The list of notification items includes multiple notification items, wherein each corresponding notification item in the multiple notification items is associated with a corresponding urgency value. The urgency value is assigned to the notification item by the digital assistant. In some embodiments, the urgency value is not assigned by the user. In some embodiments, the urgency value is not determined based on user-defined notification rules. For example, in some embodiments, the urgency value is not based on a user request to allow or deny notifications from a particular person, domain, application, etc. However, in some embodiments, although the digital assistant can override or ignore the rules as appropriate, the urgency value takes into account the user-defined notification rules when assigning the urgency value.

[0130] The urgency value may be based on a variety of different factors, as described below. The urgency value may be any measure, such as a numerical range between 0 and 10, where higher values ​​correspond to more urgent notifications. Urgency values ​​may also be "high urgency," "medium urgency," and "low urgency." Any other suitable value or measure may also be used.

[0131] In some embodiments, the urgency value is based on one or more of: a time associated with a corresponding notification item; a location associated with a corresponding notification item; and the content of the corresponding notification item. In some implementations, the urgency value is based on a combination of these components, such as a weighted average of the urgency impact of each component. In some implementations, the urgency value is based on one or a subset of these components.

[0132] In some embodiments, the urgency value for notification items associated with a particular time, such as calendar entries and time-based reminders, takes into account the temporal proximity of the notifications. Thus, if a notification is associated with an event or reminder that is close in time (e.g., relative to other events or reminders), the temporal component of the urgency value is higher, and if a notification is associated with an event or reminder that is further away in time (e.g., relative to other events or reminders), the temporal component of the urgency value is lower.

[0133] In some embodiments, the urgency value for a notification item associated with a location, such as a calendar entry for a specified location, takes into account how far the user is currently from the location. Thus, in some embodiments, if the notification is associated with an appointment that requires a longer travel time (e.g., relative to other appointments), the location component of the urgency value is higher, and if the notification is associated with an event or reminder that requires a shorter travel time (e.g., relative to other appointments), the location component of the urgency value is lower.

[0134] In some embodiments, an urgency value is automatically determined based on the semantic content of the notification. For example, the digital assistant determines the meaning of each notification (e.g., using the natural language processing module 322) and assigns an urgency value based on the determined meaning. For example, the digital assistant can determine whether the content of the notification item (e.g., the body of an email or text message, or the text content of an application notification) is related to a meaning in a set of known meanings. For example, in some embodiments, the digital assistant can determine whether the notification item may be related to a medical emergency, a work emergency, a family emergency, a routine application notification, a calendar item, a reminder, or a task list item. In some embodiments, known meanings and / or meaning categories are associated with urgency values ​​and / or ranges of urgency values, and the digital assistant assigns urgency values ​​to the notification items based on the meanings and / or meaning categories it determines.

[0135] In some embodiments, determining the urgency value includes determining an importance topic for a user of the device, and assigning at least one of the corresponding urgency values ​​to the corresponding notification item based on the determination that the corresponding notification item corresponds to the importance topic. For example, in some embodiments, the digital assistant determines an importance topic for the user based on any of the following: historical data associated with the user (e.g., by determining that the user typically responds quickly to communications regarding a particular topic), the amount of notification items related to the topic in a list of notification items (e.g., by determining that the number of notification items related to the topic meets a predetermined threshold, such as 2, 3, 5, or more notification items), a user-specified topic (e.g., a user requests to be alerted for any notification related to a particular topic), etc. In some embodiments, the importance topic is automatically determined by the device without human intervention, such as by determining the importance topic based on historical data associated with the user as described above.

[0136] In some embodiments, the urgency value is further based on urgency values ​​previously assigned to similar notifications by the digital assistant, embedded tags or importance indicators associated with the notification (e.g., an email sent with the words "high importance"), keywords in the notification (e.g., "boss," "urgent," "urgent," "hospital," "death," "birth," "now," "where are you," etc.), the application or type of application issuing the notification (e.g., applications that are unlikely to provide important notifications such as games are typically less important than those from applications that allow person-to-person communication), the sender and recipient of the communication, user history associated with similar notifications (e.g., whether the user has a history of quickly viewing and / or reacting to similar notifications, or whether they are frequently ignored and / or discarded, or how quickly the user tends to respond to communications from particular people), and the like.

[0137] Return to Figure 6 , an information item is detected (604). In some embodiments, the information item is a communication (e.g., an email, voicemail, text message, etc.). In some embodiments, the information item is an application notification. In some embodiments, the information item corresponds to a change in device context, such as an indication that the device is in a vehicle. For example, the digital assistant can determine that it is in a vehicle by detecting a specific movement, speed, and / or position of the device using a GPS receiver or accelerometer, or by detecting that the device has been communicatively coupled to the vehicle, such as via Bluetooth or a docking station. Another example of an information item corresponding to a change in context is an indication that the device has changed location (e.g., an indication that the user has arrived at a workplace or is at home, etc.). In some embodiments, at least two information items are detected, including a communication (e.g., an email, voicemail, or text message) and a change in device context (e.g., detecting that the device has changed location).

[0138] The digital assistant determines whether the information item is relevant to the urgency value of the first notification item in the plurality of notification items (606). In some embodiments, where two information items are received, the digital assistant determines whether the combination of the two information items is relevant to the first notification item in the plurality of notification items.

[0139] For example, in some embodiments, the digital assistant determines whether an incoming communication (e.g., an information item) is related to any notification item in the list of notification items. For example, an incoming communication is related to a notification in the list of notification items if they have the same or similar subject, are from the same sender, have the same or similar semantic classification (as determined by the natural language processing module as described above), have one or more common words and / or keywords, etc. As a specific example, a transcribed voicemail from a particular sender may refer to a recent email included in the list of notifications (e.g., "I just forwarded you an email from Josh - please call me immediately upon receipt."). The digital assistant then determines from the information associated with the transcribed voicemail that the voicemail is related to a particular email (e.g., based on the fact that they were both sent by the same person, they both point to a forwarded email from "Josh," etc.).

[0140] In some embodiments, the digital assistant determines whether a change in device context is related to any notification item in a list of notification items. For example, the digital assistant determines whether a change in device location affects the travel time required to make an upcoming appointment. In some embodiments, the digital assistant determines whether an application notification is related to any notification item in a list of notification items. For example, the digital assistant may determine that a notification from a reminder or task list application has the same or similar content as an existing notification involving a calendar entry. Specifically, the digital assistant may determine that the reminder "Bring a birthday present for Judy" is related to a notification for the calendar entry "Judy's birthday."

[0141] In some embodiments, once the digital assistant determines that the information item is related to the first notification item in the plurality of notification items, the digital assistant determines that the information item is related to the urgency of the notification item (reference 606). For example, the digital assistant determines whether the information item affects any of the following: the time associated with the notification item (e.g., the information item changes the appointment to an earlier or later time, the information item indicates a flight or other travel delay), the location associated with the notification item (e.g., the location of the appointment is changed), the travel time to the appointment (e.g., because the user is now farther away from the location of the upcoming appointment, or because traffic conditions have changed), the importance of the notification item (e.g., because multiple communications related to a particular topic are detected, or because the semantic content of the information item indicates an escalation in the importance of the notification item), and the like.

[0142] When determining whether the information item is related to the urgency value of the first notification item, the digital assistant adjusts the urgency value of the first notification item (608). In some embodiments, the urgency value is adjusted to be more urgent or less urgent based on how the detected information item affects the first notification item. In some implementations, the digital assistant incorporates the information item in the first notification item, such as by changing the expiration date, appointment time, location, etc. of the first notification item. For example, in some implementations, if the notification item involves a calendar entry associated with a specific time, and the information item is an email indicating that the calendar entry has been rescheduled, the digital assistant will update the notification item to show that the time has changed. In some implementations, the digital assistant generates a new notification item that includes information from both the first notification item and the information item, and assigns an urgency value to it based on both. For example, in some implementations, the digital assistant will create a notification item related to multiple communications, such as an initial email (e.g., a first notification item) and a subsequent voicemail (e.g., an information item). In some implementations, the new notification item has an urgency value different from its constituent notification items and / or information items.

[0143] The digital assistant determines whether the adjusted urgency value of the first notification item meets a predetermined threshold (610). In some embodiments, the threshold determines the urgency level that the notification item must have at that time in order to warrant interrupting the user. In some embodiments, the threshold can be determined by the user or by the digital assistant. For example, in some embodiments, the digital assistant continuously determines and applies a particular urgency threshold, and the user can override and / or adjust the automatically determined threshold at any time.

[0144] In some embodiments, there are a predetermined number of thresholds. For example, the digital assistant and / or the user may select from a low urgency threshold, a medium urgency threshold, or a high urgency threshold. In some embodiments, a low urgency threshold indicates that any and all notifications may be provided without restriction; a medium urgency threshold indicates that only notifications with medium urgency values ​​or high urgency values ​​will be provided; and a high urgency threshold indicates that only notifications with high urgency values ​​will be provided. As described above, the urgency values ​​may correspond to a numerical range rather than a low / medium / high classification (or in addition to it). Thus, in some embodiments, urgency values ​​within a first sub-value range correspond to low urgency (e.g., 1-5, where the urgency values ​​are between 1-10), urgency values ​​within a second sub-value range correspond to medium urgency (e.g., 6-8, where the urgency values ​​are between 1-10), and urgency values ​​within a third sub-value range correspond to high urgency (e.g., 9-10, where the urgency values ​​are between 1-10). Any other appropriate total range and sub-range may also be used. In this specification, the thresholds are referred to as low, medium, or high, but it should be understood that this does not limit the urgency values ​​to a specific "low / medium / high" scheme, and other thresholds and urgency values ​​may be used instead of or in addition to those described values. In some embodiments, the user may set the threshold by manipulating a slider control (e.g., displayed on a touch screen of a device) to a desired point. For example, a higher value on a slider control (e.g., to the right) may correspond to a higher urgency threshold.

[0145] As described above, in some embodiments, the digital assistant automatically establishes a predetermined threshold value without user intervention. In some embodiments, the digital assistant establishes a predetermined threshold value based on the location of the device. In some embodiments, a specific location may be associated with a specific threshold value by default (e.g., it may be temporarily or permanently changed by the user). For example, a home is associated with a low threshold value, a bedroom is associated with a medium threshold value, a workplace is associated with a medium threshold value, a movie theater is associated with a high threshold value, and so on. In some embodiments, the threshold values ​​to be used in various locations are first established by the user, for example, as part of the initialization or training of the digital assistant. Therefore, one user may specify that a low threshold value should be used when it is working, and another user may specify a high threshold value when working. However, in some cases, the digital assistant assigns a default threshold value to a specific location for all users. For example, the digital assistant may select a high threshold value by default at any time when the device is in a theater, park, church, museum, shopping mall, etc., even if the user does not associate the location with the threshold value. In some embodiments, the digital assistant notifies the user when it applies any value other than the low threshold value, without the user having to train it to do so in advance. Therefore, the user can easily opt out of (or opt in to) the threshold value of the promotion. In some specific implementations, the user must specifically enable a mode in which the device will automatically select any threshold value higher than the low threshold value. In this way, the user can have confidence that the device will only raise the urgency threshold if the user specifically requests it.

[0146] In some embodiments, the digital assistant establishes a predetermined threshold based on the context of the device. For example, when the device is in a car (e.g., detected by a motion / position / speed profile, an ambient noise profile, or by detecting a communication link with the vehicle), the digital assistant establishes a low urgency threshold.

[0147] In some embodiments, the digital assistant establishes predetermined thresholds based on the time of day. For example, daytime hours may be associated with a low urgency threshold, and nighttime hours may be associated with a high urgency threshold.

[0148] In some embodiments, the digital assistant establishes a predetermined threshold based on calendar items associated with the current time. Specifically, in some embodiments, the digital assistant can infer where the user is and what the user is doing based on the user's calendar entries. If a meeting is scheduled for a user during a specific time, for example, the device can infer that the user is likely to hold a meeting during that time. (In some embodiments, the digital assistant can confirm whether the user is attending the scheduled event by comparing the event location with the user's actual location.) Therefore, if the calendar entry includes information that implies that a specific threshold is appropriate, the device will establish the threshold accordingly. The digital assistant determines that a calendar event implies a specific threshold, for example, based on the participants of the meeting (e.g., the number and / or names of participants), the meeting location, the meeting topic, or any text associated with the calendar entry (e.g., "lunch" may correspond to a low threshold, while "work meeting" may correspond to a high threshold).

[0149] In some embodiments, the digital assistant establishes a predetermined threshold value based on the user settings of the device. For example, if the user has activated the "Do Not Disturb" mode, a high urgency threshold value may be used.

[0150] Return to Figure 6 When it is determined that the adjusted urgency value meets a predetermined threshold (reference 610), the digital assistant provides a first audio prompt to the user (612).

[0151] In some embodiments, when it is determined that the adjusted urgency value does not meet a predetermined threshold, the digital assistant delays providing an audio prompt to the user (614). In some embodiments, a delayed audio prompt is provided once the urgency threshold changes or once the urgency value of the notification item changes. In some embodiments, when it is determined that the adjusted urgency value does not meet the predetermined threshold, the digital assistant simply does not provide an audio prompt for the notification item (unless the urgency value changes in response to an information item detected later). In some embodiments, when it is determined that the adjusted urgency value does not meet the predetermined threshold, the digital assistant provides a visual prompt to the user (e.g., a banner or pop-up notification on the screen of device 104). In some embodiments, the text component of the notification item is maintained in the notification user interface so that the user can view, confirm, and / or react to the notification item at a later time, and the notification item is not lost.

[0152] In some embodiments, the digital assistant determines whether the user has acknowledged the first audio prompt (616); when it is determined that the user has not acknowledged the first audio prompt (e.g., within a predetermined duration), a second audio prompt is provided to the user, the second audio prompt being different from the first audio prompt (618). In some embodiments, the second prompt is more unique and / or stronger than the first audio prompt. For example, in some embodiments, the second audio prompt is louder than the first audio prompt. In some embodiments, the second audio prompt is longer than the first audio prompt. For example, the second audio prompt can be a longer ringtone than the first audio prompt, or a tone or sound that is repeated more times (and / or faster). In some embodiments, the first audio prompt is a first sound (e.g., a first ringtone), and the second audio prompt is a second sound that is different from the first sound (e.g., a second ringtone). Thus, the user can distinguish between the first audio prompt and the second audio prompt. In some embodiments, the user can select a specific sound and / or ringtone to be associated with the first audio prompt and the second audio prompt. In some implementations, the vibration of the device is considered an audio prompt.

[0153] In some embodiments, one of the first audio prompt, the second audio prompt, or the third audio prompt corresponds to a phone call or a voicemail. For example, the digital assistant may actually place a phone call (or a virtual phone call) so that the user's smart phone rings, thereby alerting the user to the urgency of the notification. Specifically, notifications for incoming calls may be handled differently from notifications so that incoming calls bypass the managed notification list. Therefore, by placing a phone call to the user (e.g., so that a normal phone ringtone and a visual notification are provided to the user), the user may be alerted to the urgency of the notification. In some specific implementations, the digital assistant will actually vocalize the notification (e.g., using a text-to-speech engine) when the user answers the phone call. In some specific implementations, if the user does not answer the phone call, the digital assistant leaves a verbal voicemail for the user.

[0154] In some embodiments, the digital assistant determines whether the user has acknowledged the second audio prompt (620); when it is determined that the user has not acknowledged the second audio prompt (e.g., within a predetermined duration), a third audio prompt is provided to the user that is different from the first audio prompt and the second audio prompt (622). In some embodiments, the third audio prompt is louder and / or longer than both the first audio prompt and the second audio prompt. In some embodiments, the third audio prompt is a voice output.

[0155] In some embodiments, the first audio prompt is a ringtone, the second audio prompt is a first voice output at a first volume, and the third audio prompt is a voice output at a second volume louder than the first volume.

[0156] In some embodiments, the first audio prompt is a ringtone, the second audio prompt is a first voice output of a first length, and the third audio prompt is a second voice output of a second length that is longer than the first length.

[0157] In some embodiments, the process of upgrading the audio prompt (e.g., corresponding to the above use of the first audio prompt, the second audio prompt, and the third audio prompt) is combined with the threshold determination to provide a comprehensive and least intrusive active notification solution. Specifically, in some embodiments, even the most urgent notifications start with the least intrusive audio prompt (e.g., a single ring or beep, or even a non-audio prompt, such as a tactile or visual output, such as a vibration or pop-up notification). If the audio prompt is not confirmed (e.g., because the user does not interact with the device by pressing a button, a switch, or turning on the screen to view the notification), a second audio prompt will be provided. If the second audio prompt is not confirmed, a third audio prompt is provided. However, if the notification is not so urgent, additional audio prompts may not be generated. Therefore, messages with lower urgency may result in providing the first audio prompt to the user, but subsequent audio prompts will not be generated. In some embodiments, all notification items cause the first audio prompt to be provided, but only notifications that meet a predetermined threshold will be upgraded to the second audio prompt or the third audio prompt.

[0158] References Figure 5A-Figure 6 The operation is optionally performed by Figure 2 3. For example, the receiving operation 504, providing operation 520, receiving operation 526 are optionally implemented by the digital assistant 326, I / O processing module 328, interrupt processing module 340 and / or natural language processing module 332 described in detail above. Similarly, those skilled in the art will clearly know that based on Figure 2 And / or how the components shown in FIG. 3 may implement other processes.

[0159] It should be understood that the specific order in which the operations have been described above is merely exemplary and is not intended to indicate that the order is the only order in which the operations can be performed. A person of ordinary skill in the art will recognize many ways to reorder the operations described herein.

[0160] For the purpose of explanation, the foregoing description is described with reference to specific embodiments. However, the above exemplary discussion is not intended to be exhaustive, nor is it intended to limit the present invention to the disclosed precise form. According to the above teachings, many modifications and variations are possible. The embodiments are selected and described in order to fully explain the principles of the present invention and its practical application, so that other persons skilled in the art can make full use of the present invention and various embodiments with various modifications suitable for the specific purpose contemplated.

Claims

1. A method of operating a digital assistant, comprising: At a device having one or more processors and a memory: generating a set of speech outputs, the set of speech outputs comprising a respective set of notifications to be provided to a user of the device, wherein each notification in the set of notifications is a direction in a set of turn-by-turn navigation directions generated for a turn-by-turn navigation direction event; Conducting a communication session with a remote device; When the device is conducting the communication session with the remote device: determining an urgency value for a first direction in the set of turn-by-turn navigation directions, wherein the urgency value is based on other directions in the set of turn-by-turn navigation directions; determining whether the urgency value of the first direction meets a predefined threshold; When it is determined that the urgency value of the first direction satisfies the predefined threshold, providing a first voice output from the set of voice outputs to the user of the device; as well as When it is determined that the first direction does not satisfy the predefined threshold, providing the first voice output in the set of voice outputs to the user of the device is abandoned.

2. The method of claim 1, wherein the urgency value of the first direction is based on user-configurable criteria associated with the first speech output.

3. A method according to any one of claims 1 and 2, wherein the urgency value of the first direction is based on the context of the first speech output.

4. The method according to claim 1, further comprising: determining whether an operation mode of the device satisfies a predefined operation mode; as well as Based on determining that the operating mode of the device satisfies the predefined operating mode, the first speech output is provided to the user of the device. The method of claim 4 , wherein the predefined operating mode is based on a user setting of the device.

6. The method according to claim 1, further comprising: When it is determined that the urgency value of the first direction does not meet the predefined threshold, the first voice output is delayed for a predefined time. The method of claim 6 , wherein the predefined time is based on whether the device is receiving voice input from the user.

8. The method according to claim 6, further comprising: After delaying providing the first speech output for the predefined time: determining whether the communication session has ended; as well as Based on determining that the communication session has ended, providing the first voice output to the user of the device.

9. The method according to claim 1, further comprising: When it is determined that the urgency value of the first direction does not satisfy the predefined threshold, providing a visual output corresponding to the first voice output on a display of the device.

10. The method of claim 1, wherein the communication session is a conference call.

11. The method according to claim 1, further comprising: receiving a request from the user to perform a task; executing the task requested by the user; as well as wherein the set of speech outputs to be provided to the user of the device corresponds to the performance of the task.

12. The method according to claim 1, further comprising: When the device conducts the communication session: determining whether the device is currently receiving voice input from the user; as well as Based on determining that the device is not currently receiving voice input from the user, the first voice output is provided to the user of the device.

13. The method of claim 12, wherein determining whether the device is currently receiving voice input from the user comprises: A determination is made as to whether a previous voice input from the user has been received within a predefined time period.

14. The method of claim 12, wherein determining whether the device is currently receiving voice input from the user comprises: A determination is made as to whether an intensity characteristic of the speech input exceeds a predefined intensity threshold.

15. The method of claim 1, wherein the urgency value of the first direction is based on a position of the first voice output in a list of scheduled voice outputs.

16. The method according to claim 1, Wherein conducting the communication session with the remote device comprises: audibly providing to the user audio data received from the remote device; and wherein providing the first speech output to the user of the device comprises: temporarily muting provision of the audio data received from the remote device; as well as The first speech output is output to the user of the device while the audio data received from the remote device is muted.

17. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions that, when executed by one or more processors of an electronic device, cause the device to: generating a set of speech outputs, the set of speech outputs comprising a respective set of notifications to be provided to a user of the device, wherein each notification in the set of notifications is a direction in a set of turn-by-turn navigation directions generated for a turn-by-turn navigation direction event; Conducting a communication session with a remote device; as well as When the device is conducting the communication session with the remote device: determining an urgency value for a first direction in the set of turn-by-turn navigation directions, wherein the urgency value is based on other directions in the set of turn-by-turn navigation directions; determining whether the urgency value of the first direction meets a predefined threshold; When it is determined that the urgency value of the first direction satisfies the predefined threshold, providing a first voice output from the set of voice outputs to the user of the device; as well as When it is determined that the urgency value of the first direction does not satisfy the predefined threshold, providing the first voice output in the set of voice outputs to the user of the device is abandoned.

18. The computer-readable storage medium of claim 17, wherein the urgency value of the first direction is based on user-configurable criteria associated with the first speech output.

19. The computer-readable storage medium of any one of claims 17 and 18, wherein the urgency value of the first direction is based on a context of the first speech output.

20. The computer-readable storage medium of claim 17, wherein the one or more programs further include instructions that, when executed by the one or more processors, cause the device to: determining whether the operation mode of the electronic device satisfies a predefined operation mode; and Based on determining that the operating mode of the electronic device satisfies the predefined operating mode, the first voice output is provided to the user of the device.

21. The computer-readable storage medium of claim 20, wherein the predefined operating mode is based on a user setting of the device.

22. The computer-readable storage medium of claim 17, wherein the one or more programs further include instructions that, when executed by the one or more processors, cause the device to: When it is determined that the urgency value of the first direction does not meet the predefined threshold, the first voice output is delayed for a predefined time.

23. The computer-readable storage medium of claim 22, wherein the predefined time is based on whether the device is receiving voice input from the user.

24. The computer-readable storage medium of claim 22, wherein the one or more programs further include instructions that, when executed by the one or more processors, cause the device to: After delaying providing the first speech output for the predefined time: determining whether the communication session has ended; and Based on determining that the communication session has ended, providing the first voice output to the user of the device.

25. The computer-readable storage medium of claim 17, wherein the one or more programs further include instructions that, when executed by the one or more processors, cause the device to: When it is determined that the urgency value of the first direction does not satisfy the predefined threshold, a visual output corresponding to the first voice output is provided on a display of the electronic device.

26. The computer-readable storage medium of claim 17, wherein the communication session is a conference call.

27. The computer-readable storage medium of claim 17, wherein the one or more programs further comprise instructions that, when executed by the one or more processors, cause the device to: receiving a request from the user to perform a task; executing the task requested by the user; and wherein the set of speech outputs to be provided to the user of the device corresponds to the performance of the task.

28. The computer-readable storage medium of claim 17, wherein the one or more programs further include instructions that, when executed by the one or more processors, cause the device to: When the device conducts the communication session: determining whether the device is currently receiving voice input from the user; and Based on determining that the device is not currently receiving voice input from the user, the first voice output is provided to the user of the device.

29. The computer-readable storage medium of claim 28, wherein determining whether the device is currently receiving voice input from the user comprises: A determination is made as to whether a previous voice input from the user has been received within a predefined time period.

30. The computer-readable storage medium of claim 28, wherein determining whether the device is currently receiving voice input from the user comprises: A determination is made as to whether an intensity characteristic of the speech input exceeds a predefined intensity threshold.

31. The computer-readable storage medium of claim 17, wherein the urgency value of the first direction is based on a position of the first voice output in a list of scheduled voice outputs.

32. The computer-readable storage medium of claim 17, Wherein conducting the communication session with the remote device comprises: audibly providing to the user audio data received from the remote device; and wherein providing the first speech output to the user of the device comprises: temporarily muting provision of the audio data received from the remote device; as well as The first speech output is output to the user of the device while the audio data received from the remote device is muted.

33. An electronic device comprising: one or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the following: generating a set of speech outputs, the set of speech outputs comprising a respective set of notifications to be provided to a user of the device, wherein each notification in the set of notifications is a direction in a set of turn-by-turn navigation directions generated for a turn-by-turn navigation direction event; Conducting a communication session with a remote device; as well as When the device is conducting the communication session with the remote device: determining an urgency value for a first direction in the set of turn-by-turn navigation directions, wherein The urgency value is based on other directions in the set of turn-by-turn navigation directions; determining whether the urgency value of the first direction meets a predefined threshold; When it is determined that the urgency value of the first direction satisfies the predefined threshold, providing a first voice output from the set of voice outputs to the user of the device; as well as When it is determined that the first direction does not satisfy the predefined threshold, providing the first voice output in the set of voice outputs to the user of the device is abandoned.

34. An electronic device according to claim 33, wherein the urgency value of the first direction is based on user-configurable criteria associated with the first voice output.

35. An electronic device according to any one of claims 33 and 34, wherein the urgency value of the first direction is based on a context of the first speech output.

36. The electronic device of claim 33, wherein the one or more programs further include instructions for performing the following: determining whether the operation mode of the electronic device satisfies a predefined operation mode; and Based on determining that the operating mode of the electronic device satisfies the predefined operating mode, the first voice output is provided to the user of the device.

37. The electronic device of claim 36, wherein the predefined operating mode is based on a user setting of the device.

38. The electronic device of claim 33, wherein the one or more programs further include instructions for performing the following: When it is determined that the urgency value of the first direction does not meet the predefined threshold, the first voice output is delayed for a predefined time.

39. The electronic device of claim 38, wherein the predefined time is based on whether the device is receiving voice input from the user.

40. The electronic device of claim 38, wherein the one or more programs further include instructions for performing the following: After delaying providing the first speech output for the predefined time: determining whether the communication session has ended; and Based on determining that the communication session has ended, providing the first voice output to the user of the device.

41. The electronic device of claim 33, wherein the one or more programs further include instructions for performing the following: When it is determined that the urgency value of the first direction does not satisfy the predefined threshold, a visual output corresponding to the first voice output is provided on a display of the electronic device.

42. The electronic device of claim 33, wherein the communication session is a conference call.

43. The electronic device of claim 33, wherein the one or more programs further include instructions for performing the following: receiving a request from the user to perform a task; executing the task requested by the user; and Wherein the first speech output to be provided to the user of the device corresponds to the performance of the task.

44. The electronic device of claim 33, wherein the one or more programs further comprise instructions for performing the following: When the device conducts the communication session: determining whether the device is currently receiving voice input from the user; and Based on determining that the device is not currently receiving voice input from the user, the first voice output is provided to the user of the device.

45. The electronic device of claim 44, wherein determining whether the device is currently receiving voice input from the user comprises: A determination is made as to whether a previous voice input from the user has been received within a predefined time period.

46. ​​The electronic device of claim 44, wherein determining whether the device is currently receiving voice input from the user comprises: A determination is made as to whether an intensity characteristic of the speech input exceeds a predefined intensity threshold.

47. The electronic device of claim 33, wherein the urgency value of the first direction is based on a position of the first voice output in a list of scheduled voice outputs.

48. The electronic device according to claim 33, Wherein conducting the communication session with the remote device comprises: audibly providing to the user audio data received from the remote device; and wherein providing the first speech output to the user of the device comprises: temporarily muting provision of the audio data received from the remote device; as well as The first speech output is output to the user of the device while the audio data received from the remote device is muted.