Expedited Task Execution

The digital assistant optimizes user interaction by allowing task selection through suggestion affordances and natural language speech, enhancing usability and power efficiency.

JP7566081B2Active Publication Date: 2024-10-11APPLE INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023099460
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-06-03
Filing Date
2023-06-16
Publication Date
2024-10-11
Estimated Expiration
2038-09-28

AI Technical Summary

Technical Problem

Existing digital assistants are constrained by limited user interaction methods, requiring specific commands and lacking adaptability based on previous user behavior, leading to suboptimal user experience and inefficient task performance.

Method used

The implementation of a digital assistant that displays user interfaces with suggestion affordances, allowing users to select tasks through touch inputs and natural language speech, with confirmation interfaces for task execution, and provides context-based task suggestions.

Benefits of technology

Enhances user interaction by reducing the number of required inputs, improving usability, and optimizing task performance through intuitive task execution and efficient power usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566081000011
    Figure 0007566081000011
  • Figure 0007566081000012
    Figure 0007566081000012
  • Figure 0007566081000013
    Figure 0007566081000013
Patent Text Reader

Abstract

To provide a method and electronic device that reduce the number of inputs and time needed for a user to operate the electronic device.SOLUTION: In an electronic device, a method includes: receiving context data associated with the electronic device in a step 1305; determining a task probability for a task on the basis of the context data in a step 1310; determining a parameter probability for a parameter associated with the task on the basis of the context data in a step 1315; determining whether or not the task satisfies suggestion criteria on the basis of the task probability and the parameter probability in a step 1320; displaying a suggestion affordance corresponding to the task and the parameter on a display in accordance with a determination that the task satisfies the suggestion criteria in a step 1325; and canceling displaying the suggestion affordance in accordance with a determination that the task does not satisfy the suggestion criteria in a step 1330.SELECTED DRAWING: Figure 13
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present disclosure relates generally to digital assistants and, more particularly, to using digital assistants to facilitate task execution. [Background technology]

[0002] Intelligent automated assistants (or digital assistants) can provide a useful interface between human users and electronic devices. Such assistants can enable users to interact with devices or systems using natural language in spoken and / or textual form. For example, a user can provide speech input containing a user request to a digital assistant running on an electronic device. The digital assistant can interpret the user's intent from the speech input, actuate the user's intent into a task, and perform the task. In some systems, performing a task in this manner may be constrained by the way the task is specified. However, in some cases, a user may be limited to a specific set of commands, and therefore the user may not be able to easily instruct the digital assistant to perform a task using natural language speech input. Furthermore, in many cases, digital assistants are unable to adapt based on previous user behavior, lacking desirable optimization of the user experience. Summary of the Invention

[0003] An example method is described herein in an electronic device having a display and a touch-sensitive surface, including: displaying on the display a user interface including a suggestion affordance associated with a task; detecting, via one or more input devices, a first user input corresponding to a selection of the suggestion affordance; and, in response to detecting the first user input, performing the task in accordance with a determination that the task is a first type of task; and, in accordance with a determination that the task is a second type of task different from the first type, displaying a confirmation interface including a confirmation affordance.

[0004] An exemplary electronic device is described herein comprising one or more processors, a memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions to: display on a display a user interface including suggestion affordances associated with a task; detect via one or more input devices a first user input corresponding to a selection of the suggestion affordance; and, in response to detecting the first user input, perform the task in accordance with a determination that the task is a first type of task; and display a confirmation interface including a confirmation affordance in accordance with a determination that the task is a second type of task different from the first type.

[0005] An exemplary electronic device includes means for displaying on a display a user interface including a suggestion affordance associated with a task; means for detecting a first user input via one or more input devices corresponding to a selection of the suggestion affordance; and means for, in response to detecting the first user input, performing the task in accordance with a determination that the task is a first type of task, and displaying a confirmation interface including a confirmation affordance in accordance with a determination that the task is a second type of task different from the first type.

[0006] An exemplary non-transitory computer-readable medium is disclosed herein that stores one or more programs including instructions that, when executed by one or more processors of an electronic device, cause the electronic device to display a user interface on a display including a suggestion affordance associated with a task, detect a first user input via one or more input devices corresponding to a selection of the suggestion affordance, and, in response to detecting the first user input, perform the task in accordance with a determination that the task is a first type of task, and display a confirmation interface including a confirmation affordance in accordance with a determination that the task is a second type of task different from the first type.

[0007] Displaying a user interface that includes suggestion affordances and selectively requesting confirmation to perform a task in response to selecting the suggestion affordance provides users with an easily recognizable and intuitive way to perform tasks on an electronic device, thereby reducing the number of user inputs that would normally be required to perform such tasks. Displaying a user interface in this manner therefore improves device usability, provides a more efficient user-device interface (e.g., by assisting users in providing appropriate inputs and reducing user errors when operating / interacting with the device), and further enables users to use the device more quickly and efficiently, thereby reducing power usage and improving the device's battery life.

[0008] An example method includes, on an electronic device having one or more processors, displaying a plurality of task candidate affordances including a task candidate affordance associated with a task; detecting a set of inputs including a first user input corresponding to a selection of a task candidate affordance associated with the task; displaying a first interface for generating a voice shortcut associated with the task in response to detecting the set of user inputs; receiving a natural language speech input by an audio input device while displaying the first interface; displaying candidate phrases based on the natural language speech input in the first interface; detecting a second user input via a touch-sensitive surface after displaying the candidate phrases; and associating the candidate phrases with the task in response to detecting the second user input.

[0009] An exemplary non-transitory computer-readable storage medium has stored thereon one or more programs including instructions that, when executed by one or more processors of an electronic device, cause the electronic device to display a plurality of task candidate affordances, including a task candidate affordance associated with the task, detect a set of inputs including a first user input corresponding to a selection of a task candidate affordance associated with the task, display a first interface for generating a voice shortcut associated with the task in response to detecting the set of user inputs, receive a natural language speech input via an audio input device while displaying the first interface, display candidate phrases based on the natural language speech input in the first interface, detect a second user input via the touch-sensitive surface after displaying the candidate phrases, and associate the candidate phrase with the task in response to detecting the second user input.

[0010] An example electronic device comprises one or more processors, memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions to display a plurality of task candidate affordances including a task candidate affordance associated with the task; detect a set of inputs including a first user input corresponding to a selection of a task candidate affordance associated with the task; display a first interface for generating a voice shortcut associated with the task in response to detecting the set of user inputs; receive a natural language speech input via an audio input device while displaying the first interface; display candidate phrases based on the natural language speech input in the first interface; detect a second user input via the touch-sensitive surface after displaying the candidate phrases; and associate the candidate phrases with the task in response to detecting the second user input.

[0011] An exemplary electronic device comprises means for displaying a plurality of task candidate affordances, including a task candidate affordance associated with the task; means for detecting a set of inputs, including a first user input corresponding to a selection of a task candidate affordance associated with the task; means for displaying a first interface for generating a voice shortcut associated with the task in response to detecting the set of user inputs; means for receiving a natural language speech input by an audio input device while displaying the first interface and displaying candidate phrases based on the natural language speech input in the first interface; means for detecting a second user input via the touch-sensitive surface after displaying the candidate phrases; and means for associating the candidate phrases with the task in response to detecting the second user input.

[0012] By providing candidate phrases based on natural language speech input and associating the candidate phrases with corresponding tasks, a user can accurately and efficiently generate user-specific voice shortcuts that can be used to perform tasks on an electronic device. For example, by allowing a user to associate voice shortcuts with tasks in this manner, the user can visually confirm that the desired voice shortcut has been selected and assigned to the correct task, thereby reducing the likelihood of incorrect or unnecessary associations. Therefore, providing candidate phrases in the described manner may result in more efficient use of an electronic device (e.g., by assisting the user in providing appropriate inputs and reducing user errors when operating / interacting with the device) and may further reduce power usage and improve the device's battery life by allowing the user to use the device more quickly and efficiently.

[0013] An example method includes receiving, at an electronic device having one or more processors, context data associated with the electronic device; determining a task probability for a task based on the context data; determining a parameter probability for parameters associated with the task based on the context data; determining whether the task satisfies a suggestion criterion based on the task probability and the parameter probabilities; displaying, on a display, a suggestion affordance corresponding to the task and the parameters in accordance with a determination that the task satisfies the suggestion criterion; and ceasing to display the suggestion affordance in accordance with a determination that the task does not satisfy the suggestion criterion.

[0014] An exemplary non-transitory computer-readable storage medium stores one or more programs including instructions that, when executed by one or more processors of an electronic device, cause the electronic device to receive context data associated with the electronic device, determine a task probability for a task based on the context data, determine parameter probabilities for parameters associated with the task based on the context data, determine whether the task satisfies suggestion criteria based on the task probability and parameter probabilities, display, on a display, a suggested affordance corresponding to the task and parameters in accordance with a determination that the task satisfies the suggestion criteria, and refrain from displaying the suggested affordance in accordance with a determination that the task does not satisfy the suggestion criteria.

[0015] An exemplary electronic device includes one or more processors, a memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions to receive context data associated with the electronic device, determine a task probability for a task based on the context data, determine parameter probabilities for parameters associated with the task based on the context data, determine whether the task satisfies suggestion criteria based on the task probability and parameter probabilities, display suggested affordances corresponding to the task and parameters on a display in accordance with a determination that the task satisfies the suggestion criteria, and cease displaying the suggested affordances in accordance with a determination that the task does not satisfy the suggestion criteria.

[0016] An exemplary electronic device comprises means for receiving context data associated with the electronic device, means for determining a task probability for a task based on the context data, means for determining a parameter probability for a parameter associated with the task based on the context data, means for determining whether the task satisfies a suggestion criterion based on the task probability and the parameter probabilities, means for displaying, on a display, a suggested affordance corresponding to the task and the parameters in accordance with a determination that the task satisfies the suggestion criterion, and means for canceling the display of the suggested affordance in accordance with a determination that the task does not satisfy the suggestion criterion.

[0017] As described herein, selectively providing task-associated suggestion affordances enables a user to efficiently and conveniently perform tasks relevant to the user on an electronic device. By way of example, suggestion affordances displayed by an electronic device may correspond to tasks identified based on contextual data for the electronic device, such as contextual data indicative of the user's previous use of the electronic device. Selectively providing suggestions in this manner therefore reduces the number of inputs and time required for a user to operate an electronic device (e.g., by assisting the user in providing appropriate inputs and reducing user errors when operating / interacting with the device), and further reduces power usage and improves the device's battery life.

[0018] An exemplary method includes, in an electronic device having one or more processors, receiving a natural language speech input; determining whether the natural language speech input satisfies a voice shortcut criterion; identifying a task associated with the voice shortcut and performing the task associated with the voice shortcut in accordance with a determination that the natural language speech input satisfies the voice shortcut criterion; and identifying a task associated with the natural language speech input and performing the task associated with the natural language utterance input in accordance with a determination that the natural language utterance input does not satisfy the voice shortcut criterion.

[0019] An exemplary non-transitory computer-readable storage medium stores one or more programs including instructions that, when executed by one or more processors of an electronic device, cause the electronic device to receive a natural language speech input, determine whether the natural language speech input satisfies a voice shortcut criterion, identify a task associated with the voice shortcut in accordance with a determination that the natural language speech input satisfies the voice shortcut criterion, and perform the task associated with the voice shortcut, and, in accordance with a determination that the natural language speech input does not satisfy the voice shortcut criterion, identify a task associated with the natural language speech input and perform the task associated with the natural language speech input.

[0020] An exemplary electronic device includes one or more processors, a memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions to receive a natural language utterance input, determine whether the natural language utterance input satisfies a voice shortcut criterion, identify a task associated with the voice shortcut and perform the task associated with the voice shortcut in accordance with a determination that the natural language utterance input satisfies the voice shortcut criterion, and identify a task associated with the natural language utterance input and perform the task associated with the natural language utterance input in accordance with a determination that the natural language utterance input does not satisfy the voice shortcut criterion.

[0021] An exemplary electronic device comprises means for receiving a natural language speech input, means for determining whether the natural language speech input satisfies a voice shortcut criterion, means for identifying a task associated with the voice shortcut and performing the task associated with the voice shortcut in accordance with a determination that the natural language speech input satisfies the voice shortcut criterion, and means for identifying a task associated with the natural language speech input and performing the task associated with the natural language utterance input in accordance with a determination that the natural language utterance input does not satisfy the voice shortcut criterion.

[0022] As described herein, performing tasks in response to natural language speech input (e.g., voice shortcuts) provides an intuitive and efficient approach for performing tasks on an electronic device. By way of example, one or more tasks may be performed in response to natural language speech input without any additional input from the user. Performing tasks in response to natural language speech input in this manner therefore reduces the number of inputs and time required for a user to operate an electronic device (e.g., by assisting the user in providing appropriate inputs and reducing user errors when operating / interacting with the device), and also reduces power usage and improves the device's battery life.

[0023] An example method includes, on an electronic device having one or more processors, receiving a natural language speech input using a digital assistant, determining a voice shortcut associated with the natural language speech input, determining a task corresponding to the voice shortcut, causing an application to initiate performance of the task, receiving a response from the application associated with the task, determining whether performance of the task was successful based on the response, and providing an output indicating whether performance of the task was successful.

[0024] An exemplary non-transitory computer-readable storage medium stores one or more programs including instructions that, when executed by one or more processors of an electronic device, cause the electronic device to receive natural language speech input using a digital assistant, determine a voice shortcut associated with the natural language speech input, determine a task corresponding to the voice shortcut, initiate performance of the task with an application, receive a response associated with the task from the application, determine whether performance of the task was successful based on the response, and provide an output indicating whether performance of the task was successful.

[0025] An exemplary electronic device includes one or more processors, memory, and one or more programs stored in memory and configured to be executed by the one or more processors, the one or more programs including instructions to receive natural language speech input using a digital assistant, determine a voice shortcut associated with the natural language speech input, determine a task corresponding to the voice shortcut, cause an application to initiate performance of the task, receive a response associated with the task from the application, determine whether performance of the task was successful based on the response, and provide an output indicating whether performance of the task was successful.

[0026] An exemplary electronic device includes means for receiving a natural language speech input using a digital assistant, means for determining a voice shortcut associated with the natural language speech input, means for determining a task corresponding to the voice shortcut, means for causing an application to initiate performance of the task, means for receiving a response associated with the task from the application, means for determining whether performance of the task was successful based on the response, and means for providing an output indicating whether performance of the task was successful.

[0027] Providing output as described herein enables a digital assistant to provide feedback and / or other information from an application in an intuitive and flexible manner, for example, during the course of a dialog (e.g., a conversational dialog) between a user and the digital assistant. By way of example, a digital assistant can provide (e.g., relay) natural language expressions from an application to a user, allowing the user to interact with the application without opening or otherwise accessing the application directly. Thus, providing natural language output in this manner reduces the number and time of inputs required for a user to operate an electronic device (e.g., by assisting the user in providing appropriate inputs and reducing user errors when operating / interacting with the device), as well as reducing power usage and improving the device's battery life.

[0028] An example method includes receiving a plurality of media items from an application, receiving context data associated with the electronic device, determining a task based on the plurality of media items and the context data, determining whether the task meets suggestion criteria, displaying a suggestion affordance corresponding to the task on a display in accordance with a determination that the task meets the suggestion criteria, and ceasing to display the suggestion affordance in accordance with a determination that the task does not meet the suggestion criteria.

[0029] An exemplary electronic device includes one or more processors, a memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions to receive a plurality of media items from an application, receive contextual data associated with the electronic device, determine a task based on the plurality of media items and the contextual data, determine whether the task satisfies a suggestion criterion, display a suggested affordance corresponding to the task on a display in accordance with a determination that the task satisfies the suggestion criterion, and cease displaying the suggested affordance in accordance with a determination that the task does not satisfy the suggestion criterion.

[0030] An exemplary electronic device comprises means for receiving a plurality of media items from an application, means for receiving context data associated with the electronic device, means for determining a task based on the plurality of media items and the context data, means for determining whether the task satisfies a suggestion criterion, means for displaying a suggestion affordance corresponding to the task on a display in accordance with a determination that the task satisfies the suggestion criterion, and means for ceasing to display the suggestion affordance in accordance with a determination that the task does not satisfy the suggestion criterion.

[0031] An exemplary non-transitory computer-readable medium stores one or more programs including instructions that, when executed by one or more processors of an electronic device, cause the electronic device to receive a plurality of media items from an application, receive contextual data associated with the electronic device, determine a task based on the plurality of media items and the contextual data, determine whether the task satisfies a suggestion criterion, display a suggested affordance corresponding to the task on a display in accordance with a determination that the task satisfies the suggestion criterion, and refrain from displaying the suggested affordance in accordance with a determination that the task does not satisfy the suggestion criterion.

[0032] As described herein, selectively providing suggestion affordances corresponding to tasks enables a user to efficiently and conveniently perform tasks relevant to the user on an electronic device. By way of example, the suggestion affordances displayed by the electronic device may correspond to tasks identified based on the user's media consumption and / or determined media preferences. Therefore, selectively providing suggestions in this manner reduces the number and time of inputs required for a user to operate an electronic device (e.g., by assisting the user in providing appropriate inputs and reducing user errors when operating / interacting with the device), and further reduces power usage and improves the device's battery life. [Brief explanation of the drawings]

[0033] [Figure 1] FIG. 1 is a block diagram illustrating a system and environment for implementing a digital assistant, according to various embodiments.

[0034] [Figure 2A] FIG. 1 is a block diagram illustrating a portable multifunction device that implements a client-side portion of a digital assistant, according to various embodiments.

[0035] [Figure 2B] FIG. 2 is a block diagram illustrating example components for event processing, in accordance with various embodiments.

[0036] [Figure 3] FIG. 1 illustrates a portable multifunction device implementing a client-side portion of a digital assistant, according to various embodiments.

[0037] [Figure 4] FIG. 1 is a block diagram of an exemplary multifunction device having a display and a touch-sensitive surface in accordance with various embodiments.

[0038] [Figure 5A] 1A-1C illustrate exemplary user interfaces for a menu of applications on a portable multifunction device in accordance with various embodiments.

[0039] [Figure 5B] 1A-1C illustrate exemplary user interfaces for a multifunction device having a touch-sensitive surface separate from the display, in accordance with various embodiments.

[0040] [Figure 6A] FIG. 1 illustrates a personal electronic device according to various embodiments.

[0041] [Figure 6B] FIG. 1 is a block diagram illustrating a personal electronic device according to various embodiments.

[0042] [Figure 6C] FIG. 1 illustrates exemplary components of a personal electronic device having a touch-sensitive display and intensity sensor according to some embodiments. [Figure 6D] FIG. 1 illustrates exemplary components of a personal electronic device having a touch-sensitive display and intensity sensor according to some embodiments.

[0043] [Figure 6E] FIG. 1 illustrates exemplary components and a user interface of a personal electronic device, according to some embodiments. [Figure 6F] FIG. 1 illustrates exemplary components and a user interface of a personal electronic device, according to some embodiments. [Figure 6G] FIG. 1 illustrates exemplary components and a user interface of a personal electronic device, according to some embodiments. [Figure 6H] FIG. 1 illustrates exemplary components and a user interface of a personal electronic device, according to some embodiments.

[0044] [Figure 7A] FIG. 1 is a block diagram illustrating a digital assistant system or a server portion thereof, according to various embodiments.

[0045] [Figure 7B] 7B illustrates the functionality of the digital assistant shown in FIG. 7A, according to various embodiments.

[0046] [Figure 7C] FIG. 2 illustrates a portion of an ontology, according to various embodiments.

[0047] [Figure 8A] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8B] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8C] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8D] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8E] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8F] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8G] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8H] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8I] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8J] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8K] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8L] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8M] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8N] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8O] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8P] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8Q] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8R] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8S] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8T]1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8U] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8V] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8W] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8X] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8Y] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8Z] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8AA] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8AB] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8AC] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8AD] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8AE] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments. [Figure 8AF] 1 illustrates an exemplary user interface for providing suggestions, according to various embodiments.

[0048] [Figure 9A] FIG. 1 is a flow diagram illustrating a method for providing suggestions, according to various embodiments. [Figure 9B]FIG. 1 is a flow diagram illustrating a method for providing suggestions, according to various embodiments.

[0049] [Figure 10A] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10B] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10C] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10D] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10E] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10F] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10G] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10H] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10I] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10J] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10K] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10L] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10M]1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10N] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10O] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10P] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10Q] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10R] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10S] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10T] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10U] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10V] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10W] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10X] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10Y] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10Z]1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AA] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AB] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AC] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AD] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AE] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AF] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AG] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AH] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AI] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments. [Figure 10AJ] 1A-1C illustrate exemplary user interfaces for providing voice shortcuts, according to various embodiments.

[0050] [Figure 11A] FIG. 1 is a flow diagram illustrating a method for providing audio shortcuts, according to various embodiments. [Figure 11B] FIG. 1 is a flow diagram illustrating a method for providing audio shortcuts, according to various embodiments.

[0051] [Figure 12] FIG. 1 is a block diagram illustrating a task suggestion system, according to various embodiments.

[0052] [Figure 13] FIG. 1 is a flow diagram illustrating a method for providing suggestions, according to various embodiments.

[0053] [Figure 14] FIG. 2 illustrates an exemplary sequence of operations for performing a task in a privacy-preserving manner, according to various embodiments.

[0054] [Figure 15] FIG. 1 is a flow diagram illustrating a method for performing tasks according to various embodiments.

[0055] [Figure 16A] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16B] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16C] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16D] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16E] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16F] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16G]FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16H] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16I] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16J] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16K] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16L] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16M] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16N] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16O] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16P] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16Q] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16R] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments. [Figure 16S] FIG. 1 illustrates an exemplary user interface for performing a task using a digital assistant, according to various embodiments.

[0056] [Figure 17] FIG. 1 is a flow diagram illustrating a method for performing a task using a digital assistant, according to various embodiments.

[0057] [Figure 18A] 1A-1C illustrate exemplary user interfaces for providing media item suggestions, according to various embodiments. [Figure 18B] 1A-1C illustrate exemplary user interfaces for providing media item suggestions, according to various embodiments. [Figure 18C] 1A-1C illustrate exemplary user interfaces for providing media item suggestions, according to various embodiments. [Figure 18D] 1A-1C illustrate exemplary user interfaces for providing media item suggestions, according to various embodiments.

[0058] [Figure 19] 1 is a flow diagram illustrating a method for providing media item suggestions according to various embodiments. DETAILED DESCRIPTION OF THE INVENTION

[0059] In the following description of the embodiments, reference is made to the accompanying drawings, which show, by way of illustration, specific embodiments that may be practiced. It is to be understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the various embodiments.

[0060] In the following description, terms such as "first" and "second" are used to describe various elements, but these elements should not be limited by these terms. These terms are used only to distinguish one element from another. For example, a first input can be referred to as a second input, and similarly, a second input can be referred to as a first input, without departing from the scope of various embodiments described. The first input and the second input are both inputs, and in some cases, are separate and distinct inputs.

[0061] The terminology used in the description of the various embodiments set forth herein is for the purpose of describing particular embodiments only and is not intended to be limiting. When used in the description of the various embodiments set forth and in the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. As used herein, the term "and / or" will also be understood to refer to and encompass any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms "includes," "including," "comprises," and / or "comprising," as used herein, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0062] The term "if" can be interpreted to mean "when" or "upon," or "in response to determining," or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [a stated condition or event] is detected" can be interpreted to mean "upon determining," or "in response to determining," or "upon detecting [the stated condition or event]," or "in response to detecting [the stated condition or event]," depending on the context. 1. System and Environment

[0063] FIG. 1 illustrates a block diagram of a system 100 according to various embodiments. In some embodiments, the system 100 implements a digital assistant. The terms “digital assistant,” “virtual assistant,” “intelligent automated assistant,” or “automated digital assistant” refer to any information processing system that infers user intent by interpreting natural language input in spoken and / or textual form and performs actions based on the inferred user intent. For example, to fulfill the inferred user intent, the system may perform one or more of the following: identify a task flow having steps and parameters designed to achieve the inferred user intent; input specific requirements from the inferred user intent into the task flow; execute the task flow by invoking programs, methods, services, APIs, or the like; and generate an output response to the user in an audible (e.g., spoken) and / or visual form.

[0064] Specifically, a digital assistant can accept user requests, at least in part, in the form of natural language commands, requests, statements, predications, and / or queries. Typically, a user request seeks either an informational answer or task performance by the digital assistant. A satisfactory response to this user request includes providing the requested informational answer, performing the requested task, or a combination of the two. For example, a user asks a digital assistant a question such as, "Where am I right now?" Based on the user's current location, the digital assistant replies, "You are in Central Park near the west gate." The user also requests a task to be performed, such as, "Please invite my friends to my girlfriend's birthday party next week." In response, the digital assistant can acknowledge the request by stating "Yes, right away" and then send appropriate calendar invitations on behalf of the user to each of the user's friends listed in the user's electronic address book. During the performance of the requested task, the digital assistant may interact with the user in a continuous dialog involving multiple exchanges of information over an extended period of time. There are numerous other ways to interact with the digital assistant to request information or the performance of various tasks. In addition to providing verbal responses and taking programmed actions, the digital assistant also provides responses in other visual or audio formats, such as text, alerts, music, video, animation, etc.

[0065] 1 , in some embodiments, the digital assistant is implemented according to a client-server model. The digital assistant includes a client-side portion 102 (hereinafter, "DA client 102") that runs on a user device 104 and a server-side portion 106 (hereinafter, "DA server 106") that runs on a server system 108. The DA client 102 communicates with the DA server 106 over one or more networks 110. The DA client 102 provides client-side functionality, such as user-responsive input and output processing and communication with the DA server 106. The DA server 106 provides server-side functionality to any number of DA clients 102, each resident on a corresponding user device 104.

[0066] 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 to external services 118. The client-facing I / O interface 112 facilitates client-facing input and output processing for the DA server 106. The one or more processing modules 114 utilize the data and models 116 to process speech input and determine user intent based on natural language input. Furthermore, the one or more processing modules 114 perform task execution based on the inferred user intent. In some embodiments, the DA server 106 communicates with external services 120 over network(s) 110 to complete tasks or obtain information. The I / O interface to external services 118 facilitates such communication.

[0067] User device 104 can be any suitable electronic device. In some examples, user device 104 is a portable multifunction device (e.g., device 200 described below with reference to FIG. 2A ), a multifunction device (e.g., device 400 described below with reference to FIG. 4 ), or a personal electronic device (e.g., device 600 described below with reference to FIGS. 6A and 6B ). A portable multifunction device is, for example, a mobile phone that also includes other functions, such as PDA and / or music player functions. Specific examples of portable multifunction devices include the Apple Watch®, iPhone®, iPod Touch®, and iPad® devices by Apple Inc. (Cupertino, California). Other examples of portable multifunction devices include, but are not limited to, earphones / headphones, speakers, and laptop or tablet computers. Furthermore, in some examples, user device 104 is a non-portable multifunction device. Specifically, user device 104 is a desktop computer, a game console, a speaker, a television, or a television set-top box. In some examples, user device 104 includes a touch-sensitive surface (e.g., a touchscreen display and / or a touchpad). Additionally, user device 104 optionally includes one or more other physical user interface devices, such as a physical keyboard, a mouse, and / or a joystick. Various examples of electronic devices, such as multifunction devices, are described in further detail below.

[0068] Examples of communication network(s) 110 include a local area network (LAN) and a wide area network (WAN), such as the Internet. Communication network(s) 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.

[0069] The server system 108 may be implemented on one or more standalone data processing devices or on a distributed computer network. In some embodiments, the server system 108 may also employ various virtual devices and / or the services of third-party service providers (e.g., third-party cloud service providers) to provide the underlying computing and / or infrastructure resources of the server system 108.

[0070] In some embodiments, the user device 104 communicates with the DA server 106 via a second user device 122. The second user device 122 is similar to or identical to the user device 104. For example, the second user device 122 is similar to device 200, 400, or device 600, described below with reference to FIGS. 2A, 4, and 6A-6B. The user device 104 is configured to communicatively couple to the second user device 122 via a direct communication connection, such as Bluetooth, NFC, or BTLE, or via a wired network or a wireless network, such as a local Wi-Fi network. In some embodiments, the second user device 122 is configured to act as a proxy between the user device 104 and the DA server 106. For example, the DA client 102 of the user device 104 is configured to send information (e.g., a user request received at the user device 104) to the DA server 106 via the second user device 122. The DA server 106 processes the information and returns relevant data (eg, data content responsive to the user request) to the user device 104 via the second user device 122.

[0071] In some embodiments, the user device 104 is configured to reduce the amount of information transmitted from the user device 104 by communicating an abbreviated request for data to the second user device 122. The second user device 122 is configured to determine supplemental information to add to the abbreviated request and generate a complete request to transmit to the DA server 106. This system architecture may advantageously enable a user device 104 (e.g., a wristwatch or similar compact electronic device) with limited communication capabilities and / or limited battery power to access services provided by the DA server 106 by using a second user device 122 (e.g., a mobile phone, laptop computer, tablet computer, etc.) with stronger communication capabilities and / or greater battery power as a proxy to the DA server 106. While only two user devices 104 and 122 are shown in FIG. 1 , it should be understood that the system 100, in some embodiments, includes any number and type of user devices configured to communicate with the DA server system 106 in this proxy configuration.

[0072] 1 includes both a client-side portion (e.g., DA client 102) and a server-side portion (e.g., DA server 106), in some embodiments, the digital assistant's functionality is implemented as a standalone application installed on a user device. Furthermore, the allocation of functionality between the client and server portions of the digital assistant may vary depending on the implementation. For example, in some embodiments, the DA client is a thin client that provides only user-facing input and output processing functionality and delegates all other digital assistant functionality to a back-end server. 2. Electronic Devices

[0073] Attention now turns to embodiments of electronic devices for implementing the client-side portion of a digital assistant. FIG. 2A is a block diagram illustrating portable multifunction device 200 with touch-sensitive display system 212, according to some embodiments. Touch-sensitive display 212 may be conveniently referred to as a “touch screen,” and may also be known or referred to as a “touch-sensitive display system.” Device 200 includes memory 202 (optionally including one or more computer-readable storage media), a memory controller 222, one or more processing units (CPUs) 220, a peripherals interface 218, RF circuitry 208, audio circuitry 210, a speaker 211, a microphone 213, an input / output (I / O) subsystem 206, other input control devices 216, and an external port 224. Device 200 optionally includes one or more light sensors 264. Device 200 optionally includes one or more contact intensity sensors 265 for detecting the intensity of a contact on device 200 (e.g., a touch-sensitive surface such as touch-sensitive display system 212 of device 200). Device 200 optionally includes one or more tactile output generators 267 for generating a tactile output on device 200 (e.g., generating a tactile output on a touch-sensitive surface such as touch-sensitive display system 212 of device 200 or touchpad 455 of device 400). These components optionally communicate via one or more communication buses or signal lines 203.

[0074] As used herein and in the claims, the term “intensity” of a contact on a touch-sensitive surface refers to the force or pressure (force per unit area) of a contact (e.g., a finger contact) on the touch-sensitive surface, or a surrogate (proxy) for the force or pressure of a contact on the touch-sensitive surface. The intensity of a contact has a range of values ​​that includes at least four different values ​​and more typically includes hundreds (e.g., at least 256) different values. The intensity of a contact is optionally determined (or measured) using various techniques and various sensors or combinations of sensors. For example, one or more force sensors under or adjacent to the touch-sensitive surface are optionally used to measure force at various points on the touch-sensitive surface. In some implementations, force measurements from multiple force sensors are combined (e.g., weighted average) to determine an estimated force of the contact. Similarly, a pressure-sensitive tip of a stylus is optionally used to determine the pressure of the stylus on the touch-sensitive surface. Alternatively, the size and / or change in the contact area detected on the touch-sensitive surface, the capacitance and / or change in the capacitance of the touch-sensitive surface proximate the contact, and / or the resistance and / or change in the capacitance of the touch-sensitive surface proximate the contact are optionally used as proxies for the force or pressure of the contact on the touch-sensitive surface. In some implementations, these surrogate measures of the force or pressure of the contact are used directly to determine whether an intensity threshold has been exceeded (e.g., the intensity threshold is described in units corresponding to the surrogate measure). In some implementations, these surrogate measures of the force or pressure of the contact are converted to an estimated force or pressure, and the estimated force or pressure is used to determine whether an intensity threshold has been exceeded (e.g., the intensity threshold is a pressure threshold measured in units of pressure). Using contact intensity as an attribute of user input allows a user to access additional device functionality that may not otherwise be accessible by a user on devices of reduced size that have limited area for displaying affordances (e.g., on a touch-sensitive display) and / or receiving user input (e.g., via a touch-sensitive display, touch-sensitive surface, or physical / mechanical controls such as knobs or buttons).

[0075] As used herein and in the claims, the term “tactile output” refers to a physical displacement of a device relative to a previous position of the device, a physical displacement of a component of the device (e.g., a touch-sensitive surface) relative to another component of the device (e.g., a housing), or a displacement of a component relative to the center of mass of the device, that will be detected by a user with the user's sense of touch. For example, in a situation where a device or a component of a device is in contact with a touch-sensitive surface of a user (e.g., the fingers, palm, or other part of the user's hand), the tactile output produced by the physical displacement will be interpreted by the user as a tactile sensation corresponding to a perceived change in a physical property of the device or a component of the device. For example, movement of a touch-sensitive surface (e.g., a touch-sensitive display or trackpad) is optionally interpreted by the user as a “downclick” or “upclick” of a physical actuator button. In some cases, the user will feel a tactile sensation such as a “downclick” or “upclick” even when there is no movement of a physical actuator button associated with the touch-sensitive surface that is physically depressed (e.g., displaced) by the user's movement. As another example, movement of the touch-sensitive surface is optionally interpreted or perceived by a user as "roughness" of the touch-sensitive surface, even when there is no change in the smoothness of the touch-sensitive surface. While such user interpretation of touch will depend on the user's personal sensory perception, there are many sensory perceptions of touch that are common to the majority of users. Thus, when a tactile output is described as corresponding to a particular sensory perception of a user (e.g., "upclick," "downclick," "roughness"), unless otherwise specified, the generated tactile output corresponds to a physical displacement of a device or a component of a device that will produce the described sensory perception for a typical (or average) user.

[0076] It should be understood that device 200 is only one example of a portable multifunction device, and that device 200 optionally has more or fewer components than those shown, optionally combines two or more components, or optionally has a different configuration or arrangement of its components. The various components shown in Figure 2A are implemented as hardware, software, or a combination of both hardware and software, including one or more signal processing circuits and / or application specific integrated circuits.

[0077] Memory 202 includes one or more computer-readable storage media that are, for example, tangible and non-transitory. Memory 202 includes high-speed random-access memory and also includes non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state memory devices. Memory controller 222 controls access to memory 202 by other components of device 200.

[0078] In some embodiments, the non-transitory computer-readable storage medium of memory 202 is used to store instructions (e.g., to perform aspects of the processes described below) for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processor, or other system capable of fetching instructions from the instruction execution system, apparatus, or device and executing the instructions. In other embodiments, the instructions (e.g., to perform aspects of the processes described below) are stored on or allocated between the non-transitory computer-readable storage medium of memory 202 and the non-transitory computer-readable storage medium of server system 108.

[0079] The peripherals interface 218 is used to couple input and output peripherals of the device to the CPU 220 and memory 202. The one or more processors 220 run or execute various software programs and / or instruction sets stored in the memory 202 to perform various functions and process data for the device 200. In some embodiments, the peripherals interface 218, the CPU 220, and the memory controller 222 are implemented on a single chip, such as the chip 204. In some other embodiments, they are implemented on separate chips.

[0080] RF (radio frequency) circuitry 208 transmits and receives RF signals, also called electromagnetic signals. RF circuitry 208 converts electrical signals to and from electromagnetic signals and communicates with communication networks and other communication devices via the electromagnetic signals. RF circuitry 208 optionally includes well-known circuits for performing these functions, including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chipset, a subscriber identity module (SIM) card, memory, etc. RF circuitry 208 optionally communicates via wireless communication with networks and other devices, such as the Internet, also known as the World Wide Web (WWW), an intranet, and / or wireless networks such as cellular telephone networks, wireless local area networks (LANs), and / or metropolitan area networks (MANs). RF circuitry 208 optionally includes known circuitry for detecting a near field communication (NFC) field, such as by near field communication radio. The wireless communication optionally uses any of a number of communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communications (GSM), Enhanced Data GSM Environment (EDGE), high-speed downlink packet access (HSDPA), high-speed uplink packet access (HSUPA), Evolution, Data-Only (EV-DO), HSPA, HSPA+, Dual-Cell HSPA (DC-HSPDA), Long Term Evolution (LTE), and the like.LTE), Near Field Communication (NFC), wideband code division multiple access (W-CDMA), code division multiple access (CDMA), time division multiple access (TDMA), Bluetooth, Bluetooth Low Energy (BTLE), Wireless Fidelity (Wi-Fi) (e.g., IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, IEEE 802.11n, and / or IEEE 802.11ac), Voice over Internet Protocol (VoIP), Wi-MAX, protocols for email (e.g., Internet message access protocol (IMAP) and / or post office protocol (POP)), instant messaging (e.g., extensible messaging and presence leveraging extensions (XMPP)), Session Initiation Protocol for Instant Messaging and Presence Leveraging Extensions (SIMPL), and Extensions (SIMPLE), Instant Messaging and Presence Service (IMPS), and / or Short Message Service (SMS), or any other suitable communication protocol, including communication protocols not yet developed as of the filing date of this document;

[0081] The audio circuit 210, speaker 211, and microphone 213 provide an audio interface between a user and device 200. The audio circuit 210 receives audio data from the peripherals interface 218, converts the audio data into electrical signals, and transmits the electrical signals to the speaker 211. The speaker 211 converts the electrical signals into sound waves audible to humans. The audio circuit 210 also receives electrical signals converted from sound waves by the microphone 213. The audio circuit 210 converts the electrical signals into audio data and transmits the audio data to the peripherals interface 218 for processing. The audio data is retrieved from and / or transmitted to the memory 202 and / or RF circuit 208 by the peripherals interface 218. In some embodiments, the audio circuit 210 also includes a headset jack (e.g., 312 in FIG. 3 ). This headset jack provides an interface between audio circuitry 210 and a removable audio input / output peripheral, such as an output-only headphone or a headset with both an output (e.g., single or double ear headphones) and an input (e.g., a microphone).

[0082] I / O subsystem 206 couples input / output peripherals on device 200, such as touchscreen 212 and other input control devices 216, to peripheral interface 218. I / O subsystem 206 optionally includes a display controller 256, a light sensor controller 258, a depth camera controller 269, an intensity sensor controller 259, a haptic feedback controller 261, and one or more input controllers 260 for other input or control devices. One or more input controllers 260 receive / send electrical signals to / from other input control devices 216. Other input control devices 216 optionally include physical buttons (e.g., push buttons, rocker buttons, etc.), dials, slider switches, joysticks, click wheels, etc. In some alternative embodiments, input controller(s) 260 are optionally coupled to any (or none) of a keyboard, an infrared port, a USB port, and a pointer device such as a mouse. The one or more buttons (e.g., 308 in FIG. 3) optionally include up / down buttons for adjusting the volume of speaker 211 and / or microphone 213. The one or more buttons optionally include a push button (e.g., 306 in FIG. 3).

[0083] A quick press of this push button optionally unlocks touchscreen 212 or optionally initiates a process to unlock the device using gestures on the touchscreen, as described in U.S. Patent Application No. 11 / 322,549, "Unlocking a Device by Performing Gestures on an Unlock Image," filed December 23, 2005, U.S. Patent No. 7,657,849, which is incorporated herein by reference in its entirety. A longer press of a push button (e.g., 306) optionally powers device 200 on or off. The functions of one or more of these buttons are optionally user-customizable. Touchscreen 212 is used to implement virtual or soft buttons and one or more soft keyboards.

[0084] Touch-sensitive display 212 provides an input and output interface between the device and a user. Display controller 256 receives and / or sends electrical signals to and from touchscreen 212. Touchscreen 212 displays visual output to the user. This visual output optionally includes graphics, text, icons, video, and any combination thereof (collectively "graphics"). In some embodiments, some or all of these visual outputs optionally correspond to user-interface objects.

[0085] Touchscreen 212 has a touch-sensitive surface, sensor, or set of sensors that accepts input from a user based on haptic and / or tactile contact. Touchscreen 212 and display controller 256 (along with any associated modules and / or instruction sets in memory 202) detects contacts (and any movement or disruption of that contact) on touchscreen 212 and translates the detected contacts into interactions with user interface objects (e.g., one or more softkeys, icons, web pages, or images) displayed on touchscreen 212. In an exemplary embodiment, the point of contact between touchscreen 212 and the user corresponds to the user's finger.

[0086] Touchscreen 212 optionally uses liquid crystal display (LCD), light emitting polymer display (LPD), or light emitting diode (LED) technology, although other display technologies are used in other embodiments. Touchscreen 212 and display controller 256 optionally use any of a number of now-known or later-developed touch-sensing technologies to detect contact and any movement or disruption of that contact, including, but not limited to, capacitive, resistive, infrared, and surface acoustic wave technologies, as well as other proximity sensor arrays or other elements for determining one or more points of contact with touchscreen 212. In an exemplary embodiment, projected mutual capacitance sensing technology is used, such as that found in the iPhone® and iPod Touch® by Apple Inc. (Cupertino, California).

[0087] The touch-sensitive display in some embodiments of touchscreen 212 is optionally similar to the multi-touch-sensing touchpad described in U.S. Patent Nos. 6,323,846 (Westerman et al.), 6,570,557 (Westerman et al.), and / or 6,677,932 (Westerman), and / or U.S. Patent Application Publication No. 2002 / 0015024 A1, each of which is incorporated by reference herein in its entirety. However, while touchscreen 212 displays visual output from device 200, touch-sensitive touchpads do not provide visual output.

[0088] The touch-sensitive displays in some embodiments of touchscreen 212 are described in the following applications: (1) U.S. patent application Ser. No. 11 / 381,313, filed May 2, 2006, entitled "Multipoint Touch Surface Controller," (2) U.S. patent application Ser. No. 10 / 840,862, filed May 6, 2004, entitled "Multipoint Touchscreen," (3) U.S. patent application Ser. No. 10 / 903,964, filed July 30, 2004, entitled "Gestures For Touch Sensitive Input Devices," (4) U.S. patent application Ser. No. 11 / 048,264, filed January 31, 2005, entitled "Gestures For Touch Sensitive Input Devices," and (5) U.S. patent application Ser. No. 11 / 038,590, filed January 18, 2005, entitled "Mode-Based Graphical User Interfaces For Touch Sensitive Input Devices." (6) U.S. Patent No. 11 / 228,758, filed September 16, 2005, entitled "Virtual Input Device Placement On A Touch Screen User Interface," (7) U.S. Patent No. 11 / 228,700, filed September 16, 2005, entitled "Operation Of A Computer With A Touch Screen Interface," (8) U.S. Patent No. 11 / 228,737, filed September 16, 2005, entitled "Activating Virtual Keys Of A Touch-Screen Virtual Keyboard," and (9) U.S. Patent No. 11 / 367,749, filed March 3, 2006, entitled "Multi-Functional Hand-Held Device." All of these applications are incorporated herein by reference in their entirety.

[0089] Touchscreen 212 optionally has a video resolution greater than 100 dpi. In some embodiments, the touchscreen has a video resolution of approximately 160 dpi. A user optionally contacts touchscreen 212 using any suitable object or accessory, such as a stylus, finger, or the like. In some embodiments, the user interface is designed to function primarily through finger-based contact and gestures, which may be less precise than stylus-based input due to the larger contact area of ​​a finger on the touchscreen. In some embodiments, the device translates coarse finger-based input into precise pointer / cursor positions or commands to perform actions desired by the user.

[0090] In some embodiments, in addition to the touchscreen, device 200 optionally includes a touchpad for activating or deactivating certain functions. In some embodiments, the touchpad is a touch-sensitive area of ​​the device that, unlike the touchscreen, does not display visual output. The touchpad is optionally a touch-sensitive surface separate from touchscreen 212 or an extension of the touch-sensitive surface formed by the touchscreen.

[0091] Device 200 also includes a power system 262 for providing power to the various components. Power system 262 optionally includes a power management system, one or more power sources (e.g., battery, alternating current (AC)), a recharging system, power failure detection circuitry, power converters or inverters, power status indicators (e.g., light emitting diodes (LEDs)), and any other components associated with generating, managing, and distributing electrical power within a portable device.

[0092] Device 200 also optionally includes one or more light sensors 264. FIG. 2A shows a light sensor coupled to light sensor controller 258 in I / O subsystem 206. Light sensor 264 includes a charge-coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS) phototransistor. Light sensor 264 receives light from the environment, optionally projected through one or more lenses, and converts the light into data representing an image. In conjunction with imaging module 243 (also referred to as a camera module), light sensor 264 captures still images or video. In some embodiments, the light sensor is located on the back of device 200, opposite touchscreen display 212 on the front of the device, so that the touchscreen display is enabled for use as a viewfinder for capturing still and / or video images. In some embodiments, a light sensor is located on the front of the device so that an image of the user is optionally captured for video conferencing while the user views other video conference participants on the touchscreen display. In some embodiments, the position of the light sensor 264 can be changed by the user (e.g., by rotating the lens and sensor within the device housing), so that a single light sensor 264 is used for both video conferencing and capturing still and / or video images, along with the touchscreen display.

[0093] Device 200 also optionally includes one or more depth camera sensors 275. FIG. 2A shows a depth camera sensor coupled to depth camera controller 269 in I / O subsystem 206. Depth camera sensor 275 receives data from the environment and creates a three-dimensional model of an object (e.g., a face) in a scene from a viewpoint (e.g., the depth camera sensor). In some embodiments, in conjunction with imaging module 243 (also referred to as a camera module), depth camera sensor 275 is optionally used to determine a depth map of various portions of an image captured by imaging module 243. In some embodiments, a depth camera sensor is located on the front of device 200 so that an image of the user with depth information is optionally obtained for videoconferences and to capture selfie images with depth map data while the user views other videoconference participants on a touchscreen display. In some embodiments, depth camera sensor 275 is located on the back of the device, or on both the back and front of device 200. In some embodiments, the position of the depth camera sensor 275 can be changed by the user (e.g., by rotating the lens and sensor within the device housing), so that the depth camera sensor 275 can be used for both video conferencing and capturing still and / or video images, in conjunction with a touchscreen display.

[0094] In some embodiments, a depth map (e.g., a depth map image) contains information (e.g., values) about the distance of objects in a scene from a viewpoint (e.g., a camera, light sensor, depth camera sensor). In one embodiment of a depth map, each depth pixel defines the position on the Z axis of the viewpoint where its corresponding two-dimensional pixel is located. In some embodiments, a depth map is made up of pixels, each defined by a value (e.g., 0-255). For example, a value of "0" represents a pixel located furthest in a "3D" scene, and a value of "255" represents a pixel located closest to the viewpoint (e.g., a camera, light sensor, depth camera sensor) in the "3D" scene. In other embodiments, a depth map represents the distance between objects in a scene and the plane of the viewpoint. In some embodiments, a depth map contains information about the relative depth of various features of an object of interest as seen by a depth camera (e.g., the relative depth of the eyes, nose, mouth, and ears on a user's face). In some embodiments, the depth map contains information that allows the device to determine the contours of the object of interest in the z-direction.

[0095] Device 200 also optionally includes one or more contact intensity sensors 265. FIG. 2A shows a contact intensity sensor coupled to intensity sensor controller 259 in I / O subsystem 206. Contact intensity sensor 265 optionally includes one or more piezoresistive strain gauges, capacitive force sensors, electrical force sensors, piezoelectric force sensors, optical force sensors, capacitive touch-sensitive surfaces, or other intensity sensors (e.g., sensors used to measure the force (or pressure) of a contact on a touch-sensitive surface). Contact intensity sensor 265 receives contact intensity information (e.g., pressure information or information proxying pressure information) from the environment. In some embodiments, at least one contact intensity sensor is located with or in proximity to the touch-sensitive surface (e.g., touch-sensitive display system 212). In some embodiments, at least one contact intensity sensor is located on the back of device 200, opposite touchscreen display 212, which is located on the front of device 200.

[0096] Device 200 also optionally includes one or more proximity sensors 266. Figure 2A shows proximity sensor 266 coupled to peripherals interface 218. Alternatively, proximity sensor 266 is optionally coupled to input controller 260 within I / O subsystem 206. Proximity sensor 266 optionally functions as described in U.S. patent application Ser. No. 11 / 241,839, "Proximity Detector In Handheld Device," Ser. No. 11 / 240,788, "Proximity Detector In Handheld Device," Ser. No. 11 / 620,702, "Using Ambient Light Sensor To Augment Proximity Sensor Output," Ser. No. 11 / 586,862, "Automated Response To And Sensing Of User Activity In Portable Devices," and Ser. No. 11 / 638,251, "Methods And Systems For Automatic Configuration Of Peripherals," which are incorporated herein by reference in their entireties. In some embodiments, the proximity sensor turns off and disables touchscreen 212 when the multifunction device is placed near the user's ear (e.g., when the user is talking on the phone).

[0097] Device 200 also optionally includes one or more tactile output generators 267. FIG. 2A shows tactile output generators 267 coupled to haptic feedback controller 261 in I / O subsystem 206. Tactile output generator 267 optionally includes one or more electroacoustic devices, such as speakers or other audio components, and / or electromechanical devices that convert energy into linear motion, such as motors, solenoids, electroactive polymers, piezoelectric actuators, electrostatic actuators, or other tactile output generating components (e.g., components that convert electrical signals into tactile output on the device). Contact intensity sensor 265 receives tactile feedback generation commands from haptic feedback module 233 and generates a tactile output on device 200 that can be sensed by a user of device 200. In some embodiments, at least one tactile output generator is located with or in proximity to a touch-sensitive surface (e.g., touch-sensitive display system 212) and generates a tactile output, optionally by moving the touch-sensitive surface vertically (e.g., in / out of the surface of device 200) or laterally (e.g., back and forth in the same plane as the surface of device 200). In some embodiments, at least one tactile output generator sensor is located on the back of device 200, opposite touchscreen display 212, which is located on the front of device 200.

[0098] Device 200 also optionally includes one or more accelerometers 268. FIG. 2A shows accelerometer 268 coupled to peripherals interface 218. Alternatively, accelerometer 268 is optionally coupled to input controller 260 in I / O subsystem 206. Accelerometer 268 optionally functions as described in U.S. Patent Application Publication Nos. 20050190059, "Acceleration-based Theft Detection System for Portable Electronic Devices," and 20060017692, "Methods And Apparatuses For Operating A Portable Device Based On An Accelerometer," both of which are incorporated herein by reference in their entireties. In some embodiments, information is displayed on a touchscreen display in portrait or landscape orientation based on an analysis of data received from the one or more accelerometers. Device 200 optionally includes a magnetometer (not shown) and a GPS (or GLONASS or other global navigation system) receiver for obtaining information about the location and orientation (e.g., portrait or landscape view) of device 200, in addition to accelerometer(s) 268.

[0099] In some embodiments, software components stored in memory 202 include operating system 226, communication module (or instruction set) 228, touch / motion module (or instruction set) 230, graphics module (or instruction set) 232, text input module (or instruction set) 234, Global Positioning System (GPS) module (or instruction set) 235, digital assistant client module 229, and applications (or instruction sets) 236. Additionally, memory 202 stores data and models, such as user data and models 231. Additionally, in some embodiments, as shown in FIGS. 2A and 4, memory 202 (FIG. 2A) or memory 470 (FIG. 4) stores device / global internal state 257. The device / global internal state 257 includes one or more of the following: active application state, which indicates which applications, if any, are currently active; display state, which indicates which applications, views, or other information are occupying various regions of the touchscreen display 212; sensor state, which includes information obtained from the device's various sensors and input control devices 216; and position information regarding the device's position and / or orientation.

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

[0101] Communications module 228 facilitates communication with other devices via one or more external ports 224 and also includes various software components for processing data received by RF circuitry 208 and / or external port 224. External port 224 (e.g., Universal Serial Bus (USB), FIREWIRE®, etc.) is adapted to couple directly to other devices or indirectly via a network (e.g., the Internet, wireless LAN, etc.). In some embodiments, the external port is a multi-pin (e.g., 30-pin) connector the same as or similar to, and / or compatible with, the 30-pin connector used on iPod® (trademark of Apple Inc.) devices.

[0102] Contact / motion module 230, optionally in cooperation with display controller 256, detects contact with touchscreen 212 and other touch-sensing devices (e.g., a touchpad or physical click wheel). Contact / motion module 230 includes various software components for performing various operations related to contact detection, such as determining whether contact occurs (e.g., detecting a finger-down event), determining the intensity of the contact (e.g., the force or pressure of the contact, or a surrogate for the force or pressure of the contact), determining whether there is contact movement and tracking the movement across the touch-sensitive surface (e.g., detecting one or more finger-drag events), and determining whether contact has ceased (e.g., detecting a finger-up event or an interruption of contact). Contact / motion module 230 receives contact data from the touch-sensitive surface. Determining the movement of the contact, as represented by the series of contact data, optionally includes determining the speed (magnitude), velocity (magnitude and direction), and / or acceleration (change in magnitude and / or direction) of the contact. These actions are optionally applied to a single contact (e.g., a single finger contact) or multiple simultaneous contacts (e.g., "multi-touch" / multiple finger contacts). In some embodiments, contact / motion module 230 and display controller 256 detect contacts on the touchpad.

[0103] In some embodiments, the contact / motion module 230 uses a set of one or more intensity thresholds for determining whether an action has been performed by the user (e.g., for determining whether the user has “clicked” on an icon). In some embodiments, at least a subset of the intensity thresholds are determined according to software parameters (e.g., the intensity thresholds are not determined by the activation threshold of a particular physical actuator and can be adjusted without modifying the physical hardware of the device 200). For example, the mouse “click” threshold of a trackpad or touchscreen display can be set to any of a wide range of pre-defined thresholds without modifying the hardware of the trackpad or touchscreen display. Furthermore, in some implementations, a user of the device is provided with software settings for adjusting one or more of the set of intensity thresholds (e.g., by adjusting individual intensity thresholds and / or by adjusting multiple intensity thresholds at once using a system-level click “intensity” parameter).

[0104] Contact / motion module 230 optionally detects gesture input by a user. Different gestures on the touch-sensitive surface have different contact patterns (e.g., different movement, timing, and / or intensity of the detected contact). Thus, a gesture is optionally detected by detecting a particular contact pattern. For example, detecting a finger tap gesture includes detecting a finger down event (e.g., at the location of an icon), followed by detecting a finger lift (lift-off) event at the same location (or substantially the same location) as the finger down event. As another example, detecting a finger swipe gesture on the touch-sensitive surface includes detecting a finger down event, followed by one or more finger drag events, followed by detecting a finger lift (lift-off) event.

[0105] Graphics module 232 includes various known software components for rendering and displaying graphics on touchscreen 212 or other display, including components for modifying the visual effects (e.g., brightness, transparency, saturation, contrast, or other visual attributes) of the displayed graphics. As used herein, the term "graphics" includes any object that can be displayed to a user, including, but not limited to, text, web pages, icons (e.g., user interface objects, including softkeys), digital images, video, animation, etc.

[0106] In some embodiments, graphics module 232 stores data representing graphics to be used. Each graphic is optionally assigned a corresponding code. Graphics module 232 receives one or more codes specifying the graphics to be displayed, including coordinate data and other graphic attribute data as needed, from an application or the like, and then generates screen image data for output to display controller 256.

[0107] The haptic feedback module 233 includes various software components for generating instructions used by the tactile output generator(s) 267 to generate tactile outputs at one or more locations on the device 200 in response to user interaction with the device 200.

[0108] Text input module 234, optionally a component of graphics module 232, provides a soft keyboard for entering text in various applications (e.g., contacts 237, email 240, IM 241, browser 247, and any other application requiring text input).

[0109] The GPS module 235 determines the location of the device and provides this information for use in various applications (e.g., to the phone 238 for use in location-based dialing, to the camera 243 as photo / video metadata, and to applications that provide location-based services such as weather widgets, local yellow pages widgets, and map / navigation widgets).

[0110] Digital assistant client module 229 includes various client-side digital assistant instructions for providing client-side functionality of the digital assistant. For example, digital assistant client module 229 can accept audio input (e.g., speech input), text input, touch input, and / or gesture input through various user interfaces of portable multifunction device 200 (e.g., microphone 213, accelerometer(s) 268, touch-sensitive display system 212, light sensor(s) 229, other input control devices 216, etc.). Digital assistant client module 229 can also provide output in audio (e.g., speech output), visual, and / or tactile form through various output interfaces of portable multifunction device 200 (e.g., speaker 211, touch-sensitive display system 212, tactile output generator(s) 267, etc.). For example, 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 229 communicates with the DA server 106 using the RF circuitry 208.

[0111] User data and models 231 includes various data associated with a user (e.g., user-specific vocabulary data, user preference data, user-specified name pronunciations, data from the user's electronic address book, to-do lists, shopping lists, etc.) for providing the client-side functionality of the digital assistant. Additionally, user data and models 231 includes various models (e.g., speech recognition models, statistical language models, natural language processing models, ontologies, task flow models, service models, etc.) for processing user input and determining user intent.

[0112] In some embodiments, digital assistant client module 229 establishes a context associated with the user, the current user interaction, and / or the current user input by utilizing various sensors, subsystems, and peripherals of portable multifunction device 200 to gather additional information from the surrounding environment of portable multifunction device 200. In some embodiments, digital assistant client module 229 provides context information, or a subset thereof, along with the user input to DA server 106 to assist in inferring 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. The context information is referred to as context data.

[0113] In some embodiments, the context information accompanying 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 context information may also include the physical state of the device, such as device orientation, device location, device temperature, power level, speed, acceleration, motion patterns, cellular signal strength, etc. In some embodiments, information about the software state of DA server 106, such as running processes, installed programs, past and present network activity, background services, error logs, resource usage, etc., as well as information about the software state of portable multifunction device 200, is provided to DA server 106 as context information associated with the user input.

[0114] In some embodiments, digital assistant client module 229 selectively provides information stored on portable multifunction device 200 (e.g., user data 231) in response to a request from DA server 106. In some embodiments, digital assistant client module 229 also elicits additional input from the user via a natural language dialog or other user interface in response to a request by DA server 106. Digital assistant client module 229 passes the additional input to DA server 106 to assist DA server 106 in intent inference and / or fulfillment of the user's intent expressed in the user request.

[0115] A more detailed description of the digital assistant is provided below with reference to Figures 7A-7C. It should be appreciated that the digital assistant client module 229 can include any number of sub-modules of the digital assistant module 726 described below.

[0116] The application 236 optionally includes the following modules (or sets of instructions), or a subset or superset thereof: • a contacts module 237 (sometimes called an address book or contact list); ●Telephone module 238, ●Video conferencing module 239, ● an email client module 240; ● Instant messaging (IM) module 241; ●Training support module 242, a camera module 243 for still and / or video images, ● Image management module 244, ●Video player module, ●Music player module, ● Browser module 247, ●Calendar module 248, a widget module 249, optionally including one or more of a weather widget 249-1, a stock price widget 249-2, a calculator widget 249-3, an alarm clock widget 249-4, a dictionary widget 249-5, and other widgets obtained by the user, as well as user-created widgets 249-6; a widget creation module 250 for creating user-created widgets 249-6; ● Search module 251, A video and music player module 252 that integrates a video player module and a music player module; ● Memo module 253, Map module 254, and / or ●Online video module 255.

[0117] Examples of other applications 236 optionally stored in memory 202 include other word processing applications, other image editing applications, drawing applications, presentation applications, JAVA-enabled applications, encryption, digital rights management, voice recognition, and voice duplication.

[0118] In conjunction with touch screen 212, display controller 256, contact / motion module 230, graphics module 232, and text input module 234, contacts module 237 is optionally used to manage an address book or contact list (e.g., stored in memory 202 or in the application internal state 292 of contacts module 237 in memory 470), including adding name(s) to the address book, removing name(s) from the address book, associating phone number(s), email address(es), street address(es), or other information with names, associating images with names, categorizing and sorting names, providing phone numbers or email addresses to initiate and / or facilitate communication via telephone 238, videoconferencing module 239, email 240, or IM 241, and the like.

[0119] In conjunction with RF circuitry 208, audio circuitry 210, speaker 211, microphone 213, touchscreen 212, display controller 256, contact / motion module 230, graphics module 232, and text input module 234, telephone module 238 is optionally used to enter character strings corresponding to telephone numbers, access one or more telephone numbers in contacts module 237, modify entered telephone numbers, dial corresponding telephone numbers, conduct a conversation, and disconnect or hang up when the conversation is completed. As noted above, wireless communication optionally uses any of a number of communication standards, protocols, and technologies.

[0120] In conjunction with RF circuitry 208, audio circuitry 210, speaker 211, microphone 213, touch screen 212, display controller 256, light sensor 264, light sensor controller 258, contact / motion module 230, graphics module 232, text input module 234, contacts module 237, and telephone module 238, videoconferencing module 239 includes executable instructions for initiating, conducting, and terminating videoconferences between a user and one or more other participants in accordance with the user's commands.

[0121] In cooperation with RF circuitry 208, touch screen 212, display controller 256, contact / motion module 230, graphics module 232, and text input module 234, email client module 240 contains executable instructions for composing, sending, receiving, and managing emails in response to user commands. In cooperation with image management module 244, email client module 240 greatly facilitates the creation and sending of emails with still or video images captured by camera module 243.

[0122] In cooperation with RF circuitry 208, touchscreen 212, display controller 256, contact / motion module 230, graphics module 232, and text input module 234, instant messaging module 241 includes executable instructions to enter characters corresponding to an instant message, modify previously entered characters, send the corresponding instant message (e.g., using Short Message Service (SMS) or Multimedia Message Service (MMS) protocols for telephone-based instant messaging, or using XMPP, SIMPLE, or IMPS for Internet-based instant messaging), receive instant messages, and view received instant messages. In some embodiments, sent and / or received instant messages optionally include graphics, photos, audio files, video files, and / or other attachments, such as those supported by MMS and / or Enhanced Messaging Service (EMS). As used herein, "instant messaging" refers to both telephone-based messages (e.g., messages sent using SMS or MMS) and Internet-based messages (e.g., messages sent using XMPP, SIMPLE, or IMPS).

[0123] In conjunction with the RF circuitry 208, touchscreen 212, display controller 256, contact / motion module 230, graphics module 232, text input module 234, GPS module 235, map module 254, and music player module, the training support module 242 includes executable instructions to create workouts (e.g., with time, distance, and / or calorie burn goals), communicate with training sensors (sports devices), receive training sensor data, calibrate sensors used to monitor workouts, select and play music for workouts, and display, store, and transmit workout data.

[0124] In conjunction with touchscreen 212, display controller 256, light sensor(s) 264, light sensor controller 258, contact / motion module 230, graphics module 232, and image management module 244, camera module 243 contains executable instructions to capture still images or video (including video streams), store them in memory 202, modify characteristics of the still images or video, or delete the still images or video from memory 202.

[0125] In conjunction with touchscreen 212, display controller 256, contact / motion module 230, graphics module 232, text input module 234, and camera module 243, image management module 244 contains executable instructions for arranging, modifying (e.g., editing) or otherwise manipulating, labeling, deleting, presenting (e.g., as a digital slideshow or album), and storing still and / or video images.

[0126] In conjunction with RF circuitry 208, touch screen 212, display controller 256, contact / motion module 230, graphics module 232, and text input module 234, browser module 247 contains executable instructions for browsing the Internet according to user commands, including retrieving, linking to, receiving, and displaying web pages or portions thereof, as well as attachments and other files linked to web pages.

[0127] In cooperation with RF circuitry 208, touch screen 212, display controller 256, contact / motion module 230, graphics module 232, text input module 234, email client module 240, and browser module 247, calendar module 248 includes executable instructions that create, display, modify, and store calendars and data associated with calendars (e.g., calendar entries, to-do lists, etc.) according to user instructions.

[0128] In conjunction with RF circuitry 208, touchscreen 212, display controller 256, touch / motion module 230, graphics module 232, text input module 234, and browser module 247, widget module 249 is a mini-application (e.g., weather widget 249-1, stocks widget 249-2, calculator widget 249-3, alarm clock widget 249-4, and dictionary widget 249-5) that is optionally downloaded and used by a user, or a mini-application (e.g., user-created widget 249-6) created by a user. In some embodiments, a widget includes a Hypertext Markup Language (HTML) file, a Cascading Style Sheets (CSS) file, and a JavaScript file. In some embodiments, a widget includes an Extensible Markup Language (XML) file and a JavaScript file (e.g., Yahoo! Widget).

[0129] In conjunction with RF circuitry 208, touch screen 212, display controller 256, touch / motion module 230, graphics module 232, text input module 234, and browser module 247, widget creation module 250 is optionally used by a user to create widgets (e.g., turn user-specified portions of a web page into widgets).

[0130] In cooperation with touch screen 212, display controller 256, contact / motion module 230, graphics module 232, and text input module 234, search module 251 contains executable instructions that, in accordance with user commands, search memory 202 for text, music, sound, images, video, and / or other files that match one or more search criteria (e.g., one or more user-specified search terms).

[0131] In cooperation with touchscreen 212, display controller 256, contact / motion module 230, graphics module 232, audio circuitry 210, speaker 211, RF circuitry 208, and browser module 247, video and music player module 252 contains executable instructions that enable a user to download and play pre-recorded music or other sound files stored in one or more file formats, such as MP3 files or AAC files, and executable instructions to display, present, or otherwise play videos (e.g., on touchscreen 212 or on an external display connected via external port 224). In some embodiments, device 200 optionally includes the functionality of an MP3 player, such as an iPod (a trademark of Apple Inc.).

[0132] In conjunction with the touch screen 212, display controller 256, contact / motion module 230, graphics module 232, and text input module 234, the notes module 253 contains executable instructions for creating and managing notes, to-do lists, and the like according to user commands.

[0133] In conjunction with RF circuitry 208, touchscreen 212, display controller 256, contact / motion module 230, graphics module 232, text input module 234, GPS module 235, and browser module 247, map module 254 is used to receive, display, modify, and store maps and data associated with maps (e.g., driving directions, data about businesses and other points of interest at or near a particular location, and other location-based data), optionally in accordance with user commands.

[0134] In cooperation with touchscreen 212, display controller 256, contact / motion module 230, graphics module 232, audio circuitry 210, speaker 211, RF circuitry 208, text input module 234, email client module 240, and browser module 247, online video module 255 contains instructions that enable a user to access, view, receive (e.g., by streaming and / or downloading), play (e.g., on the touchscreen or on an external display connected via external port 224), send emails containing links to the particular online videos, and otherwise manage the online videos in one or more file formats, such as H.264. In some embodiments, instant messaging module 241 is used to send links to particular online videos, rather than email client module 240. Further description of online video applications can be found in U.S. Provisional Patent Application No. 60 / 936,562, filed June 20, 2007, entitled "Portable Multifunction Device, Method, and Graphical User Interface for Playing Online Videos," and U.S. Patent Application No. 11 / 968,067, filed December 31, 2007, entitled "Portable Multifunction Device, Method, and Graphical User Interface for Playing Online Videos," the contents of which are incorporated herein by reference in their entireties.

[0135] Each of the above-identified modules and applications corresponds to a set of executable instructions that perform one or more of the functions described above and methods described in the present application (e.g., computer-implemented methods and other information processing methods described herein). These modules (e.g., sets of instructions) need not be implemented as separate software programs, procedures, or modules; thus, in various embodiments, various subsets of these modules are optionally combined or otherwise rearranged. For example, a video player module is optionally combined with a music player module into a single module (e.g., video and music player module 252 of FIG. 2A). In some embodiments, memory 202 optionally stores a subset of the above-identified modules and data structures. Additionally, memory 202 optionally stores additional modules and data structures not described above.

[0136] In some embodiments, device 200 is a device on which operation of a predefined set of functions is performed exclusively via a touchscreen and / or touchpad. By using the touchscreen and / or touchpad as the primary input control device for operation of device 200, the number of physical input control devices (pushbuttons, dials, etc.) on device 200 is optionally reduced.

[0137] The set of predefined functions, performed exclusively via the touchscreen and / or touchpad, optionally includes navigation between user interfaces. In some embodiments, the touchpad, when touched by a user, navigates device 200 to a main menu, home menu, or root menu from any user interface displayed on device 200. In such embodiments, a "menu button" is implemented using the touchpad. In some other embodiments, the menu button is a physical push button or other physical input control device rather than a touchpad.

[0138] 2B is a block diagram illustrating exemplary components for event processing, according to some embodiments. In some embodiments, memory 202 (FIG. 2A) or memory 470 (FIG. 4) includes event sorter 270 (e.g., in operating system 226) and corresponding application 236-1 (e.g., any of applications 237-251, 255, 480-490 described above).

[0139] Event sorter 270 receives the event information and determines which application 236-1 and application view 291 for application 236-1 to deliver the event information to. Event sorter 270 includes event monitor 271 and event dispatcher module 274. In some embodiments, application 236-1 includes application internal state 292 that indicates the current application view(s) that are displayed on touch-sensitive display 212 when the application is active or running. In some embodiments, device / global internal state 257 is used by event sorter 270 to determine which application(s) are currently active, and application internal state 292 is used by event sorter 270 to determine which application(s) are currently active, and application internal state 292 is used by event sorter 270 to determine which application view(s) to deliver the event information to.

[0140] In some embodiments, application internal state 292 includes additional information such as one or more of resume information used when application 236-1 resumes execution, user interface state information indicating information being displayed or ready to be displayed by application 236-1, state cues to allow the user to return to a previous state or view of application 236-1, and redo / undo cues for actions previously performed by the user.

[0141] Event monitor 271 receives event information from peripherals interface 218. The event information includes information about sub-events (e.g., a user's touch on touch-sensitive display 212 as part of a multi-touch gesture). Peripherals interface 218 transmits information it receives from I / O subsystem 206 or from sensors such as proximity sensor 266, accelerometer(s) 268, and / or microphone 213 (via audio circuitry 210). Information that peripherals interface 218 receives from I / O subsystem 206 includes information from touch-sensitive display 212 or a touch-sensitive surface.

[0142] In some embodiments, event monitor 271 sends requests to peripherals interface 218 at predetermined intervals. In response, peripherals interface 218 transmits event information. In other embodiments, peripherals interface 218 transmits event information only when there is a significant event (e.g., receiving an input that exceeds a predetermined noise threshold and / or exceeds a predetermined duration).

[0143] In some embodiments, event sorter 270 also includes a hit view determination module 272 and / or an active event recognizer determination module 273 .

[0144] Hit view determination module 272 provides a software procedure for determining where a sub-event occurred within one or more views when touch-sensitive display 212 displays more than one view. A view consists of the controllers and other elements that a user can see on the display.

[0145] Another aspect of a user interface associated with an application is a set of views, sometimes referred to herein as application views or user interface windows, in which information is displayed and touch-based gestures are performed. The application view (of the respective application) at which a touch is detected optionally corresponds to a programmatic level within the programmatic or view hierarchy of that application. For example, the lowest-level view at which a touch is detected is optionally referred to as the hit view, and the set of events that are recognized as appropriate inputs is optionally determined based at least in part on the hit view of the initial touch that initiates the touch-based gesture.

[0146] Hit view determination module 272 receives information related to sub-events of a touch-based gesture. If an application has multiple views organized as a hierarchy, hit view determination module 272 identifies a hit view as the lowest view in the hierarchy that should process the sub-event. In most situations, this hit view is the lowest-level view in which an initiating sub-event occurs (e.g., the first sub-event in a sequence of sub-events that form an event or potential event). Once a hit view is identified by hit view determination module 272, the hit view typically receives all sub-events associated with the same touch or input source for which it was identified as the hit view.

[0147] Active event recognizer determination module 273 determines which view(s) in the view hierarchy should receive a particular sequence of sub-events. In some embodiments, active event recognizer determination module 273 determines that only the hit view should receive a particular sequence of sub-events. In other embodiments, active event recognizer determination module 273 determines that all actively participating views should receive a particular sequence of sub-events by determining that all views that contain the physical location of the sub-events are actively participating views. In other embodiments, even if a touch sub-event is completely confined to the area associated with a particular view, views higher in the hierarchy will still remain as actively participating views.

[0148] Event dispatcher module 274 distributes event information to event recognizers (e.g., event recognizer 280). In embodiments that include active event recognizer determination module 273, event dispatcher module 274 delivers event information to event recognizers determined by active event recognizer determination module 273. In some embodiments, event dispatcher module 274 stores event information obtained by each event receiver 282 in an event queue.

[0149] In some embodiments, operating system 226 includes event sorter 270. Alternatively, application 236-1 includes event sorter 270. In still other embodiments, event sorter 270 is a stand-alone module or is part of another module stored in memory 202, such as contact / motion module 230.

[0150] In some embodiments, application 236-1 includes multiple event handlers 290 and one or more application views 291, each containing instructions for handling touch events that occur within a respective view of the application's user interface. Each application view 291 of application 236-1 includes one or more event recognizers 280. Typically, each application view 291 includes multiple event recognizers 280. In other embodiments, one or more of the event recognizers 280 are part of a separate module, such as a user interface kit or a higher-level object from which application 236-1 inherits methods and other attributes. In some embodiments, each event handler 290 includes one or more of a data updater 276, an object updater 277, a GUI updater 278, and / or event data 279 received from event sorter 270. Event handler 290 utilizes or invokes data updater 276, object updater 277, or GUI updater 278 to update application internal state 292. Alternatively, one or more of the application views 291 include one or more respective event handlers 290. In some embodiments, one or more of a data updater 276, an object updater 277, and a GUI updater 278 are also included within each application view 291.

[0151] Each event recognizer 280 receives event information (e.g., event data 279) from event sorter 270 and identifies an event from the event information. Event recognizer 280 includes an event receiver 282 and an event comparator 284. In some embodiments, event recognizer 280 also includes at least a subset of metadata 283 and event delivery instructions 288 (optionally including sub-event delivery instructions).

[0152] Event receiver 282 receives event information from event sorter 270. This event information includes information about a sub-event, such as a touch or touch movement. Depending on the sub-event, the event information also includes additional information, such as the location of the sub-event. If the sub-event relates to touch movement, the event information also optionally includes the speed and direction of the sub-event. In some embodiments, the event includes a device rotation from one orientation to another (e.g., from portrait to landscape orientation, or vice versa), and the event information includes corresponding information about the device's current orientation (also called the device's attitude).

[0153] The event comparator 284 compares the event information to predefined event or sub-event definitions and determines the event or sub-event, or determines or updates the state of the event or sub-event, based on the comparison. In some embodiments, the event comparator 284 includes an event definition 286. The event definition 286 includes a definition of an event (e.g., a sequence of predefined sub-events), such as Event 1 (287-1), Event 2 (287-2), etc. In some embodiments, sub-events within an event (287) include, for example, a touch start, a touch end, a touch movement, a touch cancellation, and multiple touches. In one example, the definition for Event 1 (287-1) is a double tap on a displayed object. This double tap includes, for example, a first touch on a displayed object for a given stage (touch start), a first lift-off (touch end) for the given stage, a second touch on a displayed object for the given stage (touch start), and a second lift-off (touch end) for the given stage. In another example, the definition for event 2 (287-2) is a drag operation on a displayed object, including, for example, a touch (or contact) on the displayed object for a predetermined stage, a movement of the touch across the touch-sensitive display 212, and a lift-off of the touch (end of the touch). In some embodiments, the event also includes information about one or more associated event handlers 290.

[0154] In some embodiments, event definition 287 includes a definition of the event for each user interface object. In some embodiments, event comparator 284 performs a hit test to determine which user interface object is associated with the sub-event. For example, in an application view in which three user interface objects are displayed on touch-sensitive display 212, when a touch is detected on touch-sensitive display 212, event comparator 284 performs a hit test to determine which of the three user interface objects is associated with the touch (sub-event). If each display object is associated with a corresponding event handler 290, event comparator 284 uses the results of the hit test to determine which event handler 290 to activate. For example, event comparator 284 selects the event handler associated with the sub-event and object that triggers the hit test.

[0155] In some embodiments, the definition for each event (287) also includes a delay action that delays delivery of the event information until it is determined whether the sequence of sub-events corresponds to the event type of the event recognizer.

[0156] If the respective event recognizer 280 determines that the sequence of sub-events does not match any of the events in the event definition 286, the respective event recognizer 280 enters an event-disabled, event-failed, or event-ended state and thereafter ignores subsequent sub-events for this touch-based gesture. In this situation, other event recognizers, if any, that remain active for that hit view continue to track and process sub-events for the ongoing touch-based gesture.

[0157] In some embodiments, each event recognizer 280 includes metadata 283 with configurable attributes, flags, and / or lists that indicate how the event delivery system should perform sub-event delivery to actively participating event recognizers. In some embodiments, metadata 283 includes configurable attributes, flags, and / or lists that indicate how event recognizers may interact with each other or how interactions are enabled. In some embodiments, metadata 283 includes configurable attributes, flags, and / or lists that indicate whether sub-events are delivered to various levels in the view or programmatic hierarchy.

[0158] In some embodiments, each event recognizer 280 activates an event handler 290 associated with an event when one or more specific sub-events of the event are recognized. In some embodiments, each event recognizer 280 delivers event information associated with that event to the event handler 290. Activating the event handler 290 is distinct from sending (and postponing) the sub-events to the respective hit view. In some embodiments, the event recognizer 280 throws a flag associated with the recognized event, and the event handler 290 associated with the flag catches the flag and performs a predetermined process.

[0159] In some embodiments, event delivery instructions 288 include sub-event delivery instructions that deliver event information about a sub-event without activating an event handler. Instead, the sub-event delivery instructions deliver the event information to event handlers associated with a set of sub-events or actively participating views. The event handlers associated with the set of sub-events or actively participating views receive the event information and perform a predetermined process.

[0160] In some embodiments, data updater 276 creates and updates data used by application 236-1. For example, data updater 276 updates phone numbers used in contacts module 237 or stores video files used in a video player module. In some embodiments, object updater 277 creates and updates objects used by application 236-1. For example, object updater 277 creates new user interface objects or updates the positions of user interface objects. GUI updater 278 updates the GUI. For example, GUI updater 278 prepares display information and sends the display information to graphics module 232 for display on the touch-sensitive display.

[0161] In some embodiments, event handler(s) 290 include or have access to data updater 276, object updater 277, and GUI updater 278. In some embodiments, data updater 276, object updater 277, and GUI updater 278 are contained within a single module of the respective application 236-1 or application view 291. In other embodiments, they are contained within two or more software modules.

[0162] It will be understood that the foregoing discussion regarding event processing of user touches on a touch-sensitive display also applies to other forms of user input for operating multifunction device 200 using input devices, although not all of them are initiated on the touchscreen. For example, mouse movements and mouse button presses, touch movements such as tapping, dragging, scrolling on a touchpad, optionally coordinated with single or multiple keyboard presses or holds, pen stylus input, device movement, detection of verbal command eye movements, biometric input, and / or any combination thereof are optionally utilized as inputs corresponding to sub-events that define the events to be recognized.

[0163] 3 illustrates portable multifunction device 200 having touchscreen 212, according to some embodiments. The touchscreen optionally displays one or more graphics within user interface (UI) 300. In this embodiment, as well as other embodiments described below, a user may select one or more of the graphics by performing a gesture on the graphics, for example, using one or more fingers 302 (not drawn to scale) or one or more styluses 303 (not drawn to scale). In some embodiments, selection of one or more graphics is performed when the user breaks contact with the one or more graphics. In some embodiments, the gesture optionally includes one or more taps, one or more swipes (left to right, right to left, upward, and / or downward), and / or rolling (right to left, left to right, upward, and / or downward) of a finger in contact with device 200. In some implementations or situations, accidental contact with a graphic does not select the graphic, for example, if the gesture corresponding to selection is a tap, a swipe gesture sweeping over an application icon optionally does not select the corresponding application.

[0164] Device 200 also optionally includes one or more physical buttons, such as a "home" or menu button 304. As mentioned above, menu button 304 is optionally used to navigate to any application 236 within a set of applications optionally running on device 200. Alternatively, in some embodiments, the menu button is implemented as a soft key within a GUI displayed on touchscreen 212.

[0165] In some embodiments, device 200 includes touchscreen 212, menu button 304, pushbutton 306 for powering the device on / off and locking the device, volume control button(s) 308, subscriber identity module (SIM) card slot 310, headset jack 312, and external docking / charging port 224. Pushbutton 306 is optionally used to turn power on / off on the device by pressing and holding the button down for a predetermined time interval, and to lock the device and / or unlock the device or start the unlocking process by pressing and releasing the button before the predetermined time interval has elapsed. In an alternative embodiment, device 200 also accepts verbal input via microphone 213 to activate or deactivate some features. Device 200 also optionally includes one or more contact intensity sensors 265 for detecting the intensity of a contact on touchscreen 212 and / or one or more tactile output generators 267 for generating a tactile output for a user of device 200.

[0166] 4 is a block diagram of an exemplary multifunction device having a display and a touch-sensitive surface, according to some embodiments. Device 400 need not be portable. In some embodiments, device 400 is a laptop computer, a desktop computer, a tablet computer, a multimedia player device, a navigation device, an educational device (such as a child's learning toy), a gaming system, or a control device (e.g., a home or commercial controller). Device 400 typically includes one or more processing units (CPUs) 410, one or more network or other communication interfaces 460, memory 470, and one or more communication buses 420 for interconnecting these components. Communication bus 420 optionally includes circuitry (sometimes called a chipset) that interconnects and controls communication between system components. Device 400 includes input / output (I / O) interface 430 with display 440, which is typically a touchscreen display. I / O interface 430 also optionally includes a keyboard and / or mouse (or other pointing device) 450, as well as a touchpad 455, a tactile output generator 457 (e.g., similar to tactile output generator(s) 267 described above with reference to FIG. 2A ) for generating tactile output on device 400, sensors 459 (e.g., optical sensors, acceleration sensors, proximity sensors, touch-sensitive sensors, and / or contact intensity sensors similar to contact intensity sensor(s) 265 described above with reference to FIG. 2A ). Memory 470 includes high-speed random-access memory such as DRAM, SRAM, DDR RAM, or other random-access solid-state memory devices, and optionally includes non-volatile memory such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. Memory 470 optionally includes one or more storage devices located remotely from CPU(s) 410.In some embodiments, memory 470 stores programs, modules, and data structures similar to, or a subset of, programs, modules, and data structures stored in memory 202 of portable multifunction device 200 (FIG. 2A). Moreover, memory 470 optionally stores additional programs, modules, and data structures not present in memory 202 of portable multifunction device 200. For example, memory 470 of device 400 optionally stores drawing module 480, presentation module 482, word processing module 484, website creation module 486, disc authoring module 488, and / or spreadsheet module 490, while memory 202 of portable multifunction device 200 (FIG. 2A) optionally does not store these modules.

[0167] 4 are optionally stored in one or more of the memory devices mentioned above. Each of the above-identified modules corresponds to an instruction set that performs the described function. The above-identified modules or programs (e.g., instruction sets) optionally need not be implemented as separate software programs, procedures, or modules; thus, in various embodiments, various subsets of these modules are optionally combined or otherwise rearranged. In some embodiments, memory 470 optionally stores a subset of the above-identified modules and data structures. Additionally, memory 470 optionally stores additional modules and data structures not described above.

[0168] Attention is now directed to embodiments of a user interface, optionally implemented on portable multifunction device 200, for example.

[0169] 5A shows an exemplary user interface for a menu of applications on portable multifunction device 200, according to some embodiments. A similar user interface is, optionally, implemented on device 400. In some embodiments, user interface 500 includes the following elements, or a subset or superset thereof:

[0170] signal strength indicator(s) 502 for wireless communication(s), such as cellular and Wi-Fi signals; ●Time 504, ●Bluetooth indicator 505, ● Battery status indicator 506, A tray 508 with icons for frequently used applications, such as: an icon 516 for the phone module 238, labeled "Phone," optionally including an indicator 514 of the number of missed calls or voicemail messages; an icon 518 for the email client module 240, labeled "Mail," optionally including an indicator 510 of the number of unread emails; ○ An icon 520 for the browser module 247, labeled "Browser", and ○ An icon 522 labeled "iPod" for the video and music player module 252, also referred to as the iPod (trademark of Apple Inc.) module 252; and ● Icons for other applications, such as: ○ Icon 524 for IM module 241, labeled "Messages" ○ Icon 526 for the calendar module 248, labeled "Calendar" ○ Icon 528 for the image management module 244, labeled "Photos" ○ An icon 530 for the camera module 243, labeled "camera"; ○ Icon 532 for the online video module 255, labeled "Online Video" Icon 534 for stock price widget 249-2, labeled "Stock Prices" ○ Icon 536 for map module 254, labeled "Map" ○ Icon 538 for weather widget 249-1, labeled "Weather" ○ Icon 540 for alarm clock widget 249-4, labeled "Clock" ○ Icon 542 for Training Support Module 242, labeled "Training Support" ○ An icon 544 for the notes module 253, labeled "Notes," and An icon 546 for a settings application or module, labeled "Settings," that provides access to settings related to the device 200 and its various applications 236.

[0171] 5A are merely exemplary. For example, icon 522 for video and music player module 252 is optionally labeled "Music" or "Music Player." Other labels are optionally used for various application icons. In some embodiments, the label for each application icon includes the name of the application corresponding to the respective application icon. In some embodiments, the label for a particular application icon is different from the name of the application corresponding to that particular application icon.

[0172] 5B shows an exemplary user interface on a device (e.g., device 400 of FIG. 4) that has touch-sensitive surface 551 (e.g., tablet or touchpad 455 of FIG. 4) that is separate from display 550 (e.g., touchscreen display 212). Device 400 also optionally includes one or more contact intensity sensors (e.g., one or more of sensors 457) for detecting the intensity of a contact on touch-sensitive surface 551 and / or one or more tactile output generators 459 for generating a tactile output for a user of device 400.

[0173] Although some of the following examples are described with reference to input on touchscreen display 212 (when the touch-sensitive surface and display are combined), in some embodiments, the device detects input on a touch-sensitive surface that is separate from the display, as shown in FIG. 5B . In some embodiments, this touch-sensitive surface (e.g., 551 in FIG. 5B ) has a major axis (e.g., 552 in FIG. 5B ) that corresponds to a major axis (e.g., 553 in FIG. 5B ) on the display (e.g., 550). According to these embodiments, the device detects contact with touch-sensitive surface 551 (e.g., 560 and 562 in FIG. 5B ) at locations that correspond to respective locations on the display (e.g., in FIG. 5B , 560 corresponds to 568 and 562 corresponds to 570). In this manner, when the touch-sensitive surface is separate from the display, user input (e.g., contacts 560 and 562 and their movement) detected by the device on the touch-sensitive surface (e.g., 551 in FIG. 5B ) is used by the device to operate a user interface on the display (e.g., 550 in FIG. 5B ) of the multifunction device. It should be understood that similar methods are, optionally, used with respect to the other user interfaces described herein.

[0174] Furthermore, while the following examples are described primarily with reference to finger input (e.g., finger contacts, finger tap gestures, finger swipe gestures), it should be understood that in some embodiments, one or more of the finger inputs are replaced with input from another input device (e.g., mouse-based input or stylus input). For example, a swipe gesture is optionally replaced by a mouse click (e.g., instead of a contact) followed by cursor movement along the path of the swipe (e.g., instead of moving the contact). As another example, a tap gesture is optionally replaced by a mouse click while the cursor is positioned over the tap gesture location (e.g., instead of detecting a contact followed by ceasing to detect the contact). Similarly, it should be understood that when multiple user inputs are detected simultaneously, multiple computer mice are optionally used simultaneously, or a mouse and finger contacts are optionally used simultaneously.

[0175] FIG. 6A shows an exemplary personal electronic device 600. Device 600 includes a main body 602. In some embodiments, device 600 may include some or all of the features described in connection with device 200 and device 400 (e.g., FIGS. 2A-4 ). In some embodiments, device 600 has a touch-sensitive display screen 604, hereafter referred to as touchscreen 604. Alternatively, or in addition to touchscreen 604, device 600 has a display and a touch-sensitive surface. Similar to devices 200 and 400, in some embodiments, touchscreen 604 (or the touch-sensitive surface) optionally includes one or more intensity sensors for detecting the intensity of an applied contact (e.g., a touch). The one or more intensity sensors of touchscreen 604 (or the touch-sensitive surface) can provide output data representing the intensity of the touch. The user interface of device 600 responds to touches based on the intensity of the touch, meaning that touches of different intensities can invoke different user interface actions on device 600.

[0176] Exemplary techniques for detecting and processing touch intensity are found, for example, in related applications, International Patent Application No. PCT / US2013 / 040061, filed May 8, 2013, entitled "Device, Method, and Graphical User Interface for Displaying User Interface Objects Corresponding to an Application" (published as WO 2013 / 169849), and International Patent Application No. PCT / US2013 / 069483, filed November 11, 2013, entitled "Device, Method, and Graphical User Interface for Transitioning Between Touch Input to Display Output Relationships" (published as WO 2014 / 105276), each of which is incorporated herein by reference in its entirety.

[0177] In some embodiments, device 600 has one or more input mechanisms 606 and 608. Input mechanisms 606 and 608, if included, can be physical. Examples of physical input mechanisms include push buttons and rotatable mechanisms. In some embodiments, device 600 has one or more attachment mechanisms. Such attachment mechanisms, if included, can allow device 600 to be attached to, for example, hats, eyewear, earrings, necklaces, shirts, jackets, bracelets, watch bands, chains, pants, belts, shoes, wallets, backpacks, etc. These attachment mechanisms allow device 600 to be worn by a user.

[0178] FIG. 6B illustrates an exemplary personal electronic device 600. In some embodiments, device 600 optionally includes some or all of the components described in connection with FIGS. 2A, 2B, and 4. Device 600 has a bus 612 operably coupling an I / O section 614 to one or more computer processors 616 and memory 618. I / O section 614 is optionally connected to a display 604, which may have touch-sensing components 622 and optionally an intensity sensor 624 (e.g., a contact intensity sensor). Furthermore, I / O section 614 is optionally connected to a communication unit 630 for receiving application data and operating system data using Wi-Fi, Bluetooth, near-field communication (“NFC”), cellular, and / or other wireless communication technologies. Device 600 optionally includes input mechanism 606 and / or input mechanism 608. For example, input mechanism 606 is optionally a rotatable input device or a depressible and rotatable input device. In some embodiments, input mechanism 608 is optionally a button.

[0179] In some embodiments, input mechanism 608 is optionally a microphone. Personal electronic device 600 optionally includes various sensors, such as a GPS sensor 632, an accelerometer 634, an orientation sensor 640 (e.g., a compass), a gyroscope 636, a motion sensor 638, and / or combinations thereof, all of which are optionally operably connected to I / O section 614.

[0180] The memory 618 of the personal electronic device 600 may include one or more non-transitory computer-readable storage media for storing computer-executable instructions that, when executed by one or more computer processors 616, cause the computer processors to perform, for example, the techniques and processes described below. The computer-executable instructions may also be stored in and / or transmitted to any non-transitory computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a processor-including system, or other system capable of fetching instructions from and executing those instructions. In some embodiments, the storage medium is a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium may be any type of storage device, including, but not limited to, magnetic, optical, and / or semiconductor storage devices. Examples of such storage devices include magnetic disks, optical discs based on CDs, DVDs, or Blu-ray technology, as well as persistent solid-state memory such as flash and solid-state drives. The personal electronic device 600 is not limited to the components and configuration of FIG. 6B and may include other or additional components in multiple configurations.

[0181] As used herein, the term "affordance" refers to a user-interactive graphical user interface object that is optionally displayed on a display screen of device 200, 400, 600, 800, 1000, 1600, and / or device 1800 (FIGS. 2A, 4, and 6A, 6B, 8A-8AF, 10A-10AJ, 16A-16S, 18A-18D). For example, images (e.g., icons), buttons, and text (e.g., hyperlinks) each, optionally, constitute an affordance.

[0182] As used herein, the term "focus selector" refers to an input element that indicates the current portion of a user interface with which a user is interacting. In some implementations that include a cursor or other position marker, the cursor acts as a "focus selector" such that when an input (e.g., a press input) is detected on a touch-sensitive surface (e.g., touchpad 455 in FIG. 4 or touch-sensitive surface 551 in FIG. 5B) while the cursor is over a particular user interface element (e.g., a button, a window, a slider, or other user interface element), the particular user interface element is adjusted according to the detected input. In some implementations including a touchscreen display (e.g., touch-sensitive display system 212 in FIG. 2A or touchscreen 212 in FIG. 5A ) that allows direct interaction with user interface elements on the touchscreen display, contact detected on the touchscreen acts as a “focus selector” such that when input (e.g., a contact press input) is detected at the location of a particular user interface element (e.g., a button, window, slider, or other user interface element) on the touchscreen display, the particular user interface element is adjusted according to the detected input. In some implementations, focus is moved from one region of the user interface to another region of the user interface without corresponding cursor movement or contact movement on the touchscreen display (e.g., by using the tab or arrow keys to move focus from one button to another); in these implementations, the focus selector moves according to the movement of focus between various regions of the user interface. Regardless of the specific form that the focus selector takes, the focus selector is generally a user interface element (or a contact on a touchscreen display) that is controlled by a user to communicate the user's intended interaction with the user interface (e.g., by indicating to the device the element of the user interface with which the user intends to interact).For example, while a press input is detected on a touch-sensitive surface (e.g., a touchpad or touchscreen), the position of a focus selector (e.g., a cursor, touch, or selection box) over a corresponding button indicates that the user intends to activate that corresponding button (and not other user interface elements shown on the device's display).

[0183] As used herein and in the claims, the term "characteristic intensity" of a contact refers to a characteristic of that contact based on one or more intensities of the contact. In some embodiments, the characteristic intensity is based on a plurality of intensity samples. The characteristic intensity is optionally based on a predetermined number of intensity samples, i.e., a set of intensity samples collected during a predetermined period (e.g., 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10 seconds) associated with a predetermined event (e.g., after detecting the contact, before detecting lift-off of the contact, before or after detecting the start of contact movement, before detecting the end of the contact, before or after detecting an increase in the intensity of the contact, and / or before or after detecting a decrease in the intensity of the contact). The characteristic intensity of the contact is optionally based on one or more of the maximum intensity of the contact, the mean value of the intensity of the contact, the average value of the intensity of the contact, the top 10 percentile of the intensity of the contact, half the maximum intensity of the contact, 90 percent of the maximum intensity of the contact, etc. In some embodiments, the duration of the contact is used in determining the characteristic intensity (e.g., where the characteristic intensity is an average of the intensity of the contact over time). In some embodiments, the characteristic intensity is compared to a set of one or more intensity thresholds to determine whether an action is performed by the user. For example, the set of one or more intensity thresholds optionally includes a first intensity threshold and a second intensity threshold. In this example, a contact having a characteristic intensity that does not exceed the first threshold results in a first action, a contact having a characteristic intensity that exceeds the first intensity threshold but not the second intensity threshold results in a second action, and a contact having a characteristic intensity that exceeds the second threshold results in a third action. In some embodiments, the comparison of the characteristic intensity to the one or more thresholds is not used to determine whether to perform the first action or the second action, but rather is used to determine whether to perform one or more actions (e.g., whether to perform the respective action or to forgo performing the respective action).

[0184] FIG. 6C illustrates the detection of multiple contacts 652A-652E on a touch-sensitive display screen 604 having multiple intensity sensors 624A-624D. FIG. 6C also includes an intensity diagram showing the current intensity measurements of intensity sensors 624A-624D in terms of intensity units. In this example, intensity sensors 624A and 624D each measure 9 intensity units, and intensity sensors 624B and 624C each measure 7 intensity units. In some implementations, the aggregate intensity is the sum of the intensity measurements of the multiple intensity sensors 624A-624D, which in this example is 32 intensity units. In some embodiments, each contact is assigned a respective intensity that is a portion of this aggregate intensity. FIG. 6D illustrates the assignment of aggregate intensity to contacts 652A-652E based on their distance from the center of force 654. In this example, contact 652A, contact 652B, and contact 652E are each assigned a contact intensity of 8 intensity units of the total intensity, and contact 652C and contact 652D are each assigned a contact intensity of 4 intensity units of the total intensity. More generally, in some implementations, each contact j is assigned a respective intensity Ij that is a portion of the total intensity A according to a predetermined mathematical function Ij=A·(Dj / ΣDi), where Dj is the distance of each contact j to the center of force and ΣDi is the sum of the distances of all of the respective contacts (e.g., from i=1 to the end) to the center of force. The operations described with reference to FIGS. 6C and 6D can be performed using electronic devices similar or identical to device 104, 200, 400, or device 600. In some embodiments, the characteristic intensity of a contact is based on one or more intensities of that contact. In some embodiments, an intensity sensor is used to determine a single characteristic intensity (e.g., a single characteristic intensity of a single contact). Note that these intensity plots are not part of the displayed user interface, but are included in FIGS. 6C and 6D as an aid to the reader.

[0185] In some embodiments, a portion of the gesture is identified for purposes of determining the characteristic intensity. For example, the touch-sensitive surface optionally receives successive swipe contacts that transition from a start position and reach an end position, at which point the intensity of the contact increases. In this example, the characteristic intensity of the contact at the end position is optionally based on only a portion of the successive swipe contacts (e.g., only the portion of the swipe contact at the end position), rather than the entire swipe contact. In some embodiments, before determining the characteristic intensity of the contact, a smoothing algorithm is optionally applied to the intensity of the swipe contact. For example, the smoothing algorithm optionally includes one or more of an unweighted moving average smoothing algorithm, a triangular smoothing algorithm, a median filter smoothing algorithm, and / or an exponential smoothing algorithm. In some situations, these smoothing algorithms eliminate small increases or decreases in the intensity of the swipe contact for purposes of determining the characteristic intensity.

[0186] The intensity of a contact on the touch-sensitive surface is optionally characterized with respect to one or more intensity thresholds, such as a contact-detection intensity threshold, a light pressure intensity threshold, a deep pressure intensity threshold, and / or one or more other intensity thresholds. In some embodiments, the light pressure intensity threshold corresponds to an intensity that will cause the device to perform an action typically associated with clicking a physical mouse button or trackpad. In some embodiments, the deep pressure intensity threshold corresponds to an intensity that will cause the device to perform an action different from an action typically associated with clicking a physical mouse button or trackpad. In some embodiments, if a contact is detected with a characteristic intensity below the light pressure intensity threshold (e.g., and above a weak contact-detection intensity threshold below which the contact is no longer detected), the device will move a focus selector in accordance with the movement of the contact on the touch-sensitive surface without performing an action associated with the light pressure intensity threshold or the deep pressure intensity threshold. Generally, unless otherwise noted, these intensity thresholds are consistent across different sets of user interface illustrations.

[0187] An increase in the characteristic intensity of the contact from an intensity below the light pressure intensity threshold to an intensity between the light pressure intensity threshold and the deep pressure intensity threshold may be referred to as a "light press" input. An increase in the characteristic intensity of the contact from an intensity below the deep pressure intensity threshold to an intensity above the deep pressure intensity threshold may be referred to as a "deep press" input. An increase in the characteristic intensity of the contact from an intensity below the contact-detection intensity threshold to an intensity between the contact-detection intensity threshold and the light pressure intensity threshold may be referred to as detecting a contact on the touch surface. A decrease in the characteristic intensity of the contact from an intensity above the contact-detection intensity threshold to an intensity below the contact-detection intensity threshold may be referred to as detecting a lift-off of the contact from the touch surface. In some embodiments, the contact-detection intensity threshold is zero. In some embodiments, the contact-detection intensity threshold is greater than zero.

[0188] In some embodiments described herein, one or more actions are performed in response to detecting a gesture including a corresponding pressure input or in response to detecting a corresponding pressure input performed with a corresponding contact (or contacts) that is detected at least in part based on detecting an increase in intensity of the contact (or contacts) above a pressure input intensity threshold. In some embodiments, the corresponding action is performed in response to detecting an increase in intensity of the corresponding contact (e.g., a "downstroke" of the corresponding pressure input) above a pressure input intensity threshold. In some embodiments, the pressure input includes an increase in intensity of the corresponding contact above a pressure input intensity threshold and a subsequent decrease in intensity of the contact below the pressure input intensity threshold, and the corresponding action is performed in response to detecting a subsequent decrease in intensity of the corresponding contact (e.g., an "upstroke" of the corresponding pressure input) below the pressure input intensity threshold.

[0189] 6E-6H illustrate the detection of a gesture including a press input corresponding to an increase in the intensity of contact 662, from an intensity below a light pressure intensity threshold (e.g., "ITL") in FIG. 6E to an intensity above a deep pressure intensity threshold (e.g., "ITD") in FIG. 6H. A gesture performed with contact 662 is detected on touch-sensitive surface 660 while cursor 676 is displayed over application icon 672B corresponding to app2 on displayed user interface 670, including application icons 672A-672D displayed within default region 674. In some embodiments, the gesture is detected on touch-sensitive display 604. An intensity sensor detects the intensity of the contact on touch-sensitive surface 660. The device determines that the intensity of contact 662 reaches a peak that exceeds the deep pressure intensity threshold (e.g., "ITD"). Contact 662 is maintained on touch-sensitive surface 660. In response to detecting this gesture, and following contact 662 having an intensity above a deep pressure intensity threshold (e.g., "ITD") during this gesture, reduced representations 678A-678C (e.g., thumbnails) of recently opened documents for app2 are displayed, as shown in Figures 6F-6H. In some embodiments, the intensity compared to one or more intensity thresholds is a characteristic intensity of the contact. Note that the intensity diagram for contact 662 is not part of the displayed user interface, but is included in Figures 6E-6H as an aid to the reader.

[0190] In some embodiments, the display of representations 678A-678C includes animation. For example, representation 678A is initially displayed near application icon 672B, as shown in FIG. 6F. As the animation progresses, representation 678A moves upward and representation 678B is displayed near application icon 672B, as shown in FIG. 6G. Then, representation 678A moves upward, 678B moves upward toward representation 678A, and representation 678C is displayed near application icon 672B, as shown in FIG. 6H. Representations 678A-678C form an array above icon 672B. In some embodiments, the animation progresses according to the intensity of contact 662, as shown in FIGS. 6F-6G, where representations 678A-678C appear and move upward as the intensity of contact 662 increases toward a deep pressure intensity threshold (e.g., "ITD"). In some embodiments, the intensity on which the animation progresses is based is a characteristic intensity of the contact. The operations described with reference to Figures 6E-6H can be performed using an electronic device similar to or identical to device 104, 200, 400, or device 600.

[0191] In some embodiments, the device employs intensity hysteresis to avoid accidental input, sometimes referred to as “jitter,” and the device defines or selects a hysteresis intensity threshold that has a predetermined relationship to the pressure input intensity threshold (e.g., the hysteresis intensity threshold is X intensity units below the pressure input intensity threshold, or the hysteresis intensity threshold is 75%, 90%, or some reasonable percentage of the pressure input intensity threshold). Thus, in some embodiments, the pressure input includes a corresponding increase in the intensity of the contact above the pressure input intensity threshold and a subsequent decrease in the intensity of the contact below a hysteresis intensity threshold that corresponds to the pressure input intensity threshold, and a corresponding action is performed in response to detecting a subsequent corresponding decrease in the intensity of the contact below the hysteresis intensity threshold (e.g., an “upstroke” of the corresponding pressure input). Similarly, in some embodiments, a pressure input is detected only if the device detects an increase in the intensity of the contact from an intensity below the hysteresis intensity threshold to an intensity above the pressure input intensity threshold, and optionally a subsequent decrease in the intensity of the contact to an intensity below the hysteresis intensity, and a corresponding action is performed in response to detecting that pressure input (e.g., an increase in the intensity of the contact or a decrease in the intensity of the contact, as the case may be).

[0192] For ease of explanation, descriptions of actions performed in response to a pressure input associated with a pressure input intensity threshold or in response to a gesture including that pressure input are optionally triggered in response to detecting any of: an increase in the intensity of the contact above the pressure input intensity threshold, an increase in the intensity of the contact from an intensity below a hysteresis intensity threshold to an intensity above the pressure input intensity threshold, a decrease in the intensity of the contact below the pressure input intensity threshold, and / or a decrease in the intensity of the contact below a hysteresis intensity threshold corresponding to the pressure input intensity threshold. Furthermore, in embodiments where an action is described as being performed in response to detecting a decrease in the intensity of the contact below a pressure input intensity threshold, the action is optionally performed in response to detecting a decrease in the intensity of the contact below a hysteresis intensity threshold corresponding to and below the pressure input intensity threshold.

[0193] As used herein, an "installed application" refers to a software application that has been downloaded onto an electronic device (e.g., device 100, 200, 400, and / or device 600) and is ready to be launched (e.g., opened) on that device. In some embodiments, a downloaded application becomes an installed application by an installation program that extracts program portions from a downloaded package and integrates the extracted portions with the computer system's operating system.

[0194] As used herein, the terms "open application" or "running application" refer to a software application for which state information is maintained (e.g., as part of device / global internal state 157 and / or application internal state 192). An open or running application is, optionally, any one of the following types of application: ● The active application currently displayed on the display screen of the device on which the application is being used; Background applications (or background processes) that are not currently displayed, but whose associated processes are being processed by one or more processors; and A suspended or hibernated application that is not running but has state information stored in memory (volatile and / or non-volatile, respectively) that can be used to resume execution of that application.

[0195] As used herein, the term "closed application" refers to a software application for which no state information is maintained (e.g., no state information about the closed application is stored in the device's memory). Thus, closing an application includes stopping and / or removing the application process for that application and removing state information about that application from the device's memory. Generally, opening a second application during a first application does not close the first application. Once the second application is displayed and the first application ceases to be displayed, the first application becomes a background application. 3. Digital Assistant System

[0196] FIG. 7A shows a block diagram of a digital assistant system 700 according to various embodiments. In some embodiments, digital assistant system 700 is implemented on a stand-alone computer system. In some embodiments, digital assistant system 700 is distributed across multiple computers. In some embodiments, some of the modules and functionality of the digital assistant are allocated to a server portion and a client portion, where the client portion resides on one or more user devices (e.g., devices 104, 122, 200, 400, 600, 800, 1000, 1404, 1600, 1800), for example, as shown in FIG. 1, and communicates with the server portion (e.g., server system 108) through one or more networks. In some embodiments, digital assistant system 700 is an implementation of server system 108 (and / or DA server 106) shown in FIG. 1. It should be noted that digital assistant system 700 is only one example of a digital assistant system, and that digital assistant system 700 may have more or fewer components than those shown, may combine two or more components, or may have a different configuration or arrangement of the components. The various components shown in FIG. 7A may be implemented as hardware, including one or more signal processing circuits and / or application specific integrated circuits, software instructions executed by one or more processors, firmware, or a combination thereof.

[0197] Digital assistant system 700 includes memory 702, one or more processors 704, an input / output (I / O) interface 706, and a network communication interface 708. These components can communicate with each other via one or more communication buses or signal lines 710.

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

[0199] In some embodiments, I / O interface 706 couples input / output devices 716 of digital assistant system 700, such as a display, keyboard, touchscreen, and microphone, to user interface module 722. I / O interface 706 cooperates with user interface module 722 to receive user inputs (e.g., voice input, keyboard input, touch input, etc.) and process them accordingly. In some embodiments, for example, when the digital assistant is implemented on a standalone user device, digital assistant system 700 includes any of the components and I / O communication interfaces described in connection with devices 200, 400, 600, 1200, and 1404, respectively, in FIGS. 2A, 4, 6A-6H, 12, and 14. In some embodiments, digital assistant system 700 represents the server portion of a digital assistant implementation and can interact with a user through a client-side portion that resides on a user device (e.g., device 104, 200, 400, 600, 800, 1000, 1404, 1600, 1800).

[0200] In some embodiments, network communication interface 708 includes wired communication port(s) 712 and / or wireless transceiver circuitry 714. The wired communication port(s) transmit and receive communication signals via one or more wired interfaces, such as Ethernet, Universal Serial Bus (USB), FIREWIRE, etc. The wireless circuitry 714 transmits and receives RF and / or optical signals to and from communication networks and other communication devices. Wireless communication uses any of a number of communication standards, protocols, and technologies, such as GSM, EDGE, CDMA, TDMA, Bluetooth, Wi-Fi, VoIP, Wi-MAX, or any other suitable communication protocol. Network communication interface 708 enables communication between digital assistant system 700 and networks, such as the Internet, intranets, and / or wireless networks, such as cellular telephone networks, wireless local area networks (LANs), and / or metropolitan area networks (MANs), and with other devices.

[0201] In some embodiments, memory 702, or the computer-readable storage medium of memory 702, stores programs, modules, instructions, and data structures, including all or a subset of an operating system 718, a communications module 720, a user interface module 722, one or more applications 724, and a digital assistant module 726. In particular, memory 702, or the computer-readable storage medium of memory 702, stores instructions for performing the processes described below. One or more processors 704 execute these programs, modules, and instructions and read / write from / to the data structures.

[0202] Operating system 718 (e.g., Darwin, RTXC, LINUX, UNIX, iOS, 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.

[0203] Communications module 720 facilitates communication between digital assistant system 700 and other devices via network communications interface 708. For example, communications module 720 communicates with RF circuitry 208 of electronic devices such as devices 200, 400, and 600 shown in FIGS. 2A, 4, and 6A-6B, respectively. Communications module 720 also includes various components for processing data received by wireless circuitry 714 and / or wired communications port 712.

[0204] The user interface module 722 receives commands and / or input from a user via the I / O interface 706 (e.g., from a keyboard, touchscreen, pointing device, controller, and / or microphone) and generates user interface objects on the display. The user interface module 722 also prepares and delivers output to the user (e.g., speech, sound, animation, text, icons, vibration, haptic feedback, light, etc.) via the I / O interface 706 (e.g., through a display, audio channel, speaker, touchpad, etc.).

[0205] Applications 724 include programs and / or modules configured to be executed by one or more processors 704. For example, if the digital assistant system is implemented on a standalone user device, applications 724 include user applications such as games, calendar applications, navigation applications, or email applications. If the digital assistant system 700 is implemented on a server, applications 724 include, for example, resource management applications, diagnostic applications, or scheduling applications.

[0206] Memory 702 also stores digital assistant module 726 (or the server portion of the digital assistant). In some embodiments, digital assistant module 726 includes the following submodules, or a subset or superset thereof: input / output processing module 728, speech-to-text (STT) processing module 730, natural language processing module 732, dialog flow processing module 734, task flow processing module 736, service processing module 738, and speech synthesis processing module 740. Each of these modules has access to one or more of the following systems or data and models of digital assistant module 726, or a subset or superset thereof: ontology 760, vocabulary index 744, user data 748, task flow model 754, service model 756, and ASR system 758.

[0207] In some examples, using the processing modules, data, and models implemented in digital assistant module 726, the digital assistant can perform at least some of the following: convert speech input to text; identify the user's intent as expressed in the natural language input received from the user; actively elicit and obtain the information necessary to fully infer the user's intent (e.g., by disambiguating words, games, intents, etc.); determine a task flow to satisfy the inferred intent; and execute the task flow to satisfy the inferred intent.

[0208] In some embodiments, as shown in FIG. 7B , I / O processing module 728 interacts with a user through I / O device 716 of FIG. 7A or with a user device (e.g., device 104, 200, 400, or device 600) through network communication interface 708 of FIG. 7A to obtain user input (e.g., speech input) and to provide responses to the user input (e.g., as speech output). I / O processing module 728 optionally obtains contextual information associated with the user input from the user device along with or immediately after receiving the user input. The contextual information includes user-specific data, vocabulary, and / or preferences related to the user input. In some embodiments, the contextual information also includes information about the software and hardware state of the user device at the time the user request is received and / or the user's ambient environment at the time the user request is received. In some embodiments, I / O processing module 728 also sends follow-up questions to the user regarding the user request and receives answers from the user. When a user request is received by the I / O processing module 728 and the user request includes speech input, the I / O processing module 728 forwards the speech input to the STT processing module 730 (or speech recognizer) for speech-to-text conversion.

[0209] The STT processing module 730 includes one or more ASR systems 758. The one or more ASR systems 758 can process speech input received via the I / O processing module 728 to generate recognition results. Each ASR system 758 includes a front-end speech preprocessor. The front-end speech preprocessor extracts representative features from the speech input. For example, the front-end speech preprocessor performs a Fourier transform on the speech input to extract spectral features that characterize the speech input as a sequence of representative multi-dimensional vectors. Furthermore, each ASR system 758 includes one or more speech recognition models (e.g., acoustic models and / or language models) and implements one or more speech recognition engines. Examples of speech recognition models include hidden Markov models, Gaussian mixture models, deep neural network models, n-gram language models, and other statistical models. Examples of speech recognition engines include dynamic time warping-based engines and weighted finite-state transducer (WFST)-based engines. One or more speech recognition models and one or more speech recognition engines are used to process the extracted representative features of the front-end speech preprocessor to generate intermediate recognition results (e.g., phonemes, phonemic strings, and subwords) and ultimately to generate text recognition results (e.g., words, word strings, or token strings). In some implementations, the speech input is at least partially processed by a third-party service or on the user's device (e.g., device 104, 200, 400, or device 600) to generate the recognition results. Once the STT processing module 730 generates a recognition result including a text string (e.g., a word, word string, or token string), the recognition result is passed to the natural language processing module 732 for intent inference. In some implementations, the STT processing module 730 generates multiple candidate text representations of the speech input. Each candidate text representation is a sequence of words or tokens that corresponds to the speech input. In some implementations, each candidate text representation is associated with a speech recognition confidence score.Based on the speech recognition confidence scores, the STT processing module 730 ranks the candidate text representations and provides the n best (e.g., the n highest-ranked) candidate text representation(s) to the natural language processing module 732 for intent inference, where n is a predetermined integer greater than zero. For example, in one embodiment, only the highest-ranked (n=1) candidate text representation is passed to the natural language processing module 732 for intent inference. In another embodiment, the five highest-ranked (n=5) candidate text representations are passed to the natural language processing module 732 for intent inference.

[0210] Further details regarding speech-to-text processing are described in U.S. Utility Patent Application No. 13 / 236,942, filed September 20, 2011, for "Consolidating Speech Recognition Results," the entire disclosure of which is incorporated herein by reference.

[0211] In some implementations, the STT processing module 730 includes a vocabulary of recognizable words and / or has access to that vocabulary via the phonetic alphabet conversion module 731. Each vocabulary word is associated with one or more candidate pronunciations of that word, represented in a speech recognition phonetic alphabet. Specifically, the vocabulary of recognizable words includes words associated with multiple candidate pronunciations. For example, the vocabulary may include:

number

[0212] In some implementations, the pronunciation candidates are ranked based on the commonality of the pronunciation candidate.

number

number

number

number

number

[0213] When a speech input is received, the STT processing module 730 is used to determine the phonemes that correspond to the speech input (e.g., using an acoustic model) and then attempts to determine a word that matches the phonemes (e.g., using a language model). For example, the STT processing module 730 first determines a sequence of phonemes that correspond to a portion of the speech input.

number

[0214] In some implementations, the STT processing module 730 uses proximity matching techniques to determine words in an utterance. Thus, for example, the STT processing module 730 may use a sequence of phonemes:

number

[0215] The digital assistant's natural language processing module 732 ("natural language processor") takes the n best candidate text representation(s) ("word string(s)" or "token string(s)") generated by the STT processing module 730 and attempts to associate each of those candidate text representations with one or more "actionable intents" recognized by the digital assistant. An "actionable intent" (or "user intent") represents a task that can be performed by the digital assistant and may have an associated task flow implemented in task flow model 754. This associated task flow is a sequence of programmed actions and steps that the digital assistant performs to accomplish the task. The scope of the digital assistant's capabilities is determined by the number and variety of task flows implemented and stored in task flow model 754, or in other words, the number and variety of "actionable intents" recognized by the digital assistant. However, the effectiveness of a digital assistant also depends on the assistant's ability to infer the correct "actionable intent(s)" from user requests expressed in natural language.

[0216] In some embodiments, in addition to the string of words or tokens obtained from STT processing module 730, natural language processing module 732 also receives contextual information associated with the user request, e.g., from I / O processing module 728. Natural language processing module 732 optionally uses the contextual information to clarify, complement, and / or further define the information contained in the candidate text representation received from STT processing module 730. Contextual information includes, for example, user preferences, hardware and / or software state of the user device, sensor information collected before, during, or immediately after the user request, and previous interactions (e.g., dialogs) between the digital assistant and the user. As described herein, contextual information is dynamic in some embodiments, changing with time, location, dialog content, and other factors.

[0217] In some embodiments, natural language processing is based on, for example, ontology 760. Ontology 760 is a hierarchical structure that includes multiple nodes, each of which represents either an "actionable intention" or an "attribute" or other "attributes" related to one or more of the "actionable intentions." As described above, an "actionable intention" represents a task that the digital assistant can perform, i.e., the task is "actionable" or can be performed. An "attribute" represents a parameter associated with an actionable intention or a sub-aspect of another attribute. The link between an actionable intention node and an attribute node in ontology 760 defines how the parameter represented by the attribute node contributes to the task represented by the actionable intention node.

[0218] In some embodiments, ontology 760 is composed of actionable intent nodes and attribute nodes. Within ontology 760, each actionable intent node is linked to one or more attribute nodes, either directly or through one or more intermediate attribute nodes. Similarly, each attribute node is linked to one or more actionable intent nodes, either directly or through one or more intermediate attribute nodes. For example, as shown in FIG. 7C , ontology 760 includes a "Restaurant Reservation" node (i.e., an actionable intent node). The attribute nodes "Restaurant," "Date / Time" (for the reservation), and "Number of Participants" are each directly linked to an actionable intent node (i.e., the "Restaurant Reservation" node).

[0219] Furthermore, the attribute nodes “cuisine,” “price range,” “phone number,” and “location” are subordinate nodes of the attribute node “restaurant,” and each is linked to the “reservation restaurant” node (i.e., an actionable intention node) via the intermediate attribute node “restaurant.” As another example, as shown in FIG. 7C , ontology 760 also includes a “set reminder” node (i.e., another actionable intention node). The attribute nodes “date / time” (for setting a reminder) and “theme” (for a reminder) are each linked to the “set reminder” node. Because the attribute node “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 “reservation restaurant” node and the “set reminder” node in ontology 760.

[0220] An actionable intent node, along with its linked attribute nodes, is described as a "domain." In this discussion, each domain is associated with a corresponding actionable intent and refers to a group of nodes (and the relationships between those nodes) associated with that particular actionable intent. For example, ontology 760 shown in FIG. 7C includes an example of a restaurant reservation domain 762 and an example of a reminder domain 764 within ontology 760. The restaurant reservation domain includes the actionable intent node "reservation of restaurant," the attribute nodes "restaurant," "date / time," and "number of participants," and the sub-attribute nodes "cuisine," "price range," "phone number," and "location." The reminder domain 764 includes the actionable intent node "reminder setting," and the attribute nodes "theme" and "date / time." In some embodiments, ontology 760 is composed of multiple domains. Each domain shares one or more attribute nodes with one or more other domains. For example, the "date / time" attribute node is associated with a number of different domains (eg, a scheduling domain, a travel booking domain, a movie ticket domain, etc.) in addition to a restaurant reservation domain 762 and a reminder domain 764.

[0221] 7C illustrates two example domains within ontology 760, although other domains include, for example, "find a movie," "initiate a phone call," "find directions," "schedule a meeting," "send a message," "provide an answer to a question," "read a list," "provide navigation instructions," and "provide task instructions." The "send a message" domain is associated with the "send a message" actionable intent node and further includes attribute nodes such as "recipient(s)," "message type," and "message body." The attribute node "recipient" is further defined by sub-attribute nodes such as "recipient name" and "message address."

[0222] In some implementations, ontology 760 includes all domains (and therefore actionable intents) that the digital assistant can understand and perform. In some implementations, ontology 760 is modified by adding or removing domains or entire nodes, or by modifying relationships between nodes in ontology 760, etc.

[0223] In some examples, nodes associated with related actionable intents are clustered under a "super domain" in ontology 760. For example, the "Travel" super domain includes a cluster of travel-related attribute nodes and actionable intent nodes. Actionable intent nodes related to travel include "book a flight," "book a hotel," "rent a car," "get directions," and "find points of interest." Actionable intent nodes under the same super domain (e.g., the "Travel" super domain) share many attribute nodes. For example, the actionable intent nodes for "book a flight," "book a hotel," "rent a car," "get directions," and "find points of interest" share one or more of the attribute nodes "origin," "destination," "departure date / time," "arrival date / time," and "number of participants."

[0224] In some embodiments, each node in ontology 760 is associated with a set of words and / or phrases related to the attribute or actionable intent represented by that node. The set of corresponding words and / or phrases associated with each node is the so-called "vocabulary" associated with that node. The set of corresponding words and / or phrases associated with each node, in association with the attribute or actionable intent represented by that node, is stored in vocabulary index 744. For example, returning to FIG. 7C , vocabulary associated with a node related to the attribute of "restaurant" includes words such as "food," "drink," "dish," "hungry," "eat," "pizza," "fast food," and "meal." As another example, vocabulary associated with a node related to the actionable intent of "initiate a phone call" includes words and phrases such as "call," "phone," "dial," "ring," "call this number," and "make a call to." Vocabulary index 744 optionally includes words and phrases in different languages.

[0225] Natural language processing module 732 receives text representation candidates (e.g., text string(s) or token string(s)) from STT processing module 730 and, for each representation candidate, determines which nodes are implied by words in the text representation candidate. In some examples, if a word or phrase in the text representation candidate is found to be associated with one or more nodes in ontology 760 (via vocabulary index 744), the word or phrase "trigger" or "activate" those nodes. Based on the amount and / or relative importance of activated nodes, natural language processing module 732 selects one of those actionable intents as the task the user intends the digital assistant to perform. In some examples, the domain with the most "triggered" nodes is selected. In some examples, the domain with the highest confidence value (e.g., based on the relative importance of the various triggered nodes) is selected. In some examples, the domain is selected based on a combination of the number and importance of triggered nodes. In some embodiments, additional factors are also considered when selecting a node, such as whether the digital assistant has previously correctly interpreted a similar request from the user.

[0226] User data 748 includes user-specific information, such as user-specific vocabulary, user preferences, user addresses, the user's default and secondary languages, the user's contact list, and other short-term or long-term information about each user. In some implementations, natural language processing module 732 uses this user-specific information to supplement the information contained in the user input and further define the user intent. For example, for a user request "invite my friends to my birthday party," natural language processing module 732 can access user data 748 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 the user request.

[0227] It should be appreciated that in some examples, natural language processing module 732 is implemented using one or more machine learning mechanisms (e.g., neural networks). Specifically, the one or more machine learning mechanisms are configured to receive candidate textual representations and contextual information associated with the candidate textual representations. Based on the candidate textual representations and the associated contextual information, the one or more machine learning mechanisms are configured to determine an intent confidence score across a set of actionable intent candidates. Natural language processing module 732 can select one or more actionable intent candidates from the set of actionable intent candidates based on the determined intent confidence scores. In some examples, an ontology (e.g., ontology 760) is also used to select one or more actionable intent candidates from the set of actionable intent candidates.

[0228] Further details of searching ontologies based on token strings are described in U.S. Utility Patent Application No. 12 / 341,743, filed December 22, 2008, entitled "Method and Apparatus for Searching Using an Active Ontology," the entire disclosure of which is incorporated herein by reference.

[0229] In some examples, once the natural language processing module 732 identifies an actionable intent (or domain) based on the user request, the natural language processing module 732 generates a structured query to represent the identified actionable intent. In some examples, the structured query includes parameters for one or more nodes in the domain related to the actionable intent, at least some of which are populated with specific information and requirements specified in the user request. For example, a user may say, "Make me a dinner reservation at a sushi place at 7." In this case, the natural language processing module 732 may accurately identify the actionable intent as "restaurant reservation" based on the user input. According to the ontology, a structured query for the "restaurant reservation" domain may include parameters such as {cuisine}, {time}, {date}, and {number of participants}. In some implementations, based on the speech input and text derived from the speech input using the STT processing module 730, the natural language processing module 732 generates a partially structured query for the restaurant reservation domain, where the partially structured query includes the parameter {cuisine="sushi"} and the parameter {time="7:00 PM"}. However, in this implementation, the information included in the user's utterance is insufficient to complete a structured query associated with the domain. Therefore, other required parameters, such as {number of participants} and {date}, are not specified in the structured query based on the currently available information. In some implementations, the natural language processing module 732 populates some parameters of the structured query with received context information. For example, in some implementations, if the user requests a sushi restaurant "nearby," the natural language processing module 732 populates the {location} parameter in the structured query with GPS coordinates from the user device.

[0230] In some implementations, the natural language processing module 732 identifies multiple actionable intent candidates for each text expression candidate received from the STT processing module 730. Furthermore, in some implementations, a corresponding (partial or complete) structured query is generated for each identified actionable intent candidate. The natural language processing module 732 determines an intent confidence score for each actionable intent candidate and ranks the actionable intent candidates based on the intent confidence score. In some implementations, the natural language processing module 732 passes the generated structured query(s), including any input parameters, to the task flow processing module 736 (“task flow processor”). In some implementations, the structured query(s) for the m best (e.g., m highest-ranked) actionable intent candidates are provided to the task flow processing module 736 (where m is a predetermined integer greater than zero). In some implementations, the structured query(s) for the m best feasible intent candidates are provided to task flow processing module 736 along with the corresponding textual representation candidate(s).

[0231] Further details of inferring user intent based on multiple possible intent candidates determined from multiple candidate text representations of a speech input are described in U.S. Utility Patent Application No. 14 / 298,725, filed June 6, 2014, for "System and Method for Inferring User Intent From Speech Inputs," the entire disclosure of which is incorporated herein by reference.

[0232] Task flow processing module 736 is configured to receive the structured query(s) from natural language processing module 732, complete the structured query as needed, and perform the actions required to "complete" the user's final request. In some embodiments, the various steps required to complete these tasks are provided in task flow model 754. In some embodiments, task flow model 754 includes steps for obtaining additional information from the user and task flows for performing actions associated with the actionable intent.

[0233] As described above, completing a structured query may require task flow processing module 736 to initiate additional dialogue with the user to obtain additional information and / or disambiguate potentially ambiguous utterances. If such dialogue is necessary, task flow processing module 736 invokes dialog flow processing module 734 to engage in a dialogue with the user. In some embodiments, dialog flow processing module 734 determines how (and / or when) to request additional information from the user and receives and processes the user response. Questions are provided to the user and answers are received from the user via I / O processing module 728. In some embodiments, dialog flow processing module 734 presents dialog output to the user via audio and / or visual output and receives input from the user via spoken or physical (e.g., click) responses. Continuing with the above example, when task flow processing module 736 invokes dialog flow processing module 734 to determine the "number of people" and "date" information for a structured query associated with the domain "restaurant reservation," dialog flow processing module 734 generates questions to pass to the user, such as "For how many people?" and "On which day?" Once answers are received from the user, dialog flow processing module 734 then either enters the missing information into the structured query or passes the missing information to task flow processing module 736 to complete the missing information from the structured query.

[0234] Once the taskflow processing module 736 completes a structured query for an actionable intent, the taskflow processing module 736 proceeds to execute the final task associated with the actionable intent. Thus, the taskflow processing module 736 executes steps and instructions in a taskflow model according to specific parameters included in the structured query. For example, a taskflow model for an actionable intent of "restaurant reservation" includes steps and instructions for contacting a restaurant and actually requesting a reservation for a specific number of guests at a specific time. For example, using a structured query such as {Restaurant Reservation, Restaurant=ABC Cafe, Date=3 / 12 / 2012, Time=7 PM, Number of Guests=5}, the taskflow processing module 736 executes the following steps: (1) logging on to ABC Cafe's server or a restaurant reservation system such as OPENTABLE®; (2) entering date, time, and number of guests information into a form on the website; (3) submitting the form; and (4) entering a calendar item for the reservation into the user's calendar.

[0235] In some embodiments, task flow processing module 736 employs the assistance of service processing module 738 ("service processing module") to complete a task requested in the user input or to provide an answer to information requested in the user input. For example, service processing module 738 performs functions on behalf of task flow processing module 736, such as placing phone calls, setting calendar entries, invoking map searches, invoking or interacting with other user applications installed on the user device, and invoking or interacting with third-party services (e.g., restaurant reservation portals, social networking websites, banking portals, etc.). In some embodiments, the protocols and application programming interfaces (APIs) required by each service are specified by a corresponding service model in service models 756. Service processing module 738 accesses the appropriate service model for a service and generates requests for that service in accordance with the protocols and APIs required by that service according to the service model.

[0236] For example, if a restaurant supports an online reservation service, the restaurant submits a service model that specifies the parameters required to make a reservation and an API for communicating the values ​​of the required parameters to the online reservation service. Upon request by task flow processing module 736, service processing module 738 establishes a network connection with the online reservation service using the web address stored in the service model and transmits the required reservation parameters (e.g., time, date, number of participants) to the online reservation interface in a format that complies with the online reservation service's API.

[0237] In some examples, the natural language processing module 732, the dialog flow processing module 734, and the task flow processing module 736 are used collectively and iteratively to infer and define a user's intent, obtain information to further clarify and refine the user's intent, and ultimately generate a response (i.e., output to the user or completion of a task) to satisfy the user's intent. The generated response is a dialog response to the speech input that at least partially satisfies the user's intent. Furthermore, in some examples, the generated response is output as speech output. In these examples, the generated response is sent to the speech synthesis processing module 740 (e.g., a speech synthesizer), where it may be processed to synthesize a dialog response in the form of a speech. In still other examples, the generated response is data content related to satisfying the user request in the speech input.

[0238] In embodiments in which task flow processing module 736 receives multiple structured queries from natural language processing module 732, task flow processing module 736 first processes a first structured query among the received structured queries and attempts to complete the first structured query and / or perform one or more tasks or actions represented by the first structured query. In some embodiments, the first structured query corresponds to the highest-ranked actionable intent. In other embodiments, the first structured query is selected from the received structured queries based on a combination of the corresponding utterance recognition confidence score and the corresponding intent confidence score. In some embodiments, if task flow processing module 736 encounters an error while processing the first structured query (e.g., due to a required parameter being undeterminable), task flow processing module 736 can proceed to select and process a second structured query among the received structured queries that corresponds to a lower-ranked actionable intent. This second structured query is selected based on, for example, the speech recognition confidence scores of the corresponding text representation candidates, the intent confidence scores of the corresponding actionable intent candidates, missing required parameters in the first structured query, or any combination thereof.

[0239] The speech synthesis processing module 740 is configured to synthesize speech output for presentation to the user. The speech synthesis processing module 740 synthesizes the speech output based on text provided by the digital assistant. For example, the generated dialog response is in the form of a text string. The speech synthesis processing module 740 converts the text string into an audible speech output. The speech synthesis processing module 740 uses any suitable speech synthesis technique to generate the speech output from the text, including, but not limited to, concatenative synthesis, unit selection synthesis, diphone synthesis, domain-specific synthesis, formant synthesis, articulatory synthesis, synthesis based on a hidden Markov model (HMM), and sinusoidal synthesis. In some implementations, the speech synthesis processing module 740 is configured to synthesize individual words based on their corresponding phoneme sequences. For example, a phoneme sequence is associated with a word in the generated dialog response. The phoneme sequence is stored in metadata associated with the word. The speech synthesis processing module 740 is configured to process the phoneme sequences in the metadata directly to synthesize spoken words.

[0240] In some embodiments, instead of (or in addition to) using speech synthesis processing module 740, speech synthesis is performed on a remote device (e.g., server system 108), and the synthesized speech is sent to the user device for output to the user. For example, this can be done in some implementations where output to the digital assistant is generated on a server system. Also, because server systems generally have more processing power or resources than user devices, it is possible to obtain higher quality speech output than would be practical with client-side synthesis.

[0241] Further details regarding digital assistants can be found in U.S. Utility Patent Application No. 12 / 987,982, filed January 10, 2011, entitled "Intelligent Automated Assistant," and U.S. Utility Patent Application No. 13 / 251,088, filed September 30, 2011, entitled "Generating and Processing Task Items That Represent Tasks to Perform," the entire disclosures of which are incorporated herein by reference. 4. Expedited task execution

[0242] 8A-8AF are example user interfaces for providing suggestions on an electronic device (e.g., device 104, device 122, device 200, device 600, or device 700) according to some embodiments. The user interfaces in these figures are used to illustrate the processes described below, including the processes in FIGS. 9A-9B.

[0243] FIG. 8A illustrates an electronic device 800 (e.g., device 104, device 122, device 200, device 600, or device 700). In the non-limiting exemplary embodiment illustrated in FIGS. 8A-8AF, electronic device 800 is a smartphone. In other embodiments, electronic device 800 can be a different type of electronic device, such as a wearable device (e.g., a smart watch). In some examples, electronic device 800 has a display 801, one or more input devices (e.g., a touchscreen of display 801, buttons, a microphone), and a wireless communication radio. In some examples, electronic device 800 includes multiple cameras. In some examples, the electronic device includes only one camera. In some examples, the electronic device includes one or more biometric sensors (e.g., biometric sensor 803), optionally including a camera such as an infrared camera, a thermographic camera, or a combination thereof.

[0244] In FIG. 8A , electronic device 800 displays a lock screen interface, such as lock screen interface 804, on display 801 while the electronic device is in a locked state. Lock screen interface 804 includes suggestion affordance 806 and notification 808. As shown, suggestion affordance 806 is associated with an application named “Coffee,” and notification 808 is a message notification associated with a messaging application indicating that the electronic device has received a new message from a contact (“John Appleseed”) stored on the electronic device. In some embodiments, an application (e.g., a third-party application) can specify the manner in which the suggestion affordance is displayed. The application can, for example, specify the color of the suggestion affordance. In some embodiments, while in the locked state, electronic device 800 operates in a secure manner. By way of example, while operating in the locked state, electronic device 800 does not display the content of the task suggestion associated with suggestion affordance 806 or the message associated with notification 808. In some embodiments, this locked state further corresponds to restrictions on access to other data (including other applications) and / or limitations on allowed input.

[0245] In some examples, suggestion affordance 806 is displayed in a first manner and notification 808 is displayed in a second manner. As one example, suggestion affordance 806 is displayed using a first color and notification 808 is displayed using a second color that is different from the first color. As another example, suggestion affordance 806 can be displayed using a first shape and notification 808 can be displayed using a second shape that is different from the first shape.

[0246] In some embodiments, while operating in the locked state, the electronic device authenticates a user of the electronic device. For example, the user may be authenticated using a biometric sensor 803 (e.g., facial recognition, fingerprint recognition) or in response to entering a valid passcode (e.g., password, numeric passcode). In some embodiments, in response to authenticating the user, the electronic device 800 transitions to an unlocked state and displays a lock screen interface 810. In some embodiments, while displaying the lock screen interface 810, the electronic device 800 displays an animation indicating that the electronic device 800 is transitioning from a locked state to an unlocked state (e.g., the lock indicator 805 transitions from the locked state to the unlocked state).

[0247] In some examples, while operating in the unlocked state, electronic device 800 operates in an unsecured manner (e.g., an authenticated user can access secured data). By way of example, as shown in FIG. 8B , electronic device 800 displays the content of a task suggestion associated with suggestion affordance 806 and a message associated with notification 808. As shown, the content of the task suggestion associated with the suggestion affordance illustratively includes a task indicator 812 that indicates the task associated with the task suggestion and one or more parameters associated with the task.

[0248] While displaying the lock screen interface 810, the electronic device 800 detects a selection (e.g., activation) of the suggestion affordance 806. For example, as shown in FIG. 8C , this selection is a tap gesture 816 on the suggestion affordance 806. As described in more detail below, in response to detecting the tap gesture 816, the electronic device 800 selectively performs a task associated with the suggestion affordance 806. If the task is a first type of task (e.g., a background task), the electronic device 800 performs the task without requiring further user input. The electronic device 800 can further cease displaying the suggestion affordance 806, as shown in FIG. 8H.

[0249] 8D , if the task is a second type of task different from the first type, electronic device 800 displays a confirmation interface, such as confirmation interface 820. Confirmation interface 820 includes task content 822, a confirmation affordance 824, and a cancel affordance 826. In some implementations, task content 822 includes one or more of an application indicator 828, an application icon 830, and a task indicator 832. In some implementations, application indicator 828 indicates an application associated with the task. Application indicator 828 includes the name of the application (e.g., “Coffee”) and / or an icon associated with the application. Application icon 830 includes an icon (or other image) associated with the task and / or the application associated with the task. Task indicator 832 indicates the task corresponding to the suggestion affordance (“Order”) and / or one or more parameters associated with the task (e.g., Small, Latte, Homestead Rd. Cupertino, CA).

[0250] In some examples, in response to selecting the cancel affordance 826, the electronic device 800 ceases displaying the confirmation interface 820. In some examples, the application indicator 828 is implemented as an application affordance, and in response to selecting the application indicator 828, the electronic device 800 opens the application associated with the task (e.g., "Coffee"). In some examples, the application icon 830 is implemented as an application affordance, and in response to selecting the application icon 830, the electronic device 800 opens the application associated with the task.

[0251] In some embodiments, opening an application includes preloading the application with one or more parameters. For example, the suggestion affordance 806 is associated with a task for placing an order using a coffee application, and the parameters associated with the task include a coffee size (e.g., small), a coffee type (e.g., latte), and a location for picking up the order (a location on Homestead Rd. in Cupertino, CA). Thus, in some embodiments, opening an application in this manner includes inserting one or more parameters of the task on behalf of the user. As an example, opening the application by selecting the application indicator 828 or application icon 830 may cause the electronic device to open the coffee application and present an interface (e.g., a shopping cart interface) in which the user can confirm an order for a small latte at the Homestead Rd. location. In some embodiments, with the parameters preloaded, the electronic device performs the task in response to an input confirming an intent to perform the task. In this manner, the number of inputs required for a user to perform a particular task using an application may be reduced.

[0252] In some examples, an application (e.g., a third-party application) can specify the manner in which the confirmation affordance is displayed. The application can, for example, specify the color of the confirmation affordance. In some examples, while displaying the confirmation interface 820, the electronic device 800 detects a selection of the confirmation affordance 824. For example, as shown in FIG. 8E , this selection is a tap gesture 836 on the confirmation affordance 824. In response to detecting the tap gesture 836, the electronic device 800 performs a task. In some examples, while performing the task, the electronic device 800 optionally displays a process indicator 840 that indicates that the task is being performed. In some examples, the display of the process indicator 840 replaces the display of the confirmation affordance 824.

[0253] Once the task is performed, the electronic device 800 provides an output indicating whether the task was successfully performed. In the example of FIG. 8G , the task was successfully performed, and as a result, the electronic device 800 displays a success indicator 842, indicating the task was successfully performed. In some examples, the display of the success indicator 842 replaces the display of the process indicator 840. In some examples, a predetermined time after the task is completed, the electronic device replaces the display of the confirmation interface 820 with the lock screen interface 810. As shown, the suggestion affordance 806 is not included within the lock screen interface 810 in FIG. 8H because the task associated with the suggestion affordance 806 has been performed.

[0254] In the example of FIG. 8I , as a result of unsuccessful execution of the task, the electronic device 800 displays a failure interface 844. The failure interface 844 includes a retry affordance 846, a cancel affordance 848, and an application affordance 850. The failure interface further includes content 852. In some examples, in response to selecting the retry affordance 846, the electronic device 800 executes the task again. In some examples, in response to selecting the cancel affordance, the electronic device 800 ceases displaying the failure interface 844. In some examples, in response to selecting the application affordance 850, the electronic device 800 opens an application associated with the task. The content 852 may include information specific to the task, such as one or more parameters used to execute the task. In some examples, the content 852 further specifies whether execution of the task was successful. The content 852 may indicate, for example, that the electronic device was unable to successfully execute the task (e.g., "There was a problem. Please try again.").

[0255] 8J , the selection of suggestion affordance 806 is a swipe gesture 854 on suggestion affordance 806. In response to detecting swipe gesture 854, electronic device 800 displaces (e.g., slides) suggestion affordance 806 leftward to display (e.g., reveal) display affordance 856 and erase affordance 858, as shown in FIG. 8K . In some examples, in response to the selection of display affordance 856, electronic device 800 displays a confirmation interface, such as confirmation interface 820 ( FIG. 8D ). In some examples, in response to the selection of erase affordance 858, electronic device 800 ceases displaying suggestion affordance 806.

[0256] 8L, selection of suggestion affordance 806 is a swipe gesture 860 on suggestion affordance 806. In response to detecting swipe gesture 860, electronic device 800 displaces (e.g., slides) suggestion affordance 806 to the right to display (e.g., expose) "open" affordance 862, as shown in FIG. 8M. In some examples, in response to selection of "open" affordance 862, the electronic device opens an application (e.g., "coffee") associated with the task of the suggestion affordance.

[0257] 8N, electronic device 800 displays a search screen interface, such as search screen interface 866, on display 801. Search screen interface 866 includes suggested applications 868 and suggestion affordances 870, 872, and 874. As shown, suggestion affordance 870 is associated with a messaging application, suggestion affordance 872 is associated with a phone application, and suggestion affordance 874 is associated with a media playback application.

[0258] In some examples, a suggestion affordance optionally includes a glyph (e.g., glyphs 876, 878, 880) that indicates a category of task associated with the suggestion affordance. Categories specified in this manner may include “finance,” “message,” “phone,” “video,” and “media” in some examples. A suggestion affordance (e.g., suggestion affordance 806 in FIG. 8A ) may be displayed without a glyph, for example, if the task of the suggestion affordance does not correspond to a task category. In the example shown in FIG. 8N , suggestion affordance 870 is associated with a task for sending a text message and thus includes messaging glyph 876, indicating that the task is associated with text messaging. As another example, suggestion affordance 872 is associated with a task for initiating a phone call and thus includes phone glyph 878, indicating that the task is associated with phone functionality. As yet another example, suggestion affordance 874 is associated with a task for playing a video and thus includes playback glyph 880, indicating that the task is associated with media playback. It will be appreciated that any number of types of glyphs may be used to correspond to any number of respective task categories.

[0259] 8N-8P illustrate various ways in which suggested applications and suggested affordances may be displayed in a search screen interface such as this search screen interface. As shown in FIG. 8N, in at least one embodiment, the suggested applications and suggested affordances may be displayed in corresponding portions of the search screen interface (e.g., portions 882, 884). As shown in FIG. 8O, in at least one embodiment, the suggested applications and suggested affordances may be displayed in the same portion of the search screen interface (e.g., portion 886). As shown in FIG. 8P, in at least one embodiment, the suggested applications and each suggested affordance may be displayed in corresponding portions of the search screen interface (e.g., portions 888, 890, 892, 894).

[0260] In some examples, while displaying search screen interface 866, electronic device 800 detects a selection of a suggestion affordance, such as suggestion affordance 870. In some examples, the task associated with suggestion affordance 870 is a predetermined type of task (e.g., a background task), such that in response to the selection of affordance 870 with a first type of input (e.g., a tap gesture), the electronic device performs (e.g., automatically performs) the task associated with suggestion affordance 870. Additionally, or alternatively, in response to the selection of affordance 870 with a second type of input different from the first type, electronic device 800 displays a confirmation interface that requests the user to confirm the task.

[0261] 8Q, this selection is a touch gesture 896 on confirmation affordance 824. In some embodiments, touch gesture 896 is a touch input that meets a threshold intensity and / or a threshold duration such that touch gesture 896 can be distinguished from a tap gesture. As shown in FIG. 8R, in response to detecting touch gesture 896, electronic device 800 displays confirmation interface 898. Confirmation interface 898 includes confirmation affordance 802A, cancel affordance 804A, application indicator 806A, and content 808A. In some embodiments, selection of cancel affordance 804A causes electronic device 800 to cease displaying confirmation interface 898 and / or to abandon performing the task associated with suggestion affordance 870. In some embodiments, application indicator 806A indicates the application associated with the task. Application indicator 806A may include the name of the application (e.g., "Messages") and / or an icon associated with the application. Content 808A may include information targeted to the task, such as one or more parameters used to perform the task. For example, content 808A may specify that the recipient of a text message is the contact "Mom" and the text of the text message is "Good Morning." In some implementations, content 808A may be implemented as an affordance.

[0262] While displaying the confirmation interface 898, the electronic device 800 detects a selection of the confirmation affordance 802A. For example, as shown in FIG. 8S, this selection is a tap gesture 810A on the confirmation affordance 824. In response to detecting the tap gesture 810A, the electronic device 800 performs a task associated with the suggestion affordance 870. As shown in FIG. 8T, in some embodiments, while performing the task, the electronic device 800 optionally displays a process indicator 812A that indicates that the task is being performed. In some embodiments, the display of the process indicator 812A replaces the display of the confirmation affordance 802A and the cancel affordance 804A.

[0263] Once the task is performed, the electronic device 800 provides an output indicating whether the task was successfully performed. In the example of FIG. 8U , the task was successfully performed, and as a result, the electronic device 800 displays a success indicator 814A indicating that the task was successfully performed (e.g., a text message to “Mom” was successfully sent). In some examples, the display of the success indicator 814A replaces the display of the process indicator 812A. In some examples, a predetermined time after the task is completed, the electronic device replaces the display of the confirmation interface 898 with the search screen interface 866. As shown in FIG. 8V , the suggestion affordance 870 is not included in the search screen interface 866 because the task associated with the suggestion affordance 870 has been performed.

[0264] In some implementations, while displaying confirmation interface 898, electronic device 800 detects a selection of content 808A. For example, as shown in FIG. 8W, this selection is a tap gesture 816A on content 808A. In response to detecting tap gesture 816A, electronic device 800 opens an application associated with suggestion affordance 870, as shown in FIG. 8X.

[0265] In some examples, opening an application in this manner includes preloading the application with one or more parameters associated with the task. In this manner, a user can perform a task within the application using a reduced number of inputs. As an example, in response to selecting content 808A associated with suggestion affordance 870, electronic device 800 opens a messaging application and preloads the messaging application with the parameters specified by suggestion affordance 870. Specifically, the messaging application may be directed to messaging interface 817A for providing a message to recipient “Mom,” and the input string “Good morning” may be inserted into message composition field 818A of the messaging application.

[0266] While displaying messaging interface 817A, electronic device 800 detects a selection of send affordance 820A. For example, as shown in FIG. 8Y, this selection is a tap gesture 822A on send affordance 820A. In FIG. 8Z, in response to detecting tap gesture 822A, electronic device 800 sends a preloaded message (e.g., "Good morning") to recipient "Mom." Preloading parameters in this manner allows a user to use a suggestion affordance to open an application and perform a task with less input than would otherwise be possible. In the example described above, for example, a user sent a text message without having to select a recipient or enter a message for the recipient.

[0267] In some embodiments, an application can open without preloading parameters. In FIG. 8AA, electronic device 800 displays a search screen interface, such as search screen interface 826A, on display 801. Search screen interface 826A includes suggested applications 282A and suggestion affordances 830A, 832A. As shown, suggestion affordance 830A is associated with a notes application, and suggestion affordance 832A is associated with a video calling application. Furthermore, suggestion affordance 830A is associated with a task for opening the notes application. In some embodiments, the task corresponding to the notes application may not correspond to a task category, and thus suggestion affordance 830A does not include a glyph. Suggestion affordance 832A is associated with a task for initiating a video call (e.g., a Skype call), and thus includes a video glyph 836A indicating that the task is associated with a video calling function.

[0268] While displaying search screen interface 826A, electronic device 800 detects a selection of suggestion affordance 834A. For example, as shown in FIG. 8AA, this selection is a tap gesture 834A on suggestion affordance 834A. In FIG. 8AB, in response to detecting tap gesture 834A, electronic device 800 opens a notes application associated with suggestion affordance 830A.

[0269] In some embodiments, the manner in which the electronic device displays an interface depends on the type of electronic device, as described herein. In some embodiments, for example, electronic device 800 may be implemented as a device with a relatively small display that may be impractical for displaying interfaces such as lock screen interface 804 or search screen interface 866. Thus, in some embodiments, electronic device 800 may display alternative interfaces to the aforementioned interfaces.

[0270] 8AC, for example, electronic device 800 displays home screen interface 850A on display 801. Home screen interface 850A includes suggestion affordance 852A and notification 854A. As shown, suggestion affordance 852A is associated with an application named "Coffee," and notification 854A is a calendar notification associated with a calendar application indicating that the user has an upcoming event ("Meeting").

[0271] Although home screen interface 850A is shown as including suggestion affordance 852A, it will be understood that in some examples, home screen interface 850A includes multiple suggestion affordances 852A. For example, in response to a user input such as a swipe gesture (e.g., an up swipe gesture, a down swipe gesture), the electronic device can display (e.g., expose) one or more additional suggestion affordances.

[0272] While displaying home screen interface 850A, electronic device 800 detects a selection of suggestion affordance 852A. For example, as shown in FIG. 8AD, this selection is a tap gesture 858A on suggestion affordance 852A. As described in more detail below, in response to detecting tap gesture 858A, electronic device 800 displays a confirmation interface, such as confirmation interface 820. Confirmation interface 820 includes application indicator 861A, task indicator 862A, confirmation affordance 864A, and cancel affordance 866A. In some implementations, application indicator 861A indicates the application associated with the task. Application indicator 861A may include the name of the application (e.g., "coffee") and / or an icon associated with the application. Task indicator 862A indicates the task associated with the application and one or more parameters associated with the task (small, latte, oat milk).

[0273] In some examples, in response to the selection of the cancel affordance 866A, the electronic device 800 ceases displaying the confirmation interface 860A. In some examples, while displaying the confirmation interface 860A, the electronic device 800 detects a selection of the confirmation affordance 864A. For example, as shown in FIG. 8AE, the selection is a tap gesture 868A on the confirmation affordance 864A. In response to detecting the tap gesture 868A, the electronic device 800 selectively performs a task. If the task is a first type of task, the electronic device 800 performs the task without further user input and, optionally, replaces the display of the confirmation interface 860A with the home screen interface 850A, as shown in FIG. 8AF. Because the task associated with the suggestion affordance 852A has been performed, the suggestion affordance 852A is not displayed within the home screen interface 850A. If the task is a second type of task, the electronic device 800 may request user confirmation of the task before performing the task, as described.

[0274] 9A and 9B are flow diagrams illustrating a method 900 for providing suggestions, according to some embodiments. Method 900 is performed on a device (e.g., device 104, device 122, device 200, device 600, device 700, device 800) having a display, one or more input devices (e.g., a touchscreen, a microphone, a camera), and a wireless communication device (e.g., a mobile broadband connection such as a Bluetooth connection, a WiFi connection, a 4G LTE connection, etc.). In some embodiments, the display is a touch-sensitive display. In some embodiments, the display is not a touch-sensitive display. In some embodiments, the electronic device includes multiple cameras. In some embodiments, the electronic device includes only one camera. In some examples, the electronic device includes one or more biometric sensors, optionally including a camera such as an infrared camera, a thermographic camera, or a combination thereof. Some operations in method 900 are optionally combined, the order of some operations is optionally changed, and some operations are optionally omitted.

[0275] As described below, displaying a user interface that includes suggestion affordances and selectively requesting confirmation to perform a task in response to selecting the suggestion affordance provides a user with an easily recognizable and intuitive way to perform tasks on an electronic device, thereby reducing the number of user inputs that would otherwise be required to perform such tasks. Displaying a user interface in this manner therefore improves device usability, provides a more efficient user-device interface (e.g., by assisting users in providing appropriate inputs and reducing user errors when operating / interacting with the device), and further enables users to use the device more quickly and efficiently, thereby reducing power usage and improving the device's battery life.

[0276] In some embodiments, the electronic device determines 902 a first set of candidate tasks and identifies 904 a task from the first set of candidate tasks. In some embodiments, the task is identified based on a determination that a context of the electronic device meets task suggestion criteria.

[0277] In some embodiments, before displaying a user interface on a display, the electronic device determines whether a contextual criterion (e.g., a task suggestion criterion) is met based on a first context of the electronic device (e.g., contextual data describing previous use of the electronic device). In some embodiments, the electronic device determines whether the task suggestion meets a confidence threshold for displaying the suggestion. In some embodiments, in accordance with determining that the contextual criterion is met (e.g., one or more task suggestion meets a confidence threshold), the electronic device determines a first set of task candidates. In some embodiments, the electronic device determines whether a heuristic criterion is met based on a second context of the electronic device. In some embodiments, the second context of the electronic device indicates previous use of the device and / or contextual data associated with the user (e.g., contacts, calendar, location). In some embodiments, determining whether a heuristic criterion is met includes determining whether a set of conditions for heuristic task suggestions are met, such that a heuristic task suggestion is provided instead of a suggested task. In some embodiments, the electronic device determines whether the contextual criterion is met, and then determines whether the heuristic criterion is met. In some embodiments, the electronic device determines whether the heuristic criteria are satisfied, and then determines whether the context criteria are satisfied. In some embodiments, the electronic device simultaneously determines whether the context criteria are satisfied and whether the heuristic criteria are satisfied. In some embodiments, in accordance with a determination that the heuristic criteria are satisfied, the electronic device determines a second set of task candidates different from the first set of task candidates and identifies a task from the second set of task candidates. In some embodiments, in accordance with a determination that the heuristic criteria are not satisfied and the context criteria are satisfied, the electronic device identifies a task from the first set of task candidates.In some embodiments, in accordance with a determination that the heuristic criteria are not satisfied and the context criteria are not satisfied, the electronic device discontinues determining the first set of task candidates and discontinues determining the second set of task candidates.

[0278] Providing heuristic task suggestions in this manner enables an electronic device to provide task suggestions based on user-specific context data in addition to electronic device context data, for example, according to a respective set of conditions, as described below. This enables the electronic device to provide the user with promising task suggestions for performing tasks on the electronic device, thereby reducing the number of user inputs that would otherwise be required to perform such tasks. Providing heuristic task suggestions in this manner therefore improves device usability, makes use of the electronic device more efficient (e.g., by assisting the user in providing appropriate inputs when operating / interacting with the device and reducing user errors), and further enables the user to use the device more quickly and efficiently, thereby reducing power usage and improving the device's battery life.

[0279] In some embodiments, the electronic device determines whether the task is a first type of task 906. In some embodiments, determining whether the task is a first type of task includes determining whether the task is a background task (e.g., a task that can be executed without user confirmation and / or additional user input).

[0280] In some embodiments, determining whether a task is a first type task includes determining whether one or more parameters associated with the task are valid. In some embodiments, the parameters of a task are valid if each parameter required for the task has been assigned a range or set of acceptable values ​​for that parameter, and optionally, each optional parameter for the task has a value within the acceptable range or set for that parameter or has no value assigned.

[0281] In some embodiments, an electronic device (104, 200, 600, 700, 800) displays (908) on a display of the electronic device a user interface (804, 810, 866, 826A, 850A) that includes a suggestion affordance (806, 870, 872, 874, 834A, 854A) associated with the task. In some embodiments, the user interface is a lock screen interface (804, 810). In some embodiments, the user interface is a search screen interface (866, 826A). In some embodiments, the user interface is a digital assistant interface for a dialog between a user and a digital assistant. In some embodiments, the suggestion affordance is an affordance that corresponds to a task suggestion provided by the electronic device, and in some cases, by the digital assistant of the electronic device. In some embodiments, the suggestion is task-specific and / or parameter-specific. In some examples, task suggestions are provided based on the context of the electronic device (e.g., location, WiFi connectivity, WiFi network identifier (e.g., SSID), usage history, time / day, headphone connectivity, etc.) In some examples, task suggestions are visually distinguishable from other notifications displayed by the electronic device in a user interface.

[0282] Providing task suggestions based on the context of the electronic device enables the electronic device to provide relevant task suggestions according to previous user usage of the electronic device and / or the current state of the electronic device. As a result, the number of inputs and time required to perform tasks on the electronic device is reduced, facilitating user interaction with the electronic device. This also reduces power usage and improves the device's battery life.

[0283] In some examples, displaying on the display a user interface including a suggestion affordance associated with the task includes displaying a suggestion affordance with a glyph according to the task being a first type of task, and displaying a suggestion affordance without a glyph according to the task being a second type of task. In some examples, the glyph indicates the type of task (e.g., background or non-background, or whether the task requires user confirmation). In some examples, the glyph is an arrow, indicating that the task requires user confirmation. In some examples, the glyph is a dollar sign (or other currency symbol) indicating that the task is a business transaction. In some examples, the glyph is surrounded by a circle.

[0284] In some embodiments, displaying on the display a user interface including a suggestion affordance associated with a task includes displaying (910) a suggestion affordance having a first type of glyph in accordance with a determination that the task corresponds to a first set of tasks. In some embodiments, the set of tasks is a category of tasks. Task categories include, in some embodiments, messaging tasks, phone tasks, video calling tasks, and media tasks. In some embodiments, each set of tasks corresponds to one or more respective first party applications. In some embodiments, each set of tasks further includes tasks corresponding to one or more third party applications. In some embodiments, if a task corresponds to a particular task category, the suggestion affordance corresponding to the task includes a glyph (876, 878, 880, 836A) that identifies the category. In some embodiments, displaying on the display a user interface including a suggestion affordance associated with a task further includes displaying (912) a suggestion affordance having a second type of glyph different from the first type in accordance with a determination that the task corresponds to a second set of tasks different from the first set of tasks. In some examples, displaying on the display a user interface including a suggestion affordance associated with the task further includes displaying a suggestion affordance without a glyph (830A) in accordance with a determination that the task does not correspond to the first set of tasks and does not correspond to the second set of tasks. In some examples, if the task does not correspond to one or more predetermined task categories, the suggestion affordance corresponding to the task is displayed without a glyph (914).

[0285] In some embodiments, the user interface (804, 810) includes a notification (808). The notification may be for an event, such as receiving a text message. In some embodiments, the suggestion affordance (806) is displayed in a first manner and the notification (808) is displayed in a second manner that is different from the first manner. For example, in some embodiments, the suggestion affordance and the notification correspond to different colors, color schemes, and / or patterns. In some embodiments, the suggestion affordance and the notification have different shapes and / or sizes.

[0286] Displaying notifications and suggestion affordances in different manners as described herein allows a user to easily distinguish between notifications and suggestion affordances on the display of an electronic device, thereby reducing the time required to perform a task. This time reduction therefore improves device usability, makes the user-device interface more efficient (e.g., by assisting users in providing appropriate inputs when operating / interacting with the device and reducing user errors), and further enables users to use the device more quickly and efficiently, thereby reducing power usage and improving the device's battery life.

[0287] In some examples, displaying the user interface includes displaying the suggested affordance in a first visual state according to a determination that the electronic device is in a locked state. In some examples, when the device is locked, the electronic device displays a reduced amount of information corresponding to the suggested affordance. In some examples, displaying the user interface further includes displaying the suggested affordance in a second visual state different from the first visual state according to a determination that the electronic device is not locked. In some examples, when the device is unlocked, the electronic device displays content corresponding to the suggested affordance. Content displayed in this manner may include, but is not limited to, a name and / or icon of an application associated with the suggested affordance, one or more parameters associated with the task of the suggested affordance, and, optionally, a glyph indicating a category of the task of the suggested affordance.

[0288] In some examples, the electronic device detects (916) a first user input (816, 834A, 858A) via one or more input devices that corresponds to a selection of a suggested affordance. In some examples, the suggested affordance is selected using touch input, a gesture, or a combination thereof. In some examples, the suggested affordance is selected using speech input. In some examples, the touch input is a first type of input, such as a press of relatively short duration or low intensity.

[0289] In some examples, in response to detecting 918 the first user input, the electronic device performs 920 the task in accordance with a determination that the task is a first type of task. In some examples, performing the task includes causing the task to be performed by another electronic device. In some examples, the electronic device is a first type of device (e.g., a smartwatch) and causes the task to be performed on a second type of device (e.g., a mobile phone).

[0290] In some examples, further in response to detecting the first user input (918), the electronic device displays (922) a confirmation interface (820, 898, 860A) including a confirmation affordance in accordance with determining that the task is a second type of task different from the first type of task. In some examples, the second type of task is a task that requires user confirmation and / or additional information from the user prior to task execution, such as a task corresponding to a commercial transaction. In some examples, the second type of task is a task performed by a particular type of device, such as a smartwatch. In some examples, the confirmation interface is displayed simultaneously with the user interface. The confirmation interface may, for example, be overlaid on the user interface. In some examples, the confirmation interface is displayed over a first portion of the user interface, and a second portion of the user interface is visually obscured (e.g., dimmed or blurred).

[0291] By selectively requesting confirmation to perform a task in response to selection of a suggested affordance, the electronic device can quickly perform a first type of task and confirm user intent before performing a second type of task. As a result, users are provided with an intuitive and reliable way to quickly and reliably perform tasks on their electronic devices, thereby reducing the number of user inputs typically required to perform such tasks and facilitating task execution. Such benefits reduce the time required to perform tasks, making use of the electronic device more efficient and, in turn, allowing users to use the device more quickly and efficiently, thereby reducing power usage and improving the device's battery life.

[0292] In some embodiments, while displaying (926) the confirmation interface, the electronic device detects (928) a second user input (836, 810A, 868A) corresponding to selection of a confirmation affordance (824, 802A, 864A). In some embodiments, the confirmation affordance is selected using touch input, gesture, or a combination thereof. In some embodiments, the confirmation affordance is selected using speech input. In some embodiments, in response to detecting the second user input, the electronic device performs (930) the task. In some embodiments, while performing the task, the electronic device displays a first progress indicator (840, 812A) indicating that the electronic device is performing the task. In some embodiments, if the electronic device successfully performs the task, the electronic device displays a second progress indicator (842, 814A) indicating successful performance of the task. In some examples, following the performance of the task and / or the display of the second progress indicator, the electronic device displays an interface that includes one or more visual objects specified by the application (e.g., a message or image that says, "Thank you for your order.") In some examples, if the electronic device is unsuccessful in performing the task, the electronic device provides a natural language output to the user indicating that the task was not successfully performed (e.g., "There was a problem. Try again"), and optionally displays an affordance (846) that allows the user to initiate a further attempt to perform the task.

[0293] In some examples, the confirmation interface includes an application affordance (828, 850). In some examples, the application affordance is an affordance that indicates (e.g., identifies) the application and / or task associated with the suggestion affordance. In some examples, the application affordance is any portion of the confirmation interface other than the confirmation affordance and / or the cancel affordance. In some examples, the electronic device detects (932) a third user input corresponding to a selection of the application affordance. In some examples, the application affordance is selected using touch input, a gesture, or a combination thereof. In some examples, the application affordance is selected using speech input. In some examples, in response to detecting the third user input, the electronic device executes (934) an application associated with the task. In some examples, a user launches an application corresponding to the task of the selection affordance by selecting the application's displayed icon and / or name. In some examples, the application is optionally preloaded with one or more parameters (e.g., an email subject and / or body).

[0294] In some examples, the suggestion affordance includes a visual indication of parameters that affect the execution of the task. In some examples, the suggestion affordance corresponds to a task to be performed using one or more specified parameters (e.g., ordering a specific coffee size and type using the Starbucks app, sending a text with a specific message). In some examples, executing an application associated with the task includes preloading the application with the parameters. In some examples, the application is executed such that the parameters of the task are entered on behalf of the user (e.g., the order is already in the cart and the user only needs to indicate an intent to order, the message is inserted in a message compose field and the user only needs to indicate an intent to send).

[0295] In some examples, the confirmation interface includes a cancel affordance. In some examples, the electronic device detects a fourth user input corresponding to a selection of the cancel affordance. In some examples, the cancel affordance is selected using touch input, a gesture, or a combination thereof. In some examples, the cancel affordance is selected using speech input. In some examples, in response to detecting the fourth user input, the electronic device ceases performing the task. In some examples, in response to detecting the fourth user input, the electronic device further ceases displaying the confirmation interface.

[0296] In some examples, the first user input is a first type of input. In some examples, the electronic device, while displaying the user interface, detects a second type of user input corresponding to a selection of the suggested affordance. In some examples, the suggested affordance is selected using touch input, a gesture, or a combination thereof. In some examples, the suggested affordance is selected using speech input. In some examples, the touch input is a second type of input, such as a press of relatively long duration or high intensity. In some examples, this second type of input is different from the first type of input. In some examples, in response to detecting the second type of user input, the electronic device displays a confirmation interface.

[0297] It should be noted that the details of the processes described above in connection with method 900 (e.g., FIGS. 9A and 9B) are also applicable in an analogous manner to the methods described below. For example, method 900 optionally includes one or more of the features of the various methods described with reference to methods 1100, 1300, 1500, 1700, and 1900.

[0298] The operations in the methods described above are optionally performed by running one or more functional modules in an information processing device, such as a general-purpose processor (e.g., as described in connection with FIGS. 2A, 4, and 6A) or an application-specific chip. Moreover, the operations described above with reference to FIGS. 8A-8AF are optionally performed by the components shown in FIGS. 2A-1B. For example, display operation 908, detect operation 916, execute operation 920, and display operation 922 are optionally performed by event sorter 270, event recognizer 280, and event handler 290. Event monitor 271 in event sorter 270 detects contacts on touch-sensitive surface 604 (FIG. 6A), and event dispatcher module 274 delivers the event information to application 236-1 (FIG. 2B). Each event recognizer 280 of application 236-1 compares the event information with a respective event definition 286 to determine whether a first contact at a first location on the touch-sensitive surface corresponds to a predefined event or sub-event, such as selecting an object on a user interface. When a corresponding predefined event or sub-event is detected, event recognizer 280 activates an event handler 290 associated with the detection of that event or sub-event. Event handler 290 optionally utilizes or invokes data updater 276 or object updater 277 to update application internal state 292. In some embodiments, event handler 290 accesses a respective GUI updater 278 to update what is being displayed by the application. Similarly, it will be apparent to those skilled in the art how other processes can be implemented based on the components shown in FIGS. 2A and 2B .

[0299] 10A-10AJ illustrate example user interfaces for providing voice shortcuts on an electronic device (e.g., device 104, device 122, device 200, device 600, or device 700) according to some embodiments. The user interfaces in these figures are used to illustrate the processes described below, including the processes in FIGS. 11A-11B.

[0300] In general, the user interfaces described with reference to Figures 10A-10AJ can be employed to allow a user to associate tasks with corresponding user-specific phrases that can be used to cause an electronic device to perform the associated tasks.

[0301] FIG. 10A illustrates an electronic device 1000 (e.g., device 104, device 122, device 200, device 600, or device 700). In the non-limiting exemplary embodiment illustrated in FIGS. 10A-10AJ, electronic device 1000 is a smartphone. In other embodiments, electronic device 1000 can be a different type of electronic device, such as a wearable device (e.g., a smart watch). In some examples, electronic device 1000 has a display 1001, one or more input devices (e.g., a touchscreen on display 1001, buttons, a microphone), and a wireless communication device. In some examples, electronic device 1000 includes multiple cameras. In some examples, the electronic device includes only one camera. In some examples, the electronic device includes one or more biometric sensors (e.g., biometric sensor 1003), optionally including a camera such as an infrared camera, a thermographic camera, or a combination thereof.

[0302] 10A , electronic device 1000 displays settings interface 1004 on display 1001. Settings interface 1004 includes task candidate portion 1006 and additional task affordance 1014. Task candidate portion 1006 includes task candidate affordances 1008, 1010, and task candidate affordance 1012. In some examples, in response to selection of additional task affordance 1014, electronic device 1000 displays a global task interface, such as global task interface 1018A, as described in connection with FIG. 10S below.

[0303] In some examples, in response to selecting a task candidate affordance, electronic device 1000 displays a task-specific interface. This task-specific interface, in some examples, is associated with the task of the task candidate affordance. As an example, while displaying settings interface 1004, electronic device 1000 detects selection of task candidate affordance 1008. In some examples, this selection is a tap gesture 1016 on task candidate affordance 1008. As shown in FIG. 10B , in response to detecting tap gesture 1016, electronic device 1000 displays task-specific interface 1018. Task-specific interface 1018 may be associated with the task of task candidate affordance 1008 (e.g., viewing a camera on the side of a house). In some examples, selecting a task candidate affordance initiates a voice shortcut generation process for the task corresponding to the task candidate affordance. Thus, selecting task candidate affordance 1008 may initiate a voice shortcut generation process for the task of task candidate affordance 1008.

[0304] Task-specific interface 1018 includes a task icon 1020, a task indicator 1022, a task descriptor 1024, an application indicator 1026, candidate phrases 1028, and a recording affordance 1030. In some embodiments, task icon 1020 includes an icon or image corresponding to the task. In some embodiments, task indicator 1022 indicates the name and / or type of the task. In some embodiments, task descriptor 1024 includes a description of the task and / or indicates that a user can record a command or phrase to link to the task. In some embodiments, application indicator 1026 identifies an application corresponding to the task. Application indicator 1026 may include, for example, the name of the application and / or an icon associated with the application. Candidate phrases 1028 include suggested phrases that a user can select to associate with the task.

[0305] While displaying the task-specific interface 1018, the electronic device 1000 detects a selection of the record affordance 1030. As shown in FIG. 10C , the selection of the record affordance 1030 is a tap gesture 1032. In response to the selection of the record affordance 1030, the electronic device displays a record interface 1034 on the display 1001 (e.g., replacing the display of the task-specific interface 1018).

[0306] 10D , recording interface 1034 includes a cancel affordance 1036, a back affordance 1038, a preview 1042, and a stop affordance 1044. In some examples, in response to selection of the cancel affordance 1036, the electronic device ceases displaying recording interface 1034, optionally terminating the voice shortcut generation process. In some examples, in response to selection of the back affordance, the electronic device displays task-specific interface 1018 (e.g., replacing the display of recording interface 1038).

[0307] In some embodiments, while displaying recording interface 1034, electronic device 1000 receives natural language speech input from a user using an audio input device (e.g., a microphone) of electronic device 1000. In some embodiments, while receiving the natural language speech input, electronic device 1000 provides a live preview of the natural language speech input, such as live preview 1042. As shown in FIG. 10D , live preview 1042 is a visual waveform that, in some embodiments, indicates one or more auditory characteristics of the natural language speech input.

[0308] 10E, after initially displaying recording interface 1034, if the user does not provide natural language speech input for a predetermined period of time, electronic device 1000 may optionally display a prompt to the user that includes a candidate phrase, such as candidate phrase 1046 (e.g., "View Side of House Live Stream"). In some implementations, candidate phrase 1046 is the same as candidate phrase 1028 (FIG. 10C). In other implementations, candidate phrase 1046 is different from candidate phrase 1028.

[0309] In some examples, while receiving the natural language speech input, electronic device 1000 performs speech-to-text conversion (e.g., natural language speech processing) on ​​the natural language speech input to provide candidate phrases 1048. As shown in Figures 10F and 10G, because this speech-to-text conversion is performed while the natural language speech input is being received, candidate phrases 1048 can be iteratively and / or continuously updated while the natural language speech input is being received.

[0310] In some implementations, the electronic device 1000 ensures that the candidate phrase is different from one or more predefined phrases (e.g., "call 911"). By way of example, the electronic device 1000 determines whether the similarity between the candidate phrase and each of the one or more predefined phrases exceeds a similarity threshold. If the similarity threshold is not met, the electronic device 1000 will notify the user that the provided candidate phrase is not sufficient and / or acceptable. The electronic device 1000 may further request that the user provide another natural language speech input.

[0311] While displaying the recording interface 1034, the electronic device 1000 detects a selection of the stop affordance 1044. As shown in FIG. 10G, the selection of the recording affordance 1044 is a tap gesture 1050. In response to the selection of the stop affordance 1050, the electronic device 1000 displays a completion interface 1052 on the display 1001 (e.g., replacing the display of the recording interface 1034), as shown in FIG.

[0312] Completion interface 1052 includes a completion affordance 1054, a cancel affordance 1056, a task icon 1058, a task indicator 1060, an application indicator 1062, a candidate phrase 1064, and an edit affordance 1066. In some embodiments, in response to selecting the cancel affordance 1056, electronic device 1000 ceases displaying completion interface 1052 and, optionally, terminates the voice shortcut generation process. In some embodiments, task icon 1058 includes an icon or image corresponding to the task. In some embodiments, task indicator 1060 indicates the name and / or type of the task. In some embodiments, application indicator 1062 identifies the application corresponding to the task. The application indicator may include, for example, the name of the application and / or an icon associated with the application. Candidate phrases 1028 are suggested phrases that a user can select to associate with the task.

[0313] In some examples, while displaying completion interface 1052, electronic device 1000 detects selection of edit affordance 1066. As shown in FIG. 10I, the selection of edit affordance 1066 is a tap gesture 1068. In response to selection of edit affordance 1068, electronic device 1000 displays edit interface 1070 on display 1001 (e.g., replacing the display of completion interface 1052), as shown in FIG.

[0314] The editing interface 1070 includes a completion affordance 1072, a cancel affordance 1074, a task icon 1076, a task indicator 1078, a candidate phrase ranking 1080, and a re-record affordance 1088. In some embodiments, in response to selecting the cancel affordance 1056, the electronic device 1000 ceases displaying the editing interface 1070 and, optionally, terminates the voice shortcut generation process. In some embodiments, the task icon 1076 includes an icon or image corresponding to the task. In some embodiments, the task indicator 1078 indicates the name and / or type of the task.

[0315] As described, in some implementations, electronic device 1000 provides candidate phrases (e.g., candidate phrase 1048) based on natural language speech input provided by a user. In some implementations, providing candidate phrases in this manner includes generating multiple candidate phrases (e.g., candidate phrases 1082, 1084, 1086) and selecting the candidate phrase associated with the highest score (e.g., text representation confidence score). In some implementations, candidate phrase ranking 1080 includes the multiple candidate phrases generated by electronic device 1000 before selecting the candidate phrase associated with the highest score. In some implementations, candidate phrase ranking 1080 includes a set (e.g., three) of top-ranked candidate phrases, optionally listed according to each candidate phrase's respective score. As shown in FIG. 10J, for example, candidate phrase ranking 1080 includes candidate phrases 1082, 1084, and candidate phrase 1086. Candidate phrase 1082 may correspond to candidate phrase 1064 in some implementations.

[0316] In some embodiments, a user may select a new (or the same) candidate phrase from candidate phrases 1082, 1084, 1086 of candidate phrase ranking 1080. As shown in FIG. 10K , for example, electronic device 1000 detects selection of candidate phrase 1080 while displaying editing interface 1070. The selection of candidate phrase 1080 is a tap gesture 1090. In some embodiments, in response to the selection of candidate phrase 1080, electronic device 1000 selects candidate phrase 1080 as the new (or the same) candidate phrase. In some embodiments, electronic device selects candidate phrase 1080 as the new (or the same) candidate phrase in response to selection of both candidate phrase 1080 and completion affordance 1072.

[0317] In some embodiments, this ranking of candidate phrases may not include phrases intended or preferred by the user. Thus, in some embodiments, in response to selection of re-record affordance 1088, electronic device 1000 displays a recording interface, such as recording interface 1034 (e.g., replacing the display of editing interface 1070), to enable the user to provide new natural language speech input, as described.

[0318] In some examples, while displaying the completion interface 1052, the electronic device 1000 detects a selection of the completion affordance 1054. As shown in FIG. 10L, the selection of the completion affordance 1054 is a tap gesture 1092. In response to the selection of the completion affordance 1054, the electronic device 1000 associates the candidate phrase with the task of the task candidate affordance 1008. By associating the candidate phrase with the task in this manner, a user can provide (e.g., speak) the candidate phrase to the electronic device's digital assistant to cause the device to perform the task associated with the candidate phrase. The candidate phrase associated with each task may be referred to herein as a voice shortcut. In some examples, further in response to the selection of the completion affordance 1054, the electronic device 1000 displays the settings interface 1004 on the display 1001 (e.g., replacing the display of the completion interface 1052), as shown in FIG. 10M.

[0319] In some embodiments, the task candidate affordances 1008 are not included in the task candidate portion 1006 because the task of the task candidate affordances 1008 has been assigned to a task. In some embodiments, the task candidate portion 1006 instead includes task candidate suggestions 1094 such that the task candidate portion 1006 includes at least a threshold number of task candidate affordances.

[0320] In some examples, if one or more task candidate affordances are associated with the corresponding task, the settings interface 1004 includes a user shortcut affordance 1096. In some examples, while displaying the settings interface 1004, the electronic device 1000 detects a selection of the user shortcut affordance 1096. As shown in FIG. 10N, the selection of the user shortcut affordance 1096 is a tap gesture 1098. In some examples, in response to the selection of the user shortcut affordance 1096, the electronic device 1000 displays a user shortcut interface 1002A on the display 1001 (e.g., replacing the display of the settings interface 1004), as shown in FIG.

[0321] User shortcut interface 1002A includes edit affordance 1004A, back affordance 1006A, shortcut affordance 1008A, and more task affordance 1010A. In some embodiments, in response to selecting back affordance 1006A, electronic device 1000 displays settings interface 1004 ( FIG. 10N ). In some embodiments, in response to selecting edit affordance 1004A, electronic device 1000 displays an interface through which a user can delete a voice shortcut associated with shortcut affordance 1008A. In some embodiments, in response to selecting more task affordance 1010A, electronic device 1000 displays an interface including one or more task candidate affordances, such as global task interface 1018A of FIG. 10S , described in further detail below.

[0322] In some examples, while displaying the user shortcut interface 1002A, the electronic device 1000 detects a selection of the shortcut affordance 1008A. As shown in FIG. 10P, the selection of the shortcut affordance 1008A is a tap gesture 1004A. In some examples, in response to the selection of the shortcut affordance 1008A, the electronic device 1000 displays a completion interface 1054 for the shortcut affordance 1008A on the display 1001 (e.g., replacing the display of the user shortcut interface 1002A), as shown in FIG. 10Q. The completion interface 1054 may include a delete affordance 1014A. In response to the selection of the delete affordance 1014A, the electronic device 1000 deletes the voice shortcut associated with the task. Deleting a shortcut in this manner may include dissociating the voice shortcut from the task so that providing the voice shortcut to a digital assistant of the electronic device 1000 no longer causes the electronic device 1000 to perform the task.

[0323] In some examples, while displaying the settings interface 1004, the electronic device 1000 detects a selection of the additional task affordance 1014. As shown in FIG. 10R, the selection of the additional task affordance 1014 is a tap gesture 1016A. In some examples, in response to the selection of the shortcut affordance 1014, the electronic device 1000 displays a global task interface 1018A on the display 1001 (e.g., replacing the display of the settings interface 1004), as shown in FIG.

[0324] The global task interface 1018A includes a set of corresponding task candidate affordances for each of a plurality of applications. By way of example, the global task interface 1018A includes a set of task candidate affordances 1020A associated with an activities application, a set of task candidate affordances 1026A associated with a calendar application, and a set of task candidate affordances 1036A associated with a music application. The set of task candidate affordances 1020A may optionally include a "Start Workout" task candidate affordance 1022A and a "View Daily Progress" task candidate affordance 1024A. The set of task candidate affordances 1026A may optionally include a "Send Lunch invitation" task candidate affordance 1028A, a "Schedule Meeting" task candidate affordance 1030A, and a "Clear Events for a Day" task candidate affordance 1032A. The set of task candidate affordances 1036A may optionally include a "Play Workout Playlist" task candidate affordance 1038A and a "Start R&B Radio" task candidate affordance 1040A.

[0325] In some examples, the task candidate affordances of the global task interface 1018A are searchable. By way of example, while displaying the global task interface 1018A, the electronic device detects a swipe gesture on the display 1001, such as the swipe gesture 1046A of FIG. 10T. In response to the swipe gesture 1046A, the electronic device displays (e.g., exposes) a search field 1048A that can be used to search the task candidate affordances of the global task interface 1018A by sliding the global task interface 1018A downward, as shown in FIG. 10U.

[0326] In some examples, each set of task candidate affordances displayed by electronic device 1000 may be a subset of all available task candidate affordances for the respective application. Thus, a user can select an application task list affordance, such as an application-specific task list affordance 1034A, 1042A, to reveal one or more additional task candidate affordances for the application corresponding to that application task list affordance. For example, while displaying global task interface 1018A, electronic device 1000 detects selection of application task list affordance 1042A. As shown in FIG. 10V, selection of application task list affordance 1042A is a tap gesture 1050A. In some examples, in response to selection of application task list affordance 1042A, electronic device 1000 displays application task interface 1052A on display 1001 (e.g., replacing the display of global task interface 1018A), as shown in FIG. 10W. As shown, application task interface 1052A includes a "back" affordance that, when selected, causes electronic device 1000 to display global task interface 1018A, and task suggestion affordances 1054A-1070A.

[0327] In some examples, while displaying the settings interface 1004, the electronic device 1000 detects a swipe gesture on the display 1001, such as the swipe gesture 1074A in FIG. 10X. As shown in FIG. 10Y, in response to the swipe gesture 1074A, the electronic device 1000 slides the settings interface 1004 upward to display (e.g., reveal) various settings. These settings, when enabled, adjust the manner in which task candidate affordances and suggestion affordances, such as those described with reference to FIGS. 8A-8AF, are displayed by the electronic device 1000. For example, the settings interface 1004 includes a shortcut enable setting 1076A that, when enabled, enables the electronic device 1000 to display task candidate affordances as described herein. As another example, the settings interface 1004 includes a search suggestions enable setting 1078A that, when enabled, enables the electronic device 1000 to display suggestion affordances on a search screen interface. As another example, the settings interface 1004 includes a "lookup" suggestions enable setting 1080A that, when enabled, enables the electronic device 1000 to display suggestion affordances on a "lookup" results screen interface. As yet another example, the settings interface 1004 includes a lock screen suggestions enable setting 1082A that, when enabled, enables the electronic device 1000 to display suggestion affordances on a lock screen interface.

[0328] Settings interface 1004 further includes application affordances 1084A and 1086A, each associated with a corresponding application. In some embodiments, while displaying settings interface 1004, electronic device 1000 detects selection of application affordance 1086A. As shown in FIG. 10Y, the selection of application affordance 1086A is a tap gesture 1088A. In some embodiments, in response to the selection of application affordance 1086A, electronic device 1000 displays application settings interface 1090A on display 1001 (e.g., replacing the display of settings interface 1004), as shown in FIG.

[0329] In some examples, application settings interface 1090A includes application user shortcut affordance 1092A, which may correspond to a voice shortcut previously generated by a user, for example, using the voice shortcut generation process described herein. Application settings interface 1090A may further include task candidate affordances 1094A-1098A, each of which may correspond to a respective task associated with the application of application settings interface 1090A. In some examples, application settings interface 1090A further includes application task list affordance 1002B. In some examples, in response to selection of application task list affordance 1002B, electronic device 1000 displays an application task interface, such as application task interface 1052A ( FIG. 10W ), on display 1001 (e.g., replacing the display of application settings interface 1090A). In some embodiments, application settings interface 1090A further includes an application suggestions enable setting 1004B that, when enabled, enables electronic device 1000 to display suggestion affordances associated with the application on a search screen interface, a "Look Up" results screen interface, and / or a keyboard interface. In some embodiments, application settings interface 1090A further includes an application suggestions enable setting 1006B that, when enabled, enables electronic device 1000 to display suggestion affordances associated with the application on a lock screen interface.

[0330] In some examples, the application settings interface 1090A further includes an edit affordance 1010B. In some examples, while displaying the application settings interface 1090A, the electronic device 1000 detects a selection of the edit affordance 1010B. As shown in FIG. 10AA, the selection of the edit affordance 1010B is a tap gesture 1012B. In some examples, in response to the selection of the edit affordance 1010B, the electronic device 1000 displays an application-specific edit interface 1014B on the display 1001 (e.g., replacing the display of the application settings interface 1090A), as shown in FIG. 10AB. In some examples, the application-specific edit interface 1014B is displayed over a first portion of the application settings interface 1090A, and a second portion of the application settings interface 1090A is visually obscured (e.g., dimmed or blurred).

[0331] In some examples, displaying the application settings interface 1090A includes displaying a selection affordance (e.g., selection affordance 1020B) for each application user shortcut affordance (e.g., application user shortcut affordance 1092A) of the application settings interface 1090A. In example operation, the electronic device 1000 detects a selection of the corresponding application user shortcut affordance 1092A and a selection of the selection affordance 1020B, indicating the user's intent to delete the application user shortcut affordance 1092A. In some examples, the user can confirm the deletion by selecting a confirmation affordance 1018B or can cancel the deletion by selecting a cancel affordance 1016B.

[0332] 10AC, electronic device 1000 displays an application permissions interface 1022B for a particular application. Application permissions interface 1022 includes a suggested permissions affordance 1026B. While displaying application permissions interface 1022, electronic device 1000 detects a selection of suggested permissions affordance 1026B. As shown in FIG. 10AC, the selection of suggested permissions affordance 1026B is a tap gesture 1032B. In some examples, in response to the selection of suggested permissions affordance 1026B, electronic device 1000 displays an application settings interface on display 1001, such as application settings interface 1034B of FIG. 10AD (e.g., replacing the display of application-specific permissions interface 1022B).

[0333] In some examples, the voice shortcut generation process can be initiated using an application-specific settings interface. Thus, in some examples, the application settings interface 1034B may include a task candidate affordance 1038B. In some examples, while displaying the application settings interface 1034B, the electronic device 1000 detects a selection of the task candidate affordance 1038B. As shown in FIG. 10AE, the selection of the task candidate affordance 1038B is a tap gesture 1050B. In response to the selection of the suggestion candidate affordance 1038B, the electronic device 1000 displays a task-specific interface 1054B associated with the task of the task candidate affordance 1038B, as shown in FIG. 10AF.

[0334] Referring to Figures AF-AH, the user can then generate a voice shortcut by providing natural language speech input to the electronic device (e.g., "Coffee Me"), and the electronic device provides candidate phrases to associate with the task of task candidate affordance 1038B (e.g., ordering a large latte with oat milk from a local coffee shop), as described above. Once a voice shortcut for the task is generated, electronic device 1000 displays application settings interface 1034B. As shown in Figure 10AI, application settings interface 1034B includes application user shortcut affordance 1036B. In some examples, in response to selecting application-specific user shortcut affordance 1036B, the electronic device displays the voice shortcuts associated with the task of that application.

[0335] In some examples, the voice shortcut generation process can be initiated using an application interface, such as a third-party application interface. As shown in FIG. 10AJ, for example, a user can use an application to complete a task (e.g., order a coffee). In response, the application can display a task completion interface 1060B that includes a task candidate suggestion affordance 1062B. In some examples, in response to selecting the task candidate suggestion affordance 1062B, the electronic device initiates the voice shortcut generation process.

[0336] 11A and 11B are flow diagrams illustrating a method for providing voice shortcuts according to some embodiments. Method 1100 is performed on a device (e.g., device 104, device 122, device 200, device 600, device 700, device 1000) having a display, one or more input devices (e.g., a touchscreen, a microphone, a camera), and a wireless communication device (e.g., a mobile broadband connection such as a Bluetooth connection, a WiFi connection, a 4G LTE connection, etc.). In some embodiments, the display is a touch-sensitive display. In some embodiments, the display is not a touch-sensitive display. In some embodiments, the electronic device includes multiple cameras. In some embodiments, the electronic device includes only one camera. In some examples, the electronic device includes one or more biometric sensors, optionally including a camera such as an infrared camera, a thermographic camera, or a combination thereof. Some operations in method 1100 are optionally combined, the order of some operations is optionally changed, and some operations are optionally omitted.

[0337] As described below, providing candidate phrases based on natural language speech input and associating the candidate phrases with corresponding tasks enables a user to accurately and efficiently generate user-specific voice shortcuts that can be used to perform tasks on an electronic device. For example, allowing a user to associate voice shortcuts with tasks in this manner allows the user to visually confirm that the desired voice shortcut has been selected and assigned to the correct task, thereby reducing the likelihood of incorrect or unnecessary associations. Therefore, providing candidate phrases in the described manner may result in more efficient use of the electronic device (e.g., by assisting the user in providing appropriate inputs and reducing user errors when operating / interacting with the device) and may further reduce power usage and improve the device's battery life by allowing the user to use the device more quickly and efficiently.

[0338] In some embodiments, an electronic device (104, 200, 600, 700, 1000) displays (1102) a plurality of task candidate affordances (1008, 1010, 1012, 1038B) including a task candidate affordance (1008, 1038B) associated with a task. In some embodiments, the plurality of tasks is displayed within a settings interface or an application interface. In some embodiments, each task in the plurality of tasks is a suggested task based, for example, on the context of the electronic device.

[0339] In some examples, the electronic device displaying a plurality of task candidate affordances, including a task candidate affordance associated with the task, includes displaying an application interface (1034B) including the plurality of task candidate affordances. In some examples, the application interface is an interface (1062B) of a third-party application including one or more affordances (corresponding to each of the one or more task candidates) that a user can select to cause the display of a first user interface, thereby creating a voice shortcut for the selected task. In some examples, the first user interface (1018) is overlaid on the application interface. In some examples, the first user interface is overlaid over a portion of the application interface. In some examples, the first user interface is overlaid over the entire application interface. In some examples, the one or more affordances correspond to one or more respective tasks and are displayed in response to completion of the one or more tasks.

[0340] In some implementations, the electronic device detects (1104) a set of inputs (1016, 1032) including a first user input (1016) corresponding to a selection of a task candidate affordance associated with the task.

[0341] In some examples, the electronic device displays a fourth interface (1018) associated with the task in response to the first user input. In some examples, the fourth user interface is an initial task-specific interface for creating a voice shortcut. In some examples, this interface specifies that the task is associated with a voice shortcut (1022) and further includes an indication of the associated application (e.g., the name of the application) (1026) and / or an icon (1020, 1026) associated with (e.g., provided by) the application. In some examples, this interface includes a cancel affordance. In response to selecting the cancel affordance, the electronic device returns to the previous interface. In some examples, this interface includes a record affordance (1030). In response to selecting the record affordance, the electronic device records the speech input while displaying a voice recording interface (1034). In some examples, the fourth interface includes a first suggested voice shortcut phrase (1028). In some implementations, the electronic device displays suggested voice shortcuts that the user can adopt as voice shortcuts for the associated task.

[0342] In some examples, in response to detecting the set of user inputs, the electronic device displays (1106) a first interface (1034) for generating a voice shortcut associated with the task. In some examples, the first interface is a voice recording interface. In some examples, the voice recording interface includes a prompt (1046) for the user to record a phrase to be used as the voice shortcut to start the task. In some examples, the voice recording interface includes a live preview (1042) of the natural language speech input provided by the user. In some examples, the live preview is an audio waveform.

[0343] In some examples, while displaying the first interface (1108), the electronic device receives (e.g., samples, acquires, captures) (1110) natural language speech input via an audio input device. In some examples, the natural language speech input is a phrase spoken by a user of the device. In some examples, the electronic device receives the speech input for a predetermined amount of time and / or until the user selects a stop affordance (1044).

[0344] In some embodiments, while receiving the natural language speech input, the electronic device provides (e.g., displays) a live (e.g., real-time) preview of the natural language speech input. In some embodiments, this live preview is a waveform of the natural language input and / or a real-time display of a speech-to-text conversion of the natural language input. In some embodiments, the live preview of the natural language speech input is a visual waveform of the natural language speech input.

[0345] In some examples, in response to receiving the natural language speech input, the electronic device determines candidate phrases based on the natural language speech input. In some examples, determining candidate phrases based on the natural language speech input includes determining the candidate phrases using natural language processing. In some examples, while a user is providing the natural language speech input, the electronic device converts the natural language speech input to text using natural language processing.

[0346] In some examples, determining the candidate phrases based on the natural language speech input includes providing the natural language speech input to another electronic device and receiving a representation of the candidate phrases (e.g., a text representation, a vector representation) from the other electronic device. In some examples, the electronic device provides the natural language speech input and / or a representation of the NL speech input to a server, and the server returns one or more candidate phrases.

[0347] In some examples, determining candidate phrases based on the natural language speech input includes determining whether the natural language speech input meets a phrase similarity criterion. Following a determination that the natural language speech input meets the phrase similarity criterion, the electronic device indicates (e.g., displays an indication) that the natural language speech input meets the similarity criterion. In some examples, the electronic device ensures that the natural language speech input is different from one or more predetermined phrases (e.g., "call 911"). In some examples, the electronic device ensures that the natural language speech input is sufficiently different from the one or more predetermined phrases. By way of example, the electronic device may ensure that a similarity between a representation of the natural language speech input and each of the one or more predetermined phrases does not exceed a similarity threshold. In some examples, if the natural language speech input does not meet the similarity criterion, the electronic device will notify the user that the provided speech input is insufficient and / or unacceptable. The electronic device may further request that the user provide a new natural language speech input. In some embodiments, the electronic device further compares the natural language input with phrases associated with one or more stored voice shortcuts. In some embodiments, the electronic device prompts the user to provide a new natural language speech input and / or requests confirmation that the user intends to replace one or more other similar phrase voice shortcuts with the natural language speech input. In some embodiments, the replaced voice shortcut is deleted.

[0348] In some examples, the electronic device determines whether a natural language speech input is received within a threshold time while displaying the first interface (1034). In some examples, the electronic device displays a second suggested voice shortcut phrase (1046) ("You could say something like 'Show me side camera'") on the first interface pursuant to a determination that a natural language speech input is not received within the threshold time. In some examples, the suggested voice shortcut provided on the first interface (1034) is the same as the suggested voice shortcut provided on the second interface (1028). In some examples, the suggested voice shortcut of the first interface and the suggested voice shortcut of the second interface are different.

[0349] In some embodiments, while still displaying the first interface, the electronic device displays (1120) within the first interface (1034) candidate phrases (1046) based on the natural language speech input. In some embodiments, the candidate phrases are speech-to-text transcriptions of the natural language speech input and are displayed while the natural language input is being received by the electronic device. In some embodiments, the electronic device displays the candidate phrases in response to the natural language input and / or converts the natural language speech input to text in real time. Thus, in some embodiments, the electronic device continuously updates the display of the candidate phrases while the natural language is being received by the electronic device.

[0350] In some examples, after displaying the candidate phrases, the electronic device detects (1122) a second user input (1092) via the touch-sensitive surface. In some examples, the second user input is a selection of a completion affordance (1072). In some examples, the second user input is a selection of an affordance, such as a confirmation affordance of the completion interface (1054).

[0351] In some examples, in response to detecting the second user input, the electronic device associates the candidate phrase with the task (1124). In some examples, the electronic device generates a voice shortcut such that dictation of the candidate phrase by the user to the digital assistant results in performance of the task.

[0352] In some examples, associating the candidate phrase with a task includes associating the candidate phrase with a first action and associating the candidate phrase with a second action. In some examples, the voice shortcut corresponds to multiple tasks. In some examples, a combination of tasks is suggested by the digital assistant, and the user can assign a phrase to initiate the performance of the combination of tasks. As an example, the voice shortcut "secure house" may correspond to the tasks of turning off the lights and locking the doors.

[0353] In some embodiments, the electronic device receives user speech input (e.g., natural language speech input) via an audio input device. In some embodiments, the electronic device determines whether the user speech input includes a candidate phrase. In some embodiments, the electronic device performs a task in accordance with a determination that the user speech input includes the candidate phrase. In some embodiments, the electronic device discontinues performing the task in accordance with a determination that the user speech input does not include the candidate phrase.

[0354] In some examples, the electronic device displays a second interface including an edit affordance after associating the candidate phrase with the task. In some examples, the electronic device displays this second interface at the end of the voice shortcut generation process. In some examples, a user can cause the display of the second interface by navigating to a voice shortcut in an interface (1004A) listing one or more stored voice shortcuts (1008A) and selecting the voice shortcut. In some examples, this second user interface (1054) includes a text representation of the task (1060), an indication of the task (1058), a candidate phrase (1064), an edit affordance (1066) that, when selected, causes the display of the candidate shortcut, a cancel affordance (1056) that, when selected, causes the device to cancel the voice shortcut generation process, and a completion affordance (1054) that, when selected, causes the electronic device to associate the candidate phrase with the task or, if already associated, maintain the association of the candidate phrase with the task.

[0355] In some examples, the electronic device detects a third user input indicating a selection of the editing affordance (1068). In some examples, the electronic device, in response to detecting the third user input, displays multiple candidate phrase affordances (1082, 1084, 1086) including a first candidate phrase affordance corresponding to the candidate phrase and a second candidate phrase affordance corresponding to another candidate phrase. In some examples, the other candidate phrase is based on the natural language speech input. In some examples, the electronic device, in response to the selection of the editing affordance, displays an editing interface (1070) including the multiple candidate phrases. In some examples, a user can select one of the candidate phrases to associate with the task. In some examples, each of the multiple candidate phrases is a speech-to-text candidate generated based on the natural language speech input using one or more NLP methodologies. In some examples, the NL speech input is provided to another device (e.g., a backend server), which returns the one or more candidate phrases to the electronic device. In some implementations, candidate phrases are generated at both the electronic device and the backend server, and the electronic device selects one or more "best" candidate phrases (e.g., the candidate phrases associated with the highest respective confidence scores).

[0356] In some examples, the electronic device detects another set of inputs (1090, 1092) including a fourth user input indicating selection of the second candidate phrase affordance. In some examples, the electronic device associates another candidate phrase with the task in response to detecting this another set of inputs. In some examples, the user selects a new candidate phrase to associate with the task, whereby providing the new candidate phrase causes performance of the task. In some examples, associating the new task candidate causes the electronic device to disassociate the previously associated candidate phrase from the task.

[0357] In some examples, the electronic device detects a fifth input (1092) after associating the candidate phrase with the task. In some examples, the electronic device, in response to detecting this fifth user input, displays another plurality of task candidate affordances, where the another plurality of task candidate affordances do not include the task candidate affordance associated with the task. In some examples, after creating the voice shortcut, the electronic device displays a settings interface (1004) listing task candidates suggested by the digital assistant and / or one or more applications. In some examples, if a task was previously suggested and for which the user created a shortcut, the task is removed from the list of suggested tasks.

[0358] In some embodiments, the electronic device provides the candidate phrase to another electronic device. In some embodiments, the generated voice shortcut is provided to a backend server for subsequent speech input matching. In some embodiments, the generated voice shortcut and associated task are provided to a backend server. In some embodiments, an input is provided from the electronic device to the backend server, and the backend server determines whether the input corresponds to the voice shortcut. If the backend server determines that the input corresponds to the voice shortcut, the electronic device performs the task. In some embodiments, providing each of the shortcut and task to the server in this manner further enables the task to be subsequently performed on other electronic devices using the same shortcut.

[0359] It should be noted that the details of the processes described above in connection with method 1100 (e.g., FIGS. 11A, 11B) are also applicable in an analogous manner to the methods described below. For example, method 1100 optionally includes one or more of the features of the various methods described with reference to methods 900, 1300, 1500, 1700, and 1900. For example, providing audio shortcuts as described in method 1200 can be applied to generate audio shortcuts for use as described in method 1300. For the sake of brevity, these details will not be repeated below.

[0360] The operations in the methods described above are optionally performed by running one or more functional modules in an information processing device, such as a general-purpose processor (e.g., as described in connection with FIGS. 2A, 4, and 6A) or an application-specific chip. Moreover, the operations described above with reference to FIGS. 10A-10AJ are optionally performed by the components shown in FIGS. 2A-2B. For example, display operation 1102, detect operation 1104, display operation 1106, receive operation 1110, display operation 1120, detect operation 1122, and associate operation 1124 are optionally performed by event sorter 270, event recognizer 280, and event handler 290. Event monitor 271 in event sorter 270 detects contacts on touch-sensitive surface 604 (FIG. 6A), and event dispatcher module 274 delivers the event information to application 236-1 (FIG. 2B). Each event recognizer 280 of application 236-1 compares the event information with a respective event definition 286 to determine whether a first contact at a first location on the touch-sensitive surface corresponds to a predefined event or sub-event, such as selecting an object on a user interface. When a corresponding predefined event or sub-event is detected, event recognizer 280 activates an event handler 290 associated with the detection of that event or sub-event. Event handler 290 optionally utilizes or invokes data updater 276 or object updater 277 to update application internal state 292. In some embodiments, event handler 290 accesses a respective GUI updater 278 to update what is being displayed by the application. Similarly, it will be apparent to those skilled in the art how other processes can be implemented based on the components shown in FIGS. 2A and 2B .

[0361] 12 is a block diagram illustrating a task suggestion system 1200, according to various embodiments. FIG. 12 is also used to illustrate one or more of the processes described below, including the method 1300 of FIG. 13.

[0362] 12 illustrates a task suggestion system 1200 that may be implemented on any electronic device described herein, including, for example, but not limited to, devices 104, 200, 400, and 600 (FIGS. 1, 2A, 4, and 6A-6B). While task suggestion system 1200 is described herein as being implemented on a mobile device, it will be understood that task suggestion system 1200 may be implemented on any type of device, such as a phone, a laptop computer, a desktop computer, a tablet, a wearable device (e.g., a smartwatch), a set-top box, a television, a home automation device (e.g., a thermostat), or any combination or subcombination thereof.

[0363] Generally, the task suggestion system 1200 provides task suggestions based on contextual data of the electronic device. The task suggestions provided by the task suggestion system 1200 can be used to provide suggestion affordances, such as those described in connection with FIGS. 8A-8AF. In some embodiments, the task suggestion system 1200 is implemented as a probabilistic model. The model may include one or more stages, including, but not limited to, a first stage 1210, a second stage 1220, and a third stage 1230, each of which is described in further detail below. In some embodiments, one or more of the first stage 1210, the second stage 1220, and the third stage 1230 may be combined into a single stage and / or split into multiple stages. By way of example, in an alternative implementation, the task suggestion system 1200 may include a first stage and a second stage, with the first stage implementing the functionality of both the first stage 1210 and the second stage 1220.

[0364] In some examples, context data for an electronic device indicates the state or context of the electronic device. By way of example, the context data may indicate various characteristics of the electronic device during the time a particular task was performed. For example, for each task performed by the electronic device, the context data may indicate the location of the electronic device, whether the electronic device was connected to a network (e.g., a WiFi network), whether the electronic device was connected to one or more other devices (e.g., headphones), and / or the time, date, and / or day of the week when the task was performed. If the electronic device was connected to a network or device during the performance of the task, the context data may further indicate the name and / or type of the network or device, respectively. The context data may also indicate whether a suggestion affordance associated with the task was previously presented to the user and the manner in which the user responded to the suggestion affordance. For example, the context data may indicate whether the user ignored the task suggestion or used the task suggestion to perform the corresponding task.

[0365] In some embodiments, the electronic device receives context data from an application during operation of the electronic device. In some embodiments, the application provides context data regarding a task while the task is being performed or after the task has been performed. The context data provided in this manner may be indicative of the task and, optionally, one or more parameters associated with the task. In some embodiments, the context data provided by the application further includes data indicative of the state of the electronic device while the task was being performed (e.g., the location of the electronic device, whether the electronic device was connected to a network, etc.), as described above. In other embodiments, the context data provided by the application does not include data indicative of the state of the electronic device while the task was being performed, and in response to receiving the context data from the application, the electronic device obtains data indicative of the state of the electronic device.

[0366] In some embodiments, the context data is provided by the application using any of a number of context data providing mechanisms. In at least one embodiment, the context data is received from the application in response to an API call that causes the application to return information about the application's execution. As an example, a word processing application (e.g., Notes, Word) may return an identifier (e.g., a numeric ID, a name) of the word processing document accessed by the user. As another example, a media playback application (e.g., Music, Spotify) may return to the user the identifiers of the current media item (e.g., song), album, playlist, collection, and one or more media items suggested by the media playback application.

[0367] In some examples, the context data is received from an application in response to an API call that causes the application to provide a data structure indicative of (e.g., identifying) a task performed by the application. This data structure may include, for example, values ​​for one or more parameters associated with the task. In some examples, this data structure is implemented as an intent object data structure. Further exemplary descriptions of operations using intent object data structures can be found in U.S. Patent Application No. 15 / 269,728, filed September 18, 2016, entitled "APPLICATION INTEGRATION WITH A DIGITAL ASSISTANT," which is incorporated herein by reference in its entirety.

[0368] In some embodiments, the context data is received from an application in response to an API call that causes the application to provide an application-specific (e.g., third-party application) data structure indicating a task performed by the application. This application-specific data structure may include, for example, values ​​for one or more parameters associated with the task. This application-specific data structure may optionally further indicate which parameter values ​​for the task, as well as which combinations of parameter values, may be specified when providing task suggestions. Thus, a task with M parameters may have as many as 2M-1 allowable parameter combinations, although the application-specific data structure may explicitly reduce the number of allowable combinations. In some embodiments, the application-specific data structure indicates whether the task is a background task or a task requiring confirmation, as described above in connection with FIGS. 8A-8AF.

[0369] In some embodiments, context data is provided by an application each time a task is performed on the electronic device. The context data may be provided, for example, while the task is being performed or after the task is performed. For example, in some embodiments, the electronic device detects that an application has been closed and, in response, employs one or more context data providing mechanisms to request context data from the application.

[0370] In some examples, the contextual data is selectively provided based on the type of task. For example, the contextual data may be provided in response to a user sending a text message or making a phone call, but not in response to a user navigating to a web page using a browser or unlocking the electronic device. In some examples, the contextual data is selectively provided based on the context of the electronic device. For example, the contextual data may not be provided if the charge level of the battery of the electronic device is below a threshold charge level.

[0371] In some examples, each type of context data (e.g., the location of the electronic device, whether the electronic device is connected to a network, etc.) is associated with a respective context weight. The context weights can be used to influence, for example, how the context data is used to determine the probability. As an example, a type of context determined to be a stronger predictor of user behavior can be associated with a relatively larger weight, and / or a type of context determined to be a weaker predictor of user behavior can be associated with a relatively smaller weight. As an example, a task performed by a user when the electronic device is present in a particular location can be a better indicator of user behavior than a task performed by the user on a particular day of the week. Thus, location context data can be associated with a relatively larger weight, and day-of-week context data can be associated with a relatively smaller weight. As another example, whether a user selected a suggested affordance for a task can b...

Claims

1. A method implemented by a computer on an electronic device, comprising: In the electronic device having a display and a touch-sensitive surface, receiving context data associated with the electronic device; determining a task probability for a task based on the context data; determining parameter probabilities for parameters associated with the task based on the context data; determining whether the task satisfies a proposal criterion based on the task probability and the parameter probabilities; displaying, on the display, a suggested affordance corresponding to the task and the parameters in accordance with a determination that the task satisfies the suggestion criteria; withdrawing from displaying the suggestion affordance in accordance with a determination that the task does not meet the suggestion criteria; and detecting a change in the contextual data associated with the electronic device; modifying the display of the suggested affordance in response to detecting the change in the context data; and A method comprising:

2. displaying, on the display, suggested affordances corresponding to the task and the parameters; displaying the suggested affordance on a first user interface in accordance with a determination that the task satisfies a first set of suggestion criteria; and displaying the suggested affordance on a second user interface distinct from the first user interface in accordance with a determination that the task satisfies a second set of suggestion criteria.

3. receiving context data associated with the electronic device; The method of claim 1 or 2, comprising determining a context of the electronic device while performing the task.

4. 4. The method of claim 3, wherein determining a context of the electronic device includes determining a location of the electronic device, determining whether the electronic device is connected to a network, determining a time of day, or any combination thereof.

5. 5. The method of claim 1, wherein determining a task probability for a task based on the context data comprises generating a histogram corresponding to the task based on the context data for each of a plurality of context types.

6. the task probability is a first task probability, the task is a first task, the parameter probability is a first parameter, and the parameter is a first parameter, and the method further comprises: determining a second task probability for a second task based on the context data; and determining a parameter probability for a second parameter associated with the second task based on the context data; determining whether the second task satisfies the proposal criteria based on the second task probability and a parameter probability for the second parameter; The method of claim 1 , further comprising:

7. Determining a parameter probability for a parameter based on the context data comprises determining a current context of the electronic device; and determining the parameter probabilities based on the current context of the electronic device.

8. The method of claim 1 , wherein the task probabilities are parameter independent.

9. The method of claim 1 , wherein receiving context data comprises receiving a data structure corresponding to the task and one or more parameters associated with the task.

10. the suggested affordance is a first suggested affordance, and determining whether the task satisfies a suggestion criterion based on the task probability and the parameter probabilities includes determining whether a heuristic criterion is satisfied, the method comprising: The method of claim 1 , further comprising: displaying a second selection affordance corresponding to another task according to a determination that the heuristic criterion is satisfied.

11. After displaying the suggested affordance, Detecting a first user input corresponding to a selection of the suggested affordance; selectively performing the task in response to detecting the first user input; The method of claim 1 , further comprising:

12. Selectively performing the tasks, executing the task in accordance with a determination that the task is a first type task; and displaying a confirmation interface including a confirmation affordance in accordance with determining that the task is a second type of task.

13. A computer program product causing a computer to carry out the method according to any one of claims 1 to 12.

14. 1. An electronic device comprising: A display and a touch-sensitive surface; A memory storing the computer program according to claim 13; one or more processors capable of executing the computer programs stored in the memory; An electronic device comprising:

15. 1. An electronic device having a display and a touch-sensitive surface, 13. An electronic device comprising means for carrying out the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Systems and methods for proactively identifying and surfacing relevant content on a touch-senstitive device

    WO2016191737A2