Speaker verification using multi-tasking speech model

Through the use of multi-task neural network models, combined with SID and SSD tasks, the threat of synthetic speech and replay attacks to the speaker verification system is solved, the accurate distinction between human speech and synthetic speech is achieved, and the security and safety of the system are improved. efficiency.

CN118633124APending Publication Date: 2024-09-10GOOGLE LLC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202380021374.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-15
Filing Date
2023-02-10
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing speaker verification systems struggle to accurately differentiate between human speech and synthetic speech when faced with synthetic speech and replay attacks, allowing potential attackers to trick the system into gaining unauthorized access.

Method used

A multi-task neural network model is adopted, combining Speaker Identification (SID) and Synthetic Speech Detection (SSD) tasks, to distinguish between human-generated speech and synthetic speech by training an audio encoder and corresponding heads (SID head and SSD head), And perform these tasks in parallel in a real-time environment to ensure accuracy and efficiency.

Benefits of technology

Effectively differentiate between human speech and synthetic speech, prevent unauthorized access, reduce the use of computing and storage resources, and improve system security and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118633124A
    Figure CN118633124A
Patent Text Reader

Abstract

A method (400) includes obtaining a speaker recognition (SID) model (151) trained to predict a speaker embedding (155) from utterances spoken by different speakers, the SID model including a trained audio encoder (150) and a trained SID head (154). The method also includes receiving a plurality of synthetic speech detection (SSD) training utterances (330) including a set of human-derived speech samples and a set of synthetic speech samples. The method also includes training an SSD header (160) on the SSD training utterance using the trained audio encoder to learn to detect the presence of synthetic speech in the audio code encoded by the trained audio encoder. The operations further include providing a multi-task neural network model (130) for performing both the SID task and the SSD task in parallel on the input audio data for execution on the computing device (102).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to automatic speaker verification using a multi-task speech model. Background Art

[0002] In a voice-enabled environment such as a home or car, a user can use voice input to access information and / or control various functions. The information and / or functions can be personalized for a given user. Therefore, it can be advantageous to identify a given speaker before allowing the user to access a virtual assistant and a telephone voice interface. Speaker identification (e.g., speaker verification and voice authentication) provides a simple way for a registered user of a user device to gain access to the user device. Speaker identification allows a registered user to unlock and access the user's device by speaking words without the registered user having to manually enter (e.g., via typing or speaking) a password to gain access to the user device. Speaker verification also allows a digital assistant to identify a registered user based on spoken words without the user having to provide authorization credentials. In some cases, a potential attacker uses a speech synthesis algorithm to create a synthesized voice with the voice of a registered user to deceive the speaker recognition system to authenticate the synthesized voice to gain access to the user's device or to invoke a digital assistant. In additional cases, a potential attacker can also record audio of a registered user speaking a verification phrase and then replay the recorded audio to gain access to the user's device. Therefore, a system that receives utterances within an environment must have some way of distinguishing between utterances of human speech and utterances of synthesized speech directed to the system. Summary of the invention

[0003] One aspect of the present disclosure provides a computer-implemented method that, when executed on data processing hardware, causes the data processing hardware to perform operations. The operations include obtaining a speaker identification (SID) model that is trained to predict speaker embeddings from utterances spoken by different speakers. The SID model includes a trained audio encoder and a trained SID head. The operations also include receiving a plurality of synthetic speech detection (SSD) training utterances that include a set of human-derived speech samples and a set of synthetic speech samples. The operations also include training the SSD head on the SSD training utterances using the trained audio encoder to learn to detect the presence of synthetic speech in an audio encoding encoded by the trained audio encoder, wherein the SSD head is superimposed on the trained audio encoder. The operations also include providing a multi-task neural network model for executing on a computing device for performing both SID tasks and SSD tasks in parallel on input audio data. Here, the multi-task neural network model includes a trained audio encoder, a trained SID head superimposed on the trained audio encoder, and a trained SSD head superimposed on the trained audio encoder.

[0004] Implementations of the present disclosure may include one or more of the following optional features. In some implementations, the SID model is trained on multiple SID training data sets, each SID training data set including multiple SID training utterances spoken by M different speakers. Here, one or more of the SID training utterances spoken by a particular speaker may be paired with a corresponding target speaker embedding to train an audio encoder and a SID head to learn how to predict the corresponding speaker embedding for a particular speaker. In addition, in these implementations, the multiple SID training utterances of one or more of the SID training sets in the SID training set may include N utterances spoken by each speaker among the M different speakers. Optionally, the multiple SID training utterances of each SID training data set may include non-synthesized speech generated by humans.

[0005] In some examples, the number of speech samples in the set of human-derived speech samples is greater than the number of speech samples in the set of synthesized speech samples. In other examples, the parameters / weights of the trained audio encoder are frozen when the SSD head is trained on the SSD training utterances. The audio encoder may include a multi-head attention model architecture. For example, the multi-head attention model architecture may include a stack of Conformer blocks or Transformer blocks. The SSD head may include one or more fully connected layers.

[0006] In some implementations, the multi-task neural network model is configured to perform SID tasks and SSD tasks in parallel on input audio data by: receiving the input audio data as input of a trained audio encoder; generating a shared audio encoding that encodes the input audio data as output from the trained audio encoder; providing the shared audio encoding generated as output from the trained audio encoder to a trained SID head and an SSD head as input; generating an estimated speaker embedding representing characteristics of the voice of an utterance represented by the input audio data as output from the trained SID head; and generating an SSD classification score as output from the trained SSD head, the SSD classification score indicating whether the utterance represented by the input audio data includes real speech generated by a human or synthesized speech. The audio input data represents an utterance captured by an array of one or more microphones. In these implementations, the multi-task neural network model can be configured to: authorize access to one or more resources when the estimated speaker embedding matches a reference speaker embedding associated with a registered user authorized to access the resource and the SSD classification score generated as output from the trained SSD head indicates that the utterance represented by the input audio data includes real speech generated by a human. Additionally or alternatively, in these implementations, the multi-task neural network model can be configured to restrict access to one or more resources in at least one of the following circumstances: at least one of the evaluated speaker embeddings does not match any reference speaker embedding associated with a registered user authorized to access the resource or an SSD classification score generated as an output from a trained SSD head indicates that the utterance represented by the input audio data includes synthesized speech.

[0007] Another aspect of the present disclosure provides a system comprising data processing hardware and memory hardware, the memory hardware communicating with the data processing hardware and storing instructions executable on the data processing hardware, the instructions causing the data processing hardware to perform operations. The operations include obtaining a speaker identification (SID) model, the SID model being trained to predict speaker embeddings from utterances spoken by different speakers. The SID model includes a trained audio encoder and a trained SID head. The operations also include receiving a plurality of synthetic speech detection (SSD) training utterances including a set of human-derived speech samples and a set of synthetic speech samples. The operations also include training the SSD head on the SSD training utterances using the trained audio encoder to learn to detect the presence of synthetic speech in an audio encoding encoded by the trained audio encoder, wherein the SSD head is superimposed on the trained audio encoder. The operations also include providing a multi-task neural network model for performing both SID tasks and SSD tasks in parallel on input audio data for execution on a computing device. Here, the multi-task neural network model includes a trained audio encoder, a trained SID header superimposed on the trained audio encoder, and a trained SSD header superimposed on the trained audio encoder.

[0008] This aspect of the disclosure may include one or more of the following optional features. In some implementations, the SID model is trained on multiple SID training data sets, each SID training data set including multiple SID training utterances spoken by M different speakers. Here, one or more of the SID training utterances spoken by a particular speaker can be paired with a corresponding target speaker embedding to train an audio encoder and a SID head to learn how to predict the corresponding speaker embedding for the particular speaker. In addition, in these implementations, the multiple SID training utterances of one or more of the SID training sets in the SID training set may include N utterances spoken by each speaker among the M different speakers. Optionally, the multiple SID training utterances of each SID training data set may include non-synthesized speech generated by humans.

[0009] In some examples, the number of speech samples in the set of human-derived speech samples is greater than the number of speech samples in the set of synthesized speech samples. In other examples, the parameters / weights of the trained audio encoder are frozen when the SSD head is trained on the SSD training utterances. The audio encoder may include a multi-head attention model architecture. For example, the multi-head attention model architecture may include a stack of Conformer blocks or Transformer blocks. The SSD head may include one or more fully connected layers.

[0010] In some implementations, the multi-task neural network model is configured to perform SID tasks and SSD tasks in parallel on input audio data by: receiving the input audio data as input of a trained audio encoder; generating a shared audio encoding that encodes the input audio data as output from the trained audio encoder; providing the shared audio encoding generated as output from the trained audio encoder to a trained SID head and an SSD head as input; generating an estimated speaker embedding representing characteristics of the voice of an utterance represented by the input audio data as output from the trained SID head; and generating an SSD classification score as output from the trained SSD head, the SSD classification score indicating whether the utterance represented by the input audio data includes real speech generated by a human or synthesized speech. The audio input data represents an utterance captured by an array of one or more microphones. In these implementations, the multi-task neural network model can be configured to: authorize access to one or more resources when the estimated speaker embedding matches a reference speaker embedding associated with a registered user authorized to access the resource and the SSD classification score generated as output from the trained SSD head indicates that the utterance represented by the input audio data includes real speech generated by a human. Additionally or alternatively, in these implementations, the multi-task neural network model can be configured to restrict access to one or more resources in at least one of the following circumstances: at least one of the evaluated speaker embeddings does not match any reference speaker embedding associated with a registered user authorized to access the resource or an SSD classification score generated as an output from a trained SSD head indicates that the utterance represented by the input audio data includes synthesized speech.

[0011] The details of one or more implementations of the present disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic diagram of an example speech environment with a speaker recognition and synthesized speech detection system for identifying a speaker.

[0013] Figure 2 is a schematic diagram of an example of a stack of Conformer blocks that may form a Conformer layer implemented by an encoder of a speaker recognition and synthetic speech detection system.

[0014] Figure 3A is a schematic diagram of the first training stage, where an untrained audio encoder and a speaker identification (SID) head are trained on the SID task to learn how to predict speaker embeddings / representations from the input audio.

[0015] Figure 3Bis a schematic diagram of the second training stage, which trains the synthesized speech detection (SSD) head to learn how to predict whether the input audio corresponds to real (bona fide) human-generated speech or synthesized / synthesized speech.

[0016] Figure 4 is a flow diagram of an example arrangement of operations of a method for training a multi-task neural network model for performing both SID and SSD tasks in parallel on input audio data.

[0017] Figure 5 is a schematic diagram of an example computing device that can be used to implement the systems and methods described herein.

[0018] Like reference numerals in the various drawings indicate like elements. DETAILED DESCRIPTION

[0019] In a voice-enabled environment such as a home, car, workplace, or school, a user can speak a query or command, and a digital assistant can answer the query and / or cause the command to be executed. Such a voice-enabled environment can be implemented using a network of connected microphone devices distributed in various rooms or areas of the environment. Through the microphone network, users can query the digital assistant through spoken words without having to have a computer or other interface in front of them. In some cases, the voice-enabled environment is associated with multiple registered users, such as people living in a household. These situations may apply when a single device such as a smart phone, smart speaker, smart display, tablet device, smart TV, smart appliance, vehicle infotainment system, etc. is shared by multiple users. Therefore, it is desirable to determine the identity of the specific user who speaks the query. The process of determining the identity of a specific speaker / user may be referred to as speaker verification, speaker identification, speaker recognition, or voice recognition.

[0020] Speaker verification / identification can allow a user to issue queries that act on behalf of a specific user and / or trigger personalized responses in a multi-user environment. Speaker verification / identification (e.g., voice authentication) provides a user of a user device with a simple method of gaining access to the user device. For example, a user can unlock and access a user device by speaking an utterance, without the user having to manually enter (e.g., via typing or speaking) a password to gain access to the user device.

[0021] In some scenarios, the user queries the digital assistant related to the user's personal information and / or needs to access resources from a collection of personal resources associated with the user. For example, a specific user (e.g., a user registered to the digital assistant) may ask the digital assistant "when is my meeting with Matt" or query the digital assistant "play my music playlist". Here, the user may be one of one or more registered users who each have access to their own corresponding set of personal resources (e.g., calendar, music player, email, messaging, contact list, etc.) and are restricted from accessing the personal resources of other registered users. For example, if John is a registered user of the digital assistant, the digital assistant will need to distinguish whether John uttered the words "when is my meeting with Matt" in order to access John's appropriate registered user calendar to determine when a meeting is scheduled with Matt, and respond with the meeting details of the scheduled meeting with Matt. Similarly, the digital assistant will need to distinguish whether John uttered the words "play my music playlist" in order to access the music player and ultimately audibly output the tracks from John's music playlist.

[0022] To determine which user is speaking in a multi-user, voice-enabled environment, a voice-enabled system may include a speaker recognition system (e.g., a speaker verification system or a voice authentication system). An automatic speaker verification (ASV) system may employ a speaker identification (SID) model that is trained to extract an evaluation vector (e.g., a speaker embedding) from audio data corresponding to an utterance spoken by a particular user, whereby the extracted evaluation vector represents the voice characteristics of the particular user. The evaluation vector may include a d-vector. The SID model may be a neural network model trained under machine or human supervision to output a d-vector. To resolve the identity of a particular user, a comparator determines whether the evaluation vector matches any reference vector of a registered and / or authorized user of the user device. Here, each reference vector may correspond to a voiceprint or unique identifier representing the characteristics of the voice of the corresponding registered / authorized user. Each registered and / or authorized user may speak multiple registered utterances, and for each registered phrase, the SID model may generate a corresponding reference d-vector, which may be combined (e.g., averaged or otherwise accumulated) to form a corresponding reference d-vector for the registered / authorized user.

[0023] With the advent of synthetic media (e.g., "deepfakes"), it is critical for these systems to accurately determine when a speech utterance includes synthesized speech (i.e., computer-generated audio output that resembles human speech). For example, state-of-the-art text-to-speech (TTS) and voice conversion (VC) systems can now closely mimic human speakers, which provides a way to attack and deceive ASV systems. Therefore, state-of-the-art TTS and VC systems can be used to generate synthesized / synthesized speech representations in the voice of an authorized / registered user to deceive the SID model to verify that the synthesized speech representations are spoken by an authorized / registered user. As used herein, the terms "synthesized speech", "synthesized speech", "synthesized speech", and "synthesized speech" are used interchangeably. An imposter can also play audio of a registered user's pre-recorded voice to deceive the ASV system to obtain unauthorized access to a locked user device of a registered user and / or resources associated with the registered user. As a result, the user device's microphone can capture the played audio of synthesized speech or pre-recorded voice of the registered user, and the ASV system can extract an evaluation vector that matches the registered user's reference vector, thereby deceiving the ASV system and allowing the impostor to gain unauthorized access to the user device.

[0024] In order to detect these spoofing attempts, the ASV system may include one or more countermeasure systems for synthetic speech detection (SSD) and / or replay attack detection (RAD). Since the SID model is typically based on a neural network, conventional spoofing countermeasure systems for SSD and RAD are also typically based on neural network models trained via machine learning techniques. Therefore, since multiple separate neural network models need to be run in parallel, i.e., separate neural network models for performing each of SID, SSD, and RAD on the input audio signal, the use of additional countermeasure systems in conjunction with the SID model can significantly increase computing / storage requirements. Since the main use case of the ASV system is for "real-time" authentication of users to invoke a virtual assistant and / or gain access to a telephone voice interface, minimizing latency is critical to ensuring a positive user experience. In addition, since the deployment of the ASV system typically occurs on resource-constrained systems (such as smart phones), it is critical to minimize computing and storage resource usage.

[0025] Machine learning (ML) algorithms such as neural networks have primarily driven the proliferation of ASV systems and other speech-enabled technologies. However, these algorithms typically require a large number of training samples, making it common for the main bottleneck in training accurate models to be the lack of sufficiently large and high-quality data sets. For example, large data sets that include speech from humans are readily available, but similar data sets that instead include synthetic speech are not readily available. Therefore, training a model that can accurately determine synthetic speech without a conventional training set is a significant problem for the development of synthetic speech detection systems.

[0026] The implementation of this article relates to a multi-task neural network model that can perform both speaker recognition and synthetic speech detection tasks simultaneously without using a separate neural network model to perform SID and SSD tasks. In some implementations, in addition to or instead of the SSD task, the multi-task neural network model performs replay attack detection (RAD). It is worth noting that the multi-task neural network model includes an audio encoder that receives an input audio signal representing a speech as input and generates a shared output embedding as output for use by a SID header and at least one of an SSD header or a RAD header. Here, each of the SID header, the SSD header, and the RAD header can be superimposed on the audio encoder and configured to calculate an output associated with a corresponding task in the SID, SSD, and RAD tasks. For example, the SID header can include a fully connected network that receives a shared output embedding generated by the audio encoder and calculates a speaker embedding of the voice characteristics of the speaker representing the speech. In this way, the audio encoder and the SID head can jointly provide a SID model. The SSD head can include a fully connected network that also receives the same shared output embedding generated by the audio encoder, but instead calculates a synthesized speech score indicating whether the input audio signal corresponds to real speech (e.g., non-synthesized / real speech / human speech) or synthesized speech. In this way, the audio encoder and the SSD head can jointly provide the SSD model. If applicable, the RAD head can include a fully connected network that also receives the same shared output embedding generated by the audio encoder and calculates a RAD score indicating whether the input audio signal corresponds to pre-recorded speech played from an audio output device or non-recorded speech audibly spoken by a human. In this way, the audio encoder and the SSD head can jointly provide the RAD model.

[0027] As described in more detail below, the audio encoder and SID head can be initially trained on SID training utterances spoken by different speakers to learn how to predict speaker embeddings for input audio data. Thereafter, the trained audio encoder can be used to train the SSD head and / or RAD head to learn how to predict the aforementioned synthesized speech and / or RAD scores. The initial training process can first train a multi-task neural network model on the SID task to teach the multi-task neural network model to learn to generate speaker embeddings from SID training utterances spoken by different speakers.

[0028] refer to Figure 1 In some implementations, the example system 100 includes a user device 102 associated with one or more users 10 and communicating with a remote system 111 via a network 104. The user device 102 may correspond to a computing device such as a mobile phone, a computer (laptop or desktop), a tablet, a smart speaker / display, a smart home appliance, a smart headset, a wearable device, a vehicle infotainment system, etc., and is equipped with data processing hardware 103 and memory hardware 107. The user device 102 includes or communicates with one or more microphones 106 for capturing speech from the corresponding user 10. The remote system 111 may be a single computer, multiple computers, or a distributed system (e.g., a cloud environment) with scalable / elastic computing resources 113 (e.g., data processing hardware) and / or storage resources 115 (e.g., memory hardware).

[0029] The user device 102 may include a hot word detector (not shown) configured to detect the presence of hot words in the streaming audio 118 without performing semantic analysis or speech recognition processing on the streaming audio 118. The user device 102 may include an acoustic feature extractor (not shown), which may be implemented as part of the hot word detector or as a separate component, for extracting audio data 120 from the utterance 119. For example, referring to Figure 1 , an acoustic feature extractor may receive streaming audio 118 corresponding to an utterance 119 spoken by a user 10 captured by one or more microphones 106 of a user device 102, and extract audio data 120. The audio data 120 may include acoustic features, such as Mel-frequency cepstral coefficients (MFCCs) or filter bank energies calculated over a window of the audio signal. In the example shown, the utterance 119 spoken by the user 10 includes “Ok Google, Play my music playlist”.

[0030] The hotword detector may receive the audio data 120 to determine whether the utterance 119 includes a particular hotword (e.g., Ok Google) spoken by the user 10. That is, the hotword detector 110 may be trained to detect the presence of a hotword (e.g., Ok Google) or one or more variations of a hotword (e.g., Hey Google) in the audio data 120 to wake the user device 102 from a sleep or hibernation state and trigger an automated speech recognition (ASR) system 180 to perform speech recognition on the hotword and / or one or more other terms following the hotword (e.g., a voice query following the hotword and specifying an action to be performed). In the example shown, the query following the hotword in the utterance 119 captured in the streaming audio includes "Play my music playlist," which specifies an action for the digital assistant to access a music playlist associated with a particular user (e.g., John) 10 and provide a response 190 including an audio track from John's music playlist for playback by the user device 102 (and / or one or more designated audio output devices) for audible output from a speaker.

[0031] The system 100 includes a multi-task neural network model 130 configured to process audio data 120 to determine the identity of the user 10 who spoke the utterance 119 and to determine whether the audio data 120 includes spoofed speech. As used herein, the multi-task neural network model 130 can determine that the audio data 120 includes spoofed speech by detecting that the audio data 120 includes synthesized speech and / or optionally detecting that the audio data 120 includes pre-recorded speech played from an audio output device. Advantageously, the multi-task neural network model 130 includes a shared audio encoder 150 that receives the audio data 120 as input and generates an audio encoding 152 corresponding to a hidden feature representation of the audio data 120 encoded by the audio encoder 150 as output. Each audio encoding 152 output from the audio encoder 150 can be input to a corresponding one of the SID header 154, the SSD header 160, and the RAD header 161 branched from the audio encoder 150. Accordingly, the audio encoder 150 can be used as the “main body” of the multi-task neural network model 130, wherein the audio encoder 150 and the SID header 154 form a SID model 151 ( Figure 3A ) corresponding to the SID branch, the audio encoder 150 and the SSD header 160 form a SSD model 153 ( Figure 3B ) corresponding to the SSD branch, and the audio encoder 150 and the RAD header 161 form a RAD branch corresponding to the RAD model.

[0032] The multi-task neural network model 130 may be executed on a computing device including the data processing hardware 103 of the user device 102 associated with the user 10, or the multi-task neural network model 130 may be executed on the data processing hardware 113 of the remote system 111. When executed on the data processing hardware 113 of the remote system 111, the user device 102 may send audio data 120 corresponding to the utterance 119 captured by the user device 102 to the multi-task neural network model 130 executed on the remote system 111 via the network 104. In some implementations, components of the multi-task neural network model 130 are distributed to be executed across the data processing hardware 103 of the user device 102 and the data processing hardware 113 of the remote system 111. For example, the audio encoder 150 may be executed on one of the user device 102 or the remote system 111, while the SID header 154, the SSD header 160, and the RAD header 161 may be executed on the other of the user device 102 or the remote system 111. Such an arrangement may be beneficial when processing / storage / memory resources are limited on the user device 102. The multi-task neural network model 130 may employ any combination of any three of the SID header 154, the SSD header 160, the RAD header 161, or any two of these headers. For example, the multi-task neural network model 130 may employ the SID header 154 and the SSD header 160, but not the RAD header 161.

[0033] In some implementations, the audio encoder 150 includes a multi-head attention model architecture. For example, the audio encoder 150 may include a stack of Conformer blocks. The multi-head attention model architecture of the audio encoder 150 need not be limited to Conformer blocks, and may include any type of multi-head attention model architecture, including but not limited to a stack of transformer blocks or lightweight convolution blocks.

[0034] Figure 2An example of a stacked Conformer block 200 of Conformer layers from an encoder 150 is provided. The Conformer block 200 includes a first half feed-forward layer 210, a second half feed-forward layer 240, a multi-head self-attention block 220 and a convolutional layer 230 disposed between the first half feed-forward layer 210 and the second half feed-forward layer 240, and a concatenation operator 205. The first half feed-forward layer 210 processes audio features 121 extracted from the input audio data 120. For example, an acoustic front end (not shown) may extract the audio features 121 from the input audio data 120 for input to an audio encoder. The audio features 121 may include a Log-Mel filter bank calculated and stacked with a stride of three (3) every four (4) frames. Subsequently, the multi-head self-attention block 220 receives the input audio data 120 concatenated with the output of the first half feed-forward layer 210. It is noteworthy that the multi-head self-attention block 220 integrates a relative sinusoidal position encoding scheme to allow the self-attention block 220 to generalize better over different input lengths, making the resulting encoder 150 more robust to changes in the length of the input audio data 120 representing the speech 119. Intuitively, the role of the multi-head self-attention block 220 is to summarize the acoustic context to be encoded separately for each input frame. The convolution layer 230 subsamples the output of the multi-head self-attention block 220 concatenated with the output of the first half feed-forward layer 210. Thereafter, the second half feed-forward layer 240 receives the concatenation of the convolution layer 230 output and the multi-head self-attention block 220. The layer normalization (layernorm) module 250 processes the output from the second half feed-forward layer 240. Mathematically, the conformer block 200 transforms the input feature x using the modulation feature m to produce the output feature y as shown below:

[0035] Return to reference Figure 1 In some examples, the multi-task neural network model 130 is deployed in a multi-user, voice-enabled environment, where multiple different users 10 are each registered to a user device 102 and have access to a corresponding set of personal resources associated with the user (e.g., calendar, music player, email, messaging, contact list, etc.). Registered users 10 are restricted from accessing personal resources from a corresponding set of personal resources associated with other registered users. Each registered user 10 may have a corresponding user profile that is linked to a corresponding set of personal resources associated with the user, as well as other relevant information associated with the user 10 (e.g., user-specified preferences).

[0036] The audio encoder 150 and the SID header 154 may be initially trained on the SID task to determine a corresponding evaluated speaker embedding / vector 155 of the utterance 119 that conveys the voice characteristics of the user 10. The reference speaker embedding / vector 155 represents the voice characteristics of the utterance 119 captured by the user device 102. Thereafter, the verifier 170 may compare the speaker embedding 155 with one or more reference speaker embeddings 171, which are associated with registered / authorized users who have access to a corresponding set of personal resources associated with the user (e.g., calendar, music player, email, messaging, contact list, etc.). The evaluated and reference speaker embeddings / vectors 155 may include d-vectors or i-vectors. When the speaker embedding / vector 155 matches one of the reference speaker embeddings 171, the verifier 170 may verify the identity of the user 10 who spoke the utterance 119 as one of the registered / authorized users. Advantageously, among other things, SID / ASV allows user 10 to unlock and access user device 102 by speaking an utterance, without requiring the user to manually enter (e.g., via typing) or speak a password or provide some other means of verification (e.g., answering a challenge question, providing biometric verification data, etc.) to gain access to user device 102. Likewise, in a multi-user, voice-enabled environment, SID / ASV performed by audio encoder 150, SID header 154, and authenticator 170 may be used to determine which registered user 10 is speaking utterance 119. For example, in Figure 1 In the example, John may be a registered user 10 of a user device 102 (or an interface of a digital assistant 101 running on the user device), and the digital assistant 101 needs to recognize that it was John who uttered the utterance 119 "Ok Google, Play my music playlist" in order to access the music player and ultimately audibly output tracks from the appropriate music playlist associated with John.

[0037] The audio encoder 150 initially trained on the SID task may be used to subsequently train the SSD head 160 on the SSD task to determine whether the input audio data 120 representing an utterance 119 includes synthesized speech. For example, an utterance 119 captured by the user device 102 in the streaming audio 118 may correspond to synthesized speech generated by a text-to-speech (TTS) system 11 or a voice conversion (VC) model 13. Here, the TTS system 11 may convert the input text corresponding to the utterance 119 into synthesized speech having the voice characteristics of an authorized / registered user 10 who has access to the user device 102. Similarly, the VC model 13 may receive audio of the utterance 119 spoken by an impostor user who is not authorized to access the user device 102, and convert the audio into converted audio having the voice characteristics of the authorized / registered user 10. Thus, an imposter user / entity may employ the TTS system 11 and / or the VC model 13 to generate synthesized speech having voice characteristics of an authorized / registered user to spoof the SID header 154 to generate a speaker embedding of the authorized / registered user 10 to gain unauthorized access to the user device 102 and / or a collection of personal resources associated with the authorized / registered user 10. As a countermeasure for preventing the verifier 170 from being spoofed, the SSD head 160 of the multi-task neural network model 130 is configured to receive as input the audio encoding 152 generated as output by the audio encoder 150, and to generate as output an SSD classification score 162 indicating whether the audio data 120 representing the utterance 119 includes authentic speech generated by a human or synthesized / spoofed speech. In some examples, the SSD classification score 162 includes a probability score that indicates the presence of synthesized speech when the probability score 162 satisfies the SSD threshold score. In these examples, the spoof speech detector 172 can compare the probability score conveyed by the SSD classification score 162 to the SSD threshold score to determine an output indicating whether the utterance 119 is real speech or synthesized / spoof speech. In other examples, the SSD classification score 162 includes a binary / Boolean value that indicates the presence of real human-generated speech when the value is equal to "0" or indicates the presence of synthesized speech when the value is equal to "1", or vice versa.

[0038] Similar to the SSD head 160, the audio encoder 150 initially trained on the SID task can be used to subsequently train the RAD head 161 on the RAD task to determine whether the input audio data 120 representing the utterance 119 includes pre-recorded speech played from an audio output device. As previously described, the pre-recorded voice of the registered user can be played from the audio output device, and the microphone of the user device 102 can capture the played audio of the pre-recorded voice of the registered user. Thereafter, the SID header 154 can extract the evaluation vector 155, which the verifier 170 verifies as matching the reference vector 171 of the registered user, thereby deceiving the verifier 170 to allow the imposter to obtain unauthorized access to the user device. As a countermeasure to prevent the verifier 170 from being spoofed, the RAD head 161 of the multi-task neural network model 130 is configured to receive as input the audio encoding 152 generated as output by the audio encoder 150, and generate as output a RAD classification score 163, which indicates whether the audio data 120 representing the utterance 119 includes real speech associated with non-recorded speech audibly spoken by a human or spoof speech associated with pre-recorded speech played from an audio output device. In some examples, the RAD classification score 163 includes a probability score that indicates the presence of pre-recorded speech when the probability score 163 satisfies the RAD threshold score. In these examples, the spoof speech detector 172 can compare the probability score conveyed by the RAD classification score 163 with the RAD threshold score to determine an output indicating whether the utterance 119 is real speech or pre-recorded / spoof speech. In other examples, the RAD classification score 163 includes a binary / Boolean value that indicates the presence of real, non-recorded human-generated speech when the value is equal to "0" or indicates the presence of pre-recorded speech when the value is equal to "1", or vice versa.

[0039] In some implementations, the multi-task neural network model 130 is configured to restrict access to one or more resources in at least one of the following situations: the verifier 170 determines that the evaluated speaker embedding 155 does not match any reference speaker embedding 171 associated with a registered user authorized to access the resource or the spoof speech detector 172 determines that the SSD classification score 162 and / or the RAD classification score 163 include synthetic and / or pre-recorded speech. In these implementations, the multi-task neural network model 130 will prevent the ASR system 180 from performing speech recognition on the audio data 120, or otherwise inhibit speech recognition from being performed on the audio data 120 if the ASR system 180 has already initiated speech recognition.

[0040] In some additional implementations, the multi-task neural network model 130 is configured to authorize access to one or more resources when the verifier 170 determines that the evaluated speaker embedding 155 matches the reference speaker embedding 171 associated with a registered user authorized to access the resource and the spoof speech detector 172 determines that the SSD classification score 162 and / or the RAD classification score 163 include authentic speech generated by a human. In these implementations, the verifier 170 and the spoof speech detector 172 can jointly output a confirmation 175 that, when received by the ASR system 180, causes the ASR system 180 to perform speech recognition on the audio data 120 representing the utterance 119. In the event that the ASR system 180 has already begun performing speech recognition, the confirmation 175 can cause the ASR system 180 to continue processing the audio data 120 to recognize the terms spoken by the user 10 in the utterance 119.

[0041] The ASR system 180 may include an ASR model configured to perform speech recognition on audio data 120 representing a query such as "Play my music playlist". The ASR system 180 may also include a natural language understanding (NLU) module configured to perform query interpretation on the speech recognition results output by the ASR model. Typically, the NLU module may perform semantic analysis on the speech recognition results to identify the action to be performed specified by the query. In the example shown, the NLU module may determine that the execution of the action specified by the query "Play my music playlist" requires access to a corresponding set of personal resources associated with the corresponding registered user 10 of the user device 102. Therefore, the NLU module determines that the action specified by the query lacks the necessary parameters required to perform the action, namely the identity of the user. Therefore, the NLU module may use the identity of a specific registered user (e.g., John) 10 verified by the verifier 170 to determine which resources to access to perform the action, and therefore initiate the fulfillment of the query by providing an output instruction 185 to perform the action specified by the query. In the example shown, the output instruction 185 may instruct the music streaming service to stream music tracks from the music playlist of the registered user John. Digital assistant 101 may provide a response to the query that includes a music track for audible output from user device 102 and / or one or more other devices in communication with user device 102.

[0042] Figure 3A and Figure 3B An example training process 300 is shown for training a multi-task neural network model 130 to simultaneously perform both speaker identification (SID) and synthetic speech detection (SSD) tasks without employing separate neural network models to perform the SID and SSD tasks. The training process 300 may be performed in Figure 1The training process 300 includes a first training phase 300a ( Figure 3A ), where an untrained audio encoder 150 and a SID header 154 superimposed on the untrained audio encoder 150 are trained on the SID task to learn how to predict speaker embeddings / representations 155 from input audio. After the first training phase 300a is completed and the audio encoder 150 and the SID header 154 are sufficiently trained to perform the SID task (e.g., automatic speaker verification), the training process 300 includes a second training phase 300b ( Figure 3B ), the second training phase uses the audio encoder 150 trained on the SID task by the first training phase 300a to train the SSD head 160 to learn how to predict whether the input audio corresponds to real speech generated by a human or synthesized / synthesized speech.

[0043] refer to Figure 3A, the first training phase 300a (i.e., the SID training phase) obtains one or more SID training data sets 310 stored in the data store 301, and trains the untrained audio encoder 150 and the SID header 154 on the training data sets 310. Once trained by the first training phase 300a, the audio encoder 150 and the SID header 154 can jointly form the SID model 151. The data store 301 can reside on the memory hardware 115 of the remote system 111. Each training data set 310 includes a plurality of training utterances 320, 320a-n spoken by M different speakers, so as to allow the training data set 310 to include a plurality of different speaker negative training utterances 320 in a given training batch. In addition, each training data set 310 can include N utterances 320 of each speaker among the M different speakers, so as to allow the training data set 310 to also include the same speaker positive training utterances 320 in a given training batch. Each corresponding training utterance 320 can include a text-related portion 321 and / or a text-irrelevant portion 322. The text-related portion 321 includes an audio clip representing a predetermined word (e.g., "Hey Google") or a variation of a predetermined hot word (e.g., "Ok Google") spoken in the training utterance 320. In additional implementations, the text-related portion 321 in some training utterances 320 includes an audio clip representing other terms / phrases that replace the predetermined word or its variation, such as a custom hot word, a verification phrase (e.g., "This is Meg"), or a commonly used voice command (e.g., play, pause, volume up / down, call, message, navigate / directions to, etc.). The text-related portion 321 is optional, such that only a portion of the training utterance 320 may include the text-related portion, or no training utterance 320 may include the text-related portion 321.

[0044] In some examples, the text-independent portion 322 in each training utterance 320 includes an audio segment representing a query statement spoken in the training utterance 320 after the predetermined word represented by the text-dependent portion 321. For example, the corresponding training utterance 320 may include "Ok Google, What is the weather outside?", where the text-dependent portion 321 represents the predetermined "Ok Google", and the text-independent portion 322 represents the query statement "What is the weather outside". Although the text-dependent portion 321 in each training utterance 320 is constrained in pronunciation to the same predetermined word or its variants, the vocabulary of the query statement represented by each text-independent portion 322 is not constrained, so that the duration and phonemes associated with each query statement are variable.

[0045] Continue to refer Figure 3A , the first stage 300a of the training process 300 trains an untrained audio encoder 150 on training utterances 320, 320a-n to generate audio encodings 152 of the training utterances 320 as outputs of the audio encoder 150. That is, the audio encoder 150 is configured to encode audio data representing the training utterances into hidden feature representations (e.g., a series of encodings / vectors 152). The SID header 154 receives the audio encodings 152 output from the audio encoder 150 as input and generates a corresponding speaker embedding 155 for each utterance 320 as output. In some examples, the speaker embedding 155 output by the SID header 154 for each utterance includes a d-vector. However, the first training stage 300a can train the audio encoder 150 and the SID header 154 on the SID task to also generate other types of speaker embeddings 155, such as i-vectors. During training, additional information about each utterance 320 may be provided as input to the SID model 151, which is comprised of the audio encoder 150 and the SID header 154 superimposed on the audio encoder 150. For example, a SID target 324, such as a SID target vector / speaker embedding, corresponding to the true-valued output label used to train the SID model 151 to learn how to predict the speaker embedding 155 for a particular speaker, may be provided as input to the neural network during training with the utterances 320. Thus, one or more utterances 320 from each particular speaker may be paired with a particular SID target vector 324.

[0046] As described above, the audio encoder 150 includes a multi-head attention model architecture that may include a stack of Conformer blocks. Optionally, the audio encoder 150 may employ other types of multi-head attention model architectures, such as, but not limited to, Transformer blocks or lightweight convolutional blocks instead of Conformer blocks. The SID header 154 stacked / superimposed on the audio encoder 150 may include one or more fully connected network layers designated for learning to generate speaker-specific speaker embedding 155.

[0047] Training the untrained audio encoder 150 and SID head 154 can begin by providing a sequence of training utterances 320 and using a paired training technique in which a first training utterance and a second training utterance 320, each paired with a particular SID target vector 324, are input to the audio encoder 150, and the corresponding audio encodings 152 generated by the audio encoder 150 are processed by the SID head 154 to generate a corresponding speaker embedding 155 for each of the first training utterance and the second training utterance 320. The SID loss module 156 can then compare the corresponding speaker embeddings 155 to determine whether the two speaker embeddings 155 are derived from the training utterance 320 uttered by the same speaker. That is, the SID loss module 156 can calculate a SID loss 158 indicating the likelihood that the two speaker embeddings 155 match each other. The SID loss 158 output from the SID loss module 156 provides an indication of whether the training utterances, the first training utterance and the second training utterance 320, are spoken by the same speaker. In one example, the SID loss 158 may simply include a binary value of "0" or "1", where "0" indicates that the utterances were spoken by different speakers and "1" indicates that the utterances were spoken by the same speaker. The parameters of the audio encoder 150 and the SID header 154 may then be adjusted based on the SID loss 158. Multiple sets of paired training utterances 320 may be processed in this manner.

[0048] See also Figure 3B, the second training phase 300b (i.e., the SSD training phase) receives / obtains the SID model 151 trained by the first training phase 300a, and uses the trained audio encoder 150 to train the SSD head 160 to learn how to predict whether the input audio corresponds to real speech generated by humans or synthesized / synthesized speech. During the second training phase 300b, the parameters / weights of the trained audio encoder 150 are frozen, and the SSD head 160 is trained (or fine-tuned) to learn how to project an SSD classification score 162 indicating whether the input audio includes real speech generated by humans or synthesized speech. As will be apparent, the SSD head 160 receives as input the audio encoding 152 generated by the trained audio encoder 150 for the SSD training utterances 330, and generates as output a corresponding SSD classification score 162 for each SSD training utterance 330. In some examples, the SSD classification score includes a probability score 162, which indicates the presence of synthesized speech when the probability score 162 meets the SSD threshold. In other examples, the SSD classification score comprises a binary / Boolean value that indicates the presence of real human-generated speech when the value is equal to "0" or indicates the presence of synthesized speech when the value is equal to "1", or vice versa.

[0049] Like the SID head 154 employed by the SID model 151, the SSD head 160 stacked / overlaid on the trained audio encoder 150 may include one or more fully connected network layers. However, compared to the fully connected network layers employed by the SID head 154, the fully connected network layers of the SSD head 160 are trained / specified for learning to project the SSD classification scores 162. In some examples, the second training stage 300b trains the one or more fully connected network layers of the SSD head 160 from scratch using the SSD training utterances 330. In other examples, the one or more fully connected network layers of the SSD head 160 include the same fully connected network layers of the SID head 154 trained by the first training stage 300a, and the second training stage 300b fine-tunes the one or more fully connected network layers on the SSD training utterances 330 for use by the SSD head 160 to learn how to project the speaker embedding 155 to the SSD classification scores 162. It is worth noting that, regardless of whether the SSD head 160 is fine-tuned or trained from scratch during the second training phase 300b, the parameters / weights of the trained audio encoder 150 remain frozen while the SSD head 160 is trained on the SSD task using the SSD training utterances 330.

[0050] The second training phase 300b receives / obtains a plurality of SSD training utterances 330 stored in the data storage 301, and trains the SSD head 160 on the SSD training utterances 330 using the trained audio encoder 150. Once trained by the second training phase 300b, the audio encoder 150 and the SSD head 160 may together form the SSD model 153. The data storage 301 may reside on the memory hardware 115 of the remote system 111. The SSD training utterances 330 may include a collection of human-derived speech samples 330a and a collection of synthetic speech samples 330b. In some examples, the number of speech samples in the collection of human-derived speech samples 330a is greater than the number of speech samples in the collection of synthetic speech samples 330b. In other examples, the number of speech samples in the collection of human-derived speech samples 330a is less than the number of speech samples in the collection of synthetic speech samples 330b. Each human-derived speech sample 330a corresponds to an utterance of non-synthesized speech spoken by a real / human being, and each synthetic speech sample 330b corresponds to a synthetic / synthesized speech generated by a machine. That is, one or more of the synthesized speech samples 330b may include synthesized speech generated by a text-to-speech (TTS) system from corresponding input text. Additionally or alternatively, one or more of the synthesized speech samples 330b may include synthesized speech generated by a speech conversion model from corresponding input utterances having different voice characteristics than the generated synthesized speech.

[0051] In some implementations, the second training stage 300b uses supervised learning to train the SSD head 160, where each SSD training utterance 330 is paired with a corresponding real-value target 165 indicating whether the SSD training utterance 330 includes a human-generated speech sample 330a or a synthesized speech sample 330b. Here, the SSD loss module 168 can apply a loss function on the classification score 162 predicted by the SSD head 160 to generate a corresponding SSD loss 169 based on the real-value target 165. In some examples, the loss function includes a softmax cross-entropy loss, where a softmax layer applies a softmax on the classification score 162 (e.g., a Boolean value) output from the SSD head 160, which is fed to the cross-entropy loss function to generate the SSD loss 169.

[0052] In other implementations, the second training phase 300b trains the SSD head 160 using self-supervised learning (also referred to as "unsupervised learning"), where labels are naturally part of the training utterances 330 and no separate external ground-truth labels are included, i.e., each human-generated speech sample 330a does not include a separate external ground-truth label indicating that the sample includes real speech, and each synthesized speech sample 330b does not include a separate external ground-truth label indicating that the sample includes synthesized speech. Here, the human-generated speech samples 330a may correspond to positive training samples, and the synthesized speech samples 330b may correspond to negative training samples, where the SSD model 153 learns to find patterns without pre-existing annotation labels and with minimal human supervision.

[0053] The third training phase can be similarly used in Figure 3A The RAD head 161 is trained using the trained audio encoder 150 trained during the first training phase 300a. The third training phase will train the RAD head 161 to learn how to predict whether the input audio corresponds to non-prerecorded, human-generated real speech or prerecorded speech played from an audio output device. As with the second training phase 300b, the parameters / weights of the trained audio encoder 150 are frozen, and the RAD head 161 is trained (or fine-tuned) to learn how to project a RAD classification score 163 indicating whether the input audio includes real speech or spoofed / prerecorded speech. The RAD classification score 163 may include a probability distribution indicating the likelihood that the audio data includes prerecorded speech, or may include a Boolean / binary value that indicates the presence of non-prerecorded, human-generated real speech when the value is equal to "0", or indicates the presence of prerecorded speech when the value is equal to "1", or vice versa.

[0054] In some examples, the SSD head 160 is also trained to detect the presence of pre-recorded speech in the input audio, thereby alleviating the need for a separate RAD head 161. In this way, the SSD head 160 can be trained to output a classification score indicating that the input audio includes real speech or spoofed speech when either synthetic speech or pre-recorded speech is detected.

[0055] Figure 4An example flow chart of an example arrangement of operations of a method 400 for training a multi-task neural network model 130 for performing both SID and SSD tasks in parallel on input audio data is provided. The method 400 may be performed on the data processing hardware 113 of the remote system 111 and / or on the data processing hardware 103 of the user device 102. At operation 402, the method includes obtaining a speaker identification (SID) model 151 that is trained to predict speaker embeddings 155 from utterances spoken by different speakers. The SID model 151 includes a trained audio encoder 150 and a trained SID head 154. The trained audio encoder 150 may include a multi-headed attention model architecture. For example, the multi-headed attention model architecture may include a stack of Conformer blocks 200. In other configurations, the multi-headed attention model architecture may include a stack of Transformer blocks or a stack of lightweight convolution blocks.

[0056] The obtained SID model 151 can be trained on multiple SID training data sets 320, each SID training data set including multiple SID training utterances spoken by M different speakers. Here, one or more of the SID training utterances spoken by a specific speaker can be paired with a corresponding target speaker embedding 324 to train the audio encoder 150 and the SID head 154 to learn how to predict the corresponding speaker embedding 155 of the specific speaker. Additionally or alternatively, the multiple SID training utterances of one or more of the SID training sets 320 may include N utterances spoken by each speaker among the M different speakers. In addition, the multiple SID training utterances in each SID training set 320 may include non-synthesized speech originating from humans.

[0057] At operation 404, method 400 includes receiving a plurality of SSD training utterances 330. Here, SSD training utterances 330 include a set of human-derived speech samples 330a and a set of synthesized speech samples 330b. In some examples, the number of speech samples in the set of human-derived speech samples 330a is greater than the number of speech samples in the set of synthesized speech samples 330b.

[0058] At operation 406, the method 400 includes training the SSD head 160 on the SSD training utterances 330 using the trained audio encoder 150 to learn to detect the presence of synthesized speech in the audio encodings 152 encoded by the trained audio encoder 150. Here, the SSD head 160 is superimposed on the trained audio encoder 150.

[0059] At operation 408, the method 400 includes providing a multi-task neural network model 130 for performing both SID tasks and SSD tasks in parallel on the input audio data 120 for execution on the computing device 102, 111. The multi-task neural network model 130 includes a trained audio encoder 150, a trained SID header 154 superimposed on the trained audio encoder 150, and a trained SSD header 160 superimposed on the trained audio encoder 150.

[0060] A software application (i.e., software resource) may refer to computer software that enables a computing device to perform tasks. In some examples, a software application may be referred to as an "application," "app," or "program." Example 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.

[0061] Figure 5 5 is a schematic diagram of an example computing device 500 that can be used to implement the systems and methods described in this document. Computing device 500 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The components shown here, their connections and relationships, and their functions are intended to be exemplary only and are not intended to limit implementations of the inventions described and / or claimed in this document.

[0062] The computing device 500 includes a processor 510, a memory 520, a storage device 530, a high-speed interface / controller 540 connected to the memory 520 (i.e., memory hardware) and a high-speed expansion port 550, and a low-speed interface / controller 560 connected to a low-speed bus 570 and the storage device 530. Each of the components 510, 520, 530, 540, 550, and 560 is interconnected using various buses and can be mounted on a common motherboard or in other ways as appropriate. The processor (i.e., data processing hardware 510) can process instructions stored on the memory hardware (i.e., memory 520) for execution within the computing device 500, including instructions stored in the memory 520 or on the storage device 530 to display graphical information of a graphical user interface (GUI) on an external input / output device such as a display 580 coupled to the high-speed interface 540. The data processing hardware 510 and the memory hardware 520 may include the data processing hardware 113 and the memory hardware 115 of the remote system, the data processing hardware 103 and the memory hardware 115 of the AED 102, or a combination thereof. In other implementations, multiple processors and / or multiple buses as well as multiple memories and multiple types of memories may be used as appropriate. In addition, multiple computing devices 500 may be connected, each of which provides a portion of the necessary operations (e.g., as a server group, a blade server group, or a multi-processor system).

[0063] Memory 520 stores information non-temporarily within computing device 500. Memory 520 may be a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. Non-temporary memory 520 may be a physical device for temporarily or permanently storing programs (e.g., instruction sequences) or data (e.g., program state information) for use by 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 bootloaders). 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), and disk or tape.

[0064] Storage device 530 is capable of providing mass storage for computing device 500. In some implementations, storage device 530 is a computer-readable medium. In various different implementations, storage device 530 may be a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid-state memory device, or an array of devices (including devices in a storage area network or other configuration). In additional implementations, a 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 or machine-readable medium, such as memory 520, storage device 530, or memory on processor 510.

[0065] The high-speed controller 540 manages bandwidth-intensive operations of the computing device 500, while the low-speed controller 560 manages less bandwidth-intensive operations. Such a division of responsibilities is exemplary only. 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 a high-speed expansion port 550 that can accept various expansion cards (not shown). In some implementations, the low-speed controller 560 is coupled to the storage device 530 and the low-speed expansion port 590. The low-speed expansion port 590 (which can include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet)) can be coupled to one or more input / output devices, such as a keyboard, a pointing device, a scanner, or a networking device, such as a switch or a router, for example, through a network adapter.

[0066] As shown, computing device 500 may be implemented in a variety of different forms. For example, computing device may be implemented as a standard server 500a or multiple times in a group of such servers 500a, as a laptop computer 500b, or as part of a rack server system 500c.

[0067] Various implementations of the systems and techniques described herein may be implemented in digital electronic and / or optical circuit systems, integrated circuit systems, 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 that may be executed and / or interpreted on a programmable system that includes at least one programmable processor that may be either special purpose or general purpose, 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.

[0068] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and may be implemented in high-level procedural and / or object-oriented programming languages ​​and / or in assembly / machine languages. 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., disk, optical disk, memory, programmable logic device (PLD)) for providing 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 for providing machine instructions and / or data to a programmable processor.

[0069] The process and logic flow described in this specification can be performed 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 process and logic flow can also be performed by a dedicated logic circuit system, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). For example, processors suitable for executing computer programs include general-purpose and special-purpose microprocessors, and any one or more processors of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as a disk, a magneto-optical disk, or an optical disk, or be operably coupled to receive data from one or more mass storage devices or transfer data to one or more mass storage devices or both. However, a computer does not have to have such a device. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for 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.

[0070] To provide 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 a touch screen for displaying information to the user, and optionally a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound, voice, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user's client device in response to a request received from the web browser.

[0071] A variety of implementations have been described. However, it should 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 appended claims.

Claims

1. A computer-implemented method (400) which, when executed by data processing hardware (510), causes the data processing hardware to perform operations comprising: obtaining a speaker identification SID model (151) trained to predict speaker embeddings (155) from utterances spoken by different speakers, the SID model (151) comprising a trained audio encoder (150) and a trained SID head (154); Receiving a plurality of synthetic speech detection (SSD) training utterances (330), the plurality of SSD training utterances (330) comprising a set of human-derived speech samples and a set of synthetic speech samples (330b); training an SSD head (160) on the SSD training utterances (330) using the trained audio encoder (150) to learn to detect the presence of synthesized speech in audio encodings (152) encoded by the trained audio encoder (150), wherein the SSD head (160) is superimposed on the trained audio encoder (150); and A multi-task neural network model (130) for performing both SID tasks and SSD tasks in parallel on input audio data (120) is provided for execution on a computing device (102), the multi-task neural network model (130) comprising the trained audio encoder (150), the trained SID header (154) superimposed on the trained audio encoder (150), and the trained SSD header (160) superimposed on the trained audio encoder (150).

2. The method (400) of claim 1, wherein the SID model (151) is trained on a plurality of SID training datasets (320), each SID training dataset comprising a plurality of SID training utterances spoken by M different speakers.

3. The method (400) of claim 2, wherein one or more of the SID training utterances spoken by a particular speaker are paired with a corresponding target speaker embedding (324) to train the audio encoder (150) and the SID head (154) to learn how to predict the corresponding speaker embedding (155) of the particular speaker.

4. The method (400) of claim 2 or 3, wherein the plurality of SID training utterances of one or more of the SID training sets (320) include N utterances (320) spoken by each of the M different speakers.

5. The method (400) of any one of claims 2 to 4, wherein the plurality of SID training utterances of each SID training data set comprises non-synthesized speech generated by humans.

6. The method (400) of any one of claims 1 to 5, wherein the number of speech samples in the set of human-derived speech samples is greater than the number of speech samples in the set of synthesized speech samples (330b).

7. The method (400) of any one of claims 1 to 6, wherein the multi-task neural network model (130) is configured to perform the SID task and the SSD task in parallel on the input audio data (120) in the following manner: receiving the input audio data (120) as input to the trained audio encoder (150), the input audio data (120) representing speech captured by an array of one or more microphones (106); generating, as output from the trained audio encoder (150), a shared audio encoding (152) encoding the input audio data (120); providing the shared audio code (152) generated as an output from the trained audio encoder (150) to the trained SID header (154) and the SSD header (160) as input; generating as output from the trained SID head (154) an estimated speaker embedding (155) representing characteristics of the voice of the utterance represented by the input audio data (120); as well as An SSD classification score (162) is generated as an output from the trained SSD head (160) indicating whether the utterance represented by the input audio data (120) comprises real human-generated speech or synthesized speech.

8. The method (400) of claim 7, wherein the multi-task neural network model (130) is configured to authorize access to one or more resources if: The evaluated speaker embedding (155) is matched to a reference speaker embedding (155) associated with a registered user (10) authorized to access the resource; and The SSD classification score (162) generated as an output from the trained SSD head (160) indicates that the utterance represented by the input audio data (120) comprises authentic speech generated by a human.

9. The method (400) of claim 7 or 8, wherein the multi-task neural network model (130) is configured to restrict access to one or more resources in at least one of the following situations: the evaluated speaker embedding (155) does not match any reference speaker embedding (155) associated with a registered user (10) authorized to access the resource; or The SSD classification score (162) generated as an output from the trained SSD head (160) indicates that the utterance represented by the input audio data (120) includes synthesized speech.

10. The method (400) of any one of claims 1 to 9, wherein while training the SSD head (160) on the SSD training utterances (330), parameters / weights of the trained audio encoder (150) are frozen.

11. The method (400) of any one of claims 1 to 10, wherein the audio encoder (150) comprises a multi-head attention model architecture.

12. The method (400) of claim 11, wherein the multi-head attention model architecture comprises a stack of Conformer blocks.

13. The method (400) of any one of claims 1 to 12, wherein the SSD head (160) comprises one or more fully connected layers.

14. A system (100), comprising: Data processing hardware (510); as well as Memory hardware (520) in communication with the data processing hardware (510), the memory hardware (520) storing instructions that, when executed on the data processing hardware (510), cause the data processing hardware (510) to perform operations, the operations comprising: obtaining a speaker identification SID model trained to predict speaker embeddings (155) from utterances spoken by different speakers, the SID model (151) comprising a trained audio encoder (150) and a trained SID head (154); receiving a plurality of synthetic speech detection (SSD) training utterances, the plurality of SSD training utterances (330) comprising a set of human-derived speech samples and a set of synthetic speech samples (330b); training an SSD head (160) on the SSD training utterances (330) using the trained audio encoder (150) to learn to detect the presence of synthesized speech in audio encodings (152) encoded by the trained audio encoder (150), wherein the SSD head (160) is superimposed on the trained audio encoder (150); and A multi-task neural network model (130) for performing both SID tasks and SSD tasks in parallel on input audio data (120) is provided for execution on a computing device, the multi-task neural network model comprising the trained audio encoder (150), the trained SID header (154) superimposed on the trained audio encoder (150), and the trained SSD header (160) superimposed on the trained audio encoder (150).

15. The system (100) of claim 14, wherein the SID model (151) is trained on a plurality of SID training datasets (320), each SID training dataset comprising a plurality of SID training utterances spoken by M different speakers.

16. The system (100) of claim 15, wherein one or more of the SID training utterances spoken by a particular speaker are paired with a corresponding target speaker embedding (324) to train the audio encoder (150) and the SID head (154) to learn how to predict a corresponding speaker embedding (155) for the particular speaker.

17. The system (100) of claim 15 or 16, wherein the plurality of SID training utterances of one or more of the SID training sets (320) comprises N utterances (320) spoken by each of the M different speakers.

18. The system (100) of any one of claims 15 to 17, wherein the plurality of SID training utterances of each SID training data set comprises human-generated non-synthesized speech.

19. The system (100) of any one of claims 14 to 18, wherein the number of speech samples in the set of human-derived speech samples is greater than the number of speech samples in the set of synthesized speech samples (330b).

20. The system (100) of any one of claims 14 to 19, wherein the multi-task neural network model (130) is configured to perform the SID task and the SSD task in parallel on the input audio data (120) by: receiving the input audio data (120) as input to the trained audio encoder (150), the input audio data (120) representing speech captured by an array of one or more microphones (106); generating, as output from the trained audio encoder (150), a shared audio encoding (152) encoding the input audio data (120); providing the shared audio code (152) generated as an output from the trained audio encoder (150) to the trained SID header (154) and the SSD header (160) as input; generating as output from the trained SID head (154) an estimated speaker embedding (155) representing characteristics of the voice of the utterance represented by the input audio data (120); as well as An SSD classification score (162) is generated as an output from the trained SSD head (160) indicating whether the utterance represented by the input audio data (120) comprises real human-generated speech or synthesized speech.

21. The system (100) of claim 20, wherein the multi-task neural network model (130) is configured to authorize access to one or more resources if: The evaluated speaker embedding (155) is matched to a reference speaker embedding (155) associated with a registered user (10) authorized to access the resource; and The SSD classification score (162) generated as an output from the trained SSD head (160) indicates that the utterance represented by the input audio data (120) comprises authentic speech generated by a human.

22. The system (100) of claim 20 or 21, wherein the multi-task neural network model (130) is configured to restrict access to one or more resources in at least one of the following situations: the evaluated speaker embedding (155) does not match any reference speaker embedding (155) associated with a registered user (10) authorized to access the resource; or The SSD classification score (162) generated as an output from the trained SSD head (160) indicates that the utterance represented by the input audio data (120) includes synthesized speech.

23. The system (100) of any one of claims 14 to 22, wherein while training the SSD head (160) on the SSD training utterances (330), parameters / weights of the trained audio encoder (150) are frozen.

24. The system (100) of any one of claims 14 to 22, wherein the audio encoder (150) comprises a multi-head attention model architecture.

25. The system (100) of claim 24, wherein the multi-head attention model architecture comprises a stack of Conformer blocks.

26. The system (100) of any one of claims 14 to 25, wherein the SSD head (160) comprises one or more fully connected layers.

Citation Information

Cited By

  • Music searching method and system based on big data

    CN121456169A

  • Voiceprint inference system and method based on multi-modal large language model

    CN122337208A