IP Library Granted Patent US 12,027,154
Granted Patent B2
US 12,027,154 · App. 18/167,050 · Granted Jul 2, 2024

Emitting word timings with end-to-end models

Inventors: Tara N. Sainath (Jersey City, NJ); Basilio Garcia Castillo (Mountain View, CA); David Rybach (Munich, DE); Trevor Strohman (Mountain View, CA); Ruoming Pang (New York, NY)
Assignee: Google LLC
G10L15/063G10L25/30G10L25/78
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,027,154
App. No.
18/167,050
Filed
Feb 9, 2023
Granted
Jul 2, 2024
Kind
B2
Art Unit
2654
USPC
704/200
Abstract

A method includes receiving a training example that includes audio data representing a spoken utterance and a ground truth transcription. For each word in the spoken utterance, the method also includes inserting a placeholder symbol before the respective word identifying a respective ground truth alignment for a beginning and an end of the respective word, determining a beginning word piece and an ending word piece, and generating a first constrained alignment for the beginning word piece and a second constrained alignment for the ending word piece. The first constrained alignment is aligned with the ground truth alignment for the beginning of the respective word and the second constrained alignment is aligned with the ground truth alignment for the ending of the respective word. The method also includes constraining an attention head of a second pass decoder by applying the first and second constrained alignments.

Claims (38)

1. A computer-implemented method when executed on data processing hardware causes the data processing hardware to perform operations comprising:

receiving audio data characterizing a spoken utterance;

encoding the audio data into a sequence of audio encodings;

processing, using a second pass decoder of a two-pass neural network model, the sequence of audio encodings to generate a sequence of word pieces that form a transcription of one or more words of the spoken utterance;

for each word in the transcription of the one or more words of the spoken utterance, generating a first constrained alignment for the beginning word piece of the respective word and a second constrained alignment for the ending word piece of the respective word;

constraining an attention head of the second pass decoder of the two-pass neural network model based on the first constrained alignment and the second constrained alignment generated for each word in the transcription; and

determining, using the constrained attention head of the second pass decoder, actual word timings for each word in the transcription of the one or more words of the spoken utterance.

2. The computer-implemented method of claim 1 , wherein the operations further comprise processing, using a first pass decoder of the two-pass neural network model, the sequence of audio encodings to generate a plurality of streaming speech recognition hypotheses for the spoken utterance.

3. The computer-implemented method of claim 2 , wherein processing the sequence of audio encodings to generate the sequence of word pieces using the second pass decoder of the two-pass neural network model further comprises processing the sequence of audio encodings and the top-K streaming speech recognition hypotheses among the plurality of streaming speech recognition hypotheses to generate the sequence of word pieces that form the transcription of one or more words of the spoken utterance.

4. The computer-implemented method of claim 2 , wherein, when processing the sequence of audio encodings to generate the sequence of word pieces, the second pass decoder of the two-pass neural network ignores the plurality of streaming speech recognition hypotheses.

5. The computer-implemented method of claim 2 , wherein the first pass decoder comprises a prediction network and a joint network.

6. The computer-implemented method of claim 2 , wherein:

the first pass decoder of the two-pass neural network model comprises a recurrent neural network-transducer (RNN-T) decoder; and

the second pass decoder of the two-pass neural network model comprises a Listen, Attend, and Spell (LAS) decoder.

7. The computer-implemented method of claim 1 , wherein the data processing hardware resides on a user device that captured the spoken utterance in streaming audio.

8. The computer-implemented method of claim 1 , wherein the operations further comprise displaying, on a screen in communication with the data processing hardware, the transcription of one or more words of the spoken utterance, the transcription annotated with the actual word timings determined for each word in the transcription.

9. The computer-implemented method of claim 1 , wherein the second pass decoder comprises a plurality of attention heads.

10. The computer-implemented method of claim 1 , wherein constraining the attention head comprises constraining an attention probability derived from the attention head of the second pass decoder.

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 characterizing a spoken utterance;

encoding the audio data into a sequence of audio encodings;

processing, using a second pass decoder of a two-pass neural network model, the sequence of audio encodings to generate a sequence of word pieces that form a transcription of one or more words of the spoken utterance;

for each word in the transcription of the one or more words of the spoken utterance, generating a first constrained alignment for the beginning word piece of the respective word and a second constrained alignment for the ending word piece of the respective word;

constraining an attention head of the second pass decoder of the two-pass neural network model based on the first constrained alignment and the second constrained alignment generated for each word in the transcription; and

determining, using the constrained attention head of the second pass decoder, actual word timings for each word in the transcription of the one or more words of the spoken utterance.

12. The system of claim 11 , wherein the operations further comprise processing, using a first pass decoder of the two-pass neural network model, the sequence of audio encodings to generate a plurality of streaming speech recognition hypotheses for the spoken utterance.

13. The system of claim 12 , wherein processing the sequence of audio encodings to generate the sequence of word pieces using the second pass decoder of the two-pass neural network model further comprises processing the sequence of audio encodings and the top-K streaming speech recognition hypotheses among the plurality of streaming speech recognition hypotheses to generate the sequence of word pieces that form the transcription of one or more words of the spoken utterance.

14. The system of claim 12 , wherein, when processing the sequence of audio encodings to generate the sequence of word pieces, the second pass decoder of the two-pass neural network ignores the plurality of streaming speech recognition hypotheses.

15. The system of claim 12 , wherein the first pass decoder comprises a prediction network and a joint network.

16. The system of claim 12 , wherein:

the first pass decoder of the two-pass neural network model comprises a recurrent neural network-transducer (RNN-T) decoder; and

the second pass decoder of the two-pass neural network model comprises a Listen, Attend, and Spell (LAS) decoder.

17. The system of claim 11 , wherein the data processing hardware resides on a user device that captured the spoken utterance in streaming audio.

18. The system of claim 11 , wherein the operations further comprise displaying, on a screen in communication with the data processing hardware, the transcription of one or more words of the spoken utterance, the transcription annotated with the actual word timings determined for each word in the transcription.

19. The system of claim 11 , wherein the second pass decoder comprises a plurality of attention heads.

20. The system of claim 11 , wherein constraining the attention head comprises constraining an attention probability derived from the attention head of the second pass decoder.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 31, 2024
From: SAINATH, TARA N.; CASTILLO, BASILIO GARCIA; RYBACH, DAVID; STROHMAN, TREVOR; PANG, RUOMING
To: GOOGLE LLC
Reel/Frame 067585/0548 →
Continuity (3)
Continuation 17204852 · Mar 17, 2021
Provisional Application 63021660 · May 7, 2020
Related Publication 20230206907A1 · Jun 29, 2023