Unified wakeword and language understanding processing

The unified WW-SLU component addresses the inefficiencies of separate wakeword and intent detection by using a shared encoder, enhancing performance and reducing resource usage while enabling on-device processing and compliance with user preferences and regulations.

US12818896B1Active Publication Date: 2026-12-01AMAZON TECH INC
View PDF 20 Cites 0 Cited by

Patent Information

Application Number
US17/828788
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2026-12-01
Estimated Expiration
2044-01-22

AI Technical Summary

Technical Problem

Existing voice assistant systems require separate components for wakeword detection and spoken language understanding, leading to increased computational resources and latency, especially when communication with remote systems is interrupted or privacy modes are enabled.

Method used

A unified wakeword and spoken language understanding (WW-SLU) component that uses a shared encoder to generate feature data for both wakeword detection and intent recognition, reducing the need for separate encoders and enabling on-device processing.

Benefits of technology

This approach reduces computational resources and latency by allowing parallel processing of wakeword detection and intent recognition, while also supporting wakeword-free interactions and ensuring compliance with user permissions and regulatory requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12818896-D00000_ABST
    Figure US12818896-D00000_ABST
Patent Text Reader

Abstract

Techniques for performing unified trigger detection and SLU processing are described. In example embodiments, a device may include a unified wakeword (WW)-SLU component, which includes an encoder to determine feature data corresponding to audio data of a spoken input, and further includes a wakeword detection component and a SLU component. The wakeword detection component and the SLU component are configured to process the feature data at least partially in parallel. If the SLU component is unable to detect an intent, then the device sends an indication to a speech processing system to perform processing with respect to the audio data.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND

[0001] Spoken language processing systems have progressed to the point where humans can interact with and control computing devices using their voices. Such systems employ techniques to identify the words spoken by a user based on the various qualities of received input data. Speech recognition combined with natural language understanding processing techniques enable speech-based user control of computing devices to perform tasks based on the spoken inputs. Speech recognition and natural language understanding processing techniques are sometimes referred to collectively or separately as spoken language understanding (SLU) processing. SLU processing may be used by computers, hand-held devices, telephone computer systems, kiosks, and a wide variety of other devices to improve human-computer interactions.BRIEF DESCRIPTION OF DRAWINGS

[0002] For a more complete understanding of the present disclosure, reference is now made to the following description taken in conjunction with the accompanying drawings.

[0003] FIG. 1 is a conceptual diagram illustrating an example device for performing unified wakeword detection and spoken language understanding (SLU) processing, according to embodiments of the present disclosure.

[0004] FIG. 2 is a conceptual diagram illustrating an example encoder for processing audio data and generating feature data, according to embodiments of the present disclosure.

[0005] FIG. 3 is a conceptual diagram illustrating an example wakeword detection and an example SLU component that process the feature data, according to embodiments of the present disclosure.

[0006] FIG. 4 is a conceptual diagram illustrating an example SLU component configured for determining an intent and entity, according to embodiments of the present disclosure.

[0007] FIG. 5 is a conceptual diagram illustrating an example wakeword detection component, a wakeword verification component, and an example SLU component that process the feature data, according to embodiments of the present disclosure.

[0008] FIG. 6 is a conceptual diagram illustrating an example wakeword detection component, an example system-directed input detector, and an example SLU component that process the feature data, according to embodiments of the present disclosure.

[0009] FIG. 7 is a conceptual diagram of components of a system, according to embodiments of the present disclosure.

[0010] FIG. 8 is a conceptual diagram illustrating components that may be included in a device, according to embodiments of the present disclosure.

[0011] FIG. 9 is a conceptual diagram of components of a system to detect if input audio data includes system directed speech, according to embodiments of the present disclosure.

[0012] FIG. 10 is a block diagram conceptually illustrating example components of a device, according to embodiments of the present disclosure.

[0013] FIG. 11 is a block diagram conceptually illustrating example components of a system, according to embodiments of the present disclosure.

[0014] FIG. 12 illustrates an example of a computer network for use with the overall system, according to embodiments of the present disclosure.DETAILED DESCRIPTION

[0015] Automatic speech recognition (ASR) is a field of technology using computer science, artificial intelligence, and linguistics concerned with transforming audio data associated with speech into text representative of that speech. Similarly, natural language understanding (NLU) is a field of technology using computer science, artificial intelligence, and linguistics concerned with enabling computers to derive meaning from text input containing natural language. ASR and NLU are often used together as part of a speech processing system. Spoken language understanding (SLU) involves determining meaning (e.g., intent, entities, etc.) directly from audio including speech. Text-to-speech (TTS) is a field of technology concerning transforming textual data into audio data that is synthesized to resemble human speech. Natural language generation (NLG) can also be used to generate human-understandable outputs representing machine representations of information. The NLG outputs can be shared with human users via TTS, displayed text, or other ways of communicating natural language content to a user.

[0016] Certain voice assistant or other audio input-based systems may be configured to perform actions responsive to user or other audio inputs. For example, for the user input of “Alexa, play music by [artist],” a system may output music sung by the indicated artist. For further example, for the user input of “Alexa, what is the weather,” a system may output synthesized speech representing weather information for a geographic location of the user. In a further example, for the user input of “Alexa, send a message to John,” a system may capture spoken message content and cause same to be output via a device registered to “John.”

[0017] A voice assistant system may receive a user input as speech. For example, a user may speak an input to a device. Upon detecting receipt of speech, the device may send audio data (which may include feature data, encoded audio data, or other representations of the audio data), representing the spoken input, to another system component(s), which may be within the device itself, to perform further processing with respect to the audio data. The system or device may perform ASR processing on the audio data to generate ASR data (e.g., token data, text data, etc.) representing the words spoken by the user. The component(s) may perform NLU processing on the ASR data to determine an intent of the user input as well as portions of the input that represent an entity and may be used to perform an action. Some voice assistant systems may process audio data directly, without first performing ASR processing, to determine an intent and entity corresponding to the user input.

[0018] Voice assistant systems usually use a special word, phrase, or other sequence of sounds, collectively referred to herein as triggers, to initiate processing with respect to an input. Triggers may include wakewords, such as “Alexa”, “Amazon”, “Echo”, “Alexa auto”, etc., which may be included in speech inputs. When a trigger is detected, the voice assistant system initiates additional processing with respect to the input, which can be used to provide services to the user. When a wakeword is detected, the voice assistant system is “woken up” (i.e. additional processing is activated), which in turn can be used to provide services to the user. The process of detecting the occurrence of a trigger in audio data is called trigger detection or wakeword detection. Trigger or wakeword detection may be continuously running on the device when in a detection mode (e.g., sufficient power available to processor(s), microphones unmuted, etc.). After detecting a trigger or wakeword, the device may send audio and / or other data, representing the input, to one or more other system component(s) and / or component(s) on the device itself to perform further processing with respect to the audio data. When a spoken input from a user is received, wakeword detection may determine whether the spoken input includes a wakeword or not. Wakeword detection may also involve detecting phrases, which may be referred to as shortcuts (e.g., “Start timer”, “Show weather”, etc.), that cause components to perform a corresponding action. When other sounds, representing an acoustic event, are received, trigger detection may determine whether the sounds correspond to an acoustic event that triggers additional processing. Examples of acoustic events include a fire alarm, a smoke alarm, a security alarm, a dog barking, a baby crying, a window breaking, etc.

[0019] The present disclosure relates to a system which detects a wakeword and an intent, directly from audio data, using a unified component, which may be implemented on a user device, such as a smart speaker (like an Amazon Echo device or Echo Show device), phone, television, automobile, wearable (like headphones, earbuds, watch), tablet, personal computer, etc. Some embodiments of the present disclosure involve detecting a wakeword based on an existence of a particular sequence of phonemes, and similarly involve detecting an intent based on an existence of a particular sequence of phonemes. The unified component can include an encoder that determines feature data corresponding to audio data, and separate wakeword detection component and intent detection component decoders that process the feature data. In the cases where the unified component is unsure (e.g., less confident) about the intent corresponding to the user input, the device can stop its processing and / or send the audio data to another system component (e.g., a remotely located, such as a cloud engine, a server, etc.) for further processing. In some embodiments the unified component may include an entity detection component to determine one or more entities referenced in the user input.

[0020] Some embodiments of the unified component can also support processing in what is referred to herein as “follow-up mode,” which enables wakeword-free interactions with the voice assistant system. In the follow-up mode, a user may “wake up” a device by including a wakeword in a first spoken input, and may provide subsequent spoken inputs without including a wakeword. For example, a first input may be “Alexa, show me today's weather”, then subsequent inputs may be “What about tomorrow's weather?”, “Show me the 10-day forecast”, etc. The voice assistant system processes a subsequent input (e.g., determines an intent and one or more entities, presents an output responsive to the input, etc.) even though the input does not include a wakeword. In follow-up mode, the voice assistant system may detect system-directed inputs, rather than a wakeword, to determine when processing with respect to an input is to be performed. In such embodiments, the unified component may include a separate system-directed input detection component, which processes the feature data determined using the encoder.

[0021] The techniques described herein, among other things, provide an improved trigger and SLU detection system. For example, the unified component can improve user-perceived and system latency when performing intent detection on a user device, enable intent detection without sending audio data to another system component (e.g., in case communication with the system is interrupted, in case a user enabled privacy mode where audio data is not to be sent to the system, etc.), and / or reduce the computing resources needed to perform intent detection on-device, among other things.

[0022] Teachings of the present disclosure may be configured to incorporate user permissions and may only be performed if approved by a user. As such, the systems, devices, components, and techniques described herein would be typically configured to restrict processing where appropriate and only process user data in a manner that ensures compliance with all appropriate laws, regulations, standards, and the like. The teachings of the present disclosure can be implemented on a geographic basis to ensure compliance with laws in various jurisdictions and entities in which the computing components and / or user are located.

[0023] FIG. 1 is a conceptual diagram illustrating an example of how a device 110 can perform unified wakeword detection and intent detection. Intent detection, which is part of NLU processing, may be referred to herein as NLU processing. NLU processing performed by the device 110 may involve determining an intent corresponding to a user input. In some cases, NLU processing performed by the device 110 may also involve determining one or more entities referenced in a user input. As shown in FIG. 1, the system 100 may include a device 110, local to a user 105, connected to a system 120 across one or more networks 199. The network(s) 199 may include the Internet and / or any other wide- or local-area network, and may include wired, wireless, and / or cellular network hardware. Although the figures and discussion of the present disclosure illustrate certain steps in a particular order, the steps described may be performed in a different order (as well as certain steps removed or added) without departing from the present disclosure.

[0024] The system 120 may be configured as a speech processing system or a voice assistant system, an example of which is described below in relation to FIG. 7. The device 110 may be configured to perform one or more functions of the speech processing system or voice assistant system as well. FIG. 1 shows the device 110 including certain components, such as a unified wakeword-NLU (WW-NLU) component 130. Other example components that may be included in the device 110 for processing are described below in relation to FIG. 8.

[0025] Referring to FIG. 1, the user 105 may speak an input, and the device 110 may capture audio 107 representing the spoken input. For example, the user 105 may say “Alexa, turn up the volume.” The device 110 may determine audio data 108 corresponding to the audio 107. Details on how the audio data 108 may be determined are described below in relation to FIGS. 7 and 8. The device 110 may send (step 1) the audio data 108 to the unified WW-SLU component 130 for processing.

[0026] In some embodiments, the unified WW-SLU component 130 may include an encoder 135, a wakeword detection component 140 and a SLU component 150. The encoder 135 may process the audio data 108 and may generate (step 2) feature data 136. In some embodiments, the encoder 135 may be a neural network, and may be configured to extract features from the audio data 108. An example embodiment of the encoder 135 is shown in FIG. 2, where the encoder 135 includes one or more convolutional neural network (CNN) layers 204, followed by one or more fully connected layers 206. In other example embodiments, the encoder 135, additionally or alternatively, may include other types of layers, such as recurrent neural network (RNN) layers, long short-term memory (LSTM) layers, residual network layers, etc. As shown in FIG. 2, in some embodiments, the encoder 135 may process audio frames 202.

[0027] The audio frames 202 may be determined using the audio data 108. The device 110 may perform windowing functions on the audio data 108 to create the audio frames 202. The size of each audio frame may depend upon implementation. In an example, each audio frame may include twenty-five (25) milliseconds of audio data, with an overlap of the next audio frame of 10 milliseconds of data, thus resulting in sliding window processing of the audio data. Performing a windowing function may include multiplying a time record by a finite-length window with an amplitude that varies smoothly and gradually toward zero at its edges. By performing such, the endpoints of the waveforms of respective frames of audio data meet, resulting in a continuous waveform without sharp transitions. In some embodiments, the device 110 may then perform a fast Fourier transform (FFT) that converts the waveforms in each audio frame from its original domain (e.g., time) to a representation in a frequency domain, and the frequency domain representation may be included in the audio frames 202 and processed by the encoder 135. Audio processing techniques other than or in addition to FFT may be used to transform audio data (e.g., waveforms) into data that can be processed as needed.

[0028] In some embodiments, the encoder 135 may be configured to process thirty-four (34) frames with a stride of six (6) frames at a time. The encoder 135 may further include a rectified linear unit activation layer, an optional max pooling layer, a batch normalization layer and a drop out layer. The encoder 135 may be an efficient feature extractor to model local temporal and spectral dependencies represented in the audio data 108. The output of the encoder 135 may be vectorized to generate one or more feature vectors 208. Each feature vector 208 may correspond to a portion of the audio data 108, for example, to an individual audio frame 202, or in other embodiments, to a set of audio frames 202. The feature vectors 208 may be included in the feature data 136, shown in FIG. 1.

[0029] Referring to FIG. 1, the feature data 136 may be provided (step 3a) as an input to the wakeword detection component 140, and may be provided (step 3b) as an input to the SLU component 150. The wakeword detection component 140 and the SLU component 150 may process the feature data 136 at least partially in parallel. As used herein, two or more components processing in parallel refers to one component processing received input data while another component is processing received input data. In some cases, the input data received by the components may be the same. In some cases, the input data is received by the components at substantially the same time, causing the processing by the respective components to initiate at substantially the same time.

[0030] In some embodiments, the wakeword detection component 140 may be a neural network. An example embodiment of the wakeword detection component 140 is shown in FIG. 3, which may include one or more recurrent neural network (RNN) layers 310 followed by one or more fully connected layers 312. In some embodiments, the RNN layer 310 may be a Long short-term memory (LSTM) layer. In other example embodiments, the wakeword detection component 140, additionally or alternatively, may include other types of layers, such as CNN layers, residual network layers, etc. The RNN layer(s) 310 may capture dependencies among the different audio frames via the corresponding feature vectors 208. The RNN layer(s) 310 may act as a “gating” mechanism. After the RNN layer(s) 310, the fully-connected layer(s) 312 may be used to further transform the features before applying a softmax output. The wakeword detection component 140 may output one or more wakeword scores 314. Individual wakeword scores 314 may correspond to individual feature vectors 208, and thus, the individual audio frames 202. The wakeword score 314 may represent a likelihood of the corresponding audio frame 202 including a representation of a wakeword.

[0031] In other embodiments, the wakeword detection component 140 may be configured to classify individual audio frames 202 into a wakeword class or a background class (i.e. a non-wakeword class). In some embodiments, the wakeword detection component 140 may be configured to detect one wakeword (e.g., “Alexa”), in which case, the wakeword detection component 140 may output, for each feature vector 208, a first class representing that the wakeword is included or a second class representing that the wakeword is not included. In such embodiments, the output may include a likelihood / probability of the particular class corresponding to the feature vector 208. In some embodiments, the wakeword score 314 may include a vector, where each value represents a likelihood for a particular class. For example, the wakeword score 314 may be {wakeword class: “0.9”; background class: “0.1”}.

[0032] In other embodiments, the wakeword detection component 140 may be configured to detect more than one wakeword (e.g., “Alexa”, “Amazon”, and “Echo”), in which case the wakeword detection component 140 may output, for each feature vector 208, a first class representing that a first wakeword is included, a second class representing that a second wakeword is included, a third class representing that a third wakeword is included, a fourth (background) class representing that no wakeword is included, etc. The output may also include a likelihood / probability of the particular class corresponding to the feature vector 208. In some embodiments, the wakeword score 314 may be a vector, where each value represents a likelihood for a particular class. For example, the wakeword score 314 may be {first wakeword class: “0.1”, second wakeword class: “0.0”, third wakeword class: “0.9”; background class: “0.0”}.

[0033] In yet other embodiments, the unified WW-SLU component 130 may include multiple wakeword detection components, each configured to detect a different wakeword. The different wakeword detection components may have a similar model architecture to the wakeword detection component 140 described above.

[0034] The unified WW-SLU component 130 may process the wakeword scores 314, where such processing may involve normalization of scores, smoothing of scores (in particular between audio frames), aggregation of scores (e.g., averaging, weighted average, summation, etc.), determining a mean score, determining a median score, etc. Wakeword data 142 (shown in FIG. 1) may include data determined by processing the wakeword scores 314. In other embodiments, the wakeword data 142 may include the wakeword scores 314.

[0035] In some embodiments, the SLU component 150 may be a neural network and may be configured to identify a meaning (e.g., an intent, an action requested by the user 105, an action to be performed in response to the spoken input, etc.) corresponding to a spoken input. Although it is described that the SLU component 150 determines an intent and as such outputs an intent score or intent data, it should be understood that the SLU component 150 may output an action score or action data representing an action to be performed in response to a spoken input. An example embodiment of the SLU component 150 is shown in FIG. 3, which may include one or more RNN layers 320 followed by one or more fully connected layers 322. In some embodiments, the RNN layer 320 may be a LSTM layer. In other example embodiments, the SLU component 150, additionally or alternatively, may include other types of layers, such as CNN layers, residual network layers, etc. The RNN layer(s) 320 may capture dependencies among the different audio frames via the corresponding feature vectors 208. The RNN layer(s) 320 may act as a “gating” mechanism. After the RNN layer(s) 320, the fully-connected layer(s) 322 may be used to further transform the features before applying a softmax output. The SLU component 150 may output one or more intent scores 324. Individual intent scores 324 may correspond to individual feature vectors 208, and thus, the individual audio frames 202. The intent score 324 may represent a likelihood of the corresponding audio frame 202 corresponding to a particular intent. In some embodiments, the SLU component 150 may be configured to identify an intent from a particular set of intents. In such embodiments, the intent score 324 may be a vector of scores, where each value represents a likelihood / probability for a particular intent.

[0036] In some embodiments, the SLU component 150 may be configured to identify a background class when an intent corresponding to the spoken input, cannot be identified from the particular set of intents or in unrecognized from the set of intents. The SLU component 150 may be configured to classify individual audio frames 202 into a first intent class (corresponding to a first example intent {Turn VolumeUp}), a second intent class (corresponding to a second example intent {Turn VolumeDown}), a third intent class (corresponding to a third example intent {TurnOn}), a background class (corresponding to an unrecognized intent that cannot be identified from the set of intents), etc. In such embodiments, the output may include a likelihood / probability of the particular class corresponding to the feature vector 208. For example, the intent score 324 may be the vector: {first intent class: “0.8”; second intent class: “0.1”, third intent class: “0.0”, background class: “0.1”}.

[0037] In other embodiments, the unified WW-SLU component 130 may include multiple SLU components, each configured to detect a different intent (or each configured to detect intent(s) of a different domain). The different SLU components may have a similar model architecture to the SLU component 150 described above.

[0038] The unified WW-SLU component 130 may process the intent scores 324, where such processing may involve normalization of scores, smoothing of scores (in particular between audio frames), aggregation of scores (e.g., averaging, weighted average, summation, etc.), determining a mean score, determining a median score, etc. SLU data 152 (shown in FIG. 1) may include data determined by processing the intent scores 324. In other embodiments, the SLU data 152 may include the intent scores 324.

[0039] Referring to FIG. 1, the wakeword detection component 140 may output (step 4) the wakeword data 142, which may indicate whether or not the audio data 108 / the spoken input from the user 105 includes a wakeword. The SLU component 150 may output (step 5) the SLU data 152, which may indicate an intent, from a set of intents, if any, that corresponds to the audio data 108 / the spoken input.

[0040] In some embodiments, the SLU data 152 may be provided to a skill component 890 (shown in FIG. 8) and / or to a skill system 725 (shown in FIGS. 7 and 8), which may process the SLU data 152 and determine output data responsive to the spoken input, as described below in relation to FIGS. 7 and 8. The device 110 may present the output data from the skill. In other embodiments, the SLU data 152 may be provided to another component, which may be included in the system 120 or the device 110, for further processing described below in relation to FIGS. 7 and 8, which may involve, among other things, determining output data responsive to the spoken input. The system 120 may send the output data to the device 110 for presentation.

[0041] By using a shared encoder 135 to generate feature data 136 that is processed by both the wakeword detection 140 and the SLU component 150, the unified WW-SLU component 130 can reduce the computational resources (e.g., processor time, memory usage, etc.) needed to perform wakeword detection and SLU processing. The encoder 135 performs the computationally intensive processing of extracting features from the audio data 108, which can be used by (at least) two separate tasks as described herein. The techniques described herein avoids the need to have separate encoders for separate tasks.

[0042] In some embodiments, the wakeword detection component 140 may process a smaller portion of the audio data 108 than the SLU component 150, which can result in the wakeword detection component 140 outputting the wakeword data 142 prior to the SLU component 150 outputting the SLU data 152. The audio data 108 may be determined as the audio 107 is captured by the device 110, and the audio data 108 may be processed by the unified WW-SLU component 130 as it is determined (e.g., in a streaming manner). In cases where the wakeword data 142 is available while the SLU component 150 is still processing, and the wakeword data 142 indicates that a wakeword is detected, then the processing by the SLU component 150 is continued. In cases where the wakeword data 142 is available while the SLU component 150 is still processing, and the wakeword data 142 indicates that a wakeword is not detected / undetected, then the processing by the SLU component 150 may be stopped.

[0043] In some embodiments, the device 110 and the system 120 may process the audio data 108 in parallel. That is, the device 110 may determine the audio 108 as the audio 107 is captured, and as the audio 108 is determined (e.g., a portion of the audio 108, a number of audio frames 202 of the audio 108, etc.) the device 110 may send the audio data 108 to the system 120. The system 120 may process the audio data 108 as it is received, and such processing may involve determining a wakeword is included in the spoken input, determining a meaning of the spoken input (e.g., SLU processing, ASR processing, NLU processing, etc.), determining output data responsive to the spoken input, etc. While the system 120 is processing, the device 110 may also process the audio data 108 as described herein. In some cases, the system 120 may determine output data responsive to the spoken input before the device 110 determines output data responsive to the spoken input, or vice-versa. In any case, the output data that is determined first, either by the system 120 or the device 110, is presented to the user 105. In some embodiments, the output data that is determined with a certain level of confidence (e.g., satisfies a threshold confidence value), either by the system 120 or the device 110, is presented to the user 105.

[0044] In some embodiments, a privacy mode may be enabled at the device 110, in which case, the audio data 108 is not sent to the system 120. In such cases, if the device 110 is unable to determine an intent and / or entity corresponding to the spoken input or is unable to determine output data responsive to the spoken input, the device 110 may output a response corresponding to an error, such as “Sorry, I don't understand what you said,”“I cannot process your request”, and the like.

[0045] In some embodiments, components of the unified WW-SLU component 130 may be trained in a joint manner. Training data may include multiple samples of audio data representing spoken inputs. Some of the samples may include a wakeword, and others may not include a wakeword. Depending on the type of training technique employed (e.g., supervised, semi-supervised, unsupervised), the training data may include appropriate labels. For example, a portion of the sample audio data may be labeled as included a wakeword. As another example, a sample audio data may be labeled as including or not included a wakeword. As another example, a portion of the sample audio data may be labeled as corresponding to an intent and the particular intent that it corresponds to. As another example, a sample audio data may be labeled as corresponding to a particular intent.

[0046] Loss functions employed during training operations may differ in the way they compute the loss on the positive samples (e.g., spoken inputs corresponding to an intent from the set of intents) and have the same operation on the negative samples (e.g., spoken inputs corresponding to an intent not included in the set of intents). In some embodiments, on the negative samples, the audio frame with the minimal score on the background class may be selected to compute the cross entropy loss on this audio frame. An example definition of the loss function is below:

[0047] ℒ=-log⁡(pyt)|t=arg mini p0i,y=0

[0048] where y=0 is the background class and

[0049] p0iis the probability of the background class on the frame i. On the positive samples, where y≠0, the following example loss functions apply different strategies on selecting which frame to optimize. One or more of the different loss strategies may be implemented during training operations.

[0050] Let te denote the end point of the segment and tl be the maximum allowed latency. For the max-pooling loss, the frame where the target class y has the maximal score within the maximal latency te+tl is selected:

[0051] ℒm⁢p=-log⁡(pyt)|t=arg maxi≤te+tipyi,y≠0.

[0052] For the max-latency loss, the latest frame within the maximum allowed latency is selected:

[0053] ℒm⁢l=-log⁡(pyt)|t=max⁡(i≤te+ti),y≠0.

[0054] For the random pooling loss, a frame within the maximum latency after the end, i.e. a frame between te and te+tl is selected:

[0055] ℒrp=-log⁡(pyt)|t=rand⁡(te≤i ≤te+ti),y≠0.

[0056] The embodiments described above include a separate wakeword detection component 140 and a SLU component 150, as shown in FIG. 3. In other embodiments, one or more processing (e.g., via one or more layers) may be shared between the wakeword detection component and the SLU component. For example, the wakeword detection component and the SLU component may process the feature vectors 208 using the same one or more RNN layers, then the output of the RNN layer(s) may be processed using separate fully-connected layer(s). As another example, the wakeword detection component and the SLU component may process the feature vectors 208 using separate RNN layer(s), then the output of the separate RNN layer(s) may be processed using the same fully-connected layer(s). As yet another example, the wakeword detection component and the SLU component may process the feature data 136 using the same RNN layer(s) and the same fully-connected layers. In some of these cases, the output of such processing may include both wakeword scores and intent scores. That is, the output of the fully-connected layer(s) may be one or more score vectors, where each score vector may correspond to an individual feature vector 208 / audio frame 202, and each score vector may include at least a first value representing a likelihood of including a wakeword and at least a second value representing a likelihood of an intent corresponding to the feature vector / audio frame.

[0057] The embodiments described above include a separate wakeword detection component 140 and a SLU component 150, as shown in FIG. 3. In other embodiments, the SLU component may be configured to perform intent detection and entity detection. FIG. 4 is a conceptual diagram illustrating an example SLU component configured for such processing.

[0058] As shown in FIG. 4, the SLU component 150 may include an intent component 410, which, in some embodiments, may include the RNN layer(s) 320 and the fully connected layer(s) 322 (shown in FIG. 3) that are configured to process the feature vector(s) 208 and output the intent score(s) 324 as described above in relation to FIG. 3. In addition to the intent component 410, the SLU component 150 may also include an entity component 420.

[0059] In some embodiments, the entity component 420 may be a neural network and may be configured to identify an entity corresponding to a spoken input. The entity component 420 may process the feature vector(s) 208. An example embodiment of the entity component 420 is shown in FIG. 4, which may include one or more RNN layers 422 followed by one or more fully connected layers 424. In some embodiments, the RNN layer 422 may be a LSTM layer. The RNN layer(s) 422 may capture dependencies among the different audio frames via the corresponding feature vectors 208. The RNN layer(s) 320 may act as a “gating” mechanism. After the RNN layer(s) 422, the fully-connected layer(s) 424 may be used to further transform the features before applying a softmax output.

[0060] In some embodiments, the entity component 420 may also process the intent score(s) 324 determined by the intent component 410. When an intent, from the set of intents, is detected, the potential entity for this intent can be reduce to a subset of entities. For example, {VolumeUpIntent} may only occur with entities such as “one”, “two”, “three”, etc. Other entities may not need to be considered when the {VolumeUpIntent} is detected. To consider this conditional relationship, the intent scores are inputted to the entity component 420. In an example embodiment, the intent score(s) 324 may be provided as an input to the RNN layer(s) 422. In another example embodiment, the intent score(s) 324 may be provided as an input to the fully connected layer(s) 424. In yet another embodiment, the intent score(s) 324 may be provided as an input to both the RNN layer(s) 422 and the fully connected layer(s) 424. In this manner, the entity component 420 can consider the intent corresponding to the spoken input when determining an entity corresponding to the spoken input.

[0061] In some embodiments, the intent component 410 and the entity component 420 may process the feature vector(s) 208 in parallel, including simultaneously or at substantially the same time. In other embodiments, the entity component 420 may process the feature vector(s) 208 after the intent component 410 has completed processing (with respect to the entirety of the audio data 108) or has partially completed processing (with respect to a portion of the audio data 108).

[0062] As described herein, the audio data 108 may be determined as the audio 107 is received, in a streaming manner. In some cases, the intent score(s) 324 may not be available or may not include meaningful / useful information when the entity component 420 is performing its processing. This may be because of the spoken input provided by the user 105, where sometimes an earlier portion of the spoken input (i.e. earlier determined audio frames 202 / feature vectors 208) may represent (or can be used to determine) an entity rather than an intent (e.g., such as in the spoken input “Alexa, bathroom light on”). In other cases, an earlier portion of the spoken input may represent (or can be used to determine) an intent rather than an entity (e.g., such as in the spoken input “Alexa, turn on bathroom light”). Since the SLU component 150 may process audio frames / feature vectors in a streaming manner, at what time or in what order the intent score(s) 324 and entity scores 426 are determined may depend on the spoken input. In any case, the entity component 420 may process the intent score(s) 324 as they are available.

[0063] In some cases, the intent component 410 may determine that the spoken input does not correspond to an intent from the set of intents (e.g., the spoken input corresponds to an unrecognized intent or a background class). In such cases, the SLU component 150 may stop processing by the entity component 420, or may not initiate processing by the entity component 420. In such cases, the device 110 may send the audio data 108 (or the feature data 136) to another system component, which may be included in the system 120 or the device 110, for further processing, or may send a signal / indicator to the other system component to perform speech processing with respect to the audio data 108, which may have already been sent to the system component by the device 110 based on detecting a wakeword.

[0064] The entity component 420 may output one or more entity scores 426. Individual entity scores 426 may correspond to individual feature vectors 208, and thus, the individual audio frames 202. The entity score 426 may represent a likelihood of the corresponding audio frame 202 corresponding to a particular entity. In some embodiments, the entity component 420 may be configured to identify an entity from a particular set of entities. In such embodiments, the entity score 426 may be a vector of scores, where each value represents a likelihood / probability for a particular entity.

[0065] In some embodiments, the entity component 420 may be configured to identify a background class, when an entity corresponding to the spoken input cannot be identified from the particular set of entities or is an unrecognized entity from the set of entities. The entity component 420 may be configured to classify individual audio frames 202 into a first entity class (corresponding to a first example entity “one”) a second entity class (corresponding to a second example entity “two”), a background class (corresponding to an unrecognized entity that cannot be identified from the set of entities), etc. In such embodiments, the output may include a likelihood / probability of the particular class corresponding to the feature vector 208. For example, the entity score 426 may be the vector: {first entity class: “0.8”; second entity class: “0.1”, background class: “0.1”}.

[0066] In other embodiments, the SLU component 150 may include separate entity components, each configured to detect a different entity type and / or detect entities of different domains. The different entity components may have a similar model architecture to the entity component 420 described above. An entity, as used herein, refers to a person, a place, a thing, etc. An entity type, as used herein, may include person type, place type, object type, number type, etc.

[0067] The unified WW-SLU component 130 may process the entity scores 426, where such processing may involve normalization of scores, smoothing of scores (in particular between audio frames), aggregation of scores (e.g., averaging, weighted average, summation, etc.), determining a mean score, determining a median score, etc.

[0068] As described herein, the unified WW-SLU component 130 may be configured to determine an intent from a set of intents. In example embodiments, the set of intents may include the following: {StopIntent}, {TurnOnApplianceIntent}, {TurnOffApplianceIntent}, {PlayMusicIntent}, {GetWeatherIntent}, {NextIntent}, {MusicControlIntent}, {SilenceNotificationIntent}, {NavigateIntent}, {VolumeUpIntent}, {VolumeDownIntent}, {LaunchApplicationIntent}, {WhatTimeIntent}, {ViewNotificationIntent}, {Display VideoFeedIntent}, {CancelIntent}, {CancelNotificationIntent}, {EndCallIntent}, {WhatDayIntent}, {DailyBriefingIntent}, {ExitIntent}, {SnoozeNotificationIntent}, {OrderStatusIntent}, {AcceptCallIntent}, {RejectCallIntent}, and others.

[0069] In some embodiments, the unified WW-SLU component 130 may also include a wakeword verification component 510 shown in FIG. 5. In such embodiments, the feature data 136 may be provided as an input and processed by the wakeword detection component 140, the wakeword verification component 510 and the SLU component 150 in parallel.

[0070] In some embodiments, the wakeword detection component 140 may be configured to process a certain number of audio frames / a certain portion of the audio data 108 (e.g., a portion of audio data that may be the length of a wakeword) to determine whether a wakeword is represented in that portion. Based on its processing, the wakeword detection component 140 may output a wakeword-detected signal / indicator, which may cause other processing to occur (e.g., the device 110 may begin sending the audio data 108 to another system component, etc.). If a wakeword is not detected, then the wakeword detection component 140 may output a wakeword-not-detected or no-wakeword signal / indicator, which may cause other different processing to occur (e.g., the SLU component 150 may cease processing the feature data 136, etc.).

[0071] The wakeword verification component 510 may be configured to determine whether audio data 108 includes a wakeword based on words that may follow a wakeword. The wakeword verification component 510 may be configured to process a certain number of audio frames / a certain portion of the audio data 108 that is greater than that that the wakeword detection component 140 is configured to process. For example, the wakeword verification component 510 may process a portion of audio data corresponding to the length of a wakeword and at least one additional word following the wakeword. The wakeword verification component 510 may verify that the audio data 108 includes a wakeword meant to activate processing by the device 110 / the system 120. Based on its processing, the wakeword verification component 510 may output a wakeword-verified signal / indicator, which may cause other processing to occur (e.g., the device 110 may continue sending the audio data 108 to another system component, etc.). If a wakeword is not detected, then the wakeword verification component 510 may output a wakeword-not-detected or no-wakeword signal / indicator, which may cause other different processing to occur (e.g., the SLU component 150 may cease processing the feature data 136, the device 110 may stop sending the audio data 108 to the other system component, etc.).

[0072] In some cases, the wakeword detection component 140 (which operates on a smaller portion of the audio data) may output a signal / indicator prior to the wakeword verification component 510 (which operates on a larger portion of the audio data). Based on a wakeword-detected signal / indicator outputted by the wakeword detection component 140, the device 110 may begin sending the audio data 108 to another system component (included in the system 120 or the device 110), may continue processing by the SLU component 150, etc. Based on a no-wakeword signal / indicator later outputted by the wakeword verification component 510, the device 110 may stop sending the audio data 108 to the other system component, may stop processing by the SLU component 150, etc. If the wakeword verification component 510 outputs a wakeword-detected signal / indicator, thus confirming the wakeword detection component 140 signal / indicator, then the processing by the device 110 may continue.

[0073] In some embodiments, if the wakeword detection component 140 outputs a no-wakeword signal / indicator, then the wakeword verification component 510 may stop processing the feature data 136. In yet other embodiments, if the wakeword detection component 140 outputs a no-wakeword signal / indicator, the wakeword verification component 510 may continue processing, and may output a wakeword-detected signal / indicator, in which case the device 110 may begin sending the audio data 108 to another system component, which may be included in the system 120 or the device 110 (e.g., the system 120 may further verify that the audio data 108 includes a wakeword or includes system-directed input).

[0074] Some embodiments enable wakeword-free interactions with the device 110 / the system 120. In example embodiments, the user 105 may enable, what is referred to herein, a follow-up mode, where after providing a first spoken input including a wakeword (e.g., “Alexa, show me today's weather”), the user 105 can subsequently provide spoken inputs without including a wakeword (e.g., “What about tomorrow's weather?”; “Show me the 10-day forecast”, etc.). In other embodiments, the user 105 may engage in a dialog session with the device 110, where the user 105 may provide a first spoken input including a wakeword, the device 110 / the system 120 may output a response to the first spoken input, then the user 105 may provide another spoken input that does not include a wakeword, and the device 110 / the system 120 may output a response to the subsequent spoken input. In yet other embodiments, the device 110 / the system 120 may recognize that the user 105 provided an input that is directed to the system, and may perform processing with respect to the received input accordingly. In yet other embodiments, the device 110 / the system 120 may support a natural turn-taking mode. Natural turn-taking uses multiple cues-acoustic, linguistic, and visual—to help the system interact with one or more users in a more natural way, without the need to repeat the wake word. The device 110 (and / or the system 120) may include a system-directed input detector, which may use multiple cues, such as visual cues, acoustic cues, linguistic cues, etc. from the user 105 to detect a system-directed input. Such visual cues may be determined by processing image data captured by the device 110, and such visual cues may include certain gestures (e.g., the user 105 is pointing at the device 110), gaze detection (e.g., the user 105 is looking at the device 110), certain facial expressions, etc. Details of an example system-directed input detector are described below in relation to FIG. 9.

[0075] In some embodiments, the device 110 may include a system-directed input detector component 610, along with the wakeword detection component 140 and the SLU component 150, that may receive as input and process the feature data 136. FIG. 6 illustrates such an embodiment. In an example embodiment, the feature data 136 may be processed by the wakeword detection component 140, the system-directed input detector component 610 and the SLU component 150 in parallel. In another embodiment, the system-directed input detector component 610 may only process the feature data 136 (or may only receive the feature data 136) in certain cases. For example, if follow-up mode is enabled, then the feature data 136 may be provided to the system-directed input detector component 610 for processing. As another example, if the user 105 is engaged in a dialog session, then the feature data 136 may be provided to the system-directed input detector component 610 for processing. As yet another example, if the audio data 108 corresponds to a second or subsequent (not a first) spoken input, then the feature data 136 may be provided to the system-directed input detector component 610.

[0076] In some embodiments, either the wakeword detection component 140 is activated or the system-directed input detector component 610 is activated. That is, if the feature data 136 is provided to / processed by the system-directed input detector component 610, then the feature data 136 may not be provided to / processed by the wakeword detection component 140. Also, if the feature data 136 is provided to / processed by the wakeword detection component 140, then the feature data 136 may not be provided to / processed by the system-directed input detector component 610.

[0077] The system-directed input detector component 610 may be included in the unified WW-SLU component 130. In some embodiments, the system-directed input detector component 610 may be a neural network (e.g., including one or more RNN layers and one or more fully connected layers) configured to determine whether audio data 108 includes an input directed to the system 120 / the device 110. In other embodiments, the system-directed input detector component 610 may include one or more of the components described below in relation to FIG. 9. The system-directed input detector component 610 may output one or more scores, each corresponding to a feature vector included in the feature data 136 / an audio frame of the audio data 108, representing whether system-directed input is detected.

[0078] In some embodiments, the unified component 130 may include an additional or alternative branch / component configured to detect occurrence of an acoustic event. Such an acoustic event component may process the feature data 136 to determine whether an acoustic event (e.g., from a set of defined acoustic events) has occurred. Upon detecting that an acoustic event occurred, additional processing (e.g., sending a notification to a user device, sending an alert to an external system, etc.) may be initiated. The acoustic event component may use neural-network based techniques to detect an acoustic event. In some embodiments, the acoustic event component may process in parallel of the wakeword detection component 140 and / or the system-directed input detector 610. In some embodiments, when the device 110 is in an “away” mode or otherwise in a security mode, the acoustic event component may process instead of the wakeword detection component 140 or the system-directed input detector 610. The user 105 may set the device 110 in “away” mode to enable the device 110 to capture sounds occurring in the device's environment. Examples of an acoustic event include footsteps (e.g., a person walking in a home), glass breaking (e.g., a window or a door panel being broken), fire alarm sounding, smoke alarm sounding, security door alarm sounding, dog barking, baby crying, etc.

[0079] The system 100 may operate using various components as illustrated in FIG. 7. The various components may be located on a same or different physical devices. Communication between various components may occur directly or across a network(s) 199.

[0080] A microphone or array of microphones (of or otherwise associated with the device 110) may capture audio. The device 110 processes audio data, representing the audio 107, to determine whether speech is detected. The device 110 may use various techniques to determine whether audio data includes speech. In some examples, the device 110 may apply voice activity detection (VAD) techniques. Such techniques may determine whether speech is present in audio data based on various quantitative aspects of the audio data, such as the spectral slope between one or more frames of the audio data; the energy levels of the audio data in one or more spectral bands; the signal-to-noise ratios of the audio data in one or more spectral bands; or other quantitative aspects. In other examples, the device 110 may implement a classifier configured to distinguish speech from background noise. The classifier may be implemented by techniques such as linear classifiers, support vector machines, and decision trees. In still other examples, the device 110 may apply hidden Markov model (HMM) or Gaussian mixture model (GMM) techniques to compare the audio data to one or more acoustic models in storage, which acoustic models may include models corresponding to speech, noise (e.g., environmental noise or background noise), or silence. Still other techniques may be used to determine whether speech is present in audio data.

[0081] Once speech is detected in audio data, the device 110 may determine if the speech is directed at the device 110 / system 120. In at least some embodiments, such determination may be made using the unified WW-SLU component 130 described herein.

[0082] Wakeword detection is typically performed without performing linguistic analysis, textual analysis, or semantic analysis. Instead, the audio data is analyzed to determine if specific characteristics of the audio data match preconfigured acoustic waveforms, audio signatures, or other data corresponding to a wakeword.

[0083] One approach for wakeword detection applies general large vocabulary continuous speech recognition (LVCSR) systems to decode audio signals, with wakeword searching being conducted in the resulting lattices or confusion networks. Another approach for wakeword detection builds HMMs for each wakeword and non-wakeword speech signals, respectively. The non-wakeword speech includes other spoken words, background noise, etc. There can be one or more HMMs built to model the non-wakeword speech characteristics, which are named filler models. Viterbi decoding is used to search the best path in the decoding graph, and the decoding output is further processed to make the decision on wakeword presence. This approach can be extended to include discriminative information by incorporating a hybrid deep neural network (DNN)-HMM decoding framework. In another example, wakeword detection may be built on DNN / recursive neural network (RNN) structures directly, without HMM being involved. Such an architecture may estimate the posteriors of wakewords with context data, either by stacking frames within a context window for DNN, or using RNN. Follow-on posterior threshold tuning or smoothing is applied for decision making. Other techniques for wakeword detection, such as those known in the art, may also be used.

[0084] In various embodiments, the device 110 may behave differently depending on which wakeword is used. For example, in a multi-user environment, different users may use different wakewords, and the device 110 may tailor its operation in response to a particular user / wakeword matching. The device 110 may, for example, access a user profile associated with a particular wakeword and load device preferences or device usage history stored in the user profile. In other embodiments, a first wakeword may be associated with a first mode of operation of the device 110 and a second wakeword may be associated with a second mode of operation of the device 110. The first mode of operation may be, for example, a personal assistant, and the second mode of operation may be navigation (such as automobile navigation).

[0085] In another example, the device 110 may be configured to process commands associated with a first wakeword using a different set of components than commands associated with a second wakeword. For example, if an utterance includes the wakeword “Alexa,” audio data for that wakeword may be sent to a first speech processing system for speech processing and / or command execution. If an utterance includes the wakeword “Ok Google,” audio data for that wakeword may be sent to a second speech processing system for speech processing and / or command execution. In another example the system may also use different wakewords for different skills within a same speech processing system. For example, a user may speak “Ford” as a special wakeword to invoke a specific skill or processing pipeline within a first speech processing system (e.g., a speech processing system that may otherwise be invoked by speaking “Alexa”). Use of the special “Ford” wakeword may result in different routing of the utterance through the first speech processing system than use of a standard wakeword such as “Alexa.” Thus the device 110 using the techniques described herein may process incoming audio to determine a first confidence that a detected wakeword is a first wakeword associated with a first speech processing pipeline (which may be a first speech processing system or a first pipeline (e.g., skill, etc.) within the first speech processing system) as well as determine a second confidence that the detected wakeword is a second wakeword associated with a second speech processing pipeline (which may be a second speech processing system or a second, different, pipeline (e.g., skill, etc.) within the second speech processing system. The different systems / pipelines may be associated with different ASR processing, different NLU processing, different commands / intents, or other differences.

[0086] In other examples, the user 105 may provide another type of input, such as selection of a button, selection of displayed graphical interface elements, typing an input, performing a gesture, etc. Input data corresponding to the provided input may be sent by the device 110 to the system 120 for processing.

[0087] The system 120 may include an orchestrator component 730 configured to, among other things, coordinate data transmissions between components of the system 120. The orchestrator component 730 may receive the audio data 108 from the device 110, and send the audio data 108 to an ASR component 750.

[0088] The ASR component 750 transcribes the audio data 108 into ASR data including one or more ASR hypotheses. An ASR hypothesis may be configured as a textual interpretation of the speech in the audio data 108, or may be configured in another manner, such as one or more tokens. Each ASR hypothesis may represent a different likely interpretation of the speech in the audio data 108. Each ASR hypothesis may be associated with a score (e.g., confidence score, probability score, or the like) representing the associated ASR hypothesis correctly represents the speech in the audio data 108.

[0089] The ASR component 750 interprets the speech in the audio data based on a similarity between the audio data and pre-established language models. For example, the ASR component 750 may compare the audio data 108 with models for sounds (e.g., subword units, such as phonemes, etc.) and sequences of sounds to identify words that match the sequence of sounds of the speech represented in the audio data. In some embodiments, the ASR component 750 may use acoustic models and language models to determine one or more words represented in the speech in the audio data.

[0090] In some embodiments, the ASR component 750 may use a neural network, such as, a recurrent neural network (RNN) (or other type of neural networks) to determine the ASR data corresponding to the speech captured in the audio data. In some embodiments, the ASR component 750 may use a RNN-transducer model, which may feed the prediction from a previous time step (e.g., a predicted token corresponding to a previous audio frame) an input layer to process the next time step (e.g., to predict the next token corresponding to the subsequent / next audio frame).

[0091] In at least some instances, instead of the device 110 receiving a spoken natural language input, the device 110 may receive a textual (e.g., types) natural language input. The device 110 may determine text data representing the textual natural language input, and may send the text data to the system 120, wherein the text data is received by the orchestrator component 730. The orchestrator component 730 may send the text data or ASR data, depending on the type of natural language input received, to a NLU component 760.

[0092] The NLU component 760 processes the ASR data or text data to determine one or more NLU hypotheses embodied in NLU output data. The NLU component 760 may perform intent classification (IC) processing on the ASR output data or text data to determine an intent of the natural language input. An intent corresponds to an action to be performed that is responsive to the natural language input. To perform IC processing, the NLU component 760 may communicate with a database of words linked to intents. For example, a music intent database may link words and phrases such as “quiet,”“volume off,” and “mute” to a <Mute> intent. The NLU component 760 identifies intents by comparing words and phrases in ASR output data or text data to the words and phrases in an intents database. In some embodiments, the NLU component 760 may communicate with multiple intents databases, with each intents database corresponding to one or more intents associated with a particular skill.

[0093] For example, IC processing of the natural language input “play my workout playlist” may determine an intent of <PlayMusic>. For further example, IC processing of the natural language input “call mom” may determine an intent of <Call>. In another example, IC processing of the natural language input “call mom using video” may determine an intent of <VideoCall>. In yet another example, IC processing of the natural language input “what is today's weather” may determine an intent of <OutputWeather>.

[0094] The NLU component 760 may also perform named entity recognition (NER) processing on the ASR output data or text data to determine one or more portions, sometimes referred to as slots, of the natural language input that may be needed for post-NLU processing (e.g., processing performed by a skill). For example, NER processing of the natural language input “play [song name]” may determine an entity type of “SongName” and an entity value corresponding to the indicated song name. For further example, NER processing of the natural language input “call mom” may determine an entity type of “Recipient” and an entity value corresponding to “mom.” In another example, NER processing of the natural language input “what is today's weather” may determine an entity type of “Date” and an entity value of “today.”

[0095] In at least some embodiments, the intents identifiable by the NLU component 760 may be linked to one or more grammar frameworks with entity types to be populated with entity values. Each entity type of a grammar framework corresponds to a portion of ASR output data or text data that the NLU component 760 believes corresponds to an entity value. For example, a grammar framework corresponding to a <PlayMusic> intent may correspond to sentence structures such as “Play {Artist Name},”“Play {Album Name},”“Play {Song name},”“Play {Song name} by {Artist Name},” etc.

[0096] For example, the NLU component 760 may perform NER processing to identify words in ASR output data or text data as subject, object, verb, preposition, etc. based on grammar rules and / or models. Then, the NLU component 760 may perform IC processing using the identified verb to identify an intent. Thereafter, the NLU component 760 may again perform NER processing to determine a grammar model associated with the identified intent. For example, a grammar model for a <PlayMusic> intent may specify a list of entity types applicable to play the identified “object” and any object modifier (e.g., a prepositional phrase), such as {Artist Name}, {Album Name}, {Song name}, etc. The NER processing may then involve searching corresponding fields in a lexicon, attempting to match words and phrases in the ASR output data that NER processing previously tagged as a grammatical object or object modifier with those identified in the lexicon.

[0097] NER processing may include semantic tagging, which is the labeling of a word or combination of words according to their type / semantic meaning. NER processing may include parsing ASR output data or text data using heuristic grammar rules, or a model may be constructed using techniques such as hidden Markov models, maximum entropy models, log linear models, conditional random fields (CRFs), and the like. For example, NER processing with respect to a music skill may include parsing and tagging ASR output data or text data corresponding to “play mother's little helper by the rolling stones” as {Verb}: “Play,” {Object}: “mother's little helper,” {Object Preposition}: “by,” and {Object Modifier}: “the rolling stones.” The NER processing may identify “Play” as a verb based on a word database associated with the music skill, which IC processing determines corresponds to a <PlayMusic> intent.

[0098] The NLU component 760 may generate NLU output data including one or more NLU hypotheses, with each NLU hypothesis including an intent and optionally one or more entity types and corresponding entity values. In some embodiments, the NLU component 760 may perform IC processing and NER processing with respect to different skills. One skill may support the same or different intents than another skill. Thus, the NLU output data may include multiple NLU hypotheses, with each NLU hypothesis corresponding to IC processing and NER processing performed on the ASR output or text data with respect to a different skill.

[0099] As described above, the system 120 may perform speech processing using two different components (e.g., the ASR component 750 and the NLU component 760). In at least some embodiments, the system 120 may implement a spoken language understanding (SLU) component 740 configured to process audio data 108 to determine NLU output data.

[0100] The SLU component 740 may be equivalent to a combination of the ASR component 750 and the NLU component 760. Yet, the SLU component 740 may process audio data 108 and directly determine the NLU output data, without an intermediate step of generating ASR output data. As such, the SLU component 740 may take audio data 108 representing a spoken natural language input and attempt to make a semantic interpretation of the spoken natural language input. That is, the SLU component 740 may determine a meaning associated with the spoken natural language input and then implement that meaning. For example, the SLU component 740 may interpret audio data 108 representing a spoken natural language input in order to derive a desired action. The SLU component 740 may output a most likely NLU hypothesis, or multiple NLU hypotheses associated with respective confidence or other scores (such as probability scores, etc.).

[0101] As used herein, a “domain” may refer to a collection of related functionality. A domain may be associated with one or more skills performing related functionality may be part of a domain. A non-limiting list of domains includes a smart home domain (corresponding to smart home functionality), a music domain (corresponding to music functionality), a video domain (corresponding to video functionality), a weather domain (corresponding to weather functionality), a communications domain (corresponding to one- or two-way communications functionality), and a shopping domain (corresponding to shopping functionality).

[0102] As used herein, a “skill” may refer to software, that may be placed on a machine or a virtual machine (e.g., software that may be launched in a virtual instance when called), configured to process natural language understanding (NLU) output data (e.g., including an intent and optionally one or more entities) and perform one or more actions in response thereto. What is referred to herein as a skill may sometimes be referred to as an application, bot, action, or the like. A group of skills of related functionality may be associated with a domain. For example, a first music skill and a second music skill may be associated with a music domain.

[0103] The system 120 may include one or more skill components 790 and / or may communicate with one or more skill systems 725. A “skill” may refer to software, that may be placed on a machine or a virtual machine (e.g., software that may be launched in a virtual instance when called), configured to process NLU output data and perform one or more actions in response thereto. For example, for NLU output data including a <PlayMusic> intent, an “artist” entity type, and an artist name as an entity value, a music skill may be called to output music sung by the indicated artist. For further example, for NLU output data including a <TurnOn> intent, a “device” entity type, and an entity value of “lights,” a smart home skill may be called to cause one or more “smart” lights to operate in an “on” state. In another example, for NLU output data including an <OutputWeather> intent, a “location” entity type, and an entity value corresponding to a geographic location of the device 110, a weather skill may be called to output weather information for the geographic location. For further example, for NLU output data including a <BookRide> intent, a taxi skill may be called to book a requested ride. In another example, for NLU output data including a <BuyPizza> intent, a restaurant skill may be called to place an order for a pizza.

[0104] A skill 790 may operate in conjunction between the system 120 and other devices, such as the device 110, a restaurant electronic ordering system, a taxi electronic booking system, etc. in order to complete certain functions. Inputs to a skill 790 may come from speech processing interactions or through other interactions or input sources.

[0105] A skill 790 may be associated with a domain, a non-limiting list of which includes a smart home domain, a music domain, a video domain, a weather domain, a communications domain, a flash briefing domain, a shopping domain, and a custom domain.

[0106] The system 120 may include a TTS component 780 that generates audio data including synthesized speech. The data input to the TTS component 780 may come from a skill system 725, the orchestrator component 730, or another component of the system 120.

[0107] In one method of synthesis called unit selection, the TTS component 780 matches input data against a database of recorded speech. The TTS component 780 selects matching units of recorded speech and concatenates the units together to form audio data. In another method of synthesis called parametric synthesis, the TTS component 780 varies parameters such as frequency, volume, and noise to determine audio data including an artificial speech waveform. Parametric synthesis uses a computerized voice generator, sometimes called a vocoder.

[0108] The system 120 may include a user recognition component 795. The user recognition component 795 may recognize one or more users using various data. The user recognition component 795 may take as input the audio data 108. The user recognition component 795 may perform user recognition by comparing speech characteristics, in the audio data 108, to stored speech characteristics of users. The user recognition component 795 may additionally or alternatively perform user recognition by comparing biometric data (e.g., fingerprint data, iris data, retina data, etc.), received by the system 120 in correlation with a natural language input, to stored biometric data of users. The user recognition component 795 may additionally or alternatively perform user recognition by comparing image data (e.g., including a representation of at least a feature of a user), received by the system 120 in correlation with a natural language input, with stored image data including representations of features of different users. The user recognition component 795 may perform other or additional user recognition processes, including those known in the art. For a particular natural language input, the user recognition component 795 may perform processing with respect to stored data of users associated with the device 110 that received the natural language input.

[0109] The user recognition component 795 determines whether a natural language input originated from a particular user. For example, the user recognition component 795 may determine a first value representing a likelihood that a natural language input originated from a first user, a second value representing a likelihood that the natural language input originated from a second user, etc. The user recognition component 795 may also determine an overall confidence regarding the accuracy of user recognition processing.

[0110] The user recognition component 795 may output a single user identifier corresponding to the most likely user that originated the natural language input. Alternatively, the user recognition component 795 may output multiple user identifiers (e.g., in the form of an N-best list) with respective values representing likelihoods of respective users originating the natural language input. The output of the user recognition component 795 may be used to inform NLU processing, processing performed by a skill system 725, as well as processing performed by other components of the system 120 and / or other systems.

[0111] The system 120 may include profile storage 770. The profile storage 770 may include a variety of data related to individual users, groups of users, devices, etc. that interact with the system 120. As used herein, a “profile” refers to a set of data associated with a user, group of users, device, etc. The data of a profile may include preferences specific to the user, group of users, device, etc.; input and output capabilities of one or more devices; internet connectivity data; user bibliographic data; subscription data; skill enablement data; and / or other data.

[0112] The profile storage 770 may include one or more user profiles. Each user profile may be associated with a different user identifier. Each user profile may include various user identifying data (e.g., name, gender, address, language(s), etc.). Each user profile may also include preferences of the user. Each user profile may include one or more device identifiers, each representing a respective device registered to the user. Each user profile may include skill identifiers of skill systems 725 that the user has enabled. When a user enables a skill system 725, the user is providing the system 120 with permission to allow the skill system 725 to execute with respect to the user's natural language inputs. If a user does not enable a skill system 725, the system 120 may not execute the skill system 725 with respect to the user's natural language inputs.

[0113] The profile storage 770 may include one or more group profiles. Each group profile may be associated with a different group identifier. A group profile may be specific to a group of users. That is, a group profile may be associated with two or more individual user profiles. For example, a group profile may be a household profile that is associated with user profiles associated with multiple users of a single household. A group profile may include preferences shared by all the user profiles associated therewith. Each user profile associated with a group profile may additionally include preferences specific to the user associated therewith. That is, a user profile may include preferences unique from one or more other user profiles associated with the same group profile. A user profile may be a stand-alone profile or may be associated with a group profile. A group profile may be associated with (or include) one or more device profiles corresponding to one or more devices associated with the group profile.

[0114] The profile storage 770 may include one or more device profiles. Each device profile may be associated with a different device identifier. A device profile may include various device identifying data, input / output characteristics, networking characteristics, etc. A device profile may also include one or more user identifiers, corresponding to one or more user profiles associated with the device profile. For example, a household device's profile may include the user identifiers of users of the household.

[0115] The foregoing describes illustrative components and processing of the system 120. The following describes illustrative components and processing of the device 110. As illustrated in FIG. 8, in at least some embodiments the system 120 may receive the audio data 108 from the device 110, to recognize speech corresponding to a spoken natural language in the received audio data 108, and to perform functions in response to the recognized speech. In at least some embodiments, these functions involve sending directives (e.g., commands), from the system 120 to the device 110 to cause the device 110 to perform an action, such as output synthesized speech (responsive to the spoken natural language input) via a loudspeaker(s), and / or control one or more secondary devices by sending control commands to the one or more secondary devices.

[0116] Thus, when the device 110 is able to communicate with the system 120 over the network(s) 199, some or all of the functions capable of being performed by the system 120 may be performed by sending one or more directives over the network(s) 199 to the device 110, which, in turn, may process the directive(s) and perform one or more corresponding actions. For example, the system 120, using a remote directive that is included in response data (e.g., a remote response), may instruct the device 110 to output synthesized speech via a loudspeaker(s) of (or otherwise associated with) the device 110, to output content (e.g., music) via the loudspeaker(s) of (or otherwise associated with) the device 110, to display content on a display of (or otherwise associated with) the device 110, and / or to send a directive to a secondary device (e.g., a directive to turn on a smart light). It will be appreciated that the system 120 may be configured to provide other functions in addition to those discussed herein, such as, without limitation, providing step-by-step directions for navigating from an origin location to a destination location, conducting an electronic commerce transaction on behalf of the user 105 as part of a shopping function, establishing a communication session (e.g., an audio or video call) between the user 105 and another user, and so on.

[0117] In at least some embodiments, a hybrid selector 824, of the device 110, may send the audio data 108 to the unified WW-SLU component 130. If a wakeword is detected in the audio data 108, the unified WW-SLU component 130 may send an indication of such detection to the hybrid selector 824. In response to receiving the indication, the hybrid selector824 may send the audio data 108 to the system 120 for processing. The unified WW-SLU component 130 may also send an indication, to the hybrid selector 824, representing a wakeword was not detected / undetected. In response to receiving such an indication, the hybrid selector 824 may refrain from sending the audio data 108 to the system 120. In this situation, the audio data 108 can be discarded.

[0118] In some embodiments, the device 110 may include a system-directed input detector 885 configured to determine whether received user inputs are directed to the system 120 / the device 110. An example embodiment of the system-directed input detector 885 is described below in relation to FIG. 9. In some embodiments, the system 120 may also include a similar component configured to determine whether received user inputs are directed to the system 120.

[0119] The device 110 may conduct its own speech processing using on-device language processing components, such as the unified WW-SLU component 130 described herein. The device 110 may also include an ASR component 850 configured to process in a similar manner as the ASR component 750. In some embodiments, the ASR component 850 may use neural network based (e.g., an RNN-T architecture) techniques to transcribe the audio data 108. The device 110 may also include an NLU component 860 configured to process in a similar manner as the NLU component 760. The device 110 may additionally or alternatively include a SLU component 840 configured to determine meaning (e.g., intent, entities, an action requested by a user, etc.) of a spoken input by processing audio data 108. The SLU component 840 may be configured to process in a similar manner as the SLU component 740. In some embodiments, the ASR component 850, the NLU component 860 and / or the SLU component 840 may process in parallel of the WW-SLU component 130. In other embodiments, processing by the ASR component 850, the NLU component 860 and / or the SLU component 840 may be initiated in response to the wakeword detection component 140 outputting a wakeword-detected indicator or the system-directed input detector 885 outputting a system-directed input-detected indicator. In yet other embodiments, processing by the ASR component 850, the NLU component 860 and / or the SLU component 840 may be initiated if the SLU component 150 is unable to determine an intent and / or entity corresponding to the spoken input.

[0120] The device 110 may also internally include, or otherwise have access to, other components such as one or more skill components 890, a TTS component 880 (configured to process in a similar manner to the TTS component 780), a user recognition component 895 (configured to process in a similar manner to the user recognition component 795), profile storage 870 (configured to store similar profile data to the profile storage 770), and other components. In at least some embodiments, the profile storage 870 may only store profile data for a user or group of users specifically associated with the device 110. Some of the components included in the device 110 may be customized or specifically configured for the user 105 or a group of users associated with the device 110.

[0121] In at least some embodiments, the on-device language processing components may not have the same capabilities as the language processing components implemented by the system 120. For example, the on-device language processing components may be configured to handle only a subset of the natural language inputs that may be handled by the speech processing system-implemented language processing components. For example, such subset of natural language inputs may correspond to local-type natural language inputs, such as those controlling devices or components associated with a user's home. In such circumstances the on-device language processing components may be able to more quickly interpret and respond to a local-type natural language input, for example, than processing that involves the system 120. If the device 110 attempts to process a natural language input for which the on-device language processing components are not necessarily best suited, the NLU output data, determined by the on-device components, may have a low confidence or other metric indicating that the processing by the on-device language processing components may not be as accurate as the processing done by the system 120.

[0122] The hybrid selector 824, of the device 110, may include a hybrid proxy (HP) 826 configured to proxy traffic to / from the system 120. For example, the HP 826 may be configured to send messages to / from a hybrid execution controller (HEC) 827 of the hybrid selector 824. For example, command / directive data received from the system 120 can be sent to the HEC 827 using the HP 826. The HP 826 may also be configured to allow the audio data 108 to pass to the system 120 while also receiving (e.g., intercepting) this audio data 108 and sending the audio data 108 to the HEC 827.

[0123] In at least some embodiments, the hybrid selector 824 may further include a local request orchestrator (LRO) 828 configured to notify the SLU component 840 about the availability of the audio data 108, and to otherwise initiate the operations of on-device language processing when the audio data 108 becomes available. In general, the hybrid selector 824 may control execution of on-device language processing, such as by sending “execute” and “terminate” events / instructions. An “execute” event may instruct a component to continue any suspended execution (e.g., by instructing the component to execute on a previously-determined intent in order to determine a directive). Meanwhile, a “terminate” event may instruct a component to terminate further execution, such as when the device 110 receives directive data from the system 120 and chooses to use that remotely-determined directive data.

[0124] Thus, when the audio data 108 is received, the HP 826 may allow the audio data 108 to pass through to the system 120 and the HP 826 may also input the audio data 108 to the unified WW-SLU component 130 by routing the audio data 108 through the HEC 827 of the hybrid selector 824, whereby the LRO 828 notifies the unified WW-SLU component 130 of the audio data 108. At this point, the hybrid selector 824 may wait for response data from either or both the system 120 and / or the on-device language processing components. However, the disclosure is not limited thereto, and in some examples the hybrid selector 824 may send the audio data 108 only to the unified WW-SLU component 130 without departing from the disclosure. For example, the device 110 may process the audio data 108 on-device without sending the audio data 108 to the system 120.

[0125] The unified WW-SLU component 130 is configured to receive the audio data 108 from the hybrid selector 824, and to determine an intent from the audio data (an optionally one or more named entities). The device 110 may determine how to act on the intent by generating NLU output data that may include directive data (e.g., instructing a component to perform an action). In some cases, a directive may include a description of the intent (e.g., an intent to turn off {device A}). In some cases, a directive may include (e.g., encode) an identifier of a second device(s), such as kitchen lights, and an operation to be performed at the second device(s). Directive data may be formatted using Java, such as JavaScript syntax, or JavaScript-based syntax. This may include formatting the directive using JSON. In at least some embodiments, a device-determined directive may be serialized, much like how remotely-determined directives may be serialized for transmission in data packets over the network(s) 199. In at least some embodiments, a device-determined directive may be formatted as a programmatic application programming interface (API) call with a same logical operation as a remotely-determined directive. In other words, a device-determined directive may mimic a remotely-determined directive by using a same, or a similar, format as the remotely-determined directive.

[0126] A NLU hypothesis (output by the unified WW-SLU component 130) may be selected as usable to respond to a natural language input, and local response data may be sent (e.g., local NLU output data, local knowledge base information, internet search results, and / or local directive data) to the hybrid selector 824, such as a “ReadyToExecute” response. The hybrid selector 824 may then determine whether to use directive data from the on-device components to respond to the natural language input, to use directive data received from the system 120, assuming a remote response is even received (e.g., when the device 110 is able to access the system 120 over the network(s) 199), or to determine output data requesting additional information from the user 5.

[0127] The device 110 and / or the system 120 may associate a unique identifier with each natural language input. The device 110 may include the unique identifier when sending the audio data 108 to the system 120, and the response data from the system 120 may include the unique identifier to identify to which natural language input the response data corresponds.

[0128] In at least some embodiments, the device 110 may include one or more skill components 890 that may process similarly to the speech processing system-implemented skill component(s) 790. The skill component(s) 890 installed on (or in communication with) the device 110 may include, without limitation, a smart home skill and / or a device control skill configured to control a second device(s), a music skill configured to output music, a navigation skill configured to output directions, a shopping skill configured to conduct an electronic purchase, and / or the like.

[0129] One or more of the components described herein may employ a machine learning (ML) model(s). Generally, ML models may be trained and operated according to various machine learning techniques. Such techniques may include, for example, neural networks (such as deep neural networks and / or recurrent neural networks), inference engines, trained classifiers, etc. Examples of trained classifiers include Support Vector Machines (SVMs), neural networks, decision trees, AdaBoost (short for “Adaptive Boosting”) combined with decision trees, and random forests. Focusing on SVM as an example, SVM is a supervised learning model with associated learning algorithms that analyze data and recognition patterns in the data, and which are commonly used for classification and regression analysis. Given a set of training examples, each marked as belonging to one of two categories, an SVM training algorithm builds a model that assigns new examples into one category or the other, making it a non-probabilistic binary linear classifier. More complex SVM models may be built with the training set identifying more than two categories, with the SVM determining which category is most similar to input data. An SVM model may be mapped so that the examples of the separate categories are divided by clear gaps. New examples are then mapped into that same space and predicted to belong to a category based on which side of the gaps they fall on. Classifiers may issue a “score” indicating which category the data most closely matches. The score may provide an indication of how closely the data matches the category.

[0130] In order to apply machine learning techniques, machine learning processes themselves need to be trained. Training a machine learning model requires establishing a “ground truth” for the training examples. In machine learning, the term “ground truth” refers to the accuracy of a training set's classification for supervised learning techniques. Various techniques may be used to train the models including backpropagation, statistical learning, supervised learning, semi-supervised learning, stochastic learning, or other known techniques.

[0131] Configuration and operation of the system directed input detector 885 is illustrated in FIG. 9. As shown in FIG. 9, the system directed input detector 885 may include a number of different components. First, the system directed input detector 885 may include a voice activity detector (VAD) 920. The VAD 920 may operate to detect whether the incoming audio data 108 includes speech or not. The VAD output 921 may be a binary indicator. Thus, if the incoming audio data 108 includes speech, the VAD 920 may output an indicator 921 that the audio data 108 does includes speech (e.g., a 1) and if the incoming audio data 108 does not includes speech, the VAD 920 may output an indicator 921 that the audio data 108 does not include speech (e.g., a 0). The VAD output 921 may also be a score (e.g., a number between 0 and 1) corresponding to a likelihood that the audio data 108 includes speech. The VAD 920 may also perform start-point detection as well as end-point detection where the VAD 920 determines when speech starts in the audio data 108 and when it ends in the audio data 108. Thus the VAD output 921 may also include indicators of a speech start point and / or a speech endpoint for use by other components of the system. (For example, the start-point and end-points may demarcate the audio data 108 that is sent to the system 120 component.) The VAD output 921 may be associated with a same unique ID as the audio data 108 for purposes of tracking system processing across various components.

[0132] The VAD 920 may operate using a variety of VAD techniques, including those described above with regard to VAD operations performed by device 110. The VAD may be configured to be robust to background noise so as to accurately detect when audio data actually includes speech or not. In some embodiments, the VAD 920 may operate on raw audio data 108 such as that sent by device 110 or may operate on the feature data 136 (determined by the encoder 135 shown in FIG. 1) corresponding to the audio data 108. For example, the VAD 920 may take the form of a deep neural network (DNN) and may operate on a single feature vector representing the entirety of audio data 108 received from the device or may operate on multiple feature vectors, for example feature vectors representing frames of audio data where each frame covers a certain amount of time of audio data (e.g., 25 ms). The VAD 920 may also operate on other data 981 that may be useful in detecting voice activity in the audio data 108. For example, the other data 981 may include results of anchored speech detection where the system takes a representation (such as a voice fingerprint, reference feature vector, etc.) of a reference section of speech (such as speech of a voice that uttered a previous command to the system that included a wakeword) and compares a voice detected in the audio data 108 to determine if that voice matches a voice in the reference section of speech. If the voices match, that may be an indicator to the VAD 920 that speech was detected. If not, that may be an indicator to the VAD 920 that speech was not detected / undetected. (For example, a representation may be taken of voice data in the first input audio data which may then be compared to the second input audio data to see if the voices match. If they do (or do not) that information may be considered by the VAD 920.) The VAD 920 may also consider other data when determining if speech was detected. The VAD 920 may also consider speaker ID information (such as may be output by user recognition component 795), directionality data that may indicate what direction (relative to the capture device 110) the incoming audio was received from. Such directionality data may be received from the device 110 and may have been determined by a beamformer or other component of device 110. The VAD 920 may also consider data regarding a previous utterance which may indicate whether the further audio data received by the system is likely to include speech. Other VAD techniques may also be used.

[0133] In some embodiments, the VAD 920 may be an additional or alternative branch / component of the unified component 130, where the VAD 920 process the feature data 136 in parallel of or instead of the component 130. Also, the SLU component 150 may process in parallel of the VAD 920.

[0134] If the VAD output 921 indicates that no speech was detected the system (through orchestrator 730 or some other component) may discontinue processing with regard to the audio data 108, thus saving computing resources that might otherwise have been spent on other processes (e.g., ASR for the audio data 108, etc.). If the VAD output 921 indicates that speech was detected, the system may make a determination as to whether the speech was or was not directed to the speech-processing system. Such a determination may be made by the system directed audio detector 940. The system directed audio detector 940 may include a trained model, such as a DNN, that operates on a feature vector which represent certain data that may be useful in determining whether or not speech is directed to the system. To create the feature vector operable by the system directed audio detector 940, a feature extractor 930 may be used. The feature extractor 930 may input ASR results 910 which include results from the processing of the audio data 108 by a speech recognition component. For privacy protection purposes, in certain configurations the ASR results 910 may be obtained from a ASR component located on device 110 or on a home remote component as opposed to the ASR component 750 located on a cloud or other remote system 120 so that audio data 108 is not sent remote from the user's home unless the system directed input detector component 885 has determined that the input is system directed. Though this may be adjusted depending on user preferences / system configuration.

[0135] The ASR results 910 may include an N-best list of top scoring ASR hypotheses and their corresponding scores, portions (or all of) an ASR lattice / trellis with scores, portions (or all of) an ASR search graph with scores, portions (or all of) an ASR confusion network with scores, or other such ASR output. As an example, the ASR results 910 may include a trellis, which may include a raw search graph as scored during ASR decoding. The ASR results 910 may also include a lattice, which may be a trellis as scored that has been pruned to remove certain hypotheses that do not exceed a score threshold or number of hypotheses threshold. The ASR results 910 may also include a confusion network where paths from the lattice have been merged (e.g., merging hypotheses that may share all or a portion of a same word). The confusion network may be a data structure corresponding to a linear graph that may be used as an alternate representation of the most likely hypotheses of the decoder lattice. The ASR results 910 may also include corresponding respective scores (such as for a trellis, lattice, confusion network, individual hypothesis, N-best list, etc.)

[0136] The ASR results 910 (or other data 991) may include other ASR result related data such as other features from the ASR system or data determined by another component. For example, the system may determine an entropy of the ASR results (for example a trellis entropy or the like) that indicates a how spread apart the probability mass of the trellis is among the alternate hypotheses. A large entropy (e.g., large spread of probability mass over many hypotheses) may indicate the ASR component being less confident about its best hypothesis, which in turn may correlate to detected speech not being device directed. The entropy may be a feature included in other data 991 to be considered by the system directed audio detector 940.

[0137] The system may also determine and consider ASR decoding costs, which may include features from Viterbi decoding costs of the ASR. Such features may indicate how well the input acoustics and vocabulary match with the acoustic models and language models of the ASR component. Higher Viterbi costs may indicate greater mismatch between the model and the given data, which may correlate to detected speech not being device directed. Confusion network feature may also be used. For example, an average number of arcs (where each arc represents a word) from a particular node (representing a potential join between two words) may measure how many competing hypotheses there are in the confusion network. A large number of competing hypotheses may indicate that the ASR component is less confident about the top hypothesis, which may correlate to detected speech not being device directed. Other such features or data from the ASR results 910 may also be used as other data 991.

[0138] The ASR results 910 may be represented in a system directed detector (SDD) feature vector 931 that can be used to determine whether speech was system-directed. The feature vector 931 may represent the ASR results 910 but may also represent audio data 108 (which may be input to feature extractor 930) or other information. Such ASR results may be helpful in determining if speech was system-directed. For example, if ASR results include a high scoring single hypothesis, that may indicate that the speech represented in the audio data 108 is directed at, and intended for, the device 110. If, however, ASR results do not include a single high scoring hypothesis, but rather many lower scoring hypotheses, that may indicate some confusion on the part of the speech recognition component and may also indicate that the speech represented in the audio data 108 was not directed at, nor intended for, the device 110.

[0139] The ASR results 910 may include complete ASR results, for example ASR results corresponding to all speech between a startpoint and endpoint (such as a complete lattice, etc.). In this configuration the system may wait until all ASR processing for a certain input audio has been completed before operating the feature extractor 930 and system directed audio detector 940. Thus the system directed audio detector 940 may receive a feature vector 931 that includes all the representations of the audio data 108 created by the feature extractor 930. The system directed audio detector 940 may then operate a trained model (such as a DNN) on the feature vector 931 to determine a score corresponding to a likelihood that the audio data 108 includes a representation of system-directed speech. If the score is above a threshold, the system directed audio detector 940 may determine that the audio data 108 does include a representation of system-directed speech. The SDD result 942 may include an indicator of whether the audio data includes system-directed speech, a score, and / or some other data.

[0140] The ASR results 910 may also include incomplete ASR results, for example ASR results corresponding to only some speech between a between a startpoint and endpoint (such as an incomplete lattice, etc.). In this configuration the feature extractor 930 / system directed audio detector 940 may be configured to operate on incomplete ASR results 910 and thus the system directed audio detector 940 may be configured to output an SSD result 942 that provides an indication as to whether the portion of audio data processed (that corresponds to the incomplete ASR results) corresponds to system directed speech. The system may thus be configured to perform ASR at least partially in parallel with the system directed audio detector 940 to process ASR result data as it is ready and thus continually update an SDD result 942. Once the system directed input detector 885 has processed enough ASR results and / or the SDD result 942 exceeds a threshold, the system may determine that the audio data 108 includes system-directed speech. Similarly, once the system directed input detector 885 has processed enough ASR results and / or the SDD result 942 drops below another threshold, the system may determine that the audio data 108 does not include system-directed speech.

[0141] The SDD result 942 may be associated with a same unique ID as the audio data 108 and VAD output 921 for purposes of tracking system processing across various components.

[0142] The feature extractor 930 may also incorporate in a feature vector 931 representations of other data 991. Other data 991 may include, for example, word embeddings from words output by the speech recognition component may be considered. Word embeddings are vector representations of words or sequences of words that show how specific words may be used relative to other words, such as in a large text corpus. A word embedding may be of a different length depending on how many words are in a text segment represented by the word embedding. For purposes of the feature extractor 930 processing and representing a word embedding in a feature vector 931 (which may be of a fixed length), a word embedding of unknown length may be processed by a neural network with memory, such as an LSTM (long short term memory) network. Each vector of a word embedding may be processed by the LSTM which may then output a fixed representation of the input word embedding vectors.

[0143] Other data 991 may also include, for example, NLU output from the NLU component 860 may be considered. Thus, if the NLU output data indicates a high correlation between the audio data 108 and an out-of-domain indication (e.g., no intent scores or overall domain scores reach a certain confidence threshold), this may indicate that the audio data 108 does not include system-directed speech. Other data 991 may also include, for example, an indicator of a user / speaker as output user recognition component 795. Thus, for example, if the user recognition component 795 does not indicate the presence of a known user, or indicates the presence of a user associated with audio data 108 that was not associated with a previous utterance, this may indicate that the audio data 108 does not include system-directed speech. The other data 991 may also include an indication that a voice represented in audio data 108 is the same (or different) as the voice detected in previous input audio data corresponding to a previous utterance. The other data 991 may also include directionality data, for example using beamforming or other audio processing techniques to determine a direction / location of a source of detected speech and whether that source direction / location matches a speaking user. The other data 991 may also include data indicating that a direction of a user's speech is toward a device 110 or away from a device 110, which may indicate whether the speech was system directed or not.

[0144] Other data 991 may also include image data 912. For example, if image data is detected from one or more devices that are nearby to the device 110 (which may include the device 110 itself) that captured the audio data being processed using the system directed input detector (885), the image data may be processed to determine whether a user is facing an audio capture device for purposes of determining whether speech is system-directed as further explained below.

[0145] Other data 991 may also dialog history data. For example, the other data 991 may include information about whether a speaker has changed from a previous utterance to the current audio data 108, whether a topic of conversation has changed from a previous utterance to the current audio data, how NLU results from a previous utterance compare to NLU results obtained using the current audio data 108, other system context information. The other data 991 may also include an indicator as to whether the audio data 108 was received as a result of a wake command or whether the audio data 108 was sent without the device 110 detecting a wake command (e.g., the device 110 being instructed by remote system 120 and / or determining to send the audio data without first detecting a wake command).

[0146] Other data 991 may also include information from the profile storage 770.

[0147] Other data 991 may also include direction data, for example data regarding a direction of arrival of speech detected by the device, for example a beam index number, angle data, or the like. If second audio data is received from a different direction than first audio data, then the system may be less likely to declare the second audio data to include system-directed speech since it is originating from a different location.

[0148] Other data 991 may also include acoustic feature data such as pitch, prosody, intonation, volume, or other data descriptive of the speech in the audio data 108. As a user may use a different vocal tone to speak with a machine than with another human, acoustic feature information may be useful in determining if speech is device-directed.

[0149] Other data 991 may also include an indicator that indicates whether the audio data 108 includes a wakeword. For example, if a device 110 detects a wakeword prior to sending the audio data 108 to the remote system 120, the device 110 may send along an indicator that the device 110 detected a wakeword in the audio data 108. In another example, the remote system 120 may include another component that processes incoming audio data 108 to determine if it includes a wakeword. If it does, the component may create an indicator indicating that the audio data 108 includes a wakeword. The indicator may then be included in other data 991 to be incorporated in the feature vector 931 and / or otherwise considered by the system directed audio detector 940.

[0150] Other data 991 may also include device history data such as information about previous operations related to the device 110 that sent the audio data 108. For example, the other data 991 may include information about a previous utterance that was just executed, where the utterance originated with the same device 110 as a current utterance and the previous utterance was within a certain time window of the current utterance. Device history data may be stored in a manner associated with the device identifier (which may also be included in other data 991), which may also be used to track other information about the device, such as device hardware, capability, location, etc.

[0151] The other data 981 used by the VAD 920 may include similar data and / or different data from the other data 991 used by the feature extractor 930. The other data 981 / 991 may thus include a variety of data corresponding to input audio from a previous utterance. That data may include acoustic data from a previous utterance, speaker ID / voice identification data from a previous utterance, information about the time between a previous utterance and a current utterance, or a variety of other data described herein taken from a previous utterance. A score threshold (for the system directed audio detector 940 and / or the VAD 920) may be based on the data from the previous utterance. For example, a score threshold (for the system directed audio detector 940 and / or the VAD 920) may be based on acoustic data from a previous utterance.

[0152] The feature extractor 930 may output a single feature vector 931 for one utterance / instance of input audio data 108. The feature vector 931 may consistently be a fixed length, or may be a variable length vector depending on the relevant data available for particular audio data 108. Thus, the system directed audio detector 940 may output a single SDD result 942 per utterance / instance of input audio data 108. The SDD result 942 may be a binary indicator. Thus, if the incoming audio data 108 includes system-directed speech, the system directed audio detector 940 may output an indicator 942 that the audio data 108 does includes system-directed speech (e.g., a 1) and if the incoming audio data 108 does not includes system-directed speech, the system directed audio detector 940 may output an indicator 942 that the audio data 108 does not system-directed includes speech (e.g., a 0). The SDD result 942 may also be a score (e.g., a number between 0 and 1) corresponding to a likelihood that the audio data 108 includes system-directed speech. Although not illustrated in FIG. 9, the flow of data to and from the system directed input detector 885 may be managed by the orchestrator 730 or by one or more other components.

[0153] The trained model(s) of the system directed audio detector 940 may be trained on many different examples of SDD feature vectors that include both positive and negative training samples (e.g., samples that both represent system-directed speech and non-system directed speech) so that the DNN and / or other trained model of the system directed audio detector 940 may be capable of robustly detecting when speech is system-directed versus when speech is not system-directed.

[0154] A further input to the system directed input detector 885 may include output data from TTS component 780 to avoid synthesized speech output by the system being confused as system-directed speech spoken by a user. The output from the TTS component 780 may allow the system to ignore synthesized speech in its considerations of whether speech was system directed. The output from the TTS component 780 may also allow the system to determine whether a user captured utterance is responsive to the TTS output, thus improving system operation.

[0155] The system directed input detector 885 may also use echo return loss enhancement (ERLE) and / or acoustic echo cancellation (AEC) data to avoid processing of audio data generated by the system.

[0156] As shown in FIG. 9, the system directed input detector 885 may simply user audio data to determine whether an input is system directed (for example, system directed audio detector 940 may output an SDD result 942). This may be true particularly when no image data is available (for example for a device without a camera). If image data 912 is available, however, the system may also be configured to use image data 912 to determine if an input is system directed. The image data 912 may include image data captured by device 110 and / or image data captured by other device(s) in the environment of device 110. The audio data 108, image data 912 and other data 981 may be timestamped or otherwise correlated so that the system directed input detector 885 may determine that the data being analyzed all relates to a same time window so as to ensure alignment of data considered with regard to whether a particular input is system directed. For example, the system directed input detector 885 may determine system directedness scores for every frame of audio data / every image of a video stream and may align and / or window them to determine a single overall score for a particular input that corresponds to a group of audio frames / images.

[0157] Image data 912 along with other data 981 may be received by feature extractor 935. The feature extractor may create one or more feature vectors 936 which may represent the image data 912 / other data 981. In certain examples, other data 981 may include data from an image processing component which may include information about faces, gesture, etc. detected in the image data 912. For privacy protection purposes, in certain configurations any image processing / results thereof may be obtained from an image processing component located on device 110 or on a home remote component as opposed to a image processing component located on a cloud or other remote system 120 so that image data 912 is not sent remote from the user's home unless the system directed input detector component 885 has determined that the input is system directed. Though this may be adjusted depending on user preferences / system configuration.

[0158] The feature vector 936 may be passed to the user detector 925. The user detector 925 (which may use various components / operations of user recognition component 795, etc.) may be configured to process image data 912 and / or feature vector 936 to determine information about the user's behavior which in turn may be used to determine if an input is system directed. For example, the user detector 925 may be configured to determine the user's position / behavior with respect to device 110 / system 100. The user detector 925 may also be configured to determine whether a user's mouth is opening / closing in a manner that suggests the user is speaking. The user detector 925 may also be configured to determine whether a user is nodding or shaking his / her head. The user detector 925 may also be configured to determine whether a user's gaze is directed to the device 110, to another user, or to another object. For example, the user detector 925 may include, or be configured to use data from, a gaze detector. The user detector 925 may also be configured to determine gestures of the user such as a shoulder shrug, pointing toward an object, a wave, a hand up to indicate an instruction to stop, or a fingers moving to indicate an instruction to continue, holding up a certain number of fingers, putting a thumb up, etc. The user detector 925 may also be configured to determine a user's position / orientation such as facing another user, facing the device 110, whether their back is turned, etc. The user detector 925 may also be configured to determine relative positions of multiple users that appear in image data (and / or are speaking in audio data 108 which may also be considered by the user detector 925 along with feature vector 931), for example which users are closer to a device 110 and which are farther away. The user detector 925 (and / or other component) may also be configured to identify other objects represented in image data and determine whether objects are relevant to a dialog or system interaction (for example determining if a user is referring to an object through a movement or speech).

[0159] The user detector 925 may operate one or more models (e.g., one or more classifiers) to determine if certain situations are represented in the image data 912. For example the user detector 925 may employ a visual directedness classifier that may determine, for each face detected in the image data 912 whether that face is looking at the device 110 or not. For example, a light-weight convolutional neural network (CNN) may be used which takes a face image cropped from the result of the face detector as input and output a [0,1] score of how likely the face is directed to the camera or not. Another technique may include to determine a three-dimensional (3D) landmark of each face, estimate the 3D angle of the face and predict a directness score based on the 3D angle.

[0160] The user detector 925 (or other component(s)) may be configured to track a face in image data to determine which faces represented may belong to a same person. The system may user IOU based tracker, a mean-shift based tracker, a particle filter based tracker or other technique.

[0161] The user detector 925 (or other component(s) such as those in user recognition component 795) may be configured to determine whether a face represented in image data belongs to a person who is speaking or not, thus performing active speaker detection. The system may take the output from the face tracker and aggregate a sequence of face from the same person as input and predict whether this person is speaking or not. Lip motion, user ID, detected voice data, and other data may be used to determine whether a user is speaking or not.

[0162] The system directed image detector 950 may then determine, based on information from the user detector 925 as based on the image data whether an input relating to the image data is system directed. The system directed image detector 950 may also operate on other input data, for example image data including raw image data 912, image data including feature data 936 based on raw image data, other data 981, or other data. The determination by the system directed image detector 950 may result in a score indicating whether the input is system directed based on the image data. If no audio data is available, the indication may be output as SDD result 942. If audio data is available, the indication may be sent to system directed detector 970 which may consider information from both system directed audio detector 940 and system directed image detector 950. The system directed detector 970 may then process the data from both system directed audio detector 940 and system directed image detector 950 to come up with an overall determination as to whether an input was system directed, which may be output as SDD result 942. The system directed detector 970 may consider not only data output from system directed audio detector 940 and system directed image detector 950 but also other data / metadata corresponding to the input (for example, image data / feature data 936, audio data / feature data 931, image data 912, audio data 108, or the like discussed with regard to FIG. 9. The system directed detector 970 may include one or more models which may analyze the various input data to make a determination regarding SDD result 942.

[0163] In one example the determination of the system directed detector 970 may be based on “AND” logic, for example determining an input is system directed only if affirmative data is received from both system directed audio detector 940 and system directed image detector 950. In another example the determination of the system directed detector 970 may be based on “OR” logic, for example determining an input is system directed if affirmative data is received from either system directed audio detector 940 or system directed image detector 950. In another example the data received from system directed audio detector 940 and system directed image detector 950 are weighted individually based on other information available to system directed detector 970 to determine to what extend audio and / or image data should impact the decision of whether an input is system directed.

[0164] If an input is determined to be system directed, the data related to the input may be sent to downstream components for further processing (e.g., to system 120). If an input is determined not to be system directed, the system may take no further action regarding the data related to the input and may allow it to be deleted. In certain configurations, to maintain privacy, the operations to determine whether an input is system directed are performed by device 110 (or home server(s) 120) and only if the input is determined to be system directed is further data (such as audio data 108 or image data 912) sent to a remote system 120 that is outside a user's home or other direct control.

[0165] FIG. 10 is a block diagram conceptually illustrating a device 110 of the system 100. FIG. 11 is a block diagram conceptually illustrating example components of a system, such as the system 120 and the skill(s) system 125. A system (120 / 125) may include one or more servers. A “server” as used herein may refer to a traditional server as understood in a server / client computing structure but may also refer to a number of different computing components that may assist with the operations discussed herein. For example, a server may include one or more physical computing components (such as a rack server) that are connected to other devices / components either physically and / or over a network and is capable of performing computing operations. A server may also include one or more virtual machines that emulates a computer system and is run on one or across multiple devices. A server may also include other combinations of hardware, software, firmware, or the like to perform operations discussed herein. The system (120 / 125) may be configured to operate using one or more of a client-server model, a computer bureau model, grid computing techniques, fog computing techniques, mainframe techniques, utility computing techniques, a peer-to-peer model, sandbox techniques, or other computing techniques.

[0166] Multiple systems (120 / 125) may be included in the system 100 of the present disclosure, such as, one or more systems 120 and / or one or more skills 125. In operation, each of these systems may include computer-readable and computer-executable instructions that reside on the respective device (120 / 125), as will be discussed further below.

[0167] Each of these devices (110 / 120 / 125) may include one or more controllers / processors (1004 / 1104), which may each include a central processing unit (CPU) for processing data and computer-readable instructions, and a memory (1006 / 1106) for storing data and instructions of the respective device. The memories (1006 / 1106) may individually include volatile random access memory (RAM), non-volatile read only memory (ROM), non-volatile magnetoresistive memory (MRAM), and / or other types of memory. Each device (110 / 120 / 125) may also include a data storage component (1008 / 1108) for storing data and controller / processor-executable instructions. Each data storage component (1008 / 1108) may individually include one or more non-volatile storage types such as magnetic storage, optical storage, solid-state storage, etc. Each device (110 / 120 / 125) may also be connected to removable or external non-volatile memory and / or storage (such as a removable memory card, memory key drive, networked storage, etc.) through respective input / output device interfaces (1002 / 1102).

[0168] Computer instructions for operating each device (110 / 120 / 125) and its various components may be executed by the respective device's controller(s) / processor(s) (1004 / 1104), using the memory (1006 / 1106) as temporary “working” storage at runtime. A device's computer instructions may be stored in a non-transitory manner in non-volatile memory (1006 / 1106), storage (1008 / 1108), or an external device(s). Alternatively, some or all of the executable instructions may be embedded in hardware or firmware on the respective device in addition to or instead of software.

[0169] Each device (110 / 120 / 125) includes input / output device interfaces (1002 / 1102). A variety of components may be connected through the input / output device interfaces (1002 / 1102), as will be discussed further below. Additionally, each device (110 / 120 / 125) may include an address / data bus (1024 / 1124) for conveying data among components of the respective device. Each component within a device (110 / 120 / 125) may also be directly connected to other components in addition to (or instead of) being connected to other components across the bus (1024 / 1124).

[0170] Referring to FIG. 10, the device 110 may include input / output device interfaces 1002 that connect to a variety of components such as an audio output component such as a speaker 1012, a wired headset or a wireless headset (not illustrated), or other component capable of outputting audio. The device 110 may also include an audio capture component. The audio capture component may be, for example, a microphone 1020 or array of microphones, a wired headset or a wireless headset (not illustrated), etc. If an array of microphones is included, approximate distance to a sound's point of origin may be determined by acoustic localization based on time and amplitude differences between sounds captured by different microphones of the array. The device 110 may additionally include a display 1016 for displaying content. The device 110 may further include a camera 1018.

[0171] Via antenna(s) 1014, the input / output device interfaces 1002 may connect to one or more networks 199 via a wireless local area network (WLAN) (such as Wi-Fi) radio, Bluetooth, and / or wireless network radio, such as a radio capable of communication with a wireless communication network such as a Long Term Evolution (LTE) network, WiMAX network, 3G network, 4G network, 5G network, etc. A wired connection such as Ethernet may also be supported. Through the network(s) 199, the system may be distributed across a networked environment. The I / O device interface (1002 / 1102) may also include communication components that allow data to be exchanged between devices such as different physical servers in a collection of servers or other components.

[0172] The components of the device 110, the system 120 and / or skill 125 may include their own dedicated processors, memory, and / or storage. Alternatively, one or more of the components of the device 110, the system 120 and / or skill 125 may utilize the I / O interfaces (1002 / 1102), processor(s) (1004 / 1104), memory (1006 / 1106), and / or storage (1008 / 1108) of the device 110, the system 120 and / or skill 125, respectively.

[0173] As noted above, multiple devices may be employed in a single system. In such a multi-device system, each of the devices may include different components for performing different aspects of the system's processing. The multiple devices may include overlapping components. The components of the device 110, the system 120 and the skill system 125, as described herein, are illustrative, and may be located as a stand-alone device or may be included, in whole or in part, as a component of a larger device or system.

[0174] As illustrated in FIG. 12, multiple devices (110a-110j, 120, 125) may contain components of the system and the devices may be connected over a network(s) 199. The network(s) 199 may include a local or private network or may include a wide network such as the Internet. Devices may be connected to the network(s) 199 through either wired or wireless connections. For example, a speech-controllable device 110a, a smart phone 110b, a smart watch 110c, a tablet computer 110d, a vehicle 110e, a speech-controllable display device 110f, a smart television 110g, a washer / dryer 110h, a refrigerator 110i, and / or a microwave 110j may be connected to the network(s) 199 through a wireless service provider, over a Wi-Fi or cellular network connection, or the like. Other devices are included as network-connected support devices, such as the system 120, the skill 125, and / or others. The support devices may connect to the network(s) 199 through a wired connection or wireless connection.

[0175] The concepts disclosed herein may be applied within a number of different devices and computer systems, including, for example, general-purpose computing systems, speech processing systems, and distributed computing environments.

[0176] The above aspects of the present disclosure are meant to be illustrative. They were chosen to explain the principles and application of the disclosure and are not intended to be exhaustive or to limit the disclosure. Many modifications and variations of the disclosed aspects may be apparent to those of skill in the art. Persons having ordinary skill in the field of computers and speech processing should recognize that components and process steps described herein may be interchangeable with other components or steps, or combinations of components or steps, and still achieve the benefits and advantages of the present disclosure. Moreover, it should be apparent to one skilled in the art, that the disclosure may be practiced without some or all of the specific details and steps disclosed herein.

[0177] Aspects of the disclosed system may be implemented as a computer method or as an article of manufacture such as a memory device or non-transitory computer readable storage medium. The computer readable storage medium may be readable by a computer and may comprise instructions for causing a computer or other device to perform processes described in the present disclosure. The computer readable storage medium may be implemented by a volatile computer memory, non-volatile computer memory, hard drive, solid-state memory, flash drive, removable disk, and / or other media. In addition, components of system may be implemented as in firmware or hardware, such as an acoustic front end (AFE), which comprises, among other things, analog and / or digital filters (e.g., filters configured as firmware to a digital signal processor (DSP)).

[0178] Conditional language used herein, such as, among others, “can,”“could,”“might,”“may,”“e.g.,” and the like, unless specifically stated otherwise, or otherwise understood within the context as used, is generally intended to convey that certain embodiments include, while other embodiments do not include, certain features, elements and / or steps. Thus, such conditional language is not generally intended to imply that features, elements, and / or steps are in any way required for one or more embodiments or that one or more embodiments necessarily include logic for deciding, with or without other input or prompting, whether these features, elements, and / or steps are included or are to be performed in any particular embodiment. The terms “comprising,”“including,”“having,” and the like are synonymous and are used inclusively, in an open-ended fashion, and do not exclude additional elements, features, acts, operations, and so forth. Also, the term “or” is used in its inclusive sense (and not in its exclusive sense) so that when used, for example, to connect a list of elements, the term “or” means one, some, or all of the elements in the list.

[0179] Disjunctive language such as the phrase “at least one of X, Y, Z,” unless specifically stated otherwise, is understood with the context as used in general to present that an item, term, etc., may be either X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z). Thus, such disjunctive language is not generally intended to, and should not, imply that certain embodiments require at least one of X, at least one of Y, or at least one of Z to each be present.

[0180] As used in this disclosure, the term “a” or “one” may include one or more items unless specifically stated otherwise. Further, the phrase “based on” is intended to mean “based at least in part on” unless specifically stated otherwise.

Claims

1. A computer-implemented method comprising:receiving, at a user device associated with a user profile, first audio data corresponding to a first spoken input;processing, at the user device, the first audio data using a neural network based encoder to generate first feature data representing the first audio data, the first feature data including a plurality of feature vectors;processing, at the user device, a first portion of the first feature data using a first machine learning (ML) model configured to perform wakeword detection to determine the first portion of the first feature data includes a representation of a wakeword;processing, at the user device, the first feature data using a second ML model configured to perform intent detection to determine a first intent corresponding to the first feature data, wherein the processing using the second ML model is performed at least partially in parallel to the processing using the first ML model, wherein the processing using the second ML model is continued based on determining that the first portion of the first feature data includes the representation of the wakeword,wherein the neural network based encoder, the first ML model, and the second ML model are trained using training data including at least a first set of sample audio data representing spoken inputs including a wakeword and a second set of sample audio data representing spoken inputs without a wakeword, the training data including intent labels associated with at least a portion of the first set and the second set of sample audio data;based at least in part on determining the first portion of the first feature data includes the representation of the wakeword, determining, at the user device and using the first intent, first output data responsive to the first spoken input; andpresenting, at the user device, the first output data.

2. The computer-implemented method of claim 1, further comprising:processing, at the user device and using a third ML model configured to perform entity detection, the first feature data and the first intent to determine a first entity corresponding to the first feature data, wherein the processing using the third ML model is performed at least partially in parallel to the processing using the second ML model,wherein determining the first output data further comprises using the first entity.

3. The computer-implemented method of claim 1, further comprising:receiving, at the user device, second audio data corresponding to a second spoken input;determining, at the user device and using the encoder, second feature data corresponding to the second audio data;processing, at the user device and using the first ML model, a second portion of the second feature data to determine second wakeword data representing that the second portion includes a second representation of the wakeword;in response to determining the second wakeword data, sending the second audio data to a speech processing system;processing, at the user device and using the second ML model, the second feature data to determine first data representing that the second feature data corresponds to an unrecognized intent, wherein the second ML model is configured to detect an intent from a plurality of intents not including the unrecognized intent; andin response to determining the first data, sending, to the speech processing system, an indicator to performing speech processing on the second audio data.

4. The computer-implemented method of claim 1, further comprising:after causing the user device to present the first output data, receiving, at the device, second audio data corresponding to a second spoken input;determining, at the user device and using the encoder, second feature data corresponding to the second audio data;processing, at the user device and using a third ML model configured to detect system-directed inputs, the second feature data to determine the second spoken input is a system-directed input;processing, at the user device and using the second ML model, the second feature data to determine a second intent corresponding to the second feature data, wherein the processing using the second ML model is performed at least partially in parallel to the processing using the third ML model;based at least in part on determining the second spoken input is a system-directed input, determining, at the user device and using the second intent, second output data responsive to the second spoken input; andpresenting, at the user device, the second output data.

5. A computer-implemented method comprising:receiving, at a user device associated with a user profile, first audio data;processing, at the user device, the first audio data using a neural network based encoder to generate first feature data corresponding to the first audio data;processing, at the user device and using a first machine learning (ML) model configured to perform trigger detection and at least a portion of the first feature data, to determine that a first trigger is included in the first audio data;processing, at the user device and using a second ML model configured to perform action detection and the first feature data, to determine a first action corresponding to the first audio data, wherein the processing of the first action is continued based on determining that the first trigger is included in the first audio data,wherein the neural network based encoder, the first ML model, and the second ML model are trained using training data including at least a first set of sample audio data representing spoken inputs including a wakeword and a second set of sample audio data representing spoken inputs without a wakeword, and the training data including intent labels associated with at least a portion of the first set and the second set of sample audio data;based at least in part on determining the first trigger is included in the first audio data, determining, at the user device and using the first action, first output data; andpresenting, at the user device, the first output data.

6. The computer-implemented method of claim 5, wherein the first audio data represents a spoken input, and the method further comprises:determining, using the first feature data and the first action, an entity corresponding to the spoken input,wherein determining the first output data uses the entity.

7. The computer-implemented method of claim 5, wherein the user device is configured to detect the first action from a plurality of actions, and the method further comprises:receiving second audio data corresponding to a spoken input;determining second feature data corresponding to the second audio data;determining, using at least a portion of the second feature data, that a wakeword is included in the second audio data;determining, using the second feature data, that the spoken input is unrecognized with respect to the plurality of actions; andin response to determining that the spoken input is unrecognized, sending, to a speech processing component, an indication to process the second audio data.

8. The computer-implemented method of claim 5, further comprising:receiving second audio data corresponding to a spoken input;determining second feature data corresponding to the second audio data;determining, using at least a portion of the second feature data, that a wakeword is undetected in the second audio data; andin response to determining that the wakeword is undetected, causing a spoken language understanding (SLU) component, configured to process the second feature data to determine a second action corresponding to the spoken input, to stop processing with respect to the second feature data.

9. The computer-implemented method of claim 5, further comprising:processing the first feature data to determine that the first trigger is included in the first audio data partially in parallel as processing the first feature data to determine the first action.

10. The computer-implemented method of claim 5, further comprising:receiving second audio data corresponding to a spoken input;determining second feature data corresponding to the second audio data;determining, using at least a portion of the second feature data, that a first wakeword is undetected in the second audio data; anddetermining, using at least the portion of the second feature data, that a second wakeword is included in the second audio data.

11. The computer-implemented method of claim 5, further comprising:receiving second audio data corresponding to a spoken input;determining second feature data corresponding to the second audio data;determining, using the second feature data, that the spoken input is a system-directed input;determining, using the second feature data, a second action corresponding to the spoken input;based at least in part on determining the spoken input is a system-directed input, determining, using the second action, second output data responsive to the spoken input; andpresenting the second output data.

12. The computer-implemented method of claim 5, further comprising:receiving second audio data corresponding to a spoken input;determining second feature data corresponding to the second audio data;determining, using a first portion of the second feature data, first data indicating that a wakeword is included in at least a portion of the second audio data;determining, using a second portion of the second feature data, second data indicating that the spoken input includes the wakeword, wherein the second portion is larger than the first portion; andin response to determining the first data and the second data, causing a component to determine second output data responsive to the spoken input.

13. A system comprising:at least one processor; andat least one memory including instructions that, when executed by the at least one processor, cause the system to:receive first audio data;process the first audio data using a neural network based encoder to generate first feature data corresponding to the first audio data;process, using a first machine learning (ML) model configured to perform trigger detection and at least a portion of the first feature data, to determine that a first trigger is included in the first audio data;process, using a second ML model configured to perform action detection and the first feature data, to determine a first action corresponding to the first audio data, wherein determining of the first action is continued based on determining that the first trigger is included in the first audio data,wherein the neural network based encoder, the first ML model, and the second ML model are trained using training data including at least a first set of sample audio data representing spoken inputs including a wakeword and a second set of sample audio data representing spoken inputs without a wakeword, and the training data including intent labels associated with at least a portion of the first set and the second set of sample audio data;based at least in part on determining the first trigger is included in the first audio data, determine, using the first action, first output data; andpresent the first output data.

14. The system of claim 13, wherein the first audio data represents a spoken input, and wherein the at least one memory includes further instructions that, when executed by the at least one processor, further cause the system to:determine, using the first feature data and the first action, an entity corresponding to the spoken input; anddetermine the first output data using the entity.

15. The system of claim 13, wherein the system is configured to detect the first action from a plurality of actions, and wherein the at least one memory includes further instructions that, when executed by the at least one processor, further cause the system to:receive second audio data corresponding to a spoken input;determine second feature data corresponding to the second audio data;determine, using at least a portion of the second feature data, that a wakeword is included in the second audio data;determine, using the second feature data, that the spoken input is unrecognized with respect to the plurality of actions; andin response to determining that the spoken input is unrecognized, send, to a speech processing component, an indication to process the second audio data.

16. The system of claim 13, wherein the at least one memory includes further instructions that, when executed by the at least one processor, further cause the system to:receive second audio data corresponding to a spoken input;determine second feature data corresponding to the second audio data;determine, using at least a portion of the second feature data, that a wakeword is undetected in the second audio data; andin response to determining that the wakeword is undetected, cause a spoken language understanding (SLU) component, configured to process the second feature data to determine a second action corresponding to the spoken input, to stop processing with respect to the second feature data.

17. The system of claim 13, wherein the at least one memory includes further instructions that, when executed by the at least one processor, further cause the system to:process the first feature data to determine that the first trigger is included in the first audio data partially in parallel as processing the first feature data to determine the first action.

18. The system of claim 13, wherein the at least one memory includes further instructions that, when executed by the at least one processor, further cause the system to:receive second audio data corresponding to a spoken input;determine second feature data corresponding to the second audio data;determine, using at least a portion of the second feature data, that a first wakeword is undetected in the second audio data; anddetermine, using at least the portion of the second feature data, that a second wakeword is included in the second audio data.

19. The system of claim 13, wherein the at least one memory includes further instructions that, when executed by the at least one processor, further cause the system to:receive second audio data corresponding to a spoken input;determine second feature data corresponding to the second audio data;determine, using the second feature data, that the spoken input is a system-directed input;determine, using the second feature data, a second action corresponding to the spoken input;based at least in part on determining the spoken input is a system-directed input, determine, using the second action, second output data responsive to the spoken input; andpresent the second output data.

20. The system of claim 13, wherein the at least one memory includes further instructions that, when executed by the at least one processor, further cause the system to:receive second audio data corresponding to a spoken input;determine second feature data corresponding to the second audio data;determine, using a first portion of the second feature data, first data indicating that a wakeword is included in at least a portion of the second audio data;determine, using a second portion of the second feature data, second data indicating that the spoken input includes the wakeword, wherein the second portion is larger than the first portion; andin response to determining the first data and the second data, cause a component to determine second output data responsive to the spoken input.

Citation Information

Patent Citations

  • Predictive image analysis

    US11288513B1

  • Wakeword detection using multi-word model

    US11308939B1

  • Centralized feedback service for performance of virtual assistant

    US11355098B1

  • Classifying Segments of Speech Based on Acoustic Features and Context

    US20180068656A1

  • Speech Decoder and Language Interpreter With Asynchronous Pre-Processing

    US20180240466A1