Changing candidate text representations of verbal inputs based on further verbal inputs

Through further verbal input candidate text representation and model processing, the automated assistant identifies and corrects errors in speech recognition, solves the problem of word misrecognition, and improves user experience and interaction efficiency.

CN118679518APending Publication Date: 2024-09-20GOOGLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280090347.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-08
Filing Date
2022-11-21
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing automated assistants are prone to word misrecognition during the speech recognition process, causing users to receive incorrect information during conversations, and lack an effective correction mechanism, affecting user experience.

Method used

Through further verbal input of candidate text representations, the disambiguation model and language model are used to identify the user's correction intention, re-score and revise the original text representation, and generate revised text to correct misidentifications.

Benefits of technology

It achieves low-latency, natural error identification and correction, saves computing resources, improves the interactive experience between users and the system, and reduces the user's input burden when correcting errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118679518A
    Figure CN118679518A
Patent Text Reader

Abstract

Various implementations include determining whether a further verbal input is intended to correct at least one word in a candidate text representation of the verbal input. Various implementations include receiving audio data that captures a verbal input of a user. Various implementations include rendering an output to a user based on the candidate text representation. Various implementations include receiving further audio data that captures a further verbal input while rendering the output. In response to determining that the further spoken input is intended to correct at least one word in the candidate text representation, various implementations include generating a revised text representation of the spoken input by changing at least one word in the candidate text representation based on one or more terms in the further candidate text representation.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Humans may participate in human-computer conversations using interactive software applications, which are referred to herein as "automated assistants" (also referred to as "chatbots," "interactive personal assistants," "intelligent personal assistants," "personal voice assistants," "conversational agents," etc.). Automated assistants typically rely on a pipeline of components to interpret and respond to spoken utterances (or touch / typed inputs). For example, an automatic speech recognition (ASR) engine may process audio data corresponding to a user's spoken utterance to generate ASR outputs, such as one or more phonetic hypotheses (i.e., sequences of terms and / or other tokens) for the spoken utterance or phonemes predicted to correspond to the spoken utterance. In addition, a natural language understanding (NLU) engine may process the ASR outputs (or touch / typed inputs) to generate NLU outputs, such as the user's intent to provide the spoken utterance (or touch / typed input) and, optionally, slot values ​​for parameters associated with the intent. In addition, a fulfillment engine may be used to process the NLU outputs and generate fulfillment outputs, such as structured requests for obtaining response content for the spoken utterance and / or performing an action in response to the spoken utterance, and a fulfillment data stream may be generated based on the fulfillment outputs.

[0002] Typically, a conversation session with an automated assistant is initiated by a user providing a spoken utterance, and the automated assistant may respond to the spoken utterance using the aforementioned component pipeline to generate a response. The user may continue the conversation session by providing additional spoken utterances, and the automated assistant may respond to the additional spoken utterances using the aforementioned component pipeline to generate additional responses. In other words, these conversation sessions are typically turn-based, as the user takes turns providing spoken utterances in the conversation session, and when the user stops speaking, the automated assistant takes turns responding to the spoken utterances in the conversation session. Summary of the invention

[0003] The implementation described herein relates to determining whether to correct one or more words in a candidate text representation of a verbal input based on a further candidate text representation of a further verbal input, wherein both the verbal input and the further verbal input are spoken by the same user in a conversation session. For example, a user may speak the verbal input "what is a vat". However, when generating the candidate text representation of the verbal input, in some cases, the system may misidentify the word "vat" and generate an incorrect candidate text representation "what is a hat". In some implementations, the system may render an output based on the incorrect candidate text representation "what is a hat" to the user. For example, the system may render a transcription (e.g., streaming transcription) of the candidate text representation "what isa hat" and / or render a response generated based on the candidate text representation "what is a hat" (e.g., an audible response including a definition of "hat" and / or a visual response including an image of "hat"). Such output enables the user to ascertain the incorrect recognition of the word "vat" during a conversation session. The user can then correct the incorrect recognition by speaking the further verbal input "with a V". In some implementations, the system can determine, based on a further candidate text representation "with a V" of the further spoken input, whether the further spoken input was spoken by the user to correct one or more words in the candidate text representation of the spoken input. For example, based on the further candidate text representation "with a V", the system can determine whether the further spoken input was spoken to correct the candidate text representation of the previous spoken input, or was provided as a continuation of the user's utterance, a separate independent spoken request to the system, and / or was not provided as a spoken request to the system (e.g., but to another person who was present at the same time). Additionally or alternatively, the system can correct the incorrect recognition of the word "vat" based on the further candidate text representation "with a V" to generate a revised text representation "what is a vat" (i.e., including "vat" instead of "hat").

[0004] In some implementations, the system can determine whether the further candidate text representation is intended to correct at least one word in the candidate text representation based on processing the further candidate text representation using the disambiguation model (and / or capturing audio data of the further spoken input). In some implementations, the disambiguation model can be trained to process the further candidate text representation to identify whether any of the one or more grammars are present in the further candidate text representation. For example, a grammar can include "ends with <entity>(ends with <entity>)", "begins with <entity>(begins with <entity>)","with a <entity>(has <entity>)", "like <entity>(similar to <entity>)", one or more additional or alternative grammars, and / or combinations thereof. Additionally or alternatively, the disambiguation model can be trained to process further candidate text representations to identify whether the candidate text representation includes references to one or more specific entities (e.g., actors, places, book characters, artists, musicians, one or more alternative specific entities, and / or combinations thereof) and / or other categories (e.g., animals, movie stars, food, one or more alternative specific entities, and / or combinations thereof). For example, the system can process further candidate text representations "with a V" to identify the grammar "with a <entity>Additionally or alternatively, the system may identify <entity>One or more attributes corresponding to the portion, such as identifying one or more attributes corresponding to the "V" in the further candidate text representation "with a V".

[0005] In some implementations, the system may identify one or more attributes in further candidate text representations of further spoken input. The one or more attributes may include pronunciation cues (e.g., "with a V", "starting with aB", "ending with a P", etc.); knowledge graph entities (e.g., "as in Walter P. Cunningham", where "Walter P. Cunningham is a famous actor", etc.); other types of categories (e.g., "not theanimal", "the movie star", etc.); and / or combinations thereof. For example, further spoken input "with a V" includes one or more attributes based on "V"; further spoken input "like Brad the Big Green Cat" includes one or more attributes based on "Brad the Big Green Cat"; and further spoken input "ends with a P" includes one or more attributes based on "P". In some implementations, the system may compare the one or more attributes with the candidate text representation of the spoken input and / or one or more additional hypotheses for the candidate text representation of the spoken input. For example, the system may compare one or more low confidence terms, one or more uncommon terms, one or more uncommon entity names, one or more additional terms, and / or a combination thereof with one or more attributes. For example, the system may identify the low confidence term "hat" in the candidate text representation "what is a hat" of the spoken input, and the system may identify one or more attributes based on the "V" in the further text representation "with a V". In some implementations, the system may determine to apply one or more attributes based on the "V" to the word "hat" based on the system's low confidence in the word hat, and may generate a revised text representation "what is a vat".

[0006] In some implementations, the system can determine whether the user spoke the further verbal input as a correction to the previous verbal utterance based on comparing one or more attributes of the further candidate text representation to the candidate text representation (and / or one or more additional hypotheses of the candidate text representation). For example, the system can compare one or more attributes of the further candidate text representation to one or more low-confidence words, uncommon terms, uncommon entity names, one or more additional terms, and / or combinations thereof in the candidate text representation and / or additional hypotheses of the candidate text representation. In some implementations, each word in the candidate text representation can have a corresponding confidence score that indicates the likelihood that the candidate word was spoken by the user in the verbal input.

[0007] As a specific example, the system may determine a confidence score corresponding to the word “hat” in the candidate text representation “what is a hat,” where the word “hat” is a misrecognition of the word “vat” in the spoken input. The system may determine, based on the low confidence score for the word “hat” in the candidate text representation, that the further spoken input “with a V” is intended to correct the word “hat.” In some of those implementations, the system may generate a revised text representation of the spoken input “what is a vat” by changing the word “hat” in the candidate text representation based on the attribute “v” in the further spoken input “with av.” Conversely, the system may determine, based on the high confidence score for the word “hat” in the candidate spoken input, that the further spoken input “with a V” is not intended to correct the word “hat.”

[0008] In some implementations, the system may re-score one or more hypotheses of the candidate text representation based on further spoken input. For example, the system may re-score one or more hypotheses based on the underlying confidence of the terms in the spoken input and the relevance score of the further spoken input, the relevance score indicating the possibility that the further spoken input is related to the terms in the spoken input. For example, when generating a candidate text representation of the spoken input "what is a hat" (i.e., the first hypothesis of the text representation of the spoken input), the system may generate additional hypotheses "what is a cat" and "what is a vat", wherein the words "hat", "cat" and "vat" each have a corresponding confidence score. The system may determine the corresponding relevance score between each of the words "hat", "cat" and "vat" and the further candidate text representation "with a V", the corresponding relevance score indicating the possibility that each candidate word is related to the further candidate text representation. In some implementations, the system may re-score each of the hypotheses based on the initial confidence score and the relevance score. Based on the re-scoring, the hypothesis "what is a vat" can become the top hypothesis, and the system can generate a revised text representation "what is a vat".

[0009] Additionally or alternatively, the system may use a language model to determine whether further oral input is provided to correct at least one word in the candidate text representation. For example, a language score may be generated based on processing the candidate text representation using a language model, the language score indicating the likelihood of a word sequence in the candidate text representation. The candidate revised text representation may be similarly processed using a language model to generate a further language score, the further language score indicating the likelihood of a word sequence in the candidate revised text representation. In some implementations, the system may determine whether further oral input is provided to change the candidate text representation based on comparing the language score with the further language score. For example, the system may use a language model to process the candidate text representation "what is a hat" to generate a language score of 75, and may use a language model to process the candidate revised text representation "what is a vat" to generate a further language score of 90. By comparing the language score of 75 and the further language score of 90, the system may determine that further oral input "with a V" is intended to correct the word "hat" in the candidate text representation, and may generate a revised text representation "what is a vat".

[0010] Thus, various implementations describe techniques for determining whether a user speaks further input in order to correct an incorrect recognition of at least one word in a candidate text representation of a previous (e.g., immediately preceding) spoken input. For example, a user may speak the spoken input "show me a picture of Liza," and the system may generate a candidate text representation "show me a picture of Lisa," wherein the word "Liza" in the spoken input is incorrectly recognized as "Lisa" in the candidate text representation. The user may speak further spoken utterances "Liza like Liza the Frog" (where Liza the Frog is a childhood cartoon character) to correct the incorrect recognition of the word "Liza" in the candidate text representation. In some implementations, the system may generate a candidate text representation of the spoken input while processing audio data that captures the spoken input using a streaming automatic speech recognition model, wherein the system may render a transcription of the candidate text representation while the user is still speaking. This may allow the user to view the transcription of the candidate text representation and identify any incorrect recognition before the system performs one or more further actions in response to the candidate text representation.

[0011] For example, a user may recognize that "Liza" was misidentified as "Lisa" in the transcription of the candidate text representation before the system renders a picture of "Lisa" in response to the candidate text representation "show me a picture of Lisa." In various implementations, computing resources (e.g., memory, battery power, processor cycles, etc.) may be saved by the user correcting the misidentification of the verbal input without having to employ system resource-intensive actions to obtain and / or provide content in response to the misidentified verbal input. In contrast, without using the techniques described herein, the system renders a picture of "Lisa" in response to the incorrect candidate text representation "show me a picture of Lisa" before the user attempts to correct the misidentification by repeatedly verbally inputting "show me a picture of Liza" (which may again be misidentified) and / or before the user corrects the misidentification by performing low-latency typing of "show me a picture of Liza" and / or by performing edits to the misidentified transcription. Additionally or alternatively, the further spoken input spoken by the user in response to the misrecognition of the spoken input can be shorter than the repeated spoken input, thereby allowing the user to focus on the misrecognized portion of the spoken input rather than the entire spoken input. Continuing with the previous example, when the system misrecognizes the word "Liza" as "Lisa" in the spoken input "show me a picture of Liza", the user can speak the further spoken input "no, with a Z". In various implementations, computing resources can be saved by processing the shorter further spoken input compared to reprocessing the longer spoken input.

[0012] More generally, implementations disclosed herein enable a user to provide further verbal input to correct an incorrect recognition of at least one word in a candidate text representation that was previously (e.g., immediately) verbally input by the user. Those implementations enable low-latency correction of incorrect recognitions and / or prevent the user from needing to utilize an alternative input mode (e.g., a virtual or physical keyboard) to correct incorrect recognitions. Additionally or alternatively, those implementations provide an improved user / system interaction that enables incorrect recognitions to be corrected in a manner that is more natural to the user.

[0013] The above description is provided only as an overview of some implementations disclosed herein. These and other implementations of the technology will be disclosed below with additional details. It should be understood that all combinations of the aforementioned concepts and additional concepts described in more detail herein are considered part of the subject matter disclosed herein. For example, all combinations of the claimed subject matter appearing at the end of this disclosure are considered part of the subject matter disclosed herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 An example conversation session between a user and a client device is shown in accordance with various implementations disclosed herein.

[0015] Figure 2 Another example conversation session between a user and a client device according to various implementations disclosed herein is shown.

[0016] Figure 3A and Figure 3B Additional example conversation sessions between users and client devices are shown in accordance with various implementations disclosed herein.

[0017] Figure 4A An example of generating a revised textual representation of spoken input according to various implementations disclosed herein is shown.

[0018] Figure 4B An example of generating candidate text for further spoken input according to various implementations disclosed herein is shown.

[0019] Figure 5 An example environment is shown in which various implementations disclosed herein may be implemented.

[0020] Figure 6 is a flow chart illustrating an example of various implementations disclosed herein.

[0021] Figure 7 Another example environment is shown in which various implementations disclosed herein may be implemented.

[0022] Figure 8 An example architecture of a computing device is shown. DETAILED DESCRIPTION

[0023] It is becoming increasingly common for users to interact with computing devices (e.g., mobile phones, stand-alone interactive speakers, smart watches, etc.) using voice input. Voice can provide a natural input mechanism that is used to perform a variety of tasks, including (but not limited to) searching the web, interacting with digital assistants, dictating messages, etc. In some implementations, in response to a user providing a spoken utterance, a speech recognition system can transcribe the utterance into text. In some implementations, the speech recognition system can generate several candidate hypotheses for the text representation of the utterance. However, the system typically only displays the leading hypothesis (e.g., the first hypothesis) to the user and / or only uses the leading hypothesis for query interpretation.

[0024] In some implementations, the speech recognition system may misidentify one or more words spoken by the user. For example, the system may misidentify one or more words due to short utterances, noisy utterances, and / or due to similar pronunciations of words and / or entity names. In some of those implementations, the user may notice from the streaming transcription of their speech input that the speech recognition output is incorrect. Additionally or alternatively, the user may clarify the misidentified one or more words during and / or after the query. In some implementations, the user may provide a disambiguation phrase to clarify the misidentified word.

[0025] In some implementations, the system may recognize disambiguation phrases and / or may correct misidentified verbal input based on the disambiguation phrases. In some implementations, a user may provide a disambiguation phrase along with a voice input as a single utterance. For example, a user may say "show me a picture of a rat, with an R" as a single utterance, where the user says the disambiguation phrase portion, i.e., "with an R", in response to the system rendering the text "show me a picture of a cat" and / or in response to the system rendering a picture of a cat. Additionally or alternatively, a user may say the disambiguation phrase as a subsequent process to a misidentified query. For example, a user may say the verbal input "show me a picture of an arat", and may subsequently say further verbal input "with an R" in response to the system rendering the text "show me a picture of a cat" and / or in response to the system rendering a picture of a cat.

[0026] In some other implementations, in response to the spoken input "show me a picture of a rat", the system may render an audio output based on the synthesized speech "Did you mean a rat or a cat?". The user may provide further spoken input "with an R" in response to the audio output. In other words, the system may provide an output requesting further clarification from the user, rather than providing an output based on an error recognition.

[0027] In some implementations, the user can trigger the assistant and / or some other voice-based interface before speaking the verbal input. For example, the user can speak an invocation phrase (e.g., Assistant, Hey Assistant, OK Assistant), make a physical gesture (e.g., select a physical button, select a virtual button, squeeze a device, etc.) to start a conversation session. The user can then begin speaking the verbal input. As the user speaks the input, the system can generate a candidate text representation of the verbal input by processing the audio data that captures the verbal input using an automatic speech recognition ("ASR") model. In some of those implementations, the ASR model can be stored locally at the client device. In some other implementations, the ASR model can be stored remotely at the client device (e.g., remotely stored on a server). In some implementations, the ASR model can be used to generate streaming results, portions of which can be rendered while the user is still speaking. In some implementations, the first hypothesis of the candidate text representation can be rendered while the user continues to speak the verbal input. In some implementations, multiple hypotheses (e.g., query parsing) can be parsed while the user is speaking. Providing candidate text representations in a streaming manner (i.e., providing words as the system generates candidate text representations while the user is still speaking) can allow the user to provide instant feedback (e.g., the user can provide instant feedback on the candidate text representation for each word as they are speaking).

[0028] As the user speaks, the user may recognize that one or more words in the verbal input have been incorrectly identified by the computing system. For example, when the user provides the verbal input "call Brad", the user may identify the incorrect identification of the word Brant based on the client device rendering the output "call Brant" to the user. In some implementations, the user may provide further verbal input intended to correct one or more incorrectly identified words. In some of those implementations, the user may provide a disambiguation phrase, thereby signaling to the system that they are providing a correction. For example, the user may provide further verbal input "like Brad the Big Green Cat" (where Brad the Big Green Cat is a famous cartoon cat). In some implementations, the system may process the further verbal input (and / or capture audio data of the further verbal input) "like Brad the Big Green Cat" to provide disambiguation phrases based on grammar, machine learning models, etc. In some implementations, the disambiguation model may be trained to process further candidate text representations to identify one or more grammars in the further candidate text representations, such as "ends with <entity>”、"begins with <entity>”、"with a <entity>”、"like <entity>”, one or more additional or alternative grammars, and / or combinations thereof. Additionally or alternatively, a disambiguation model can be trained to process further candidate text representations to identify references to specific entities (e.g., actors, places, book characters, artists, musicians, one or more alternative specific entities, and / or combinations thereof) and / or other categories (e.g., animals, movie stars, food, one or more alternative specific entities, and / or combinations thereof).

[0029] In some implementations, once the disambiguation phrase and / or one or more attributes have been parsed from the further candidate text representation, the system can compare the disambiguation phrase and / or one or more attributes with the candidate text representation of the spoken input and / or one or more additional hypotheses of the candidate text representation of the spoken input. In some implementations, the system can compare one or more low-confidence terms, one or more uncommon terms, one or more uncommon entity names, one or more additional terms, and / or a combination thereof in the candidate text representation of the spoken input with one or more attributes. Additionally or alternatively, each word in the candidate text representation can have a corresponding confidence score indicating the possibility that the candidate word is a word from the spoken input. The system can compare the words in the candidate text representation, wherein the system has low confidence that the candidate word is a word with one or more attributes in the spoken input. For example, when the confidence score of a word or phrase is lower than 80%, lower than 75%, lower than 50%, lower than 25%, lower than one or more additional thresholds, and / or a combination thereof, the system can determine the low confidence of one or more terms in the candidate text representation. The system can generate a revised text representation based on the low confidence terms and the one or more attributes.

[0030] As an example, the system may generate a candidate text representation "call Jim" by processing audio data that captures spoken input "call Jem", where "Jim" in the candidate text representation is a misrecognition of the name "Jem" in the spoken input. The system may determine that the confidence score corresponding to the word "Jim" in the candidate text representation is below a threshold, such as below 75%. In response to the rendered output "call Jim", the user may utter further spoken input "like Jem the Grouch" (where Jem the Grouch is a famous television monster). In some implementations, the system may process a further candidate text representation of the further spoken input "like Jem the Grouch" using a disambiguation model to identify the expression "like <entity>Additionally or alternatively, the system may select a candidate text based on the expression <entity>In other words, the system can identify one or more attributes based on the portion of the further candidate text representation "Jem the Grouch". Additionally or alternatively, the system can compare the low confidence word "Jim" with one or more attributes of "Jem the Grouch". In some implementations, the system can determine a revised text representation of the spoken input based on one or more attributes of the candidate text representation "call Jim" and "Jem the Grouch" to generate a revised text representation "call Jem".

[0031] Additionally or alternatively, the system can re-score one or more hypotheses for the candidate text representation to determine whether one or more attributes are more appropriate than at least one word in the candidate text representation. Figure 3A and Figure 3B An example of determining whether one or more attributes are more appropriate than at least one word in a candidate text representation according to various implementations is shown. In some implementations, the system may re-score one or more hypotheses based on an underlying term confidence score and a relevance score for one or more attributes, the relevance score indicating the likelihood that one or more attributes are associated with the one or more hypotheses. Additionally or alternatively, the system may re-score one or more hypotheses based on a time alignment signal, wherein the time at which the user speaks further verbal input is close to the time at which the misidentified word is rendered by the system (e.g., word-by-word rendering, streaming, etc.) and / or the time at which the misidentified word is spoken may be slightly delayed when several words are mentioned (e.g., sentence-by-sentence rendering, streaming, etc.). Furthermore, in some implementations, the system may re-score one or more hypotheses based on a visual signal indicating the location of the transcription and therefore the corresponding word of the transcription that the user is seeing (e.g., a gaze signal). In other words, the user may see the misidentified word while speaking the further verbal input. In some implementations, the confidence score may be used to determine whether the further spoken input is intended to correct at least one word in the spoken input (ie, whether to use the disambiguation phrase and / or one or more attributes of the disambiguation phrase to generate a revised textual representation of the spoken input).

[0032] Additionally or alternatively, the system may use a language model to determine whether further oral input is provided to correct at least one word in the candidate text representation. For example, a language score may be generated based on processing the candidate text representation using a language model, the language score indicating the likelihood of a word sequence in the candidate text representation. The candidate revised text representation may be similarly processed using a language model to generate a further language score, the further language score indicating the likelihood of a word sequence in the candidate revised text representation. In some implementations, the system may determine whether further oral input is provided to change the candidate text representation based on comparing the language score with the further language score. For example, the system may use a language model to process the candidate text representation "what is a hat" to generate a language score of 75, and may use a language model to process the candidate revised text representation "what is a vat" to generate a further language score of 90. By comparing the language score of 75 and the further language score of 90, the system may determine that further oral input "with a V" is intended to correct the word "hat" in the candidate text representation, and may generate a revised text representation "what is a vat". In some implementations, the system can determine whether the further spoken input is provided for the purpose of correcting at least one word in the candidate text representation using one or more additional or alternative models, such as: an encoder model and a decoder model, wherein the candidate text representation of the spoken input and further candidate text representations of the further spoken input can be processed by the encoder model and the corresponding decoder output can generate a revised text representation of the spoken input and / or a pointer network that can process the candidate text representation and further candidate text representations to generate an indication of the revised text representation.

[0033] Now turning to the attached figure, Figure 1 , Figure 2 , Figure 3A and Figure 3B Examples of various implementations disclosed herein are shown. Figure 1 An example 100 according to various implementations is shown. Example 100 shows a conversation session between a user and a client device. In some implementations, one or more microphones of the client device can capture audio data, wherein the audio data captures the verbal input spoken by the user. The client device may include, for example, a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart watch, an independent assistant device, one or more client devices, and / or a combination thereof. In the example shown, the user speaks verbal input 102 "what is a vat". The system can generate a candidate text representation of the verbal input. In some implementations, the system can generate a candidate text representation of the verbal input by processing the audio data that captures the verbal input using an automatic speech recognition ("ASR") model. In some implementations, the ASR model can be stored locally at the client device. In some other implementations, the ASR model can be stored remotely at the client device (e.g., stored remotely on a server at the client device). Additionally or alternatively, the ASR model can process the audio data and generate a candidate text representation of the verbal input in a streaming manner (e.g., a candidate text representation can be generated and displayed to the user when the user speaks the verbal input).

[0034] For example, the system may generate a candidate text representation "what is a hat," where the word "hat" is an incorrect identification in the candidate text representation of the word "vat" captured in the spoken input. In some implementations, the system may render the candidate text output 104 "WHAT IS A HAT." In some implementations, the user can see the incorrect identification of the word "vat," and can speak a further spoken utterance "with a V" to correct the incorrect identification. The system may process further audio data capturing the further spoken input "with a V" using the ASR model to generate a further candidate text representation of the further spoken input. Additionally or alternatively, the system may process the further candidate text representation "with a V" to determine whether the further spoken input is intended to correct one or more incorrectly identified words in the candidate text representation of the spoken input. In example 100, the system generates a revised text representation 208 "WHAT IS A VAT" of the spoken input, where the revised text representation corrects the incorrect identification of the word "vat."

[0035] Figure 2 An example 200 is shown according to various implementations. In example 200, a user speaks a verbal input 200 "call Brad". The system may generate a candidate text representation "call Brant" where the word "Brant" is a misrecognition of the word "Brad" spoken by the user. In some implementations, the user may store a person named Brad and additional contact information for a person named Brant on a client device. In some of those implementations, the system may select the name Brant based on the user contacting Brant more often than Brad. For example, if the user contacts Brant every day, and has not contacted Brad in 3 years, the system may generate the candidate text representation "call Brant" because the user is generally more likely to contact Brant than Brad.

[0036] In some implementations, the system may render output 204 “CALL BRANT,” enabling the user to identify the misrecognition of the word “Brad.” In response to identifying the misrecognition, the user may speak further spoken input 206 “like Brad the Big Green Cat” (where Brad the Big Green Cat is a famous cartoon cat). The system may generate a further candidate text representation of the further spoken input “like Brad the Big Green Cat.” In some implementations, the further candidate text representation may be processed using the disambiguation model described herein to identify that the further spoken input was provided by the user to correct the misrecognized word “Brant” to “Brad.” In response to determining that the user spoke further spoken input 206 “like Brad the Big Green Cat” in response to determining the misrecognition in the candidate text representation 204 “CALL BRANT,” the system may generate a revised text representation 208 “CALLBRAD” of the spoken input, where the revised text representation corrects the misrecognition of “Brad.”

[0037] Figure 3A An example 300 is shown according to various implementations. In example 300, a user speaks a verbal input 302 "show me a picture of a cat". The system can generate a candidate text representation 304 "SHOW ME A PICTURE OFA CAT". In example 300, the system does not misidentify any words in the verbal input "show me a picture of a cat". The user can speak a further verbal input 306 "with a bee". The system can process the further verbal input 306 to generate a further candidate text representation "with a bee". In some implementations, the system can process the further candidate text representation "with a bee" to determine whether the user spoke the further verbal input with the intent to correct at least one word in the verbal input. In example 300, the system can determine that the user did not speak the further verbal input with the intent to correct one or more words in the verbal input. In response to determining that the user did not speak the further verbal input "with a bee" with the intent to correct one or more words in the verbal input "show me a picture ofa cat", the system can generate a revised text representation based on the candidate text representation of the verbal input and the further candidate text representation of the further verbal input. In the illustrated example 300 , the system may generate a revised text representation 308 “SHOW ME A PICTURE OF A CAT WITH ABEE”.

[0038] In some implementations, the system can determine confidence scores for one or more words in the candidate text representation 304, where the confidence score for each word indicates the likelihood that the word is the correct text representation of the corresponding portion of the spoken input. For example, the system can determine a high confidence score corresponding to the word "cat" in the candidate text representation 304, indicating that there is a high probability that the user has spoken the word "cat" in the spoken input. In some implementations, the system can determine (at least in part) based on the high confidence score for the word cat that the further spoken input 306 "with abee" is not intended to correct the word "cat" in the candidate text representation 304.

[0039] Additionally or alternatively, the system may determine further confidence scores corresponding to words in further candidate text representations. For example, the system may determine a high confidence score corresponding to the word "bee", which indicates that the user has a high probability of saying the word "bee" in the further input. Conversely, the user may determine a low confidence score corresponding to the word "B" in the alternative hypothesis of the further candidate text representation. The system may determine that the user is not saying the further candidate text representation for the purpose of correcting at least one word based on the high confidence score for the word "bee", the low confidence score for the word "B", one or more additional factors, and / or a combination thereof. In the example shown, the system may determine that the further spoken input is not provided for the purpose of correcting one or more words in the spoken input, and may generate a revised text representation of the spoken input by appending the further spoken input to the end of the spoken input, thereby generating a revised text representation 308 "SHOW ME A PICTURE OF A CAT WITH A BEE".

[0040] Figure 3B An example 350 is shown according to various implementations. In example 350, a user speaks verbal input 352 "show me a picture of a bat". The system can generate a candidate text representation 354 "SHOW ME A PICTURE OF A CAT" of the verbal input, where the word "cat" in the candidate text representation is an incorrect recognition of the word "bat" in the verbal input. The user can speak further verbal input 356 "with a B" in response to recognizing that the system has incorrectly recognized the word "bat". In some implementations, the system can generate a further candidate text representation "with a B" based on the further verbal input 356. In some implementations, the system can process the further candidate text representation "with a B" to determine that the user provided the further verbal input 356 "with a B" in order to correct the incorrectly recognized word "bat". In some implementations, the system can generate a revised text representation 358 "SHOW ME A PICTURE OF A BAT" based on the further candidate text representation "with a B".

[0041] In some implementations, the system can determine confidence scores for one or more words in the candidate text representation 354, where the confidence score for each word indicates the likelihood that the word is the correct text representation of the corresponding portion of the spoken input. For example, the system can determine a low confidence score corresponding to the word "cat" in the candidate text representation 354, indicating that there is a low probability that the user has spoken the word "cat" in the spoken input. In some implementations, the system can determine (at least in part) based on the low confidence score for the word cat that the further spoken input 356 "with a B" is intended to correct the word "cat" in the candidate text representation 354.

[0042] Additionally or alternatively, the system may determine further confidence scores corresponding to words in further candidate text representations. For example, the system may determine a high confidence score corresponding to the word "B", which indicates that the user has a high probability of saying the word "B" in the further input. Conversely, the user may determine a low confidence score corresponding to the word "bee" in the alternative hypothesis of the further candidate text representation. The system may determine that the user is speaking the further candidate text representation to correct at least one word based on the high confidence score for the word "B", the low confidence score for the word "bee", one or more additional factors, and / or a combination thereof. In the example shown, the system may determine that the further spoken input is not provided to correct one or more words in the spoken input, and may generate a revised text representation of the spoken input by changing the word "cat" with the letter "B", thereby generating a revised text representation 358 "SHOW MEA PICTURE OF A BAT".

[0043] Although both examples 300 and 350 include the system generating candidate text representations for spoken input "SHOW ME A PICTURE OF ACAT" (i.e., candidate text representation 304 and candidate text representation 354), candidate text representation 354 is an incorrect recognition of spoken input 352 "show me a picture of a bat", while candidate text representation 302 is not an incorrect recognition of spoken input 302 "show me a picture of a cat". Additionally or alternatively, although phonetically similar, further spoken input 306 "with a bee" was not spoken to correct at least one word in candidate text representation 304, while further spoken input 356 "with a B" was spoken to correct at least one word in candidate text representation 354.

[0044] Figure 4A An example 400 of generating a revised text representation of a spoken input is shown. The illustrated example 400 includes an audio data stream 402, a client device text output 404, and one or more actions 406. At point 408, the user provides a spoken input. For example, audio data can be captured via one or more microphones of the client device, and the audio data captures the user's spoken input. In some implementations, the system can use an ASR model to process the audio data that captures the spoken input to generate a candidate text representation of the spoken input. At point 410, the system can render an output based on the candidate text representation of the user's spoken input. For example, the system can render an output based on the candidate text representation via a display of the client device. In some implementations, the candidate text representation may include at least one misidentified word. At point 412, the user can provide further spoken input, which is intended to correct the misidentification in the candidate text representation of the spoken input 410. In some implementations, the system can generate further candidate text representations of further spoken input. In some of those implementations, the system can determine that the further candidate text representation is intended to correct the candidate text representation of the spoken input, and can generate a revised text representation of the spoken input based on the further spoken input (e.g., one or more attributes of the further candidate text representation) and the candidate text representation of the spoken input at point 414. At point 416, the system can perform one or more actions based on the revised text representation of the spoken input. For example, the system can render a text output based on the revised text representation of the spoken input for the user. For example, Figure 1 As shown, the system can provide the user with response content in response to the revised text representation 108 “WHAT IS A VAT” without unnecessarily providing response content for the candidate text representation 104 “WHAT IS A HAT”.

[0045] In contrast, Figure 4B An example 450 of generating further candidate text representations of further spoken input is shown, without generating Figure 4A The revised text shown is represented. At point 458, the user provides verbal input, and at point 460, the system generates a candidate text representation of the verbal input. However, at point 462, the system performs one or more actions represented by the candidate text based on the verbal input. In some implementations, the action performed based on the candidate text representation is a response to the wrong identification of the verbal input, rather than a response to the verbal input. In some implementations in those implementations, the action performed at point 462 wastes computing resources (e.g., battery power, processor cycles, memory, etc.) because one or more actions are not a response to the verbal input. In response to the action represented based on the candidate text (which is not a response to the verbal input), at point 464, the user can provide further verbal input (e.g., repeating the verbal input, reiterating the intention captured in the verbal input but expressing it in an alternative manner, etc.). At point 466, the system can generate further candidate text representations of further verbal input. Additionally or alternatively, the system can perform one or more further actions 468 represented by further candidate texts based on further verbal input. For example, if the system generates a candidate text representation "WHAT IS A HAT" based on the spoken input "what is a vat", the system may unnecessarily provide content in response to "WHAT IS A HAT".

[0046] Figure 5 A block diagram of an example environment 500 is shown in which various implementations may be implemented. The example environment 500 includes a client device 502, which may include a user interface input / output device 504, a speech recognition engine 506, a disambiguation engine 508, and / or one or more additional engines (not depicted). Additionally or alternatively, the client device 502 may be associated with a speech recognition model 510, a disambiguation model 512, and / or one or more additional components (not depicted).

[0047] In some implementations, the client device 502 may include a user interface input / output device 504, which may include, for example, a physical keyboard, a touch screen (e.g., implementing a virtual keyboard or other text input mechanism), a microphone, a camera, a display screen, and / or a speaker. Additionally or alternatively, the client device 502 may include a variety of sensors (not depicted), such as an accelerometer, a gyroscope, a global positioning system (GPS), a pressure sensor, a light sensor, a distance sensor, a proximity sensor, a temperature sensor, one or more additional sensors, and / or combinations thereof. The user interface input / output device may be incorporated with one or more client devices 502 of the user. For example, a user's mobile phone may include a user interface input / output device; a stand-alone digital assistant hardware device may include a user interface input / output device; a first computing device may include a user interface input device, and a separate computing device may include a user interface output device; and so on. In some implementations, all or aspects of the client device 502 may be implemented on a computing system that also includes a user interface input / output device. In some implementations, the client device 502 may include an automated assistant (not depicted), and all or aspects of the automated assistant may be implemented on a computing device that is separate from and remote from the client device including the user interface input / output device (e.g., all or aspects may be implemented "in the cloud"). In some of those implementations, aspects of the automated assistant may communicate with the computing device via one or more networks, such as a local area network (LAN) and / or a wide area network (WAN) (e.g., the Internet).

[0048] Some non-limiting examples of client device 502 include one or more of the following: a desktop computing device, a laptop computing device, a stand-alone hardware device at least partially dedicated to an automated assistant, a tablet computing device, a mobile phone computing device, a computing device for a vehicle (e.g., an in-vehicle communication system, and an in-vehicle entertainment system, an in-vehicle navigation system, an in-vehicle navigation system), or a user's wearable device including a computing device (e.g., a user's watch with a computing device, a user's glasses with a computing device, a virtual or augmented reality computing device). Additional and / or alternative computing systems may be provided. Client device 502 may include one or more memories for storing data and software applications, one or more processors for accessing data and executing applications, and other components that facilitate communication over a network. The operations performed by client device 502 may be distributed across multiple computing devices. For example, computing programs running on one or more computers in one or more locations may be coupled to each other via a network. In some implementations, client device 502 may be a mobile phone with a front-facing camera and / or accelerometer, a smart watch with an accelerometer, a stand-alone hardware device with a front-facing camera, and the like.

[0049] In some implementations, the speech recognition engine 506 may use the speech recognition model 510 to process audio data streams capturing spoken input, further spoken input, and / or additional spoken input (such as spoken input 102, 202, 302, 352, 408, 458, further spoken input 106, 206, 306, 356, 412, 464, and / or one or more alternative data streams) to generate candidate text representations for the corresponding spoken input (e.g., candidate text representations for the spoken input and / or further candidate text representations for the further spoken input).

[0050] In some implementations, the disambiguation engine 508 can use the disambiguation model 512 to process the candidate text representation of the spoken input and the further candidate text representation of the further spoken input (and / or capture the audio data of the spoken input and capture the further audio data of the further spoken input) to determine whether the user spoke the further input to correct one or more words in the spoken input. In some implementations, the disambiguation model can be trained to process the further candidate text representation to recognize one or more grammars in the further candidate text representation, such as "ends with <entity>”、"begins with <entity>”、"with a <entity>”、"like <entity>”, one or more additional or alternative grammars, and / or combinations thereof. Additionally or alternatively, a disambiguation model can be trained to process further candidate text representations to identify references to specific entities (e.g., actors, places, book characters, artists, musicians, one or more alternative specific entities, and / or combinations thereof) and / or other categories (e.g., animals, movie stars, food, one or more alternative specific entities, and / or combinations thereof).

[0051] In some implementations, once the disambiguation phrase and / or one or more attributes have been parsed from the further candidate text representation, the system can compare the disambiguation phrase and / or one or more attributes with the candidate text representation of the spoken input and / or one or more additional hypotheses of the candidate text representation of the spoken input. In some implementations, the system can compare one or more low-confidence terms, one or more uncommon terms, one or more uncommon entity names, one or more additional terms, and / or a combination thereof in the candidate text representation of the spoken input with one or more attributes. Additionally or alternatively, each word in the candidate text representation can have a corresponding confidence score indicating the possibility that the candidate word is a word from the spoken input. The system can compare the words in the candidate text representation, wherein the system has low confidence that the candidate word is a word with one or more attributes in the spoken input. For example, when the confidence score of the word is lower than 80%, lower than 75%, lower than 50%, lower than 25%, lower than one or more additional thresholds, and / or a combination thereof, the system can determine the low confidence of one or more terms in the candidate text representation. The system can generate a revised text representation based on the low confidence terms and the one or more attributes.

[0052] Additionally or alternatively, an audio engine (not depicted) may perform one or more actions based on the revised text of the spoken utterance. In some implementations, the system may perform one or more actions based on the revised text of the spoken utterance: display a transcription of the text representation of the revised text of the spoken utterance; transmit the revised text representation of the spoken utterance to a natural language understanding (NLU) model; generate a response to the revised text of the spoken utterance; render content responsive to the revised text of the spoken utterance (e.g., render an audio-based response to the revised text of the spoken utterance, render an image requested by the revised text of the spoken utterance, render a video requested by the revised text of the spoken utterance, etc.); perform an action based on the revised text of the spoken utterance (e.g., control a smart device based on the revised text of the spoken utterance, etc.).

[0053] Figure 6 600 is a flow chart illustrating an example process 600 for generating a revised textual representation of spoken input according to various implementations disclosed herein. For convenience, the operations of the flow chart are described with reference to a system that performs the operations. This system may include various components of various computer systems, such as client device 502, client device 702, and / or one or more components of computing system 810. In addition, while the operations of process 600 are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, and / or added.

[0054] At block 602, the system receives audio data capturing a user's verbal input. In some implementations, the audio data may be captured via one or more microphones of a client device. For example, the system may receive audio data capturing a user's verbal input. Figure 1 The verbal input 102 "what is a vat" shown, such as Figure 2 The verbal input 202 "call Brad" shown, such as Figure 3A The verbal input 302 "show me a picture of a cat" shown in FIG. Figure 3B The audio data of the verbal input 352 shown is "show me a picture of a bat" etc.

[0055] At block 604, the system can generate candidate text representations of the spoken input. In some implementations, the system can use an automatic speech recognition model such as Figure 5 The speech recognition model 510 in the process processes the audio data. In some implementations, the speech recognition model can be stored remotely on the client device (e.g., stored remotely on a server at the client device). In some other implementations, the speech recognition model can be stored locally at the client device. Additionally or alternatively, the speech recognition model can generate streaming results, wherein the system can generate candidate text representations of portions of the spoken utterance as the user speaks the input. For example, when the user speaks the input "show me a picture of a cat", the system can generate a text representation of the word after the user speaks each word as the user speaks the remainder of the utterance. In some implementations, the system can generate multiple hypotheses of candidate text representations of the spoken input, and one of those hypotheses (i.e., the first hypothesis) can be selected as the candidate text representation of the spoken input.

[0056] At block 606, the system may render output based on candidate text representations of the spoken input to the user. In some implementations, as the user continues to speak the spoken input, the system may render output based on the first portion of the text representation. For example, the user may speak the first portion of the spoken input, "show me a". As the user continues to speak the remainder of the utterance, "picture of a cat", the system may render candidate text representations, "show me a". In some implementations, the system may render output based on a single word in the spoken input.

[0057] At block 608, while rendering the output, the system receives further audio data capturing further verbal input from the user. For example, the system may receive audio data capturing further verbal input from the user. Figure 1 Further verbal input 106 "with a V" as shown, such as Figure 2 Further verbal input 206 shown as "like Brad the Big Green Cat", such as Figure 3A Further verbal input 306 "with a bee", such as Figure 3B Further audio data of further spoken input 356 "with a B" etc. is shown.

[0058] At block 610, the system generates further candidate text representations of the further spoken input. In some implementations, the system can generate further candidate text representations using the speech recognition model 510 described herein.

[0059] At box 612, the system processes the further candidate text representation. In some implementations, the system can process the further candidate text representation (and / or capture the audio data of the further text representation) using a disambiguation model to determine whether the further candidate text representation includes a disambiguation phrase. In some implementations, the system can parse the further candidate text representation to extract one or more attributes of the further candidate text representation. For example, the system can extract pronunciation cues, knowledge graph entities, one or more additional categories (e.g., not an animal, a movie star), and / or a combination thereof.

[0060] At block 614, the system determines whether the further candidate text representation is intended to correct at least one word in the candidate text representation. In some implementations, the system may determine whether the further candidate text representation includes a disambiguation phrase. For example, the system may determine whether the further candidate text representation contains the phrase "like <entity>”、"starts with <entity>”、"ends with <entity>”、"with a <entity>”, one or more additional phrases, and / or combinations thereof. In some implementations, the system may compare one or more attributes to one or more words in the candidate text representation. For example, the system may identify one or more low-confidence words in the candidate text representation and determine whether one or more attributes will increase the confidence score of the word. Additionally or alternatively, the system may rescore one or more hypotheses for the verbally input candidate text representation (e.g., the system may rescore one or more hypotheses for the candidate text representation using a combination of underlying term confidences and relevance scores for one or more attributes).

[0061] like Figure 3A and Figure 3B As shown, in some implementations, the system can compare the confidence scores of one or more words in a candidate text representation with the confidence scores of one or more attributes in a further candidate text representation. Figure 3A As shown, a high confidence score corresponding to the word "cat" in candidate text representation 304 may indicate that further spoken input 306 "with a bee" is not intended to correct the word "cat" in candidate text representation 304. Similarly, a high confidence score corresponding to the word "bee" and / or a low confidence score corresponding to the word "B" may indicate that the user does not intend to correct one or more portions of candidate text representation 304 "show me a picture of a cat" through further spoken input 306 "with a bee".

[0062] As a further example, Figure 3B As shown, the system can determine that the low confidence score corresponding to the word "cat" in the candidate text representation 354 provides an indication that the user spoke further verbal input 356 "with a B" with the intent to correct the word "cat" in the candidate text representation. Additionally or alternatively, the determined high confidence score corresponding to the word "B" and / or the low confidence score corresponding to the word "bee" can indicate that the user did speak further verbal input 356 "with a B" with the intent to correct the word "cat" in the candidate text representation 354. In some implementations, the system can use one or more additional or alternative techniques to determine whether the further candidate text representation of the further verbal input is intended to correct at least one word in the candidate text representation.

[0063] If the system determines that the further candidate text representation is provided by the user for correction of at least one word in the candidate text representation, the system proceeds to block 616. If the system determines that the further candidate text representation is not provided by the user for correction of at least one word in the candidate text representation, the system proceeds to block 620.

[0064] At block 616, the system generates a revised text representation of the spoken input by changing at least one word in the candidate text representation based on one or more terms of the further candidate text representation. In some implementations, the system can generate a revised text representation by changing at least one word in the candidate text representation based on one or more attributes of the further candidate text representation. For example, the system can change the word "HAT" in the candidate text representation 104 based on the further spoken input 106 "with a V" to generate a text representation such as Figure 1 The revised text shown indicates 108 "WHAT IS A VAT".

[0065] At box 618, the system causes the client device to perform one or more actions based on the revised text representation. In some implementations, the system may perform one or more actions based on the revised text representation, including: displaying a transcription of the revised text representation of the spoken input; transmitting the revised text representation of the spoken input to a natural language understanding (NLU) model; generating a response to the revised text representation of the spoken input; rendering content responsive to the revised text representation of the spoken input (e.g., rendering an audio-based response to the revised text representation of the spoken input, rendering an image requested by the revised text representation of the spoken input, rendering a video requested by the revised text representation of the spoken input, etc.); performing an action based on the revised text representation of the spoken input (e.g., controlling a smart device based on the revised text representation of the spoken input, etc.). For example, the system may render content based on the following example: Figure 1 The revised text shown is a transcription of "WHAT IS A VAT".

[0066] At block 620, the system generates a revised text representation based on the candidate text representation and the further candidate text representation. In some implementations, the system may append at least a portion of the further candidate text representation to the candidate text representation. Figure 3A As shown, the system may generate a revised text representation 308 “SHOW ME A PICTURE OF A CATWITH A BEE” based on spoken input 302 “show me a picture of a cat” and further spoken input 306 “with a bee”.

[0067] Now go to Figure 7 , showing an example environment in which various implementations may be performed. Figure 7 7 is initially described, and includes a client computing device 702 executing an instance of an automated assistant client 704. One or more cloud-based automated assistant components 710 may be implemented on one or more computing systems (collectively referred to as "cloud" computing systems) that are communicatively coupled to the client device 702 via one or more local area networks and / or wide area networks (e.g., the Internet), indicated generally at 708.

[0068] An instance of automated assistant client 704, through its interaction with one or more cloud-based automated assistant components 710, can form what appears to be a logical instance of automated assistant 700 from the user's perspective, with which the user can engage in a human-computer dialogue. Figure 7 700. Thus, it should be understood that in some implementations, a user interacting with an automated assistant client 704 executing on a client device 702 may actually be interacting with his or her own logical instance of automated assistant 700. For the sake of brevity and clarity, the term "automated assistant" as used herein will generally refer to the combination of an automated assistant client 704 executing on a client device 702 operated by a user and one or more cloud-based automated assistant components 710 (which may be shared among multiple automated assistant clients on multiple client computing devices) when "serving" a particular user. It should also be understood that in some implementations, automated assistant 700 may respond to requests from any user, whether or not that user is actually "served" by that particular instance of automated assistant 700.

[0069] Client computing device 702 may be, for example, a desktop computing device, a laptop computing device, a tablet computing device, a mobile phone computing device, a computing device of a user's vehicle (e.g., an in-vehicle communication system, an in-vehicle entertainment system, an in-vehicle navigation system), a stand-alone interactive speaker, a smart home appliance (such as a smart TV), and / or a user's wearable device including a computing device (e.g., a user's watch with a computing device, a user's glasses with a computing device, a virtual or augmented reality computing device). Additional and / or alternative client computing devices may be provided. In various implementations, client computing device 702 may optionally operate one or more other applications in addition to automated assistant client 704, such as a messaging client (e.g., SMS, MMS, online chat), a browser, etc. In some of those various implementations, one or more of the other applications may optionally interface with automated assistant 700 (e.g., via an application programming interface), or include their own instances of automated assistant applications (which may also interface with cloud-based automated assistant component 710).

[0070] The automated assistant 700 conducts a human-computer dialogue session with the user via the user interface input and output devices of the client device 702. In order to protect user privacy and / or save resources, in many cases, the user must usually explicitly invoke the automated assistant 700 before the automated assistant will fully process the spoken utterance. The explicit invocation of the automated assistant 700 may occur in response to a certain user interface input received at the client device 702. For example, the user interface input that may invoke the automated assistant 700 via the client device 702 may optionally include the actuation of a hardware and / or virtual button of the client device 702. In addition, the automated assistant client may include one or more local engines 706, such as a call engine that is operable to detect the presence of one or more spoken call phrases. The call engine may invoke the automated assistant 700 in response to detecting one of the spoken call phrases. For example, the call engine may invoke the automated assistant 700 in response to detecting a spoken call phrase such as "Hey Assistant", "OK Assistant" and / or "Assistant". The invocation engine may continuously process (e.g., while not in an "inactive" mode) a stream of audio data frames based on the output of one or more microphones from client device 702 to monitor for the occurrence of a spoken invocation phrase. While monitoring for the occurrence of a spoken invocation phrase, the invocation engine discards (e.g., after temporarily storing in a buffer) any audio data frames that do not include a spoken invocation phrase. However, when the invocation engine detects the occurrence of a spoken invocation phrase in a processed audio data frame, the invocation engine may invoke automated assistant 700. As used herein, "invoking" automated assistant 700 may include causing one or more previously inactive functions of automated assistant 700 to be activated. For example, invoking automated assistant 700 may include causing one or more local engines 706 and / or cloud-based automated assistant components 710 to further process an audio data frame based on which an invocation phrase was detected and / or one or more subsequent audio data frames (whereas no further processing of the audio data frames occurred prior to the invocation).

[0071] The one or more local engines 806 of automated assistant 700 are optional and may include, for example, the disambiguation engine described above, a local speech-to-text ("STT") engine (which converts captured audio to text), a local text-to-speech ("TTS") engine (which converts text to speech), a local natural language processor (which determines the semantic meaning of audio and / or text converted from audio), and / or other local components. Because client device 702 is relatively constrained in computing resources (e.g., processor cycles, memory, battery, etc.), local engine 706 may have limited functionality relative to any corresponding component included in cloud-based automated assistant component 710.

[0072] Cloud-based automated assistant component 710 leverages the virtually unlimited resources of the cloud to perform more robust and / or more accurate processing of audio data and / or other user interface inputs relative to any corresponding component of local engine 706. Likewise, in various implementations, client device 702 can provide audio data and / or other data to cloud-based automated assistant component 710 in response to an invocation engine detecting a spoken invocation phrase or detecting some other explicit invocation of automated assistant 700.

[0073] The cloud-based automated assistant component 710 shown includes a cloud-based TTS module 712, a cloud-based STT module 714, a natural language processor 716, a dialog state tracker 718, and a dialog manager 720. In some implementations, one or more of the engines and / or modules of the automated assistant 700 may be omitted, combined, and / or implemented in a component separate from the automated assistant 700. Furthermore, in some implementations, the automated assistant 700 may include additional and / or alternative engines and / or modules. The cloud-based STT module 714 may convert audio data into text, which may then be provided to the natural language processor 716.

[0074] The cloud-based TTS module 712 can convert text data (e.g., natural language responses formulated by the automated assistant 700) into computer-generated speech output. In some implementations, the TTS module 712 can provide the computer-generated speech output to the client device 702 for direct output, for example, using one or more speakers. In other implementations, the text data (e.g., natural language responses) generated by the automated assistant 700 can be provided to one of the local engines 706, which can then convert the text data into computer-generated speech that is output locally.

[0075] Natural language processor 716 of automated assistant 700 processes free-form natural language input and generates annotated output based on the natural language input for use by one or more other components of automated assistant 700. For example, natural language processor 716 can process natural language free-form input, which is text input that is a conversion of audio data provided by a user via client device 702 by STT module 714. The generated annotated output can include one or more annotations to the natural language input and, optionally, one or more (e.g., all) of the terms in the natural language input.

[0076] In some implementations, the natural language processor 716 is configured to recognize and annotate various types of grammatical information in the natural language input. In some implementations, the natural language processor 716 may additionally and / or alternatively include an entity tagger (not depicted), which is configured to annotate entity references in one or more segments (such as references to people (including, for example, literary characters, celebrities, public figures, etc.), organizations, locations (real and fictional), etc.). In some implementations, the natural language processor 716 may additionally and / or alternatively include a coreference resolver (not depicted), which is configured to group or "cluster" references to the same entity based on one or more contextual cues. For example, the coreference resolver can be used to resolve the term "there" in the natural language input "I liked Hypothetical Café last time we ate there" to "Hypothetical Café". In some implementations, one or more components of the natural language processor 716 may rely on annotations from one or more other components of the natural language processor 716. In some implementations, when processing a particular natural language input, one or more components of the natural language processor 716 may determine one or more annotations using related previous inputs and / or other relevant data outside of the particular natural language input.

[0077] In some implementations, the dialog state tracker 718 may be configured to track a "dialog state," which includes, for example, the belief state of the goals (or "intents") of one or more users during a human-computer dialog session and / or across multiple dialog sessions. In determining the dialog state, some dialog state trackers may attempt to determine the most likely values ​​for slots instantiated in the dialog based on user and system utterances in the dialog session. Some techniques utilize a fixed ontology that defines a set of slots and a set of values ​​associated with those slots. Some techniques may additionally or alternatively be customized for individual slots and / or domains. For example, some techniques may require training a model for each slot type in each domain.

[0078] The dialog manager 720 may be configured to map the current dialog state, for example, provided by the dialog state tracker 718, to one or more "response actions" of a plurality of candidate response actions, which are then executed by the automated assistant 700. The response actions may take a variety of forms, depending on the current dialog state. For example, the initial dialog state and the midstream dialog state corresponding to the turn that occurred before the last turn in the dialog session (e.g., when the final user-desired task is performed) may be mapped to various response actions, and the various response actions include the automated assistant 700 outputting additional natural language dialog. This response dialog may include, for example, a request by the user to provide parameters (i.e., fill a slot) for a certain action that the dialog state tracker 718 believes the user intends to perform. In some implementations, the response actions may include actions such as: "request" (e.g., seeking parameters for slot filling), "offer" (e.g., suggesting an action or course of action for the user), "select", "notify" (e.g., providing the user with the requested information), "unmatched" (e.g., notifying the user that the user's last input could not be understood), a command to a peripheral device (e.g., turning off a light bulb), and the like.

[0079] Figure 8 810 is a block diagram of an example computing device 810 that can optionally be used to perform one or more aspects of the techniques described herein. In some implementations, one or more of a client computing device and / or other components can include one or more components of the example computing device 810.

[0080] The computing device 810 typically includes at least one processor 814 that communicates with a number of peripheral devices via a bus subsystem 812. These peripheral devices may include a storage subsystem 824 (including, for example, a memory subsystem 825 and a file storage subsystem 826), a user interface output device 820, a user interface input device 822, and a network interface subsystem 816. The input and output devices allow interaction with a user of the computing device 810. The network interface subsystem 816 provides an interface to an external network and is coupled to corresponding interface devices in other computing devices.

[0081] The user interface input devices 822 may include a keyboard, a pointing device (such as a mouse, trackball, touch pad or graphics tablet, scanner, touch screen incorporated into a display), an audio input device such as a voice recognition system, a microphone, and / or other types of input devices. In general, the use of the term "input device" is intended to include all possible types of devices and ways of inputting information into the computing device 810 or onto a communication network.

[0082] The user interface output device 820 may include a display subsystem, a printer, a fax machine, or a non-visual display such as an audio output device. The display subsystem may include a cathode ray tube ("CRT"), a flat panel device (such as a liquid crystal display ("LCD")), a projection device, or some other mechanism for producing a visible image. The display subsystem may also provide a non-visual display such as via an audio output device. Generally speaking, the use of the term "output device" is intended to include all possible types of devices and methods for outputting information from the computing device 810 to a user or another machine or computing device.

[0083] The storage subsystem 824 stores programming and data structures that provide the functionality of some or all of the modules described herein. For example, the storage subsystem 824 may include a computer program that executes Figure 6 selected aspects of one or more of the courses and for achieving Figure 7 and / or Figure 7 The logic of the various components is depicted in .

[0084] These software modules are typically executed by the processor 814 alone or in combination with other processors. The memory 825 used in the storage subsystem 824 may include multiple memories, including a main random access memory (RAM) 830 for storing instructions and data during program execution and a read-only memory (ROM) 832 in which fixed instructions are stored. The file storage subsystem 826 can provide persistent storage for program and data files, and can include a hard drive, a floppy disk drive and associated removable media, a CD-ROM drive, an optical drive, or a removable media cartridge. Modules that implement the functionality of certain implementations can be stored by the file storage subsystem 926 in the storage subsystem 824, or stored in other machines accessible by the processor 814.

[0085] The bus subsystem 812 provides a mechanism for the various components and subsystems of the computing device 810 to communicate with each other as intended. Although the bus subsystem 812 is shown schematically as a single bus, alternative implementations of the bus subsystem may use multiple busses.

[0086] The computing device 810 can be of different types, including a workstation, a server, a computing cluster, a blade server, a server farm, or any other data processing system or computing device. Figure 8 The description of computing device 810 depicted in FIG. 8 is intended only as a specific example for illustrating some implementations. Many other configurations of computing device 810 are possible, and these configurations are similar to those of FIG. Figure 8 The computing devices depicted may have more or fewer components than those shown.

[0087] In situations where the systems described herein collect or make available personal information about users (or "participants," as they are often referred to herein), users may be provided with the opportunity to control whether a program or feature collects user information (e.g., information about a user's social network, social behavior or activities, occupation, a user's preferences, or a user's current geographic location), or to control whether and / or how content is received from a content server that may be more relevant to the user. In addition, certain data may be processed in one or more ways before it is stored or used so that personally identifiable information is removed. For example, the identity of a user may be processed so that personally identifiable information about the user cannot be determined, or, in the case of geographic location information, the geographic location of the user may be generalized (such as to a city, zip code, or state level) so that the specific geographic location of the user cannot be determined. Thus, a user may control how information about the user is collected and / or how that information is used.

[0088] In some implementations, a method implemented by one or more processors is provided, the method comprising receiving audio data that captures a user's oral input, wherein the audio data is captured via one or more microphones of a client device. In some implementations, the method further comprises generating a candidate text representation of the oral input. In some implementations, the method further comprises rendering an output based on the candidate text representation to the user. In some implementations, the method further comprises receiving further audio data that captures further oral input of the user while rendering the output. In some implementations, the method further comprises generating a further candidate text representation of the further oral input. In some implementations, the method further comprises determining whether the further oral input is intended to correct at least one word in the candidate text representation of the oral input based on processing the further candidate text representation. In some implementations, in response to determining that the further oral input is intended to be corrected, the method further comprises generating a revised text representation of the oral input, wherein generating the revised text representation comprises changing at least one word in the candidate text representation based on one or more terms of the further candidate text representation. In some implementations, the method further comprises causing the client device to perform one or more actions based on the revised text representation.

[0089] These and other implementations of the technology may include one or more of the following features.

[0090] In some implementations, causing the client device to perform one or more actions based on the revised textual representation includes rendering further output based on the revised textual representation.

[0091] In some implementations, in response to determining that the further spoken input is not intended to correct at least one word in the candidate text representation of the spoken input, the method further includes generating an alternative revised text representation of the spoken input, wherein generating the alternative revised text representation of the spoken input includes appending one or more terms of the further candidate text representation to the candidate text representation. In some implementations, the method further includes causing the client device to perform one or more replacement actions based on the alternative revised text representation.

[0092] In some implementations, in response to determining that the further spoken input is not intended to correct at least one word in the candidate text representation of the spoken input, the method further includes causing the client device to perform one or more further actions based on the further candidate text representation of the further spoken input.

[0093] In some implementations, candidate text representations of the spoken input are generated by processing the spoken input using a streaming automatic speech recognition model. In some of those implementations, further candidate text representations of further spoken input are generated by processing further spoken input using the streaming automatic speech recognition model. In some versions of those implementations, the streaming automatic speech recognition model is stored locally at the client device.

[0094] In some implementations, prior to receiving further audio data capturing the further spoken input, the method further includes determining that the spoken input is complete based on the generated endpoint metric, wherein the further audio data capturing the further spoken input is received after determining that the spoken input is complete.

[0095] In some implementations, the method further includes receiving further audio data capturing further spoken input occurring without determining that the spoken input is complete based on the generated endpoint metric.

[0096] In some implementations, generating a candidate text representation of the spoken input includes generating multiple hypotheses of the candidate text representation and selecting the candidate text representation from the multiple hypotheses. In some versions of those implementations, processing further candidate text representations includes parsing further candidate text representations using a disambiguation model to extract one or more attributes of the further candidate text representations. In some versions of those implementations, the one or more attributes include a pronunciation hint indicating the pronunciation of at least one word in the candidate text representation. In some versions of those implementations, the one or more attributes include a knowledge graph entity indicating a relationship between at least one word in the candidate text representation and the one or more attributes. In some versions of those implementations, the method further includes determining a correction to at least one word in the candidate text representation based on comparing the one or more attributes with the multiple hypotheses of the text representation. In some versions of those implementations, determining a correction to at least one word in the candidate text representation based on comparing the one or more attributes with the multiple hypotheses of the text representation includes identifying one or more low-confidence words in the multiple hypotheses of the text representation. In some implementations, the method further includes determining whether to increase or decrease the confidence of one or more low-confidence words based on the one or more attributes. In some implementations, in response to determining that at least one of the attributes increases the confidence of at least one of the low-confidence words, the method further includes determining a correction to the at least one word based on the at least one attribute. In some versions of those implementations, determining the correction to the at least one word in the candidate text representation based on comparing the one or more attributes to the multiple hypotheses of the text representation includes: rescoring the one or more hypotheses of the text representation based on the one or more attributes, and determining the correction to the at least one word based on the rescoring. In some versions of those implementations, changing at least one word in the candidate text representation based on one or more terms of the further candidate text representation to generate a revised text representation includes processing the candidate text representation using a language model to generate a language score indicating the likelihood of a word sequence in the candidate text representation. In some implementations, the method further includes identifying at least one additional hypothesis of the candidate text representation in the multiple hypotheses of the candidate text representation based on the one or more attributes. In some implementations, the method further includes processing the at least one additional hypothesis using a language model to generate an additional language score indicating the likelihood of a word sequence in the additional hypothesis of the candidate text representation. In some implementations, the method further includes comparing the language score with the additional language score. In some implementations, the method further includes determining whether the at least one additional hypothesis is more likely than the candidate text representation based on comparing the language score to the additional language score.In some implementations, in response to determining that the at least one additional hypothesis is more likely than the candidate text representation, the method further includes generating a revised text representation by changing at least one word in the candidate text representation based on the at least one additional hypothesis.

[0097] In addition, some implementations include one or more processors (e.g., central processing units (CPUs), graphics processing units (GPUs), and / or tensor processing units (TPUs)) of one or more computing devices, wherein the one or more processors are operable to execute instructions stored in an associated memory, and wherein the instructions are configured to cause any of the methods described herein to be performed. Some implementations also include one or more temporary or non-temporary computer-readable storage media storing computer instructions that can be executed by one or more processors to perform any of the methods described herein.< / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity>

Claims

1. A method implemented by one or more processors, the method comprising: receiving audio data capturing a user's spoken input, wherein the audio data is captured via one or more microphones of the client device; generating a candidate textual representation of the spoken input; Rendering output based on the candidate text representation to the user; receiving further audio data capturing further spoken input from the user while rendering the output; generating a further candidate textual representation of the further spoken input; determining whether the further spoken input is intended to correct at least one word in the candidate text representation of the spoken input based on processing the further candidate text representation; In response to determining that the further verbal input is intended to make a correction: generating a revised textual representation of the spoken input, wherein generating the revised textual representation comprises changing the at least one word in the candidate textual representation based on one or more terms of the further candidate textual representation; as well as The client device is caused to perform one or more actions based on the revised textual representation. 2 . The method of claim 1 , wherein causing the client device to perform the one or more actions based on the revised textual representation comprises rendering further output based on the revised textual representation.

3. The method of any preceding claim, further comprising: In response to determining that the further spoken input is not intended to correct the at least one word in the candidate textual representation of the spoken input: generating an alternative revised textual representation of the spoken input, wherein generating the alternative revised textual representation of the spoken input comprises appending one or more terms of the further candidate textual representation to the candidate textual representation; as well as The client device is caused to perform one or more replacement actions based on the replaced revised textual representation.

4. The method of any preceding claim, further comprising: In response to determining that the further spoken input is not intended to correct the at least one word in the candidate textual representation of the spoken input: The client device is caused to perform one or more further actions based on the further candidate text representation of the further spoken input.

5. A method as claimed in any preceding claim, wherein the candidate text representation of the spoken input is generated by processing the spoken input using a streaming automatic speech recognition model, and wherein the further candidate text representation of the further spoken input is generated by processing the further spoken input using the streaming automatic speech recognition model.

6. The method of claim 5, wherein the streaming automatic speech recognition model is stored locally at the client device.

7. The method of any preceding claim, further comprising: prior to receiving the further audio data capturing the further spoken input, determining that the spoken input is complete based on the generated endpoint metric; Wherein after determining that the spoken input has been completed, receiving the further audio data capturing the further spoken input.

8. A method as claimed in any preceding claim, wherein receiving the further audio data capturing the further spoken input occurs without determining that the spoken input has been completed based on the generated endpoint metric.

9. The method of any preceding claim, wherein generating the candidate text representation of the spoken input comprises: generating a plurality of hypotheses for the candidate text representations, and The candidate text representation is selected from the plurality of hypotheses.

10. The method of claim 9, wherein processing the further candidate text representation comprises: The further candidate text representation is parsed using a disambiguation model to extract one or more attributes of the further candidate text representation.

11. The method of claim 10, wherein the one or more attributes include a pronunciation cue indicating a pronunciation of the at least one word in the candidate text representation.

12. The method of claim 10, wherein the one or more attributes comprise a knowledge graph entity, the knowledge graph entity indicating a relationship between the at least one word in the candidate text representation and the one or more attributes.

13. The method of claim 10, further comprising: The correction to the at least one word in the candidate text representation is determined based on comparing the one or more attributes to the plurality of hypotheses for the text representation.

14. The method of claim 13, wherein determining the correction to the at least one word in the candidate text representation based on comparing the one or more attributes to the plurality of hypotheses for the text representation comprises: identifying one or more low confidence words in the plurality of hypotheses for the text representation; determining whether to increase or decrease the confidence of the one or more low-confidence words based on the one or more attributes; as well as In response to determining that at least one of the attributes increases the confidence of at least one of the low confidence words, the correction to the at least one word is determined based on the at least one attribute.

15. The method of claim 13, wherein determining the correction to the at least one word in the candidate text representation based on comparing the one or more attributes to the plurality of hypotheses for the text representation comprises: rescoring one or more of the hypotheses for the textual representation based on the one or more attributes; as well as The correction to the at least one word is determined based on the re-scoring.

16. The method of claim 10, wherein changing the at least one word in the candidate text representation based on one or more terms of the further candidate text representation to generate the revised text representation comprises: processing the candidate text representation using a language model to generate a language score indicating a likelihood of a sequence of words in the candidate text representation; identifying at least one additional hypothesis for the candidate text representation among the plurality of hypotheses for the candidate text representation based on the one or more attributes; processing the at least one additional hypothesis using the language model to generate an additional language score indicating a likelihood of a sequence of words in the additional hypothesis for the candidate text representation; comparing the language score to the additional language score; determining whether the at least one additional hypothesis is more likely than the candidate text representation based on comparing the language score to the additional language score; as well as In response to determining that the at least one additional hypothesis is more likely than the candidate text representation, the revised text representation is generated by changing the at least one word in the candidate text representation based on the at least one additional hypothesis.

17. A client device, comprising: one or more processors; and A memory configured to store instructions, which, when executed by the one or more processors, cause the one or more processors to perform a method, the method comprising: receiving audio data capturing a user's spoken input, wherein the audio data is captured via one or more microphones of the client device; generating a candidate textual representation of the spoken input; Rendering output based on the candidate text representation to the user; receiving further audio data capturing further spoken input from the user while rendering the output; generating a further candidate textual representation of the further spoken input; determining whether the further spoken input is intended to correct at least one word in the candidate text representation of the spoken input based on processing the further candidate text representation; In response to determining that the further verbal input is intended to make a correction: generating a revised textual representation of the spoken input, wherein generating the revised textual representation comprises changing the at least one word in the candidate textual representation based on one or more terms of the further candidate textual representation; and The client device is caused to perform one or more actions based on the revised textual representation.

18. The client device of claim 17, wherein causing the client device to perform the one or more actions based on the revised textual representation comprises rendering further output based on the revised textual representation.

19. The client device of claim 17, wherein the instructions further comprise: In response to determining that the further spoken input is not intended to correct the at least one word in the candidate textual representation of the spoken input: generating an alternative revised textual representation of the spoken input, wherein generating the alternative revised textual representation of the spoken input comprises appending one or more terms of the further candidate textual representation to the candidate textual representation; as well as The client device is caused to perform one or more replacement actions based on the replaced revised textual representation.

20. A client device as described in claim 17, wherein the candidate text representation of the spoken input is generated by processing the spoken input using a streaming automatic speech recognition model, and wherein the further candidate text representation of the further spoken input is generated by processing the further spoken input using the streaming automatic speech recognition model.

21. A non-transitory computer-readable storage medium comprising instructions which, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 1 to 16.

22. A system comprising one or more processors for executing the method of any one of claims 1 to 16.