Determining language for speech recognition of spoken utterances received via automated assistant interface

By providing audio data to multiple machine learning models and calculating entropy scores, the user language is automatically recognized, which solves the problem of difficult recognition by speech recognition engines in multi-language environments, enables multi-language understanding and response of automatic assistants, and reduces waste of resources. and user operations.

CN118538199AActive Publication Date: 2024-08-23GOOGLE LLC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410733939.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-08-23
Filing Date
2019-01-08
Publication Date
2024-08-23
Estimated Expiration
2039-01-08

AI Technical Summary

Technical Problem

It is difficult for existing speech recognition engines to automatically recognize the user's language in a multi-language environment, resulting in automatic assistant failure or excessive use of computing resources and network resources.

Method used

By feeding a user's audio data to multiple machine learning models, an entropy score is calculated to determine the language spoken by the user and the most appropriate language is selected for processing and response.

Benefits of technology

Effective understanding and response of automatic assistants in a multi-language environment reduces the need for users to manually switch language settings, saving computing resources and user operation overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118538199A
    Figure CN118538199A
Patent Text Reader

Abstract

The disclosure relates to determining a language for speech recognition of spoken utterances received via an automated assistant interface. In various implementations, audio data indicative of voice input includes a natural language request from a user, which may be applied as input across multiple speech-to-text ("STT") machine learning models to generate multiple candidate speech recognition outputs. Each STT machine learning model may be trained in a particular language. For each respective STT machine learning model of the plurality of STT models, the plurality of candidate speech recognition outputs may be analyzed to determine an entropy score for the respective STT machine learning model. Based on the entropy score, a target language associated with at least one STT machine learning model of the plurality of STT machine learning models may be selected. The automatic assistant may respond to the request using the target language.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Description of the case

[0002] This application is a divisional application of Chinese invention patent application No. 201980039764.2, with a filing date of January 8, 2019. Technical Field

[0003] The present application relates to determining the language of speech recognition of spoken utterances received via an automated assistant interface. Background Art

[0004] A human may engage in a human-computer conversation with an interactive software application referred to herein as an "automated assistant" (also referred to as a "digital agent," "chatbot," "interactive personal assistant," "intelligent personal assistant," "assistant application," "conversational agent," etc.). For example, a human (who may be referred to as a "user" when they interact with the automated assistant) may provide commands and / or requests to the automated assistant using spoken natural language input (i.e., utterances) that may in some cases be converted to text and then processed and / or by providing textual (e.g., typed) natural language input. The automated assistant responds to the request by providing responsive user interface output, which can include audible user interface output and / or visual user interface output.

[0005] As mentioned above, the automatic assistant can convert the audio data corresponding to the user's spoken words into corresponding text (or other semantic representations). For example, the audio data can be generated based on the detection of the user's spoken words via one or more microphones of the client device, and the client device includes an assistant interface for enabling the user to interact with the automatic assistant. The automatic assistant can include a speech recognition engine that attempts to identify various characteristics of the spoken words captured in the audio data, such as the sounds (e.g., phonemes) produced by the spoken words, the order of the sounds produced, the rhythm of the voice, the intonation, etc. In addition, the speech recognition engine can identify text words or phrases represented by such characteristics. Then, the text can be further processed by the automatic assistant (e.g., using a natural language understanding (NLU) engine and / or a dialog state engine) to determine the response content for the spoken words. The speech recognition engine can be implemented by the client device and / or by one or more automatic assistant components, and the one or more automatic assistant components can be away from the client device but communicate with the client device over a network.

[0006] However, many speech recognition engines are configured to recognize speech in only a single language. For users and / or residents who use multiple languages, such a single-language speech recognition engine may not be satisfactory, and when spoken utterances are received in an additional language that is not a single language supported by the speech recognition engine, the automated assistant may fail and / or provide erroneous outputs. This can render the automated assistant unavailable and / or result in excessive use of computing resources and / or network resources. Excessive use of computing resources and / or network resources may be due to the need for the user to provide further spoken utterances (i.e., provided in the supported single language) when the automated assistant fails or provides erroneous outputs. Such additional spoken utterances must be processed separately by the corresponding client device and / or one or more remote automated assistant components, thereby causing additional use of various resources.

[0007] Other speech recognition engines can be configured to recognize speech in multiple languages, but require the user to explicitly specify which of the multiple languages ​​should be utilized for speech recognition within a given time. For example, some of the other speech recognition engines may require the user to manually specify the default language to be utilized in the speech recognition of all spoken utterances received at a specific client device. To change the default language to another language, the user may be required to interact with a graphical interface and / or an audible interface to explicitly change the default language. Such interaction may result in excessive use of computing resources and / or network resources in the rendering of the interface, the processing of user input provided via the interface, etc. In addition, it may often be a situation where the user forgets to change the default language before providing a spoken utterance that is not currently in the default language. As described above, this may make the rendering automatic assistant unavailable and / or result in excessive use of computing resources and / or network resources. Summary of the invention

[0008] Embodiments described herein relate to systems, methods, and devices for automatically determining a language for speech recognition of spoken utterances received via an automated assistant interface. Some embodiments described herein relate to identifying the language of a user request, processing the request using the language, and / or providing a response in the language. In various embodiments, the request submitted by a first user to the automated assistant may be in a first language. Processing such a request may require the automated assistant to determine which language the first user is speaking. In addition, the first user may prefer that the automated assistant also provide its response in the first language. The same scenario may be repeated in one or more additional languages ​​different from the first language, and may be spoken by the first user or by one or more additional users. This article describes techniques for identifying the language of a user request, processing the request using the language, and / or replying to the request in the language.

[0009] To identify the language of a user request, the automated assistant may provide data indicative of an audio recording of the user request (e.g., the audio recording itself, a dimensionality-reduced embedding, etc.) to multiple machine learning models configured to generate speech-to-text (“STT”) outputs. Each machine learning model may be designed to perform STT processing in a specific language. To this end, each of these machine learning models may analyze the audio recording of the user request (or data indicative thereof) to provide text data of multiple candidate phrases or “hypotheses” corresponding to potential meanings of the audio recording in the model's corresponding language.

[0010] In various embodiments, it can be determined which model should be used, and which language should be used to process the request and / or provide a response output. In some embodiments, for each machine learning model, an entropy score can be calculated, wherein an entropy score indicating low entropy represents a good candidate for the user's language, and an entropy score indicating high entropy represents a bad candidate for the user's language. As used herein, an entropy score generally refers to the level of entropy or diversity among multiple candidate STT phrases. In some embodiments, the entropy score can be based on the average and / or length-standardized edit distance between each candidate phrase and each remaining additional phrase of each machine learning model corresponding to a specific language. This can be calculated based on the character-by-character difference and / or word-by-word difference between any two given phrases. In addition or alternatively, the candidate STT phrases can be embedded in a dimensionality reduction space, and the semantic distance between them can be calculated, for example, based on the Euclidean distance. The average distance calculated by the distance or some other value can be used to determine the entropy score for the specific STT machine learning model. Then, the automatic assistant can select the target language based on the entropy score of each model. In some implementations, the automated assistant may further consider other factors, such as confidence scores for various candidate phrases, the language the assistant has used in the past, and the context of the interaction between the user and the assistant, such as location.

[0011] As an example, assume that both Dave and Alice want to use an automated assistant. Assume that Dave speaks English and Alice speaks Spanish. Dave and Alice want to take turns using the automated assistant and respond in their native language without manually changing the assistant's settings. Assume that Alice comes first and asks the assistant to set an alarm for 8:00 a.m. in Spanish. The assistant will feed the audio recording of her request (or other data of the indicator) into multiple machine learning models, generate candidate phrases corresponding to her request in multiple languages, generate entropy scores for each of the various language models, and select a language based on several factors, including the language model based on the lowest entropy score, which in this case may be Spanish. The assistant will then process Alice's request in Spanish and respond in Spanish to let her know that the alarm has been set. Next, Dave can talk to the assistant in English and ask it to dim the lights. The same process may be repeated, except that in this case, the language model with the lowest entropy score will be English, and the request will be processed in English, and the assistant will respond in English to let Dave know that the lights have been dimmed.

[0012] The techniques described herein result in a number of technical advantages. Processing user requests to determine the language in which they are given enables an automated assistant to understand and respond in multilingual situations (such as multilingual households or destinations with international travelers) without requiring multiple users to manually switch the assistant's operating language in the assistant's settings. This can save time for the user and save computing resources and user overhead required to manually switch the assistant's language to communicate with it.

[0013] In some embodiments, a method implemented by one or more processors is described, the method comprising: receiving voice input from a user at a microphone of a computing device operated by the user to engage with an automated assistant, wherein the voice input includes a request from the user; applying data of an audio recording indicative of the voice input as input to multiple STT machine learning models to generate multiple candidate speech recognition outputs, wherein each of the multiple STT machine learning models is trained in a specific language; for each corresponding STT machine learning model in the multiple STT models, analyzing the multiple candidate speech recognition outputs to determine an entropy score for the corresponding STT machine learning model; based on the entropy scores associated with the multiple STT machine learning models, selecting the language associated with at least one of the multiple STT machine learning models as a target language; and causing the automated assistant to respond to the request from the user using the target language.

[0014] In various embodiments, an entropy score for the corresponding STT machine learning model may be determined based on a count of multiple candidate speech recognition outputs of the corresponding STT model. In various embodiments, an entropy score for the corresponding STT machine learning model may be determined based on a difference between multiple candidate speech recognition outputs of the corresponding STT model. In various embodiments, the entropy score for the corresponding STT machine learning model may be determined based on a semantic distance between multiple candidate speech recognition outputs of the corresponding STT model in a latent space.

[0015] In various embodiments, the target language can be further selected based on one or more of: a historical context of the computing device, a current context of the computing device, or a confidence score calculated for each candidate speech recognition output. In various embodiments, the entropy score for each corresponding STT machine learning model can be calculated using the candidate speech recognition outputs generated by the corresponding STT machine learning model with confidence scores above a certain threshold.

[0016] In various embodiments, the method may further include causing the automated assistant to prompt the user for confirmation based on the user's request before performing any task if the entropy score for the selected STT machine learning model meets a predetermined threshold. In various embodiments, causing may include causing the automated assistant to provide a natural language response to the user's request as an audio output, wherein the natural language response is provided in a target language.

[0017] In various embodiments, the multiple STT machine learning models may include a subset of a superset of STT machine learning models, and the method may further include selecting the subset from the superset based on one or more of: a historical context of the computing device, a current context of the computing device, or settings previously set by the user for the automated assistant.

[0018] Other embodiments may include a non-transitory computer-readable storage medium storing instructions executable by one or more processors (e.g., a central processing unit (CPU), a graphics processing unit (GPU), and / or a tensor processing unit (TPU)) to perform methods such as one or more of the methods described below and / or described elsewhere herein. Other embodiments may still include a system of one or more computers and / or one or more robots, wherein the system of one or more computers and / or one or more robots includes one or more processors operable to execute stored instructions to perform methods such as one or more of the methods described below and / or described elsewhere herein.

[0019] It should be appreciated that all combinations of the foregoing concepts and additional concepts described in greater detail herein are contemplated as being part of the subject matter disclosed herein. For example, all combinations of the claimed subject matter appearing at the end of this disclosure are contemplated as being part of the subject matter disclosed herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 Illustrated is a system for selecting a language for an automated assistant to interact with a user.

[0021] Figure 2 Illustrated is a state machine that may be implemented by an automated assistant in accordance with various implementations.

[0022] Figure 3A and 3B

[0066] Example scenarios are illustrated in accordance with various embodiments in which the techniques described herein may be employed.

[0023] Figure 4 Example methods for practicing selected aspects of the present disclosure are described according to various embodiments.

[0024] Figure 5 is a block diagram of an example computer system. DETAILED DESCRIPTION

[0025] Figure 1A system 100 is illustrated for selecting a language for an automated assistant 104 to interact with a user 130. Automated assistant 104 may operate in part via automated assistant 126 provided at one or more client devices, such as client computing devices 118 (e.g., portable computing devices 132), and in part via one or more remote computing devices 112, such as server device 102 (e.g., which may form part of what is commonly referred to as a "cloud infrastructure" or simply "the cloud"). When "automated assistant 104" is used herein, it may refer to one or both of 104 and 126. User 130 may interact with automated assistant 104 via an assistant interface 128 of client computing device 118. Assistant interface 128 includes user interface input devices and user interface output devices for use by automated assistant 126 in interacting with user 130.

[0026] The assistant interface 128 accepts user interface input directed to the user 130 of the automated assistant 104 and renders content from the automated assistant 104 for presentation to the user 130. The assistant interface 128 may include a microphone, a speaker, a display panel, a camera, a touch screen display, and / or any other user interface device of the client computing device 118. The assistant interface 128 may also include a display, a projector, a speaker, and / or any other user interface output device of the client computing device 118 that may be used to render content from the automated assistant 104. The user may initialize the automated assistant 104 by providing verbal, textual, or graphical input to the assistant interface 128 to cause the automated assistant 104 to perform a function (e.g., provide data, control a peripheral device, access an agent, etc.). In some implementations, the client computing device 118 may include a display device, which may be a display panel including a touch interface for receiving touch input and / or gestures to allow the user to control applications of the client computing device 118 via the touch interface. In some implementations, the client computing device 118 may lack a display device, thereby providing audible user interface outputs instead of graphical user interface outputs. Additionally, client computing device 118 may provide a user interface input device, such as microphone(s), for receiving spoken natural language input from user 130 (as well as from additional users not shown).

[0027] The client computing device 118 may communicate with the remote computing device 112 via one or more networks 114, such as the Internet. The client computing device 118 may offload computing tasks to the remote computing device 112, for example, to save computing resources at the client device 118 and / or to utilize more robust resources available at the remote computing device 112. For example, the remote computing device 112 may host the automated assistant 104, and the client computing device 118 may send input received at one or more assistant interfaces to the remote computing device 112. However, in some embodiments, the automated assistant 104 may be hosted by an automated assistant 126 at the client computing device 118. In various embodiments, all or less than all aspects of the automated assistant 104 may be implemented at the client computing device 118 through the automated assistant 126. In some embodiments of such embodiments, various aspects of the automated assistant 104 are implemented via the local automated assistant 126 of the client computing device 118 and interfaced with the remote computing device 112, which implements other aspects of the automated assistant 104.

[0028] Remote computing device 112 may optionally serve multiple users and their associated assistant applications via multiple threads. In embodiments where all or less than all aspects of automated assistant 104 are implemented via local automated assistant 126 of client computing device 118, local automated assistant 126 may be an application separate from the operating system of client device 118 (e.g., installed "on top of" the operating system) - or may be implemented directly by the operating system of client device 118 (e.g., treated as an application of the operating system, but integrated with the operating system).

[0029] In some embodiments, the remote computing device 112 may include a speech recognition engine 134 that can process audio data received at the assistant interface 128 to determine text and / or other semantic representations of spoken utterances embodied in the audio data. The speech recognition engine 134 may utilize one or more speech recognition models 136 when determining text and / or other semantic representations of spoken utterances embodied in the audio data, at least some of which may be referred to as "speech to text" models or "STT" models. As described herein, multiple speech recognition models 136 may be provided, and each speech recognition model may be used for a corresponding language. For example, a first speech recognition model may be used for English, a second speech recognition model may be used for French, a third speech recognition model may be used for Spanish, a fourth speech recognition model may be used for Mandarin, a fifth speech recognition model may be used for Japanese, and the like. In some embodiments, a language model may include or refer to an acoustic model, a speech recognition model, a call phrase model, a speech-to-text model, a speech-to-semantic representation model, a text-to-semantic representation model, and / or any other model that may be used to convert natural language input into data that may be processed by an application or device.

[0030] In some embodiments, the speech recognition models 136 each include one or more machine learning models (e.g., neural network models) and / or statistical models for determining text (or other semantic representations), which corresponds to the spoken utterances embodied in the audio data. In some embodiments, the speech recognition engine 134 can utilize one of the speech recognition models 136 to determine the phonemes for the corresponding language included in the audio data, and then generate text for the corresponding language based on the determined phonemes. In some embodiments, the speech recognition model receives an audio recording of a voice input, for example, in the form of digital audio data, and converts the digital audio data into one or more text tokens (e.g., STT processing). One or more models used by such functionality that can be considered together as speech recognition models generally model the relationship between audio signals and phonetic units in a language and word sequences in a language. In some embodiments, the speech recognition model can be an acoustic model, a language model, a pronunciation model, etc., as well as a model combining the functionality of one or more such models. For example, in some embodiments, the speech recognition model can be implemented as a finite state decoding graph including multiple paths or passages.

[0031] In addition, as described herein, multiple speech recognition models 136 for multiple different languages ​​can be utilized in the processing of audio data to generate multiple candidate semantics and / or text representations for each language in multiple different languages. For example, in some of those embodiments, each speech recognition model can generate multiple candidate speech recognition outputs or "hypotheses". Each candidate speech recognition output / hypothesis for a given language can constitute a "guess" or "prediction" about what the user said. If the language used by the user is a different language from the language of the training specific model, there is a possibility that multiple candidate speech recognition outputs generated by the model may greatly change from each other in semantics and / or syntax, because there is no training specific model to process the language. On the contrary, if the language used by the user is the language targeted by the trained specific model, there is a possibility that multiple candidate speech recognition outputs will be relatively similar in semantics and / or syntax. In various embodiments, the semantic and / or syntactic changes between the multiple speech recognition outputs of the language model can be quantified in a manner referred to as "entropy" score or "diversity" score in this article.

[0032] In some implementations, an entropy score for a particular language may be determined using an equation such as:

[0033]

[0034] Here, N is a positive integer representing the total number of hypotheses generated by STT under the model considered in calculating the entropy score, h i represents the i-th hypothesis for language generation, d(h i ,h j ) represents the edit distance between the ith hypothesis and the jth hypothesis (i and j are both positive integers), and |h i | represents the number of characters in the i-th hypothesis h i . The edit distance d can be a measure of how different two hypotheses are from each other, and in some cases can range from zero (i.e., no difference) to the sum of the number of characters in each hypothesis. Therefore, in embodiments employing the above equation, the entropy or diversity score can be the average and length-normalized edit distance between any two pairs of hypotheses, and can be considered a measure of the uncertainty of the STT results. The value output by this equation may be negatively correlated with the actual cross-entropy of the hypotheses produced by the STT model in question. For example, the lower the value output by this equation, the greater the entropy, and vice versa. However, this is not meant to be limiting. Different formulas can be used for entropy approximation.

[0035] Note that in some embodiments, N is not necessarily equal to the number of hypotheses generated by a particular speech recognition model 136. For example, a given speech recognition model 136 may generate a large number of hypotheses. In some such cases, for example, based on an analysis of the lattice posterior for each hypothesis (e.g., the posterior probability resulting from decoding the recognition graph), the actual number of hypotheses considered in determining the entropy score can be limited to N. In some embodiments, the lattice posterior for each hypothesis h can be included in the above equation, for example, as a proportional term to the edit distance d(). In some embodiments, the actual number of hypotheses considered in determining the entropy score can be limited to a value of N (a positive integer). In some embodiments, the value N can be constant for all queries. In some embodiments, the value of N can be dynamic, such as changing from query to query based on comparing the probability of the hypothesis to a threshold.

[0036] Other equations are also contemplated herein. For example, in some embodiments, in addition to or instead of the edit distance, the distance between two embeddings of two hypotheses may be considered, for example in a latent semantic (or syntactic) space. In some such embodiments, the average of the pairwise distances between all hypotheses (or their potential embeddings) may be used as the entropy score for the speech recognition model.

[0037] Return to reference Figure 1 , the automated assistant 104 can operate according to one or more language models simultaneously in order to respond to natural language input from the user 130 and / or provide response content to the user 130. In some embodiments, the automated assistant 104 can operate using both a call phrase model and a speech recognition model associated with a specific language. In this way, the automated assistant can process audio data that embodies a call phrase and one or more commands provided in a specific language, and respond to both the call phrase and the one or more commands. The text converted from the audio data and / or the semantic representation of the text can be parsed by the text parser engine 110 and can be available to the automated assistant 104 as text data or semantic data, which can be used to generate and / or identify command phrases from the user 130 and / or third-party applications.

[0038] When user 130 communicates with automated assistant 126 at client computing device 118, user 130 may provide spoken natural language input to assistant interface 128 of client computing device 118. The spoken natural language input may be converted into audio data, which may be processed by client language model 124, such as an invocation phrase model to identify whether the audio data embodies an invocation phrase for invoking automated assistant 126. In some implementations, the invocation phrase model may be employed at client computing device 118 to determine whether user 130 intends to invoke automated assistant 104. When the user provides natural language input to assistant interface 128, and the natural language input includes an invocation phrase for invoking automated assistant 104, client computing device 118 may cause automated assistant 104 at server device 102 to receive the natural language input and / or subsequent natural language input from user 130.

[0039] For example, in response to determining that the user 130 intends to invoke the automated assistant 104 at the client computing device 118, one or more communication channels may be established between the client computing device 118 and the server device 102. Thereafter, as the user continues to provide natural language input to the assistant interface 128, the natural language input will be converted into data, which is then sent over the network 114 and processed by the server device 102. Thereafter, a plurality of speech recognition models 136 may be used to process each of the natural language inputs described herein. Based on the entropy / diversity score, one or more speech recognition models 136 may be selected as appropriate models for each natural language input. In some embodiments, the candidate speech recognition with the highest confidence score generated by the model may be processed by the automated assistant 104 to determine which response action to perform.

[0040] Figure 2 The diagram illustrates how audio data 260 indicative of spoken natural language input captured at one or more microphones may be processed to determine a language model for downstream processing. The audio data 260 may alternatively take the form of a recording of the spoken natural language input, an embedding generated from such a recording, a feature vector having features extracted from the recording and / or the embedding, and the like.

[0041] First, the audio data 260 is provided as a plurality of STT models 1361-136 N(also referred to herein as "speech recognition models") are applied. The number N of models employed can be selected based on various factors. For example, a user who lives in a multilingual household or works in a multilingual workplace can operate the graphical user interface or voice interface of the automated assistant 104 to select as many languages ​​as the user desires to use in processing. For example, if the user lives in a bilingual household that speaks English and Spanish, the user can select both languages, and two corresponding STT models 136 can be used to process the speech input. In some embodiments, there may be multiple dialects for a particular language. In this case, the user can select one or more of those dialects, such as Castilian Spanish and Catalan Spanish.

[0042] Figure 2 Each STT model 136 in generates at least one hypothesis, and in most cases generates multiple hypotheses. For example, STT model 1361 generates a first hypothesis 1A, a second hypothesis 1B, STT model 1362 generates a first hypothesis 1A, a second hypothesis 1B, and so on. For each STT model 136, an entropy score is calculated based on multiple hypotheses generated by the STT model 136, for example, using the previously described equation or another equation. The entropy score can then be provided to the speech recognition engine 134. The target language 270 can be selected based at least in part on the entropy score. For example, the language for which the lowest entropy score is generated can be selected as the target language 270. In various embodiments, the target language 270 can be used in downstream processing (such as in parsing, natural language processing, semantic processing, natural language generation, etc.) through the dialogue state engine. For example, if Italian is selected based on Italian having the lowest entropy score, an Italian natural language processing model and / or a semantic processing model trained in Italian can be used downstream. The natural language output provided by automated assistant 104 in response to the natural language input embodied in audio data 260 may be in Italian.

[0043] In some embodiments, in addition to the entropy score, the speech recognition engine 134 may also use one or more other signals 265 to select a target language 270. Signals such as confidence scores for individual hypotheses, audio-based speaker identification, visual-based speaker identification (e.g., facial recognition, recognition of a badge or other marking, detection of wireless signals emitted by a device carried by the speaker, etc.), time of day, languages ​​that have been used by the automated assistant 104 in the past, the context of the interaction between the user and the automated assistant 104, such as the user's location as determined by a location coordinate sensor (e.g., GPS, wireless triangulation), may also be considered. In some embodiments, third-party applications that fulfill the user's request through automated assistant interaction (e.g., car sharing services, food ordering services, etc.) may also be considered. Additionally or alternatively, in some embodiments, information from the user's online profile 120 (see Figure 1 ), which may include one or more of the above-mentioned signals or additional signals. For example, the user's personal profile 120 may indicate the language she speaks, where she is going, her preferences, etc.

[0044] In some such implementations, these other factors can be used as tiebreakers for two STT models 136 with similar entropy scores. For example, assume that the audio data 260 contains requests in Italian. Because both Italian and Spanish are romance languages, the entropy scores calculated based on their respective assumptions may be similar. In this case, the fact that the user is located in Italy rather than a Spanish-speaking country such as Spain or Mexico can be used to break the tie. As another example, assume that the user has an online personal profile that indicates that he or she speaks Spanish. Such a signal can be used as a tiebreaker to decide that the selected target language should be Spanish rather than Italian.

[0045] Figure 3A and 3B An example is illustrated in which the techniques described herein are implemented to facilitate a conversation between two users 101A and 101B and an automated assistant 104 operating at least in part on a client computing device 318. In this example, the client computing device 318 takes the form of a stand-alone interactive speaker, but this is not limiting. As previously mentioned, the client computing device 318 can take other forms (including assistant devices), such as a vehicle computing system, a smart TV, a "dumb" TV equipped with a networked key that can be used to engage with the automated assistant 104, a smart watch, a smartphone, an assistant-equipped smart appliance, and the like.

[0046] exist Figure 3A, the first user 101A asks “OK Assistant, how do I enable fingerprint authentication on my smart watch?” The automated assistant 104 may or may not use the techniques described herein to determine that the first user 101A speaks English. For example, the automated assistant 104 may process each request through the native language set by the first user 101A (English in this example), and in parallel use the techniques described herein to identify other languages ​​that the speaker may have used. If the confidence metric of the English STT output is greater than some threshold, or is sufficiently greater than the highest confidence metric of the language selected using the techniques described herein, English may be selected. Alternatively, in some embodiments, the techniques described herein may be used to process the audio data that captures each utterance. Alternatively, in some embodiments, one or more confounding signals 265 (e.g., location, speaker identity determined using speaker recognition, etc.) may be used to determine whether a default language (e.g., Figure 3A ), whether the target language should be selected using only the techniques described herein, or whether a default language should be used in parallel with the techniques described herein.

[0047] Figure 3B Describe an example of how the conversation could continue. Figure 3B , another user 101B asks the question in Chinese, “What about two-factor authorization?” This translates to “What about two-factor authentication?” in English. In some embodiments where the English STT model and techniques described herein are employed in parallel, the output from the English STT model may have a low confidence metric (e.g., below a threshold). In contrast, the Chinese STT model selected using the techniques described herein—i.e., the model that may have the lowest entropy score—may have a greater confidence metric. Therefore, the output of the Chinese STT model may be employed instead, and downstream processing may or may not also employ the Chinese model and / or elements. As Figure 3B As shown in , automated assistant 104 responds "Same menu, but select 'two-factor'". This translates to "Same menu, but select 'two-factor'" in English.

[0048] In some embodiments, the automated assistant 104 may select various attributes of the natural language output based on the selected language. For example, suppose a question such as "How farfrom Louisville Kentucky is Frankfort Kentucky?" is asked in Chinese. China is a country that generally adopts the metric system. Therefore, in various embodiments, the answer may be provided in kilometers (and Chinese). On the other hand, if the same question is asked in English, the automated assistant 104 may respond in imperial units (and English) instead.

[0049] Figure 4 An example method 400 for practicing selected aspects of the present disclosure according to various embodiments is depicted. For convenience, the operations of the flowchart are described with reference to a system that performs the operations. The system may include various components of various computer systems, including Figure 1 Furthermore, although the operations of method 400 are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, or added.

[0050] At block 402, the system may receive voice input from a user, for example, at a microphone (e.g., 118) of a computing device operated by the user to engage with an automated assistant (e.g., 104) or at another microphone communicatively coupled to the computing device. The voice input may include a request from the user, such as a request for information (e.g., weather), a request to perform some responsive action (e.g., call a ride-sharing vehicle, start a timer, operate a smart device, etc.), and the like.

[0051] At box 404, the system can apply data of the audio recording indicative of the voice input (such as the audio recording itself, embeddings, feature vectors, etc.) as input to multiple STT machine learning models (e.g., 136) to generate multiple candidate speech recognition outputs (or "hypotheses"). Each of the multiple STT machine learning models can be trained with a specific language. As previously described, these models can take various forms, such as neural networks, hidden Markov models, etc.

[0052] At box 406, the system can analyze multiple candidate speech recognition outputs for each corresponding STT machine learning model in the multiple STT models to determine the entropy score of the corresponding STT machine learning model. Various equations and / or heuristics, such as the above equation, can be used. For example, the above equation relies on the normalized edit distance (i.e., the difference between the hypotheses). Other embodiments may rely on the distance of the reduced dimension embedding of multiple candidate speech recognition outputs in the latent space. In addition or alternatively, other factors that can be considered when calculating the entropy score include, but are not limited to, the count of hypotheses generated by a given STT model, the count of hypotheses generated by a given STT model that meet some criteria (e.g., a confidence threshold), the semantic difference between hypotheses (e.g., which can be determined by embedding them into a semantic latent space), and the like.

[0053] As previously described, there may be many different STT models for many different languages. From the perspective of computing resources, it may be wasteful to apply all models in all cases. Therefore, in various embodiments, various factors such as one or more mixed signals 265 can be used to select which STT model to use. For example, in some embodiments, the multiple STT machine learning models ultimately used may be a subset of a superset of STT machine learning models. The subset of STT models actually used can be selected from the superset based on various signals (such as the historical context of the computing device, the current context of the computing device, the settings previously set by the user for the automated assistant, etc.), time of day, historical usage, the user's profile 120 (for example, which can be consulted when identifying the user by the user's visual appearance or voice), and the like.

[0054] At box 408, the system can select a language associated with at least one of the multiple STT machine learning models (e.g., a language used for training) as a target language based at least in part on the entropy scores associated with the multiple STT machine learning models. As previously described, in some embodiments, other mixed signals (e.g., 265) may also be considered, for example, as tiebreakers. In some embodiments, the output of the selected STT model, which may be one or more hypotheses with the highest confidence metric, may be used for downstream processing. In some embodiments, the entropy score itself can be used to determine the confidence metric of the STT output. It is assumed that a particular STT model has the lowest entropy score and is therefore selected. However, for example, when the speaker does not clearly express a request, the entropy score of the STT model may still be relatively large. In some embodiments, this relatively large entropy score may affect the confidence scores calculated for each hypothesis generated from the STT model. If those confidences fail to meet some thresholds, the automated assistant 104 can seek further confirmation and / or ambiguity elimination from the user.

[0055] At box 410, the system can make the automatic assistant use the target language to respond to the request from the user. For example, in some embodiments, the downstream components (such as natural language processor, semantic processor, dialogue state engine, natural language generator, etc.) tailored for the selected target language can be used to process the user's request. Additionally or alternatively, in some embodiments, the user's request can be embedded in a semantic latent space, in which the grammar of the request is more or less ignored or discarded, thereby facilitating a semantically rich feature representation. In some such embodiments, at least some of the downstream components for processing the user's request can be language-independent. In some cases, responding to the user's request can include generating and providing a natural language output, which can be presented audibly (e.g., by a speech synthesizer) and / or visually. In some such cases, the language used to generate the natural language output can be the selected target language, and in applicable cases, a speech synthesizer can be selected based on the target language.

[0056] Figure 5 5 is a block diagram of an example computer system 510. The computer system 510 generally includes at least one processor 514 that communicates with a number of peripheral devices via a bus subsystem 512. These peripheral devices may include a storage subsystem 524, including, for example, memory 525 and a file storage subsystem 526; a user interface output device 520; a user interface input device 522, and a network interface subsystem 516. The input and output devices allow a user to interact with the computer system 510. The network interface subsystem 516 provides an interface to an external network and is coupled to corresponding interface devices in other computer systems.

[0057] User interface input devices 522 may include a keyboard; a pointing device such as a mouse, trackball, touchpad, or graphics tablet; a scanner; a 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 computer system 510 or onto a communication network.

[0058] The user interface output device 520 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 creating a visual image. The display subsystem may also provide a non-visual display such as via an audio output device. In general, the use of the term "output device" is intended to include all possible types of devices and methods for outputting information from the computer system 510 to a user or another machine or computer system.

[0059] The storage subsystem 524 stores programming and data structures that provide the functionality of some or all of the modules described herein. For example, the storage subsystem 524 may include logic for performing selected aspects of the method 400 and / or implementing one or more of the following: the server device 102, the client computing device 118, the portable computing device 132, and / or any other device or operation discussed herein.

[0060] These software modules are typically executed by the processor 514 alone or in combination with other processors. The memory 525 used in the storage subsystem 524 may include multiple memories, including a main random access memory (RAM) 530 for storing instructions and data during program execution and a read-only memory (ROM) 532 storing fixed instructions. The file storage subsystem 526 can provide persistent storage for program and data files, and can include a hard disk drive, a floppy disk drive and associated removable media, a CD-ROM drive, an optical drive, or a removable media box. Modules that implement the functionality of certain embodiments can be stored in the storage subsystem 524 by the file storage subsystem 526, or in other machines that can be accessed by one or more processors 514.

[0061] The bus subsystem 512 provides a mechanism for the various components and subsystems of the computer system 510 to communicate with each other as intended. Although the bus subsystem 512 is shown schematically as a single bus, alternative implementations of the bus subsystem may use multiple busses.

[0062] Computer system 510 can be of various types, including a workstation, server, computing cluster, blade server, server farm, or any other data processing system or computing device. Due to the ever-changing nature of computers and networks, Figure 5 The description of the computer system 510 depicted in FIG. 5 is intended only as a specific example for the purpose of illustrating some embodiments. Many other configurations of the computer system 510 may have more Figure 5 The computer system depicted in FIG.

[0063] In situations where the systems described herein collect personal information about users (or "participants" as they are often referred to herein) or may use personal information, 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 that may be more relevant to the user is received from a content server. In addition, certain data may be processed in one or more ways before being stored or used so that personally identifiable information is removed. For example, the identity of a user may be processed so that no personally identifiable information can be determined for the user, or the user's geographic location (such as a city, zip code, or state level) may be generalized in the case where geographic location information is obtained so that the user's specific geographic location cannot be determined. Thus, users may control how information about the user is collected and / or how the information is used.

[0064] Although several embodiments have been described and illustrated herein, various other means and / or structures for performing functions and / or obtaining results and / or one or more advantages described herein may be utilized, and each of these changes and / or modifications is considered to be within the scope of the embodiments described herein. More generally, all parameters, dimensions, materials, and configurations described herein are intended to be exemplary, and actual parameters, dimensions, materials, and / or configurations will depend on one or more specific applications using these teachings. Those skilled in the art will recognize or be able to determine many equivalents of the specific embodiments described herein using experiments that do not exceed routine. Therefore, it is to be understood that the aforementioned embodiments are presented only as examples, and within the scope of the attached claims and their equivalents, the embodiments may be practiced in a manner different from that specifically described and claimed. The embodiments of the present disclosure relate to each individual feature, system, article, material, kit, and / or method described herein. In addition, if these features, systems, articles, materials, kits, and / or methods do not contradict each other, any combination of two or more such features, systems, articles, materials, kits, and / or methods is included within the scope of the present disclosure.

Claims

1. A method comprising: receiving, at a microphone of a computing device operated by a user to engage with an automated assistant, voice input from a user, wherein the voice input comprises a request from the user; applying data indicative of an audio recording of the voice input as input across a plurality of speech-to-text (STT) machine learning models to generate a corresponding plurality of candidate speech recognition outputs for each STT machine learning model, wherein each of the plurality of STT machine learning models is trained to generate speech recognition outputs in a different language; For each corresponding STT machine learning model in the plurality of STT models: comparing the content of one of the corresponding multiple candidate speech recognition outputs generated based on the corresponding STT machine learning model with the content of at least another candidate speech recognition output of the corresponding multiple candidate speech recognition outputs generated based on the corresponding STT machine learning model, and Based on the comparison, determining a diversity score for the corresponding STT machine learning model; Based on a plurality of different diversity scores associated with a plurality of different STT machine learning models, selecting a language associated with at least one STT machine learning model of the plurality of STT machine learning models as a target language; and The automated assistant is caused to respond to the request from the user using the target language.

2. The method according to claim 1, wherein: The diversity score for the corresponding STT machine learning model is determined based on the differences between the corresponding multiple candidate speech recognition outputs of the corresponding STT model.

3. The method according to claim 1, wherein: The diversity score of the corresponding STT machine learning model is determined based on the semantic distance between the embeddings of the corresponding multiple candidate speech recognition outputs generated based on the corresponding STT model in the latent space.

4. The method according to claim 1, wherein: Selecting the target language is further based on one or more of: a historical context of the computing device, a current context of the computing device, or a confidence score calculated for each candidate speech recognition output.

5. The method according to claim 1, wherein: The diversity score for each corresponding STT machine learning model is calculated using two or more of the corresponding multiple candidate speech recognition outputs generated by the corresponding STT machine learning model that have confidence scores above a specific threshold.

6. The method according to claim 1, further comprising: If the diversity score for the selected STT machine learning model meets a predetermined threshold, the automated assistant is caused to prompt the user for confirmation based on the user's request before performing any task.

7. The method according to claim 1, wherein: The causing includes causing the automated assistant to provide a natural language response to the request of the user as an audio output, wherein the natural language response is provided in the target language.

8. The method according to claim 1, wherein: The multiple STT machine learning models include a subset of a superset of STT machine learning models, and wherein the method further includes selecting the subset from the superset based on one or more of the following items: a historical context of the computing device, a current context of the computing device, or settings previously set by the user for the automated assistant.

9. A system comprising one or more processors and a memory operably coupled to the one or more processors, wherein: The memory stores instructions that, in response to execution of the instructions by one or more processors, cause the one or more processors to: receiving, at a microphone of a computing device operated by a user to engage with an automated assistant, voice input from a user, wherein the voice input comprises a request from the user; applying data indicative of an audio recording of the voice input as input across a plurality of speech-to-text (STT) machine learning models to generate a corresponding plurality of candidate speech recognition outputs for each STT machine learning model, wherein each of the plurality of STT machine learning models is trained to generate speech recognition outputs in a different language; For each corresponding STT machine learning model in the plurality of STT models: comparing the content of one of the corresponding multiple candidate speech recognition outputs generated based on the corresponding STT machine learning model with the content of at least another candidate speech recognition output of the corresponding multiple candidate speech recognition outputs generated based on the corresponding STT machine learning model, and Based on the comparison, determining a diversity score for the corresponding STT machine learning model; Based on a plurality of different diversity scores associated with a plurality of different STT machine learning models, selecting a language associated with at least one STT machine learning model of the plurality of STT machine learning models as a target language; and The automated assistant is caused to respond to the request from the user using the target language.

10. The system according to claim 9, wherein: The diversity score for the corresponding STT machine learning model is determined based on the differences between the corresponding multiple candidate speech recognition outputs of the corresponding STT model.

11. The system according to claim 9, wherein: The diversity score of the corresponding STT machine learning model is determined based on the semantic distance between the corresponding multiple candidate speech recognition outputs of the corresponding STT model in the latent space.

12. The system according to claim 9, wherein: Selecting the target language is further based on one or more of: a historical context of the computing device, a current context of the computing device, or a confidence score calculated for each candidate speech recognition output.

13. The system according to claim 9, wherein: The diversity score for each corresponding STT machine learning model is calculated using one or more of the corresponding multiple candidate speech recognition outputs generated by the corresponding STT machine learning model that have a confidence score above a specific threshold.

14. The system of claim 9, further comprising: If the diversity score for the selected STT machine learning model meets a predetermined threshold, the automated assistant is caused to prompt the user for confirmation based on the user's request before performing any task.

15. The system according to claim 9, wherein: The causing includes causing the automated assistant to provide a natural language response to the request of the user as an audio output, wherein the natural language response is provided in the target language.

16. At least one non-transitory computer-readable storage medium comprising instructions that, in response to being executed by one or more processors, cause the one or more processors to: receiving voice input from a user at a microphone of a computing device operated by the user to engage with the automated assistant, wherein The voice input includes a request from the user; applying data indicative of an audio recording of the voice input as input across a plurality of speech-to-text (STT) machine learning models to generate a corresponding plurality of candidate speech recognition outputs for each STT machine learning model, wherein each of the plurality of STT machine learning models is trained to generate speech recognition outputs in a different language; For each corresponding STT machine learning model in the plurality of STT models: comparing the content of one of the corresponding multiple candidate speech recognition outputs generated based on the corresponding STT machine learning model with the content of at least another candidate speech recognition output of the corresponding multiple candidate speech recognition outputs generated based on the corresponding STT machine learning model, and Based on the comparison, determining a diversity score for the corresponding STT machine learning model; Based on a plurality of different diversity scores associated with a plurality of different STT machine learning models, selecting a language associated with at least one STT machine learning model of the plurality of STT machine learning models as a target language; and The automated assistant is caused to respond to the request from the user using the target language.

17. The at least one non-transitory computer-readable medium of claim 16, wherein: The diversity score of the corresponding STT machine learning model is determined based on the semantic distance between the corresponding multiple candidate speech recognition outputs of the corresponding STT model in the latent space.

Citation Information

Patent Citations

  • Machine translation method and machine translation system

    CN103678285A

  • Natural language understanding method and natural language understanding system

    CN104360994A

  • Speech control method and device for home appliance

    CN106997762A

  • Updating language understanding classifier models for a digital personal assistant based on crowd-sourcing

    CN107210033A

  • Detecting actionable items in a conversation among participants

    CN108028043A