# US 2024/0194188 A1 · Voice-history Based Speech Biasing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0194188 A1
- Document ID: US20240194188A1
- Status: Published application
- Kind: A1
- Application number: 18/063,118
- Filed: 2022-12-08
- Published: 2024-06-13
- Earliest claimed: 2022-12-08
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Agoston Weisz; Mikhail Dektiarev
- Web page: https://patentgrep.com/patent/US20240194188A1

## CPC

- G10L 15/07: to the speaker
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L 15/197: Probabilistic grammars, e.g. word n-grams
- G10L 15/30: Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
- G06F 3/167: {Audio in a user interface, e.g. using voice commands for navigating, audio feedback}
- G10L 15/16: using artificial neural networks
- G10L 2015/227: {of the speaker; Human-factor methodology}
- G10L 2015/228: {of application context}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of using voice query history to improve speech recognition includes receiving audio data corresponding to a current query spoken by a user and processing the audio data to generate a lattice of candidate hypotheses. The method also includes obtaining voice query history data associated with the user that includes n-grams extracted from transcriptions of previous queries spoken by the user, and generating, using a biasing context model configured to receive the voice query history data, a biasing context vector. The biasing context vector indicates a likelihood that each n-gram from the n-grams extracted from the transcriptions of the previous queries spoken by the user will appear in the current query. The method also includes augmenting the lattice of candidate hypotheses based on the biasing context vector and determining a transcription for the current query based on the augmented lattice of candidate hypotheses.

## Claims

### Claim 1

A computer-implemented method executed on data processing hardware that causes the data processing hardware to perform operations comprising:
receiving audio data corresponding to a current query spoken by a user;
processing, using a speech recognizer, the audio data to generate a lattice of candidate hypotheses, each candidate hypothesis corresponding to a candidate transcription for the current query and represented by a respective sequence of hypothesized terms;
obtaining voice query history data associated with the user, the voice query history data comprising n-grams extracted from transcriptions of previous queries spoken by the user;
generating, using a biasing context model configured to receive the voice query history data, a biasing context vector, the biasing context vector indicating a likelihood that each n-gram from the n-grams extracted from the transcriptions of the previous queries spoken by the user will appear in the current query;
augmenting the lattice of candidate hypotheses based on the biasing context vector; and
determining a transcription for the current query based on the augmented lattice of candidate hypotheses.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein:
augmenting the lattice of candidate hypotheses comprises determining, using the biasing context vector, corresponding likelihood scores for the candidate hypotheses; and
determining the transcription for the current query comprises:
ranking the candidate hypotheses based on the corresponding likelihood scores determined for the candidate hypotheses; and
selecting the highest ranking one of the candidate hypotheses as the transcription of the current query.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the n-grams of the voice query history data comprise n-grams extracted from only previous queries spoken by the user within a threshold time before the current query.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the voice query history data includes user statistics for each corresponding n-gram among the n-grams extracted from the transcriptions of the previous queries spoken by the user associated with the user that spoke the current query, the user statistics for each corresponding n-gram indicating at least one of:
a frequency that the corresponding n-gram appears in transcriptions of the previous queries spoken by the user;
a frequency that the corresponding n-gram appeared in a successful transcription of the previous queries spoken by the user; or
a frequency that the corresponding n-gram appeared in a corrected transcription.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the user statistics for each corresponding n-gram further comprise one or more features associated with the transcription of the previous query that included the corresponding n-gram, the one or more features comprising:
a source that captured the previous query;
an application the previous query was directed toward; or
a time when the previous query was spoken by the user.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the voice query history data further comprises n-grams extracted from transcriptions of query histories of a corpus of users.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the voice query history data includes global statistics for each corresponding n-gram among the n-grams extracted from the transcriptions of the query histories of the corpus of users, the global statistics for each corresponding n-gram indicating at least one of:
a frequency that the corresponding n-gram appeared in the transcriptions of the previous queries of the corpus of users;
a frequency that the corresponding-gram appeared in a successful transcription of the previous queries of the corpus of users; or
a frequency that the corresponding n-gram appeared in a corrected transcription.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein, when generating the biasing context vector, the biasing context model is further configured to receive contextual features indicating at least one of:
a source that captured the current query;
an application the current query was directed toward; or
a time of the current query.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the speech recognizer comprises an end-to-end speech recognition model.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein:
the current query spoken by the user is captured by a client device associated with the user; and
the data processing hardware resides on the client device or a computing system in communication with the client device via a network.

### Claim 11

A system comprising:
data processing hardware; and
memory hardware in communication with the data processing hardware, the memory hardware storing instructions that when executed on the data processing hardware cause the data processing hardware to perform operations comprising:
receiving audio data corresponding to a current query spoken by a user;
processing, using a speech recognizer, the audio data to generate a lattice of candidate hypotheses, each candidate hypothesis corresponding to a candidate transcription for the current query and represented by a respective sequence of hypothesized terms;
obtaining voice query history data associated with the user, the voice query history data comprising n-grams extracted from transcriptions of previous queries spoken by the user;
generating, using a biasing context model configured to receive the voice query history data, a biasing context vector, the biasing context vector indicating a likelihood that each n-gram from the n-grams extracted from the transcriptions of the previous queries spoken by the user will appear in the current query;
augmenting the lattice of candidate hypotheses based on the biasing context vector; and
determining a transcription for the current query based on the augmented lattice of candidate hypotheses.

### Claim 12 (depends on 11)

The system of claim 11, wherein:
augmenting the lattice of candidate hypotheses comprises determining, using the biasing context vector, corresponding likelihood scores for the candidate hypotheses; and
determining the transcription for the current query comprises:
ranking the candidate hypotheses based on the corresponding likelihood scores determined for the candidate hypotheses; and
selecting the highest ranking one of the candidate hypotheses as the transcription of the current query.

### Claim 13 (depends on 11)

The system of claim 11, wherein the n-grams of the voice query history data comprise n-grams extracted from only previous queries spoken by the user within a threshold time before the current query.

### Claim 14 (depends on 11)

The system of claim 11, wherein the voice query history data includes user statistics for each corresponding n-gram among the n-grams extracted from the transcriptions of the previous queries spoken by the user associated with the user that spoke the current query, the user statistics for each corresponding n-gram indicating at least one of:
a frequency that the corresponding n-gram appears in transcriptions of the previous queries spoken by the user;
a frequency that the corresponding n-gram appeared in a successful transcription of the previous queries spoken by the user; or
a frequency that the corresponding n-gram appeared in a corrected transcription.

### Claim 15 (depends on 14)

The system of claim 14, wherein the user statistics for each corresponding n-gram further comprise one or more features associated with the transcription of the previous query that included the corresponding n-gram, the one or more features comprising:
a source that captured the previous query;
an application the previous query was directed toward; or
a time when the previous query was spoken by the user.

### Claim 16 (depends on 11)

The system of claim 11, wherein the voice query history data further comprises n-grams extracted from transcriptions of query histories of a corpus of users.

### Claim 17 (depends on 16)

The system of claim 16, wherein the voice query history data includes global statistics for each corresponding n-gram among the n-grams extracted from the transcriptions of the query histories of the corpus of users, the global statistics for each corresponding n-gram indicating at least one of:
a frequency that the corresponding n-gram appeared in the transcriptions of the previous queries of the corpus of users;
a frequency that the corresponding-gram appeared in a successful transcription of the previous queries of the corpus of users; or
a frequency that the corresponding n-gram appeared in a corrected transcription.

### Claim 18 (depends on 11)

system of claim 11, wherein, when generating the biasing context vector, the biasing context model is further configured to receive contextual features indicating at least one of:
a source that captured the current query;
an application the current query was directed toward; or
a time of the current query.

### Claim 19 (depends on 11)

The system of claim 11, wherein the speech recognizer comprises an end-to-end speech recognition model.

### Claim 20 (depends on 11)

The system of claim 11, wherein:
the current query spoken by the user is captured by a client device associated with the user; and
the data processing hardware resides on the client device or a computing system in communication with the client device via a network.
