Speaker-turn-based online speaker diarization using constrained spectral clustering
The method addresses inefficiencies in existing speaker diarization systems by using speaker turn tokens and spectral clustering with constraints to segment and label audio streams, enhancing accuracy and reducing computational costs and latency.
Patent Information
- Application Number
- JP2024518477
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-23
- Filing Date
- 2021-12-14
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2041-12-14
AI Technical Summary
Existing speaker diarization systems struggle with accurately segmenting audio streams into speaker segments, especially in multi-speaker environments, leading to inefficient clustering and high computational costs due to the need for manual annotation and long processing times.
A computer-implemented method for speaker turn-based online speaker diarization that uses a speech recognition model to generate speaker turn tokens, segments audio based on these tokens, extracts speaker-discriminative embeddings, and performs spectral clustering with pairwise constraints to assign speaker labels, reducing computational costs and latency.
The method effectively segments audio streams into speaker segments with reduced computational costs and latency, enabling efficient online speaker diarization without manual annotation, improving accuracy and processing speed.
Smart Images

Figure 2024537721000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to speaker-turn-based online speaker diarization using constrained spectral clustering. [Background technology]
[0002] Speaker diarization is the process of partitioning an input audio stream into homogenous segments according to speaker identification information. In a multi-speaker environment, speaker diarization answers the question "who is speaking when" and has a variety of applications, including multimedia information retrieval, speaker turn analysis, audio processing, and automatic transcription of conversational speech, to name a few. For example, speaker diarization involves the task of annotating speaker turns in a conversation by identifying a first segment of an input audio stream as being attributable to a first human speaker (without specifically identifying who the first human speaker is), identifying a second segment of the input audio stream as being attributable to a different second human speaker (without specifically identifying who the second human speaker is), identifying a third segment of the input audio stream as being attributable to the first human speaker, and so on. Summary of the Invention [Means for solving the problem]
[0003] One aspect of the disclosure provides a computer-implemented method that, when executed on data processing hardware, causes the data processing hardware to perform operations for speaker-turn-based online speaker diarization. The operations include receiving an input audio signal corresponding to an utterance spoken by a plurality of speakers. The operations also include processing the input audio signal using a speech recognition model to jointly generate a transcription of the utterance and a sequence of speaker turn tokens as output from the speech recognition model. Each speaker turn token indicates a location of a respective speaker turn detected between a respective pair of adjacent words in the transcription. The operations also include segmenting the input audio signal into a plurality of speaker segments based on the sequence of speaker turn tokens. For each speaker segment of the plurality of speaker segments, the operations include extracting a corresponding speaker-discriminative embedding from the speaker segment. The operations also include performing spectral clustering on the speaker-discriminative embeddings extracted from the plurality of speaker segments to cluster the plurality of speaker segments into k classes. For each respective class of the k classes, the operations include assigning a respective speaker label to each speaker segment clustered into the respective class that differs from the respective speaker labels assigned to speaker segments clustered into each other class of the k classes.
[0004] Implementations of the present disclosure may include one or more of any of the following features. In some implementations, the operations further include annotating a transcription of the utterance based on a speaker label assigned to each speaker segment. In some examples, each speaker turn token in the sequence of speaker turn tokens has a corresponding timestamp. In these examples, segmenting the input audio signal into a plurality of speaker segments based on the sequence of speaker turn tokens includes segmenting the input audio signal into initial speaker segments each defined by a corresponding timestamp of a respective pair of adjacent speaker turn tokens in the sequence of speaker turn tokens. In some implementations, for each initial speaker segment having a respective duration exceeding the segment duration threshold, the operations further include segmenting the initial speaker segment into two or more reduced duration speaker segments having respective durations equal to or less than the segment duration threshold. Here, the plurality of speaker segments segmented from the input audio signal include an initial speaker segment having a respective duration equal to or less than the segment duration threshold and a reduced duration speaker segment that is further segmented from any of the initial speaker segments having respective durations exceeding the segment duration threshold.
[0005] In some implementations, extracting the corresponding speaker-discriminative embeddings from the speaker segments includes receiving the speaker segments as inputs to a speaker encoder model and generating the corresponding speaker-discriminative embeddings as outputs from the speaker encoder model. In these implementations, the speaker encoder model includes a long short-term memory-based (LSTM-based) speaker encoder model configured to extract the corresponding speaker-discriminative embeddings from each speaker segment. In some examples, the operations further include predicting, for each speaker turn token in the sequence of speaker turn tokens generated as outputs from the speech recognition model, a reliability of each speaker turn detected in the transcription, and determining a pairwise constraint based on the predicted reliability of the speaker turn tokens. Here, the spectral clustering performed on the speaker-discriminative embeddings is constrained by the pairwise constraints.
[0006] In some implementations, the speech recognition model includes a streaming transducer-based speech recognition model, the streaming transducer-based speech recognition model including: an audio encoder configured to receive as an input a sequence of acoustic frames and generate a high-order feature representation for a corresponding acoustic frame in the sequence of acoustic frames at each of a plurality of time steps; a label encoder configured to receive as an input a sequence of non-blank symbols output by a final softmax layer and generate a dense representation at each of a plurality of time steps; and a joint network configured to receive as an input the high-order feature representation generated by the audio encoder at each of a plurality of time steps and the dense representation generated by the label encoder at each of a plurality of time steps and generate a probability distribution over possible speech recognition hypotheses at a corresponding time step at each of a plurality of time steps. Here, the audio encoder may include a neural network having a plurality of transformer layers. In some examples, the label encoder includes a bigram embedding lookup decoder model.
[0007] A speech recognition model may be trained on training samples, each of which includes training utterances spoken by two or more different speakers, paired with a corresponding ground truth transcription of the training utterance, where each ground truth transcription is injected with ground truth speaker turn tokens that indicate the location where the speaker turn occurs within the ground truth transcription. In some cases, the corresponding ground truth transcription of each training sample may not be annotated with any timestamp information.
[0008] Another aspect of the disclosure provides a system including data processing hardware and memory hardware storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations. The operations include receiving an input audio signal corresponding to an utterance spoken by a plurality of speakers. The operations also include processing the input audio signal using a speech recognition model to jointly generate a transcription of the utterance and a sequence of speaker turn tokens as output from the speech recognition model. Each speaker turn token indicates a location of a respective speaker turn detected between a respective pair of adjacent words in the transcription. The operations also include segmenting the input audio signal into a plurality of speaker segments based on the sequence of speaker turn tokens. For each speaker segment of the plurality of speaker segments, the operations include extracting a corresponding speaker-discriminating embedding from the speaker segment. The operations also include performing spectral clustering on the speaker-discriminating embeddings extracted from the plurality of speaker segments to cluster the plurality of speaker segments into k classes. For each respective class of the k classes, the operations include assigning a respective speaker label to each speaker segment clustered into the respective class that differs from the respective speaker labels assigned to speaker segments clustered into each other class of the k classes.
[0009] Implementations of the present disclosure may include one or more of any of the following features. In some implementations, the operations further include annotating a transcription of the utterance based on a speaker label assigned to each speaker segment. In some examples, each speaker turn token in the sequence of speaker turn tokens has a corresponding timestamp. In these examples, segmenting the input audio signal into a plurality of speaker segments based on the sequence of speaker turn tokens includes segmenting the input audio signal into initial speaker segments each defined by a corresponding timestamp of a respective pair of adjacent speaker turn tokens in the sequence of speaker turn tokens. In some implementations, for each initial speaker segment having a respective duration exceeding the segment duration threshold, the operations further include segmenting the initial speaker segment into two or more reduced duration speaker segments having respective durations equal to or less than the segment duration threshold. Here, the plurality of speaker segments segmented from the input audio signal include an initial speaker segment having a respective duration equal to or less than the segment duration threshold and a reduced duration speaker segment that is further segmented from any of the initial speaker segments having respective durations exceeding the segment duration threshold.
[0010] In some implementations, extracting the corresponding speaker-discriminative embeddings from the speaker segments includes receiving the speaker segments as inputs to a speaker encoder model and generating the corresponding speaker-discriminative embeddings as outputs from the speaker encoder model. In these implementations, the speaker encoder model includes a long short-term memory-based (LSTM-based) speaker encoder model configured to extract the corresponding speaker-discriminative embeddings from each speaker segment. In some examples, the operations further include predicting, for each speaker turn token in the sequence of speaker turn tokens generated as outputs from the speech recognition model, a reliability of each speaker turn detected in the transcription, and determining a pairwise constraint based on the predicted reliability of the speaker turn tokens. Here, the spectral clustering performed on the speaker-discriminative embeddings is constrained by the pairwise constraints.
[0011] In some implementations, the speech recognition model includes a streaming transducer-based speech recognition model, the streaming transducer-based speech recognition model including: an audio encoder configured to receive as an input a sequence of acoustic frames and generate, at each of a plurality of time steps, a high-order feature representation for a corresponding acoustic frame in the sequence of acoustic frames; a label encoder configured to receive as an input a sequence of non-blank symbols output by a final softmax layer and generate, at each of a plurality of time steps, a dense representation; and a joint network configured to receive as input the high-order feature representation generated by the audio encoder at each of a plurality of time steps and the dense representation generated by the label encoder at each of a plurality of time steps and generate, at each of a plurality of time steps, a probability distribution over possible speech recognition hypotheses at a corresponding time step. Here, the audio encoder may include a neural network having multiple transformer layers. In some examples, the label encoder includes a bigram embedding lookup decoder model.
[0012] A speech recognition model may be trained on training samples, each of which includes training utterances spoken by two or more different speakers, paired with a corresponding ground truth transcription of the training utterance, where each ground truth transcription is injected with ground truth speaker turn tokens that indicate the location where the speaker turn occurs within the ground truth transcription. In some cases, the corresponding ground truth transcription of each training sample may not be annotated with any timestamp information.
[0013] The details of one or more implementations of the disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will become apparent from the description and drawings, and from the claims. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a schematic diagram of an exemplary speaker diarization system for performing speaker diarization. [Diagram 2] FIG. 2 is a schematic diagram of the exemplary speaker diarization system of FIG. [Diagram 3] 1 is a schematic diagram of an exemplary automatic speech recognition model using a transducer-based architecture. [Figure 4] 1 is a flowchart of an exemplary arrangement of operations for a computer-implemented method of performing speaker diarization on an input audio signal containing voice utterances spoken by a number of different speakers. [Diagram 5] FIG. 1 is a schematic diagram of an example computing device that can be used to implement the systems and methods described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Like reference numbers in the various drawings indicate like elements.
[0016] Automatic speech recognition (ASR) systems generally rely on speech processing algorithms that assume that only one speaker is present in a given input audio signal. An input audio signal that includes the presence of multiple speakers can potentially confuse these speech processing algorithms, which can lead to inaccurate speech recognition results being output by the ASR system. These ASR systems include speaker diarization systems to answer the question of "who is speaking and when". Thus, speaker diarization is the process of segmenting speech from multiple speakers involved in a larger conversation to determine when someone is speaking, rather than determining in detail who is speaking (speaker recognition / identification). In other words, speaker diarization involves a series of speaker recognition tasks using short utterances to determine whether two segments of a given conversation were spoken by the same individual or by different individuals, which is repeated for all segments of the conversation. Thus, speaker diarization detects speaker turns from a conversation that includes multiple speakers. As used herein, the term "speaker turn" refers to a transition from one individual speaking to a different individual speaking in a larger conversation.
[0017] Existing speaker diarization systems generally include multiple relatively independent components, such as, but not limited to, a speech segmentation module, an embedding extraction module, and a clustering module. The speech segmentation module is generally configured to remove non-speech parts from an input utterance and divide the entire input utterance into fixed-length segments and / or word-length segments. Although dividing an input utterance into fixed-length segments is easy to implement, it is often difficult to find a good segment length. That is, a long fixed-length segment may contain several speaker turns, while a short segment contains insufficient speaker information. Moreover, the ASR model that generates the word-length segments is usually spoken by a single speaker, but individual words also contain insufficient speaker information. The embedding extraction module is configured to extract a corresponding speaker-discriminating embedding from each segment. The speaker-discriminating embedding may include an i-vector or a d-vector.
[0018] Clustering modules employed by existing speaker diarization systems are tasked with determining the number of speakers present in the input utterance and assigning speaker identification information (e.g., labels) to each segment. These clustering modules may use popular clustering algorithms, including Gaussian mixture models, link clustering, and spectral clustering. Speaker diarization systems may also use additional resegmentation modules to further refine the diarization results output from the clustering modules by enforcing additional constraints. The clustering modules may run online clustering algorithms, which often have low quality, or offline clustering algorithms, which can return diarization results only at the end of the entire input sequence. In some examples, to achieve both high quality while minimizing latency, the clustering algorithm runs offline in an online fashion. For example, in response to receiving each speaker-discriminating embedding, the clustering algorithm runs offline on the entire sequence of all existing embeddings. However, implementing these examples may be computationally prohibitively expensive if the sequence of speaker-discriminating embeddings is long.
[0019] Implementations herein are directed to an online speaker diarization system including a speech recognition model that performs both speech recognition and speaker turn detection (i.e., when an active speaker changes) on a received utterance spoken by multiple speakers. The speaker diarization system segments the utterance into speaker segments based on the detected speaker turns and extracts speaker-discriminatory embeddings therefrom. Advantageously, based on speaker turn detection, each speaker segment segmented from the utterance contains continuous speech from a speaker that carries sufficient information to extract a robust speaker-discriminatory embedding. Moreover, for conversational utterances of long duration, the number of speaker turns (i.e., the number of speaker changes) is usually much smaller than the number of fixed-length segments, thereby reducing the computational cost of running a clustering algorithm, because speaker-discriminatory embeddings are extracted only from speaker segments defined by speaker turns.
[0020] In response to receiving a new speaker-discriminating embedding, the speaker diarization system performs spectral clustering on the entire sequence of all existing speaker-discriminating embeddings. Thus, the speech recognition model outputs speech recognition results and detected speaker turns in a streaming manner to enable streaming execution of the spectral clustering. Advantageously, since the turn-wise speaker-discriminating embeddings are extracted sparsely (i.e., only after a speaker turn) from the speaker segments, the sequence of all existing speaker-discriminating embeddings is relatively short even for relatively long conversations (i.e., multiple hours). Thus, the execution of online spectral clustering is computationally inexpensive while maintaining low latency so that the spectral clustering can be deployed on devices.
[0021] Moreover, training time is significantly reduced because a human annotator is not required to assign accurate timestamps to speaker turns and to manually identify different speakers across these turns. Annotating timestamps and identifying speakers across turns is a time-consuming process that can take a single annotator approximately 2 hours to annotate 10 minutes of audio in one pass. Instead, the speech recognition model is trained to detect speaker turns from semantic information conveyed in the speech recognition results, such that each detected speaker turn is associated with a corresponding timestamp known by the speech recognition model. Thus, these timestamps are not annotated by humans and can be used to segment the training audio data into corresponding speaker segments.
[0022] 1, the system 100 includes a user device 110 that captures speech utterances 120 from a group 10a-n of speakers (e.g., users) 10 and communicates with a cloud computing environment 140 via a network 130. The cloud computing environment 140 may be a distributed system having scalable / elastic resources 142. The resources 142 include computing resources 142 (e.g., data processing hardware) and / or storage resources 146 (e.g., memory hardware). In some implementations, the user device 110 and / or the cloud computing environment 140 execute a diarization system 200 that is configured to receive input audio signals (i.e., audio data) 122 corresponding to the captured utterances 120 from the multiple speakers 10. The diarization system 200 processes the input audio signals 122 to generate a transcription 220 of the captured utterances 120 and a sequence 224a-n of speaker turn tokens 224. The speaker turn tokens 224 indicate a speaker turn (e.g., a speaker change) detected between each pair of adjacent words in the transcription 220. Using the sequence of speaker turn tokens 224, the diarization system 200 segments the input audio signal 122 into a number of speaker segments 225, 225a-n, each associated with a corresponding speaker discrimination embedding 240 extracted therefrom. The diarization system 200 then generates a diarization result 280 based on the speaker discrimination embeddings 240 and the pairwise constraints 226. The diarization result 280 includes a corresponding speaker label 250 assigned to each speaker segment 225.
[0023] The user device 110 includes data processing hardware 112 and memory hardware 114. The user device 110 may include an audio capture device (e.g., a microphone) for capturing and converting speech 120 from the speaker 10 into audio data 122 (e.g., an electrical signal). In some implementations, the data processing hardware 112 is configured to execute a portion of the diarization system 200 locally, while the remainder of the diarization system 200 executes on the cloud computing environment 140. Alternatively, the data processing hardware 112 may execute the diarization system 200 instead of executing the diarization system 200 on the cloud computing environment 140. The user device 110 may be any computing device capable of communicating with the cloud computing environment 140 through the network 130. User devices 110 include desktop and mobile computing devices, such as, but not limited to, laptops, tablets, smartphones, smart speakers / displays, smart appliances, Internet of Things (IoT) devices, and wearable computing devices (e.g., headsets and / or watches).
[0024] In the illustrated example, the speaker 10 and the user device 110 may be located in an environment (e.g., a room) where the user device 110 is configured to capture and convert speech utterances 120 spoken by the speaker 10 into an input audio signal 122 (also referred to as audio data 122). For example, the speaker may correspond with a colleague having a conversation during a meeting, and the user device 110 may record and convert the speech utterance into the input audio signal 122. The user device 110 may then provide the input audio signal 122 to the diarization system 200 to predict which speaker 10 is speaking for each segment of speech. Thus, the diarization system 200 is tasked with processing the input audio signal 122 to determine when someone is speaking, without determining in detail who is speaking via speaker recognition / identification.
[0025] In some examples, at least a portion of the utterances 120 conveyed in the input audio signal 122 overlap such that at a given time, the voices of more than one of the speakers 10 are active. In particular, the number N of the multiple speakers 10 may not be known when the input audio signal 122 is provided as an input to the diarization system 200, and the diarization system may predict the number N of the multiple speakers 10. In some implementations, the user device 110 is located remotely from the speakers 10. For example, the user device may include a remote device (e.g., a network server) that captures the voice utterances 120 from the speakers who are participants in a call or video conference. In this scenario, each speaker 10 (or a group of multiple speakers 10) will speak into their own device (e.g., a phone, a radio, a computer, a smartwatch, etc.), which captures the voice utterances 120 and provides the voice utterances 120 to the remote user device 110 for conversion to audio data 122. Of course, in this scenario, the speech 120 may undergo processing at each of the user devices and be converted into a corresponding input audio signal 122 that is transmitted to the remote user device 110, which may further process the input audio signal 122 provided as input to the diarization system 200.
[0026] In the illustrated example, the diarization system 200 includes an ASR model 300, a segmentation module 210, a speaker encoder 230, and a clustering module 260. The ASR model 300 is configured to receive an input audio signal 122 and process the input audio signal 122 to jointly generate a transcription 220 of the utterance 120 and a sequence 224a-n of speaker turn tokens 224. The ASR model 300 may include a streaming ASR model 300 that jointly generates the transcription 220 and the speaker turn tokens 224 in a streaming manner as the input audio signal 122 is received. The transcription 220 includes a sequence of speaker turn tokens 224 indicating the location of each speaker turn detected between each pair of adjacent words in the transcription 220. For example, utterance 120 may include "hello how are you I am good," and ASR model 300 may respond with "hello how are you <st>In this example, <st>represents a speaker turn token 224 indicating a speaker turn between the adjacent words “you” and “I.” Each speaker turn token 224 in the sequence of speaker turn tokens 224 may also include a corresponding timestamp 223.
[0027] In some cases, the ASR model 300 may utilize the diarization results 280 to improve speech recognition in the audio data 122. For example, the ASR model 300 may apply different speech recognition models (e.g., language models, prosody models) for different speakers identified from the diarization results 280. Additionally or alternatively, the ASR model 300 and / or the diarization system 200 (or some other component) may index the transcription 220 of the audio data 122 using the speaker labels 250 of each speaker segment 225. For example, a transcription of a conversation between multiple colleagues (e.g., speakers 10) during a business meeting may be indexed by speaker to associate portions of the transcription 220 with each speaker 10 to identify what each speaker said.
[0028] The ASR model 300 may include any transducer-based architecture, including, but not limited to, a transformer-transducer (TT), a recurrent neural network transducer (RNN-T), and / or a conformer-transducer (CT). The ASR model 300 is trained on training samples, each of which includes training utterances spoken by two or more different speakers 10 paired with a corresponding ground truth transcription of the training utterance. Each ground truth transcription is injected with ground truth speaker turn tokens that indicate the location where the speaker turn occurs in the ground truth transcription. Here, the corresponding ground truth transcription of each training sample is not annotated with any timestamp information.
[0029] The segmentation module 210 is configured to receive audio data 122 corresponding to a voice utterance 120 (also referred to as a "voice utterance") and segment the audio data 122 into a number of speaker segments 225, 225a-n. The segmentation module 210 receives the audio data 122 and a transcription 220 including a sequence of speaker turn tokens 224 with corresponding timestamps 223, and segments the audio data 122 into a number of speaker segments 225, where each speaker segment 225 corresponds to audio data between two speaker turn tokens 224. In some cases, the segmentation module 210 may further remove non-speech portions from the audio data 122 (e.g., by applying a voice activity detector). In some examples, the segmentation module 210 further segments speaker segments 225 that exceed a segment duration threshold, described in more detail below.
[0030] The segmentation module 210 segments the input audio signal 122 into multiple speaker segments 225 by segmenting the input audio signal 122 into initial speaker segments 225, each defined by a corresponding timestamp 223 of a respective pair of adjacent speaker turn tokens 224. For example, the input audio signal 122 may include 15 seconds of audio with a sequence of speaker turn tokens 224 having timestamps 223 at 3 seconds, 6 seconds, and 14 seconds. In this case, the segmentation module 210 segments the input audio signal into three initial speaker segments 225 defined by speaker turn tokens 224 with timestamps 223 at 3 seconds, 6 seconds, and 14 seconds.
[0031] In some implementations, the initial speaker segment 225 may have a respective duration that exceeds the segment duration threshold. In these implementations, the segmentation module 210 further segments the initial speaker segment 225 into two or more reduced duration speaker segments 225 having respective durations equal to or less than the segment duration threshold. Continuing with the above example, the segmentation module may determine that the initial speaker segment 225 defined by the speaker turn tokens 224 time-stamped at 6 seconds and 14 seconds (e.g., having a duration of 8 seconds) exceeds the segment duration threshold of 6 seconds. In this scenario, the segmentation module 210 may further segment the initial speaker segment 225 into two or more reduced duration speaker segments 225 having respective durations equal to or less than the segment duration threshold. Here, the segmentation module 210 may segment the 8-second initial speaker segment 225 into a first reduced duration speaker segment 225 having a duration of 6 seconds and a second reduced duration speaker segment 225 having a duration of 2 seconds. Thus, the multiple speaker segments 225 segmented from the input audio signal 122 may include both initial speaker segments 225 having respective durations below the segment duration threshold, and reduced duration speaker segments 225 further segmented from any of the initial speaker segments 225 having respective durations above the segment duration threshold.
[0032] The speaker encoder 230 is configured to receive a plurality of speaker segments 225 and, for each speaker segment 225 of the plurality of speaker segments 225, extract as output a corresponding speaker-distinguishing embedding 240 from the speaker segment 225. The speaker encoder then provides to the clustering module 260 a sequence of observations X=(x1, x2, ..., x T ), where entry x in the sequence T represents a real-valued speaker-discriminative embedding 240 associated with a corresponding speaker segment 225 in the audio data 122 of the original utterance 120. The speaker-discriminative embedding 240 may include a speaker vector, such as a d-vector or an i-vector.
[0033] In some examples, the speaker encoder 230 may include a text-agnostic speaker encoder model trained with a generalized end-to-end extended-set softmax loss. The speaker encoder may include a long short-term memory-based (LSTM-based) speaker encoder model configured to extract a corresponding speaker-discriminating embedding 240 from each speaker segment 225. In particular, the speaker encoder 230 includes (three) long short-term memory (LSTM) layers with 768 nodes and a projection size of 256. Here, the output of the last LSTM is converted into a final 256-dimensional d-vector.
[0034] In some implementations, each speaker turn token 224 in a sequence of speaker turn tokens 224 resets the LSTM states of the speaker encoder 230 such that the speaker-discriminating embedding 240 does not include information from other speaker segments 225. For example, the speaker encoder 230 may extract only a speaker-discriminating embedding 240 that corresponds to a portion of a speaker segment 225. Thus, the speaker-discriminating embedding 240 includes sufficient information from the speaker segment 225, but is not too close to a speaker turn boundary such that the speaker-discriminating embedding 240 may include inaccurate information or overlapping audio from another speaker 10.
[0035] The clustering module 260 is configured to receive the speaker-discriminative embeddings 240 and the pairwise constraints 226 for each speaker segment 225 and predict a speaker label 250 for each speaker-discriminative embedding 240. Simply put, the clustering module 260 predicts which speaker 10 spoke each speaker segment 225. More specifically, the clustering module 260 performs spectral clustering on the speaker-discriminative embeddings 240 extracted from the multiple speaker segments 225 to cluster the multiple speaker segments 225 into k classes 262. The k classes 262 represent the predicted number of active speakers included in the received utterance 120. Then, for each respective class 262 of the k classes 262, the clustering module 260 assigns a respective speaker label 250 to each speaker segment 225 clustered into the respective class 262 that is different from the respective speaker labels 250 assigned to the speaker segments 225 clustered into each other class 262 of the k classes 262.
[0036] The ASR model 300 may also generate pairwise constraints 226 to further constrain the spectral clustering performed in the speaker-discriminating embedding 240. That is, the ASR model 300 may predict a reliability for each speaker turn token 224 detected in the transcription 220. Moreover, the pairwise constraints 226 may indicate contextual information about adjacent speaker segments 225. For example, the adjacent speaker segments 225 may include both speaker segments 225 having a duration less than the segment duration threshold, one speaker segment 225 having a duration less than the segment duration threshold and one speaker segment 225 having a shortened duration (i.e., the initial speaker segment exceeded the segment duration threshold), or any combination of both speaker segments 225 having a shortened duration. The reliability of each speaker turn detected in the transcription 220 and the contextual information (collectively referred to as constraints 226) are used by the clustering module 260 to further constrain the spectral clustering.
[0037] In some implementations, the clustering module 260 performs spectral clustering performed on the speaker-discriminating embeddings 240, constrained by pairwise constraints 226 received from the ASR model 300. For example, when both speaker segments 225 have durations less than the segment duration threshold, the spectral clustering is constrained to recommend speaker labels 250 to be different for adjacent speaker segments 225 separated by a speaker turn token with high confidence. In other cases, when both speaker segments 225 have shortened durations, the spectral clustering is constrained to recommend speaker labels for adjacent speaker segments 225 to be the same. That is, because the adjacent shortened duration speaker segments 225 were split based on exceeding the segment duration threshold and not the speaker turn token 224, there is a high likelihood that the adjacent shortened duration speaker segments 225 are spoken by the same speaker 10. In some examples, when one speaker segment 225 having a duration below the segment duration threshold is adjacent to another speaker segment 225 having a shortened duration, the spectral clustering is constrained based on the reliability of the speaker turn token 224. Here, when the speaker turn token 224 has a high reliability value, the clustering module 260 is constrained to recommend different speaker labels 250. Alternatively, when the speaker turn token 224 has a low reliability value, the clustering module 260 may be constrained to recommend the same speaker label 250.
[0038] In some implementations, the diarization system 200 annotates the transcription 220 of the utterance 120 based on the speaker labels 250 assigned to each speaker segment 225 (i.e., the diarization results 280). For example, a transcription 220 of a conversation between multiple speakers 10 may be indexed by speaker to associate portions of the transcription 220 with each speaker 10 to identify what each speaker 10 said in the transcription 220. The annotated transcription 220 may be stored in the memory hardware 114, 146 of the user device 110 or cloud computing environment 140 for later access by one of the speakers 10.
[0039] 2 shows a schematic diagram of a diarization system 200 including an ASR model (i.e., a transformer transducer) 300, a segmentation module 210, a speaker encoder 230, and a clustering module 260. The ASR model 300 processes an input audio signal 122 corresponding to an utterance 120 spoken by multiple speakers 10 (FIG. 1) to generate a transcription 220 of the utterance and a sequence of speaker turn tokens 224. The transcription 220 includes one or more terms 222 corresponding to the words spoken by the multiple speakers. The sequence of speaker turn tokens 224 indicates the location of each speaker turn detected between each pair of adjacent terms 222 in the transcription 220. In the illustrated example, the input audio signal 122 may include an utterance in which a first and a second word 222 are spoken by a first speaker 10, a third and a fourth word 222 are spoken by a second speaker 10, and a fifth and a sixth word 222 are spoken by a third speaker 10. Here, the ASR model 300 generates a first speaker turn token 224 between the second word 222 and the third word 222 to indicate a speaker turn from the first speaker to the second speaker, and generates a second speaker turn token 224 between the fourth word 222 and the fifth word 222 to indicate a speaker turn from the second speaker to the third speaker. Moreover, in some examples, the ASR model 300 generates a start of speech (SOS) token 227 to indicate the start of the utterance and an end of speech (EOS) token 229 to indicate the end of the utterance.
[0040] In some implementations, the ASR model 300 processes acoustic and / or semantic information to detect speaker turns in the input audio signal 122. That is, using natural language understanding (NLU), the ASR model 300 can determine that for the utterance "How are you I'm good," "how are you" and "I'm good" are likely spoken by different users, independent of any acoustic processing of the input audio signal 122. This semantic interpretation of the transcription 220 can be used independent of or in conjunction with acoustic processing of the input audio signal 122.
[0041] The speaker encoder 230 receives the multiple speaker segments 225 from the segmentation module 210 (FIG. 1) and extracts a corresponding speaker-distinguishing embedding 240 for each speaker segment 225. The speaker-distinguishing embedding 240 may include a speaker vector, such as a d-vector or an i-vector. The speaker encoder 230 provides the speaker-distinguishing embedding 240 associated with each speaker segment 225 to the clustering module 260.
[0042] The clustering module 260 is configured to receive the speaker-distinguishing embedding 240 for each speaker segment 225 and the pairwise constraints 226, and to predict a speaker label 250 for each speaker-distinguishing embedding 240. T ), the clustering module 260 calculates pairwise similarities a ij Construct the similarity graph by computing
number
number
number
[0043] Given an affinity matrix A, the unnormalized Laplacian matrix L is defined by L=DA, whereas the normalized Laplacian matrix
number
number
number
[0044] The clustering module 260 receives pairwise constraints 226 indicating the reliability and context information of the speaker turn tokens 224 to constrain the spectral clustering. The pairwise constraints 226 are configured to recommend different speaker labels 250 for adjacent speaker segments 225 with high reliability speaker turn tokens 224 and recommend the same speaker labels 250 for adjacent speaker segments 225 with low reliability speaker turn tokens 224. Using the pairwise constraints 226Q, the constrained spectral clustering identifies one or more partitions in the similarity graph G that maximizes constraint satisfaction and minimizes cost. The pairwise constraints 226 are
number
number
[0045] Here, there is a speaker turn between speaker segment i and i+1, and the reliability of the speaker turn token c( <st>) is greater than a threshold σ, the clustering module 260 defines the adjacent speaker segments 225 as “cannot-link” (CL). The CL definition indicates that there is a high likelihood that the speaker labels 250 between the adjacent speaker segments 225 are different. If there are no speaker turn tokens 224 between the adjacent speaker segments 225, the clustering module defines the adjacent speaker segments as “must-link” (ML). The ML definition indicates that there is a high likelihood that the speaker labels 250 between the adjacent speaker segments 225 are the same.
[0046] The ML-defined adjacent speaker segments 225 are treated as the positive class, and the CL-defined adjacent speaker segments 225 are treated as the negative class. The class labels (i.e., positive and negative) are calculated using the affinity matrix
number
number
[0047] Q * has a closed-form solution formulated by:
[0048]
number
[0049] The propagated constraint matrix Q * Using the adjusted affinity matrix
number
number
[0050] Constraint Q ij If >0, the affinity matrix is i and x j Alternatively, Q ij If <0, the affinity matrix is x i and x j After this operation, the clustering module 260 performs normalized Laplacian matrix-based spectral clustering to predict speaker labels 250 for the speaker segments 225. The clustering module 260 generates a diarization result 280 including a first speaker label 250a indicating that a first speaker spoke the first speaker segment 225a (i.e., the first and second words 222), a second speaker label 250b indicating that a second speaker spoke the second speaker segment 225b (i.e., the third and fourth words 222), and a third speaker label 250c indicating that a third speaker spoke the third speaker segment 225c (i.e., the fifth and sixth words 222).
[0051] Referring to FIG. 3, the ASR model 300 may provide end-to-end (E2E) speech recognition by incorporating an acoustic model, a pronunciation model, and a language model into a single neural network, and does not require a dictionary or a separate text normalization component. Various structures and optimization mechanisms can provide improved accuracy and reduced model training time. The ASR model 300 may include a streaming transformer-transducer (TT) model architecture, which is subject to latency constraints associated with conversational applications. The ASR model 300 may also include an RNN-T model architecture or a conformer-transducer (CT) model architecture. The ASR model 300 provides a small computational footprint and utilizes less memory requirements than traditional ASR architectures, making the TT model architecture suitable for performing speech recognition entirely on the user device 110 (e.g., no communication with the cloud computing environment 140 is required). The ASR model 300 includes an audio encoder 310, a label encoder 320, and a joint network 330. The audio encoder 310 is roughly similar to an acoustic model (AM) in a conventional ASR system and includes a neural network with multiple transformer layers. For example, the audio encoder 310 may generate a sequence of d-dimensional feature vectors (e.g., speaker segments 225 (FIG. 1)) x=(x1, x2, ..., x T ), except that
number
[0052] Similarly, the label encoder 320 may also include a neural network of transformer layers, or a lookup table embedding model, which, like a language model (LM), embeds the sequence of non-blank symbols, y0,...,y ui-1 (e.g., as shown in FIG. 2, one or more words 222, including a speaker turn token 224) into a dense representation 322 (Ih u In implementations when the label encoder 320 includes a neural network of transformer layers, each transformer layer may include a normalization layer, a masked multi-head attention layer with relative position encoding, a residual connection, a feedforward layer, and a dropout layer. In these implementations, the label encoder 320 may include two transformer layers. In implementations when the label encoder 320 includes a lookup table embedding model with bigram label contexts, the embedding model is configured to learn a d-dimensional weight vector for each possible bigram label context, where d is the dimension of the output of the audio encoder 310 and the label encoder 320. In some examples, the total number of parameters in the embedding model is N 2 ×d, where N is the label vocabulary size, where the learned weight vector is then used as the embedding of bigram label context in the ASR model 300 to produce a fast label encoder 320 running time.
[0053] Finally, in the TT model architecture, the representations produced by the audio encoder 310 and the label encoder 320 are fed into a dense layer J u,t The joint network 330 then calculates P(z u,t |x, t, y1, ..., y u-1 ) in the transcription 220 (FIG. 2). In other words, the joint network 330 generates a probability distribution 342 over possible speech recognition hypotheses for one or more words 222 of the transcription 220 (FIG. 2) at each output step (e.g., time step). Here, a "possible speech recognition hypothesis" corresponds to a set of output labels (also called "speech units"), each representing a grapheme (e.g., symbol / character), word 222 (FIG. 2), or word piece in a specified natural language. For example, when the natural language is English, the set of output labels may include 27 symbols, e.g., one label for each of the 26 letters in the English alphabet, and one label specifying a space. Thus, the joint network 330 may output a set of values indicating the likelihood of occurrence of each of a given set of output labels. This set of values may be a vector (e.g., one-hot vector) and may indicate a probability distribution over the set of output labels. In some cases, the output labels are graphemes (e.g., individual characters, and potentially punctuation and other symbols), although the set of output labels is not limited to such. For example, the set of output labels may include word pieces and / or entire words in addition to or instead of graphemes. The output distribution of the joint network 330 may include a posterior probability value for each of the different output labels. Thus, if there are 100 different output labels representing different graphemes or other symbols, the output z of the joint network 330 may be u,t may contain 100 different probability values, one for each output label. The probability distributions may then be used to select and assign scores to candidate orthogonal elements (e.g., graphemes, wordpieces, and / or words) in a beam search process (e.g., by softmax layer 340) to determine the transcription.
[0054] The softmax layer 340 may employ any technique to select the output label / symbol with the highest probability in the distribution as the next output symbol predicted by the ASR model 300 in the corresponding output step. In this way, the ASR model 300 does not make a conditional independence assumption; rather, the prediction of each symbol is conditioned not only on the acoustics but also on the sequence of labels output so far.
[0055] 4 is a flowchart of an exemplary configuration of operations for a computer-implemented method 400 of performing speaker diarization on a received utterance 120 of speech. The data processing hardware 112, 144 may perform the operations for the method 400 by executing instructions stored on the memory hardware 114, 146. In operation 402, the method 400 includes receiving an input audio signal 122 corresponding to the utterance 120 spoken by a plurality of speakers 10, 10a-n. In operation 404, the method 400 includes processing the input audio signal 122 using a speech recognition model (e.g., an ASR model) 300 to generate a transcription 220 of the utterance 120 together with a sequence 224a-n of speaker turn tokens 224 as output from the speech recognition model 300. Each speaker turn token 224 indicates the location of a respective speaker turn detected between a respective pair of adjacent words 222 in the transcription 220. At operation 406 , the method 400 includes segmenting the input audio signal 122 into a number of speaker segments 225 based on the sequence of speaker turn tokens 224 .
[0056] At operation 408, the method 400 includes, for each speaker segment 225 of the plurality of speaker segments 225, extracting a corresponding speaker-distinguishing embedding 240 from the speaker segment 225. At operation 410, the method 400 includes performing spectral clustering on the speaker-distinguishing embedding 240 extracted from the plurality of speaker segments 225 to cluster the plurality of speaker segments 225 into k classes 262. At operation 412, the method 400 includes, for each respective class 262 of the k classes 262, assigning a respective speaker label 250 to each speaker segment 225 clustered into the respective class 262 that is different from the respective speaker labels 250 assigned to the speaker segments 225 clustered into each other class 262 of the k classes 262.
[0057] A software application (i.e., a software resource) may refer to computer software that causes a computing device to perform tasks. In some examples, a software application may be referred to as an "application," an "app," or a "program." Exemplary applications include, but are not limited to, system diagnostic applications, system management applications, system maintenance applications, word processing applications, spreadsheet applications, messaging applications, media streaming applications, social networking applications, and gaming applications.
[0058] Non-transient memory may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (e.g., program state information) for use by a computing device. Non-transient memory may be volatile and / or non-volatile addressable semiconductor memory. Examples of non-volatile memory include, but are not limited to, flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electronically erasable programmable read-only memory (EEPROM) (e.g., typically used for firmware such as boot programs). Examples of volatile memory include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), phase change memory (PCM), as well as disks or tapes.
[0059] 5 is a schematic diagram of an exemplary computing device 500 that may be used to implement the systems and methods described herein. Computing device 500 is representative of various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The components shown, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the invention described and / or claimed herein.
[0060] Computing device 500 includes a processor 510, a memory 520, a storage device 530, a high-speed interface / controller 540 that connects to memory 520 and a high-speed expansion port 550, and a low-speed interface / controller 560 that connects to a low-speed bus 570 and storage device 530. Each of components 510, 520, 530, 540, 550, and 560 are interconnected using various buses and may be mounted on a common motherboard or otherwise as appropriate. Processor 510 can process instructions for execution within computing device 500, including instructions stored in memory 520 or on storage device 530, to display graphical information for a graphical user interface (GUI) on an external input / output device, such as a display 580 coupled to high-speed interface 540. In other implementations, multiple processors and / or multiple buses may be used along with multiple memories and multiple types of memories, as appropriate. Also, multiple computing devices 500 may be connected, with each device providing a portion of the required operations (eg, as a bank of servers, a group of blade servers, or a multi-processor system).
[0061] The memory 520 stores information non-transiently within the computing device 500. The memory 520 may be a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. The non-transient memory 520 may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (e.g., program state information) for use by the computing device 500. Examples of non-volatile memory include, but are not limited to, flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electronically erasable programmable read-only memory (EEPROM) (e.g., typically used for firmware such as boot programs). Examples of volatile memory include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), phase change memory (PCM), as well as disks or tapes.
[0062] The storage device 530 can provide mass storage for the computing device 500. In some implementations, the storage device 530 is a computer-readable medium. In various different implementations, the storage device 530 can be a floppy disk device, a hard disk device, an optical disk device, or an array of devices including a tape device, a flash memory or other similar solid-state memory device, or a device in a storage area network or other configuration. In additional implementations, the computer program product is tangibly embodied in an information carrier. The computer program product includes instructions that, when executed, perform one or more methods, such as those described above. The information carrier is a computer-readable medium or a machine-readable medium, such as the memory 520, the storage device 530, or a memory on the processor 510.
[0063] The high-speed controller 540 manages bandwidth-intensive operations for the computing device 500, while the low-speed controller 560 manages lower bandwidth-intensive operations. Such allocation of duties is merely exemplary. In some implementations, the high-speed controller 540 is coupled to the memory 520, the display 580 (e.g., through a graphics processor or accelerator), and to a high-speed expansion port 550, which may accept various expansion cards (not shown). In some implementations, the low-speed controller 560 is coupled to the storage device 530 and to a low-speed expansion port 590. The low-speed expansion port 590 may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet) and may be coupled to one or more input / output devices, such as a keyboard, pointing device, scanner, or a networking device, such as a switch or router, for example, through a network adapter.
[0064] The computing device 500 may be implemented in a number of different forms, as shown in the figure: For example, the computing device 500 may be implemented as a standard server 500a, or multiple times within a group of such servers 500a, as a laptop computer 500b, or as part of a rack server system 500c.
[0065] Various implementations of the systems and techniques described herein may be realized in digital electronic and / or optical circuitry, integrated circuits, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor, which may be special purpose or general purpose, and which may be coupled to receive data and instructions from and transmit data and instructions to a storage system, at least one input device, and at least one output device.
[0066] These computer programs (also known as programs, software, software applications or codes) contain machine instructions for a programmable processor and may be implemented in a high-level procedural and / or object-oriented programming language and / or in assembly / machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, non-transitory computer-readable medium, apparatus and / or device (e.g., magnetic disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0067] The processes and logic flows described herein may be executed by one or more programmable processors, also referred to as data processing hardware, which execute one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be executed by special purpose logic circuitry, for example, FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits). Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, and any one or more processors of any kind of digital computer. In general, a processor will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for executing instructions, and one or more memory devices for storing instructions and data. In general, a computer will also include one or more mass storage devices, for example, magnetic disks, magneto-optical disks, or optical disks, for storing data, or be operatively coupled to receive data from or transfer data to, or both. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0068] To provide for interaction with a user, one or more aspects of the present disclosure may be implemented on a computer having a display device, e.g., a CRT (cathode ray tube), LCD (liquid crystal display) monitor, or touch screen, for displaying information to the user, and possibly a keyboard and pointing device, e.g., a mouse or trackball, by which the user can provide input to the computer. Other types of devices may be used to provide for interaction with the user as well, e.g., feedback provided to the user may be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user may be received in any form, including acoustic input, speech input, or tactile input. Additionally, the computer may interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to the web browser in response to a request received from the web browser on the user's client device.
[0069] Although several implementations have been described, it will be understood that various modifications may be made without departing from the spirit and scope of the present disclosure. Accordingly, other implementations are within the scope of the following claims. [Explanation of symbols]
[0070] 10 Speaker (e.g., user), speaker, first speaker, second speaker, third speaker 10a-n Speaker (e.g., user) 10 groups, speakers 100 Systems 110 User Device, Remote User Device 112, 144 Data processing hardware 114 Memory Hardware 120 Audio utterances, captured utterances, utterances, training utterances 122 input audio signal (i.e., audio data), input audio signal, audio data, audio frame 130 Network 140 Cloud Computing Environment 142 Resources, computing resources, data processing hardware 146 Memory resources, memory hardware 200 Dialysis System 210 Segmentation Module 220 Transcription, Ground Truth Transcription 222 word, 1st and 2nd words, 3rd and 4th words, 5th and 6th words, 2nd word, 3rd word, 4th word, 5th word, non-blank symbol 223 Timestamp 224 Speaker Turn Token, First Speaker Turn Token, Second Speaker Turn Token 224a-n Sequence of speaker turn tokens 224 225 speaker segments, initial speaker segments, shortened duration speaker segments 225a~n Speaker segments 225a First speaker segment 225b Second speaker segment 225c Third speaker segment 226 Pair constraints, constraints, initial constraints 227 Start of SOS Token 229 End of Audio (EOS) Token 230 Speaker Encoder, Speaker Encoder Model 240 Speaker-specific Embeddings, Real-valued Speaker-specific Embeddings 250 speaker labels 250a First speaker label 250b Second speaker label 250c Third speaker label 260 Clustering Module 262 k classes, class, first class k 280 Diarization Results 300 ASR model, streaming ASR model, ASR model (i.e., transformer transducer), speech recognition model (e.g., ASR model), speech recognition model 310 Audio Encoder 312 Higher-level Feature Representation 320 Label Encoder 322 Dense Expression 330 Joint Network 340 Final softmax layer, softmax layer 342 Probability Distribution 400 Computer-implemented method, method 500 computing devices 500a Standard Server, Server 500b Laptop Computer 500c Rack Server System 510 Processor, components 520 Memory, components 530 Storage devices, components 540 High Speed Interface / Controller, Components, High Speed Interface, High Speed Controller 550 High Speed Expansion Port, Components 560 Low Speed Interface / Controller, Components, Low Speed Controller 570 Slow Bus 580 Display 590 Low Speed Expansion Port< / st> < / st> < / st>
Claims
1. A computer-implemented method (400) that, when executed on data processing hardware (142), causes the data processing hardware (142) to perform operations, the operations comprising: receiving an input audio signal (122) corresponding to speech (120) spoken by a plurality of speakers (10); A speech recognition model (300) is used to process the input audio signal (122) and output from the speech recognition model (300): a transcription (220) of the utterance (120); and a sequence of speaker turn tokens (224), each indicating the location of a respective speaker turn detected between a respective pair of adjacent words (222) in said transcription (220); and segmenting the input audio signal (122) into a plurality of speaker segments (225) based on a sequence of the speaker turn tokens (224); For each speaker segment (225) of the plurality of speaker segments (225), extracting a corresponding speaker-distinguishing embedding (240) from the speaker segment (225); performing spectral clustering on the speaker-distinguishing embeddings (240) extracted from the plurality of speaker segments (225) to cluster the plurality of speaker segments (225) into k classes (262); for each respective class (262) of the k classes (262), assigning to each speaker segment (225) clustered into the respective class (262) a respective speaker label (250) that differs from a respective speaker label (250) assigned to the speaker segments (225) clustered into each other class (262) of the k classes (262); A computer-implemented method (400).
2. 2. The computer-implemented method of claim 1 , wherein the operations further include annotating the transcription of the utterance based on the speaker labels assigned to each speaker segment.
3. each speaker turn token (224) in the sequence of speaker turn tokens (224) has a corresponding time stamp (223); 3. The computer-implemented method of claim 1, wherein segmenting the input audio signal into the plurality of speaker segments based on the sequence of the speaker turn tokens comprises segmenting the input audio signal into initial speaker segments each defined by the corresponding timestamps of a respective pair of adjacent speaker turn tokens in the sequence of the speaker turn tokens.
4. The operation, for each initial speaker segment (225) having a respective duration exceeding a segment duration threshold, further segmenting the initial speaker segment into two or more reduced duration speaker segments (225) having respective durations equal to or less than the segment duration threshold. Further comprising: The plurality of speaker segments (225) segmented from the input audio signal (122) the initial speaker segments (225) having respective durations less than or equal to the segment duration threshold; the reduced duration speaker segments (225) further segmented from any of the initial speaker segments (225) having respective durations exceeding the segment duration threshold; The computer-implemented method (400) of claim 3, comprising:
5. Extracting corresponding speaker-differentiated embeddings (240) from the speaker segments (225), receiving the speaker segments (225) as input to a speaker encoder model (230); generating the corresponding speaker-distinguishing embeddings (240) as output from the speaker encoder model (230); 5. The computer-implemented method (400) of any one of claims 1 to 4, comprising:
6. 6. The computer-implemented method of claim 5, wherein the speaker encoder model comprises a long short-term memory-based (LSTM-based) speaker encoder model configured to extract the corresponding speaker-discriminating embedding from each speaker segment.
7. The operation, for each speaker turn token (224) in the sequence of speaker turn tokens (224) generated as output from the speech recognition model (300), predicting a confidence of the respective speaker turn detected in the transcription (220); determining pairwise constraints (226) based on the predicted reliability of the speaker turn tokens (224); Further comprising:
7. The computer-implemented method (400) of any one of claims 1 to 6, wherein the spectral clustering performed in the speaker-discriminating embedding (240) is constrained by the pairwise constraints (226).
8. The speech recognition model (300) comprises a streaming transducer-based speech recognition model, the streaming transducer-based speech recognition model comprising: An audio encoder (310), receiving as input a sequence of acoustic frames (122); generating, at each of a plurality of time steps, a high-level feature representation (312) for a corresponding acoustic frame (122) in the sequence of acoustic frames (122); an audio encoder (310) configured to: A label encoder (320), receiving as input the sequence of non-blank symbols (222) output by a final softmax layer (340); generating a dense representation (322) at each of said plurality of time steps; A label encoder (320) configured to: A joint network (330), receiving as input the high-level feature representation (312) generated by the audio encoder (310) at each of the plurality of time steps and the dense representation (322) generated by the label encoder (320) at each of the plurality of time steps; generating, at each of the plurality of time steps, a probability distribution (342) over possible speech recognition hypotheses at the corresponding time step; A joint network (330) configured to perform The computer-implemented method (400) of any one of claims 1 to 7, comprising:
9. 10. The computer-implemented method of claim 8, wherein the audio encoder comprises a neural network having multiple transformer layers.
10. 10. The computer-implemented method of claim 8 or 9, wherein the label encoder comprises a bigram embedding lookup decoder model.
11. 11. The computer-implemented method of claim 1, wherein the speech recognition model is trained on training samples, each comprising training utterances spoken by two or more different speakers, paired with a corresponding ground truth transcription of the training utterances, each ground truth transcription being injecting ground truth speaker turn tokens indicating locations where speaker turns occur within the ground truth transcription.
12. 12. The computer-implemented method (400) of claim 11, wherein the corresponding ground truth transcription of each training sample is not annotated with any timestamp (223) information.
13. A system (100), comprising: Data processing hardware (142); and memory hardware (146) in communication with the data processing hardware (142) and configured to store instructions that, when executed by the data processing hardware (142), cause the data processing hardware (142) to perform operations, the operations including: receiving an input audio signal (122) corresponding to speech (120) spoken by a plurality of speakers (10); A speech recognition model (300) is used to process the input audio signal (122) and output from the speech recognition model (300): a transcription (220) of the utterance (120); and a sequence of speaker turn tokens (224), each indicating the location of a respective speaker turn detected between a respective pair of adjacent words (222) in said transcription (220); and segmenting the input audio signal (122) into a plurality of speaker segments (225) based on a sequence of the speaker turn tokens (224); For each speaker segment (225) of the plurality of speaker segments (225), extracting a corresponding speaker-distinguishing embedding (240) from the speaker segment (225); performing spectral clustering on the speaker-distinguishing embeddings (240) extracted from the plurality of speaker segments (225) to cluster the plurality of speaker segments (225) into k classes (262); for each respective class (262) of the k classes (262), assigning to each speaker segment (225) clustered into the respective class (262) a respective speaker label (250) that differs from a respective speaker label (250) assigned to the speaker segments (225) clustered into each other class (262) of the k classes (262); The system (100) includes:
14. 14. The system (100) of claim 13, wherein the operations further include annotating the transcription (220) of the utterance (120) based on the speaker labels (250) assigned to each speaker segment (225).
15. each speaker turn token (224) in the sequence of speaker turn tokens (224) has a corresponding time stamp (223); 15. The system (100) of claim 13 or 14, wherein segmenting the input audio signal (122) into the plurality of speaker segments (225) based on the sequence of the speaker turn tokens (224) comprises segmenting the input audio signal (122) into initial speaker segments (225) each defined by the corresponding timestamps (223) of a respective pair of adjacent speaker turn tokens (224) in the sequence of the speaker turn tokens (224).
16. The operation, for each initial speaker segment (225) having a respective duration exceeding a segment duration threshold, further segmenting the initial speaker segment into two or more reduced duration speaker segments (225) having respective durations equal to or less than the segment duration threshold. Further comprising: The plurality of speaker segments (225) segmented from the input audio signal (122) the initial speaker segments (225) having respective durations less than or equal to the segment duration threshold; the reduced duration speaker segments (225) further segmented from any of the initial speaker segments (225) having respective durations exceeding the segment duration threshold; The system (100) of claim 15, comprising:
17. Extracting corresponding speaker-differentiated embeddings (240) from the speaker segments (225), receiving the speaker segments (225) as input to a speaker encoder model (230); generating the corresponding speaker-distinguishing embeddings (240) as output from the speaker encoder model (230); 17. The system (100) according to any one of claims 13 to 16, comprising:
18. 20. The system (100) of claim 17, wherein the speaker encoder model (230) comprises a long short-term memory based (LSTM-based) speaker encoder model configured to extract the corresponding speaker-discriminating embedding (240) from each speaker segment (225).
19. The operation, for each speaker turn token (224) in the sequence of speaker turn tokens (224) generated as output from the speech recognition model (300), predicting a confidence of the respective speaker turn detected in the transcription (220); determining pairwise constraints (226) based on the predicted reliability of the speaker turn tokens (224); Further comprising:
19. The system (100) of any one of claims 13 to 18, wherein the spectral clustering performed in the speaker-discriminating embedding (240) is constrained by the pairwise constraint (226).
20. The speech recognition model (300) comprises a streaming transducer-based speech recognition model, the streaming transducer-based speech recognition model comprising: An audio encoder (310), receiving as input a sequence of acoustic frames (122); generating, at each of a plurality of time steps, a high-level feature representation (312) for a corresponding acoustic frame (122) in the sequence of acoustic frames (122); an audio encoder (310) configured to: A label encoder (320), receiving as input the sequence of non-blank symbols (222) output by a final softmax layer (340); generating a dense representation (322) at each of said plurality of time steps; A label encoder (320) configured to: A joint network (330), receiving as input the high-level feature representation (312) generated by the audio encoder (310) at each of the plurality of time steps and the dense representation (322) generated by the label encoder (320) at each of the plurality of time steps; generating, at each of the plurality of time steps, a probability distribution (342) over possible speech recognition hypotheses at the corresponding time step; A joint network (330) configured to perform The system (100) according to any one of claims 13 to 19, comprising:
21. 21. The system of claim 20, wherein the audio encoder comprises a neural network having multiple transformer layers.
22. 22. The system (100) of claim 20 or 21, wherein the label encoder (320) comprises a bigram embedding lookup decoder model.
23. 23. The system (100) of any one of claims 13 to 22, wherein the speech recognition model (300) is trained on training samples each comprising training utterances (120) spoken by two or more different speakers (10) paired with a corresponding ground truth transcription (220) of the training utterances (120), each ground truth transcription (220) being injected with ground truth speaker turn tokens indicating locations where speaker turns occur within the ground truth transcription.
24. 24. The system (100) of claim 23, wherein the corresponding ground truth transcription of each training sample is not annotated with any timestamp (223) information.
Citation Information
Patent Citations
Speaker clustering device and speaker clustering method
JP2011059500A
Fully Supervised Speaker Diarization
US20200219517A1
Joint automatic speech recognition and speaker diarization
WO2020206455A1
