Learning device, method and program

A neural network architecture for speaker recognition systems addresses the lack of robustness by calculating frame-level features and distributions, enhancing performance in noisy conditions.

JP7540494B2Active Publication Date: 2024-08-27NEC CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2022545208
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-08-28
Publication Date
2024-08-27
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

Existing speaker recognition systems lack robustness against noisy data and do not adequately account for the uncertainty inherent in speech, leading to poor performance in real-world conditions.

Method used

A neural network architecture is developed that includes multiple interconnected networks to calculate frame-level features, prior and posterior distributions, and speaker embeddings, accounting for uncertainty through Gaussian distributions and minimizing a loss function to improve robustness.

Benefits of technology

The solution enhances the robustness of speaker recognition systems by considering speech uncertainty, improving performance in noisy environments and real-world conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540494000010
    Figure 0007540494000010
  • Figure 0007540494000012
    Figure 0007540494000012
  • Figure 0007540494000005
    Figure 0007540494000005
Patent Text Reader

Abstract

According to the present invention, a training means 81 generates a neural network for speaker embedding extraction by training weight coefficients so as to minimize a loss function, which indicates an error between a speaker label indicating a speaker of a voice signal and an output value output from an output layer, with respect to a neural network including an input layer that receives an input of the voice signal and the output layer which outputs the output value indicating the speaker of the voice signal. The neural network for speaker embedding extraction comprises a network which calculates first accuracy from a feature amount of a frame unit, and calculates an average and second accuracy of the posterior distribution from an average and the accuracy of the prior distribution, and the feature amount and the first accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a learning device, a learning method, and a learning program for learning speaker embedding, a speaker embedding extraction device, a speaker embedding extraction method, and a speaker embedding extraction program for extracting speaker embedding, and a trained model. [Background technology]

[0002] State-of-the-art speaker recognition systems consist of speaker embedding in the first stage, followed by scoring in the second stage. In recent years, the de facto standard for speaker embedding is x-vector (see Non-Patent Document 1). Probabilistic linear discrimination analysis (PLDA) is commonly used for scoring (similarity calculation) in the second stage.

[0003] A feature extraction method using x-vector is described in Non-Patent Document 2. In the method described in Non-Patent Document 2, an auxiliary network called an attention mechanism is added to the x-vector to select a portion where an individual's features are more appropriately expressed. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] D. Snyder et al, “X-vectors: robust DNN embeddings for speaker recognition,” in Proc. IEEE ICASSP, 2018. [Non-Patent Document 2] K. Okabe, T. Koshinaka, and K. Shinoda, "Attentive statistics pooling for deep speaker embedding", Proc. Interspeech 2018, pp. 2252-2256, Sep. 2018. Summary of the Invention [Problem to be solved by the invention]

[0005] Considering the robustness to noisy data, the performance of the extractor can be further improved by training the network using a large amount of training data, and by using various training methods (e.g., multi-class cross-entropy cost, angular margin cost, etc.).

[0006] On the other hand, in a general x-vector as described in Non-Patent Document 1, frame-level features are estimated at a certain point in time. In other words, in a general x-vector, estimation is performed without considering the uncertainty (distribution) of the features. Therefore, there is a problem that robustness against random perturbations (i.e., accidental uncertainty), which are a feature specific to speech, is low.

[0007] In addition, in the method described in Non-Patent Document 2, weighting is performed such that a large weight is assigned to an important feature vector and a small weight is assigned to a feature vector with low importance. However, similar to the x-vector described in Non-Patent Document 1, the method described in Non-Patent Document 2 does not take into account the uncertainty inherent to voice data during learning. Therefore, there is a problem in that the robustness to voice data acquired under real conditions is low.

[0008] Therefore, the purpose of this disclosure is to provide a learning device, a learning method, and a learning program that can learn speaker embedding while taking into account speech uncertainty, a speaker embedding extraction device, a speaker embedding extraction method, and a speaker embedding extraction program that extract the speaker embedding, as well as a trained model. [Means for solving the problem]

[0009] The learning device according to the disclosure includes a learning means for learning weighting coefficients for a neural network including an input layer that accepts input of a voice signal and an output layer that outputs an output value indicating the speaker of the voice signal, so as to minimize a loss function indicating the error between a speaker label indicating the speaker of the voice signal and the output value output from the output layer, to generate a neural network for speaker embedding extraction, wherein the neural network for speaker embedding extraction is a neural network in which first to fourth networks are connected in sequence, and the learning means calculates frame-by-frame features from the voice signal in the first network, calculates a first accuracy from the frame-by-frame features in the second network, calculates an average and accuracy of the prior distribution, as well as an average and second accuracy of the posterior distribution from the features and the first accuracy in the third network, and calculates a speaker embedding from the average and second accuracy of the posterior distribution in the fourth network, thereby classifying the speaker of the voice signal.

[0010] The speaker embedding extraction device according to the disclosure includes an input means for accepting input of a speech signal, and an output means for outputting a speaker embedding for the input speech signal, wherein the output means outputs a speaker embedding for the input speech signal using a speaker embedding extraction neural network in which weighting coefficients have been trained to minimize a loss function indicating an error between a speaker label indicating the speaker of the speech signal and an output value output from the output layer, for a neural network including an input layer for accepting input of a speech signal, and an output layer for outputting an output value indicating a speaker of the speech signal, wherein the speaker embedding extraction neural network includes a first network for calculating frame-by-frame features from the speech signal, a second network connected to the first network for calculating a first accuracy from the frame-by-frame features, a third network connected to the second network for calculating an average and accuracy of a prior distribution, and an average and second accuracy of a posterior distribution from the features and the first accuracy, and a fourth network connected to the third network for calculating a speaker embedding from the average and second accuracy of the posterior distribution, wherein the output means performs a calculation based on the trained weighting coefficients on the speech signal input to the input layer of the first network, Of The method is characterized by extracting speaker embeddings from the intermediate layer of the network.

[0011] The training method disclosed herein is characterized in that a computer generates a speaker embedding extraction neural network by training weighting coefficients for a neural network including an input layer that accepts input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal, so as to minimize a loss function indicating an error between a speaker label indicating the speaker of the voice signal and an output value output from the output layer, and the speaker embedding extraction neural network is a neural network in which first to fourth networks are connected in sequence, and when generating the speaker embedding extraction neural network, the computer calculates frame-by-frame features from the voice signal in the first network, calculates a first accuracy from the frame-by-frame features in the second network, calculates an average and accuracy of the prior distribution, as well as an average and second accuracy of the posterior distribution from the features and the first accuracy in the third network, and calculates a speaker embedding from the average and second accuracy of the posterior distribution in the fourth network, thereby classifying the speaker of the voice signal.

[0012] The speaker embedding extraction method disclosed herein receives an input of a speech signal, and outputs a speaker embedding for the input speech signal using a speaker embedding extraction neural network in which weighting coefficients have been trained to minimize a loss function indicating an error between a speaker label indicating the speaker of the speech signal and an output value output from the output layer, for a neural network including an input layer that receives the input of the speech signal and an output layer that outputs an output value indicating a speaker of the speech signal. The speaker embedding extraction neural network includes a first network that calculates frame-by-frame features from the speech signal, a second network connected to the first network and calculates a first accuracy from the frame-by-frame features, a third network connected to the second network and calculates an average and accuracy of a prior distribution, and an average and second accuracy of a posterior distribution from the features and the first accuracy, and a fourth network connected to the third network and calculates a speaker embedding from the average and second accuracy of the posterior distribution. When outputting, a calculation is performed on the speech signal input to the input layer of the first network based on the trained weighting coefficients, and the fourth network calculates a speaker embedding from the average and second accuracy of the posterior distribution. OfThe method is characterized by extracting speaker embeddings from the intermediate layer of the network.

[0013] The learning program disclosed herein causes a computer to execute a learning process for generating a speaker embedding extraction neural network by learning weighting coefficients for a neural network including an input layer that accepts input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function indicating an error between a speaker label indicating the speaker of the voice signal and the output value output from the output layer, and the speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, and the learning process causes the first network to calculate frame-by-frame features from the voice signal, the second network to calculate a first accuracy from the frame-by-frame features, the third network to calculate an average and accuracy of the prior distribution, as well as an average and second accuracy of the posterior distribution from the features and the first accuracy, and the fourth network to calculate a speaker embedding from the average and second accuracy of the posterior distribution, thereby classifying the speaker of the voice signal.

[0014] The speaker embedding extraction program disclosed herein causes a computer to execute an input process for accepting an input of a speech signal, and an output process for outputting a speaker embedding for the input speech signal, and in the output process, causes a computer to output a speaker embedding for the input speech signal using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating the speaker of the speech signal and an output value output from the output layer, for a neural network including an input layer for accepting an input of a speech signal, and an output layer for outputting an output value indicating a speaker of the speech signal, The network includes a first network that calculates frame-by-frame features from a speech signal, a second network that is connected to the first network and calculates a first accuracy from the frame-by-frame features, a third network that is connected to the second network and calculates an average and accuracy of a prior distribution and an average and a second accuracy from the features and the first accuracy, and a fourth network that is connected to the third network and calculates a speaker embedding from the average and the second accuracy of the posterior distribution. In an output process, the first network performs a calculation based on the learned weight coefficients on the speech signal input to an input layer of the first network, and the fourth network calculates a speaker embedding from the average and the second accuracy. Of The feature of this method is that speaker embeddings are extracted from the middle layer of the network.

[0015] A trained model according to the present disclosure is a trained model for causing a computer to function to output a speaker embedding for an input speech signal, the trained model being a neural network for extracting speaker embeddings in which weighting coefficients have been trained to minimize a loss function indicating an error between a speaker label indicating the speaker of the speech signal and an output value output from the output layer for a neural network including an input layer that accepts input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal, the neural network for extracting speaker embeddings including a first network that calculates frame-by-frame features from the speech signal, a second network connected to the first network and that calculates a first accuracy from the frame-by-frame features, a third network connected to the second network and that calculates an average and accuracy of a prior distribution, as well as an average and second accuracy of a posterior distribution from the features and the first accuracy, and a fourth network connected to the third network and that calculates a speaker embedding from the average and second accuracy of the posterior distribution, and a calculation is performed on the speech signal input to the input layer of the first network based on the trained weighting coefficients, Of The method further comprises: configuring the computer to extract the embedding from an intermediate layer of a network. [Brief description of the drawings]

[0016] [Figure 1] 1 is a block diagram showing a configuration example of an embodiment of a learning device according to the present disclosure. [Diagram 2] FIG. 2 is an explanatory diagram illustrating an example of a network structure. [Diagram 3] FIG. 2 is an explanatory diagram illustrating an example of a network structure. [Figure 4] 13 is a flowchart showing an example of the operation of the learning device. [Diagram 5] 1 is a block diagram showing an example of the configuration of an embodiment of a speaker embedding extraction device; [Figure 6] FIG. 1 is a block diagram showing an overview of a learning device according to the present disclosure. [Figure 7] 1 is a block diagram illustrating an overview of a speaker embedding extraction apparatus according to the present disclosure; [Figure 8] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] First, we explain the contents of a typical x-vector extractor. A typical x-vector extractor is a deep neural network (DNN) that includes the following three functional blocks. The first block is a frame processor implemented with a multi-layer time-delay neural network (TDNN). The second block is a statistical pooling layer that calculates the mean and standard deviation from the frame-level feature vectors generated by the TDNN. The third block is a block that performs embedding extraction and speech classification.

[0018] As described above, a general x-vector extractor performs estimation based on a state of a certain point that indicates frame-level features without considering a state that includes uncertainty having some distribution, such as noise. Therefore, robustness against random perturbation is low. Therefore, in this embodiment, a method of learning speaker embedding that is highly robust and takes into account feature uncertainty by expanding the function of a general x-vector extractor is described.

[0019] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.

[0020] Embodiment 1. 1 is a block diagram showing an example of the configuration of an embodiment of a learning device according to this disclosure. The learning device 100 of this embodiment includes a storage unit 10, an input unit 20, a model learning unit 30, and an output unit 40.

[0021] The storage unit 10 stores various information used for processing by the learning device 100 of this embodiment. The storage unit 10 may store a pre-designed neural network structure and parameters used for learning. The storage unit 10 may also store learning data used by the model learning unit 30 described later. The learning data may be input by the input unit 20 described later from an external device (not shown). The storage unit 10 is realized by, for example, a magnetic disk or the like.

[0022] The input unit 20 accepts input of various information used for processing by the learning device 100 of this embodiment. The input unit 20 may accept input of the above-mentioned learning data, or may accept a neural network or parameters. Hereinafter, the voice signal input as learning data may be referred to as an input signal.

[0023] The model learning unit 30 learns a model (specifically, a neural network) that performs feature extraction and speaker classification. The learning of the entire neural network is performed by a general learning method (e.g., backpropagation, etc.). The model learning unit 30 learns weighting coefficients so as to minimize a loss function that indicates the error between the correct label of the input data and the output value, and generates a neural network. Details will be described later.

[0024] In this embodiment, the model learning unit 30 learns weighting coefficients of a neural network including an input layer that accepts an input of a voice signal and an output layer that outputs an output value indicating the speaker of the voice signal. Hereinafter, the neural networks trained in this embodiment are roughly classified into four networks. The first network is a network that calculates a feature amount for each frame from the input signal. The second network is a network that calculates the likelihood (precision) of the extracted feature amount. The third network is a network corresponding to a pooling layer that performs statistical processing. The fourth network is a network that performs speaker embedding extraction and utterance classification.

[0025] The first to fourth networks are connected in sequence, and the fourth network including the output layer generates speaker embedding and speaker classification results. Therefore, the neural network trained in this embodiment can be called a speaker embedding extraction neural network.

[0026] First, the model learning unit 30 learns the input signal x t Receive the precision matrix L for each time (frame) t. t and frame feature o t Generate o t Specifically, the model learning unit 30 learns the input signal (input sequence) {x1, x2, ..., x τ} and a sequence {o1,o2,…,o τ} and the corresponding precision matrices {L1,L2,…,L τ This process is performed in the first network and the second network described above.

[0027] Considering the range of data to be handled, the precision matrix is ​​logarithmic precision log(L t ) can also be expressed as logarithmic precision log(L t ) is frame x t The accuracy is estimated for each t and log(L t ) is generated in the first network and the second network, so o t and log(L t The formula for generating ) can be expressed as the following formulas 1 and 2.

[0028] o t =f NeuralNet (x t ) (Formula 1) log(L t )=g NeuralNet (x t ) (Formula 2)

[0029] o tThe method of generating x-vectors is the same as the method of extracting frame features from existing x-vectors. That is, the model learning unit 30 uses a framework for extracting features from existing x-vectors (specifically, a layered structure of a neural network) to generate x-vectors. t In addition, any method capable of calculating accuracy from the feature amount in frame units can be applied to calculate the logarithmic accuracy. In the following description, the accuracy calculated by the first network may be referred to as the first accuracy.

[0030] Figure 2 shows the frame feature o t 2 is an explanatory diagram showing an example of a network structure that generates a log-precision and a first network NW1. FIG. 2 shows an example of a first network NW1 and an example of a second network NW2.

[0031] The first network NW1 receives the audio signal x t From the frame-by-frame feature o t The network includes three TDNN and two fully connected (FC) layers. The TDNN is a time-delay neural network (TDNN) followed by a nonlinear activation function (e.g., ReLU: Rectified Linear Unit). In Figure 2, the nonlinear layer is shown as a shaded rectangle. The fully connected layer is a linear layer followed by a nonlinear activation function. Note that BN (Batch normalization) refers to batch normalization used for normalization purposes.

[0032] In addition, the second network NW2 is a network that calculates a first accuracy from frame-by-frame features, and includes a network consisting of a first linear layer (lin-1: Linear Layer-1) and a subsequent nonlinear layer (ReLU), as well as a second linear layer (lin-2: Linear Layer-2).

[0033] However, the network structure illustrated in FIG. 2 is just an example. Any network structure used in the x-vector framework can be applied as the first network NW1. t The logarithmic precision log(L t Any network structure that outputs

[0034] Next, the model learning unit 30 calculates the mean μ p and precision L p , and the generated first precision (more specifically, the precision matrix L t ) and frame feature o t The average and accuracy of the posterior distribution are calculated from the third network. Specifically, the model learning unit 30 performs a calculation process of the average and accuracy of the posterior distribution in the third network. In the following description, the accuracy calculated in the third network may be referred to as the second accuracy.

[0035] Below, the mean φ of the posterior distribution s and precision L s A method for calculating the frame feature quantity o t Let h be the hidden variable and ε be the uncertainty. t In this embodiment, the model is based on the hidden variables h and the uncertainty ε t We assume that follows a Gaussian distribution and model it as shown in the following example Equation 3. Equation 3 expresses the hidden variable h and the uncertainty ε, which each follow a Gaussian distribution. t Since it is expressed as a sum of, it can be called a linear Gaussian model.

[0036]

number

[0037] The definitions of the linear Gaussian model, the hidden variables, and the uncertainty may be stored in advance in the storage unit 10, for example, and the model learning unit 30 may read these definitions from the storage unit 10 to identify the model and perform the subsequent processing. Also, in the initial state, the mean μ p and precision L p Any value may be set to .

[0038] Here, the posterior distribution (o t The conditional probability of the hidden variable h given

[0039]

number

[0040] In this case, the model learning unit 30 calculates the mean φ of the posterior distribution. s and the precision matrix L s are calculated as shown in the following formulas 5 and 6. Formulas 5 and 6 can be analytically obtained from formula 4. t ) has been calculated, it can be converted to an exponential function in advance.

[0041]

number

[0042] Next, the model learning unit 30 calculates the mean φ of the calculated posterior distribution. s and the accuracy (more specifically, the variance σ) as input, and s and classify the speaker of the input signal. The calculation of the speaker embedding and the classification of the speaker are performed by a fourth network that operates as a classifier. If the classification result is y, then the formula for calculating the classification result y can be expressed as the following example formula 7. Note that y is information for classifying speakers, and therefore can be called a speaker label.

[0043] y=h NeuralNet(φ s ,σ s ) (Formula 7)

[0044] A specific example of the fourth network structure will be described below. Fig. 3 is an explanatory diagram showing an example of the fourth network structure. Fig. 3 illustrates a third network NW3 and a fourth network NW4 connected to the third network NW3.

[0045] In the example shown in FIG. 3, the model learning unit 30 calculates the mean φ of the posterior distribution. s and variance σ s The speaker embedding ξ is derived from the pre-activation output of the hidden layer of the fourth network, which takes s Similarly to x-vector, the model learning unit 30 obtains the classification result from, for example, an output layer (lin-1) in which neurons equal to the number of classes to be classified are set.

[0046] When using a trained model as an x-vector, a network structure in which the lin-1 and FC-2 layers (and the nonlinear layer of the FC-1 layer) are removed may be used.

[0047] The method by which the model learning unit 30 learns the entire neural network is arbitrary, and learning may be performed using a method similar to that of the existing x-vector. For example, the model learning unit 30 may learn the neural network by optimizing to minimize the loss function. Here, N is the size of the mini-batch, L is the classification loss (for example, multi-class entropy, etc.), and y0 is the solution of the one-hot vector. In this case, the loss function J can be expressed by the following formula 8.

[0048]

number

[0049] As described above, the model learning unit 30 may learn the entire neural network using a general neural network learning method (e.g., backpropagation, etc.). Note that the loss function described above is an example, and learning may also be performed using cross-entropy error. By constructing and learning such a neural network, frame feature values, accuracy weights, and prior distribution weights can be learned simultaneously, making it possible to learn speaker embedding that takes speech uncertainty into account.

[0050] The output unit 40 outputs the generated neural network. The output unit 40 may store the generated neural network in the storage unit 10.

[0051] The input unit 20, the model learning unit 30, and the output unit 40 are realized by a computer processor (for example, a CPU (Central Processing Unit), a GPU (Graphics Processing Unit)) that operates according to a program (learning program).

[0052] For example, a program may be stored in storage unit 10, and a processor may read the program and operate as input unit 20, model learning unit 30, and output unit 40 in accordance with the program. Furthermore, the functions of input unit 20, model learning unit 30, and output unit 40 may be provided in a SaaS (Software as a Service) format.

[0053] Furthermore, the input unit 20, the model learning unit 30, and the output unit 40 may each be realized by dedicated hardware. Furthermore, some or all of the components of each device may be realized by a general-purpose or dedicated circuit, processor, etc., or a combination of these. These may be configured by a single chip, or may be configured by multiple chips connected via a bus. Some or all of the components of each device may be realized by a combination of the above-mentioned circuits, etc., and a program.

[0054] Furthermore, when some or all of the components of the input unit 20, the model learning unit 30, and the output unit 40 are realized by a plurality of information processing devices, circuits, etc., the plurality of information processing devices, circuits, etc. may be centrally arranged or distributed. For example, the information processing devices, circuits, etc. may be realized as a client-server system, a cloud computing system, etc., in a form in which each is connected via a communication network.

[0055] Next, the operation of the learning device 100 of this embodiment will be described. Fig. 4 is a flowchart showing an example of the operation of the learning device 100 of this embodiment. The input unit 20 accepts input of a speech signal and a speaker label (step S11). The model learning unit 30 learns the weighting coefficients of the neural network to generate a neural network for speaker embedding extraction (step S12). Then, the output unit 40 outputs the generated neural network (step S13).

[0056] As described above, in this embodiment, the model training unit 30 trains the weighting coefficients so as to minimize the loss function, and generates a neural network for speaker embedding extraction. t From the frame-by-frame feature o t The second network calculates the frame-by-frame feature o t From the first precision L t In addition, the model learning unit 30 calculates the mean μ p and precision (L p ), and feature quantity o t and the first precision (log(L t )) from the mean of the posterior distribution φ s and the second precision (σ s -1 ) and in the fourth network, the mean of the posterior distribution φ s and the second precision (σ s -1) to calculate speaker embeddings and classify the speaker of the speech signal. This allows us to learn speaker embeddings that take into account the uncertainty of the speech.

[0057] For example, the existing statistical pooling layer of x-vector does not take uncertainty into account and therefore functions as a so-called average pooling layer. On the other hand, in this embodiment, the uncertainty (distribution) L t Taking this into account, we assume a Gaussian distribution and calculate the variance probabilistically in the pooling layer. This makes it possible to increase robustness against random perturbations, which are a characteristic unique to speech.

[0058] Furthermore, the neural network trained by the learning device 100 of this embodiment (neural network for extracting speaker embedding) can also be said to be a trained model for causing a computer to function to output a speaker embedding for an input voice signal. As described above, this trained model is a neural network for extracting speaker embedding in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating the speaker of the voice signal and an output value output from the output layer for a neural network including an input layer that accepts an input of a voice signal and an output layer that outputs an output value indicating the speaker of the voice signal.

[0059] This neural network for extracting speaker embedding is a neural network in which first to fourth networks are sequentially connected, and includes a first network for calculating frame-by-frame features from a speech signal, a second network for calculating a first accuracy from the frame-by-frame features, a third network for calculating a posterior distribution mean and second accuracy from the prior distribution mean and accuracy and the features and the first accuracy, and a fourth network for calculating a speaker embedding from the posterior distribution mean and second accuracy.

[0060] The computer is then caused to operate in such a way that, using such a trained network, a speech signal input to the input layer of the first network is subjected to a calculation based on the trained weighting coefficients, and a speaker embedding is extracted from the intermediate layer of the fourth neural network. Using such a trained model, it becomes possible to extract speaker embeddings and classify speakers while taking into account speech uncertainty.

[0061] Embodiment 2. Next, a second embodiment of this disclosure will be described. In the second embodiment, an aspect of a device using the neural network trained in the first embodiment will be described. FIG. 5 is a block diagram showing a configuration example of an embodiment of a speaker-embedding extraction device. The speaker-embedding extraction device 200 of this embodiment includes a storage unit 110, a signal input unit 120, and a result output unit 130.

[0062] The storage unit 110 stores various information used for processing by the speaker-embedding extraction device 200. Specifically, the storage unit 110 of this embodiment stores a trained model (a neural network for speaker-embedding extraction) generated by the training device 100 of the first embodiment. The storage unit 110 may also store a speech signal to be processed by the result output unit 130 described later. The storage unit 110 is realized by, for example, a magnetic disk or the like.

[0063] The signal input unit 120 accepts input of a speech signal to be processed. Specifically, the signal input unit 120 may accept input of a speech signal to be extracted for speaker embedding, or may accept input of a speech signal to be subjected to speaker classification.

[0064] The result output unit 130 uses the speaker embedding extraction neural network to output the speaker embedding for the input speech signal. The average and accuracy of the prior distribution used in the processing may be stored in advance in the storage unit 110. Furthermore, for the purpose of speaker classification, the result output unit 130 may use the speaker embedding extraction neural network to output an output value indicating the speaker of the speech signal.

[0065] The signal input unit 120 and the result output unit 130 are realized by a computer processor that operates according to a program (speaker embedding extraction program).

[0066] As described above, in this embodiment, the signal input unit 120 accepts input of a speech signal, and the result output unit 130 uses a neural network for speaker embedding extraction to output speaker embedding for the input speech signal. This makes it possible to represent the input speech signal as a feature.

[0067] The result output unit 130 may also use a neural network for speaker embedding extraction to output an output value indicating the speaker of the voice signal from the average of the posterior distribution and the second accuracy. This makes it possible to estimate the speaker corresponding to the voice signal. In this case, the speaker embedding extraction device 200 can be said to operate as a speaker classification device.

[0068] Next, an outline of this disclosure will be described. Fig. 6 is a block diagram showing an outline of a learning device according to this disclosure. A learning device 80 (e.g., learning device 100) according to this disclosure includes a learning means 81 (e.g., model learning unit 30) that learns weighting coefficients for a neural network including an input layer that accepts an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function (e.g., loss function J in the above-mentioned formula 8) indicating an error between a speaker label indicating a speaker of the voice signal and an output value output from the output layer, thereby generating a neural network for speaker embedding extraction.

[0069] Here, the speaker embedding extraction neural network is a neural network in which the first to fourth networks are connected in sequence. The learning means 81 learns a speech signal (e.g., x t ) to frame-wise features (e.g., o t) is calculated, and in a second network (e.g., the second network NW2), a first accuracy (e.g., L t , Log(L t )) and in a third network (e.g., the third network NW3), the mean of the prior distribution (e.g., μ p ) and precision (e.g., L p ), and the mean of the posterior distribution (e.g., φ s ) and the second precision (e.g., L s ) is calculated, and in a fourth network (e.g., the fourth network NW4), a speaker embedding (e.g., ξ s ) and classify the speaker of the speech signal.

[0070] Such a configuration allows us to train speaker embeddings that take into account speech uncertainty.

[0071] Specifically, the frame-wise features are defined as the sum of the distributions of the latent variables and the uncertainty (e.g., Equation 3 above), where the latent variables follow a Gaussian distribution with the mean of the prior distribution and the precision, and the uncertainty follows a Gaussian distribution with mean 0 and the first precision.

[0072] 7 is a block diagram showing an overview of a speaker embedding extraction device according to the present disclosure. A speaker embedding extraction device 90 (e.g., speaker embedding extraction device 200) according to the present disclosure includes an input means 91 (e.g., signal input unit 120) that accepts input of a voice signal, and an output means 92 (e.g., result output unit 130) that outputs speaker embedding for the input voice signal.

[0073] The output means 92 outputs a speaker embedding for the input voice signal using a speaker embedding extraction neural network in which weighting coefficients have been trained so as to minimize a loss function (e.g., loss function J in Equation 8 above) indicating the error between a speaker label indicating the speaker of the voice signal and the output value output from the output layer, for a neural network including an input layer that accepts input of a voice signal and an output layer that outputs an output value indicating the speaker of the voice signal.

[0074] Here, the neural network for extracting speaker embedding includes a first network (e.g., first network NW1) that calculates frame-by-frame features from a speech signal, a second network (e.g., second network NW2) connected to the first network and that calculates a first accuracy from the frame-by-frame features, a third network (e.g., third network NW3) connected to the second network and that calculates the mean and accuracy of the prior distribution, and the mean and second accuracy of the posterior distribution from the features and the first accuracy, and a fourth network (e.g., fourth network NW4) connected to the third network and that calculates a speaker embedding from the mean and second accuracy of the posterior distribution.

[0075] Then, the output means 92 performs a calculation based on the learned weighting coefficients on the speech signal input to the input layer of the first network, and extracts a speaker embedding from the intermediate layer of the fourth neural network.

[0076] Such a configuration makes it possible to represent the input speech signal as a feature quantity.

[0077] Furthermore, the output means 92 may output an output value indicating the speaker of the voice signal from the average of the posterior distribution and the second precision. With such a configuration, it becomes possible to estimate the speaker corresponding to the voice signal.

[0078] 8 is a schematic block diagram showing the configuration of a computer according to at least one embodiment. A computer 1000 includes a processor 1001, a main memory device 1002, an auxiliary memory device 1003, and an interface 1004.

[0079] The above-mentioned learning device 80 or speaker embedding extraction device 90 is implemented in a computer 1000. The operations of the above-mentioned processing units are stored in the form of a program in an auxiliary storage device 1003. The processor 1001 reads the program from the auxiliary storage device 1003, loads it in the main storage device 1002, and executes the above-mentioned processes according to the program.

[0080] In at least one embodiment, the auxiliary storage device 1003 is an example of a non-transitory tangible medium. Other examples of non-transitory tangible media include a magnetic disk, a magneto-optical disk, a CD-ROM (Compact Disc Read-only memory), a DVD-ROM (Read-only memory), and a semiconductor memory connected via the interface 1004. In addition, when this program is distributed to the computer 1000 via a communication line, the computer 1000 that receives the program may load the program into the main storage device 1002 and execute the above-mentioned process.

[0081] The program may be for realizing part of the above-mentioned functions. Furthermore, the program may be a so-called differential file (differential program) that realizes the above-mentioned functions in combination with another program already stored in the auxiliary storage device 1003.

[0082] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes.

[0083] (Note 1) A learning means is provided for learning weighting coefficients for a neural network including an input layer that receives an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer, thereby generating a speaker embedding extraction neural network; The speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, The learning means includes: In a first network, a feature amount is calculated for each frame from the speech signal; In a second network, a first accuracy is calculated from the frame-by-frame feature amount; In a third network, a mean and a precision of a prior distribution are calculated from the mean and the precision of the prior distribution, and a mean and a second precision of a posterior distribution are calculated from the feature amount and the first precision; A learning device characterized in that, in a fourth network, a speaker embedding is calculated from the mean of the posterior distribution and the second accuracy, and a speaker of the speech signal is classified.

[0084] (Appendix 2) A learning device as described in Appendix 1, in which frame-by-frame features are defined as the sum of a distribution of a hidden variable and an uncertainty, the hidden variable following a Gaussian distribution with a mean and precision of a prior distribution, and the uncertainty following a Gaussian distribution with a mean of 0 and a first precision.

[0085] (Appendix 3) An input means for receiving an input of an audio signal; and an output means for outputting a speaker embedding for the input speech signal, the output means outputs a speaker embedding for the input speech signal using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the speech signal and the output value output from the output layer, for a neural network including an input layer that accepts an input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal; The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; The output means performs a calculation based on the learned weighting coefficient on the speech signal input to the input layer of the first network, and extracts the speaker embedding from the intermediate layer of the fourth neural network.

[0086] (Supplementary Note 4) The speaker embedding extraction device according to Supplementary Note 3, wherein an output means outputs an output value indicating a speaker of the speech signal based on the average of the posterior distribution and the second accuracy.

[0087] (Supplementary Note 5) A computer generates a speaker embedding extraction neural network by learning weighting coefficients for a neural network including an input layer that accepts an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer; The speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, The computer, when generating the neural network for speaker embedding extraction, In a first network, a feature amount is calculated for each frame from the speech signal; In a second network, a first accuracy is calculated from the frame-by-frame feature amount; In a third network, a mean and a precision of a prior distribution are calculated from the mean and the precision of the prior distribution, and a mean and a second precision of a posterior distribution are calculated from the feature amount and the first precision; A learning method comprising: in a fourth network, calculating a speaker embedding from the mean of the posterior distribution and the second accuracy, and classifying the speaker of the speech signal.

[0088] (Appendix 6) Accepts audio signal input, outputting a speaker embedding for the input speech signal using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the speech signal and the output value output from the output layer, for a neural network including an input layer that accepts an input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal; The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; A speaker embedding extraction method characterized in that, at the time of the output, a calculation based on the learned weighting coefficient is performed on the speech signal input to the input layer of the first network, and the speaker embedding is extracted from the intermediate layer of the fourth neural network.

[0089] (Appendix 7) To the computer, a learning process is executed for a neural network including an input layer that receives an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal, to learn weighting coefficients so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer, thereby generating a speaker embedding extraction neural network; The speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, In the learning process, A first network calculates a feature quantity for each frame from the speech signal; A first accuracy is calculated from the frame-by-frame feature amount in a second network; In a third network, a mean and a second accuracy of a posterior distribution are calculated from a mean and an accuracy of a prior distribution, and the feature amount and the first accuracy; A program storage medium storing a learning program for calculating speaker embedding from the mean of the posterior distribution and the second accuracy in a fourth network, and classifying the speaker of the speech signal.

[0090] (Appendix 8) To the computer, an input process for receiving an input of an audio signal; and Executing an output process that outputs a speaker embedding for the input speech signal; In the output process, a speaker embedding for the input speech signal is output using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the speech signal and the output value output from the output layer, for a neural network including an input layer that accepts an input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal; The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; A program storage medium that stores a speaker embedding extraction program for performing a calculation based on the learned weighting coefficient on the speech signal input to the input layer of the first network in the output processing, and extracting the speaker embedding from the intermediate layer of the fourth neural network.

[0091] (Appendix 9) A trained model for causing a computer to function to output a speaker embedding for an input speech signal, The trained model is a speaker embedding extraction neural network in which weighting coefficients are trained for a neural network including an input layer that accepts an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer, The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; A trained model for causing a computer to perform a calculation based on the trained weighting coefficients on a speech signal input to an input layer of the first network, and to extract the speaker embedding from the intermediate layer of the fourth neural network.

[0092] (Appendix 10) A trained model according to appendix 9, in which the frame-by-frame features are defined as the sum of the distributions of latent variables and uncertainties, the latent variables following a Gaussian distribution with the mean and precision of the prior distribution, and the uncertainties following a Gaussian distribution with mean 0 and a first precision.

[0093] (Appendix 11) To the computer, a learning process is executed for a neural network including an input layer that receives an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal, to learn weighting coefficients so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer, thereby generating a speaker embedding extraction neural network; The speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, In the learning process, A first network calculates a feature quantity for each frame from the speech signal; A first accuracy is calculated from the frame-by-frame feature amount in a second network; In a third network, a mean and a second accuracy of a posterior distribution are calculated from a mean and an accuracy of a prior distribution, and the feature amount and the first accuracy; A learning program for calculating a speaker embedding from the mean of the posterior distribution and the second accuracy in a fourth network, and classifying the speaker of the speech signal.

[0094] (Appendix 12) To the computer, an input process for receiving an input of an audio signal; and Executing an output process that outputs a speaker embedding for the input speech signal; In the output process, a speaker embedding for the input speech signal is output using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the speech signal and the output value output from the output layer, for a neural network including an input layer that accepts an input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal; The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; A speaker embedding extraction program for performing a calculation based on the learned weighting coefficients on the speech signal input to the input layer of the first network in the output processing, and extracting the speaker embedding from the intermediate layer of the fourth neural network.

[0095] Although the present invention has been described above with reference to the embodiment, the present invention is not limited to the above embodiment. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. [Explanation of symbols]

[0096] 10 Storage section 20 Input section 30 Model Learning Section 40 Output section 100 Learning Device 110 Storage section 120 Signal input section 130 Result output section 200 Speaker Embedding Extraction Device

Claims

1. a learning means for learning weighting coefficients for a neural network including an input layer that receives an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer, thereby generating a speaker embedding extraction neural network; The speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, The learning means includes: In a first network, a feature amount is calculated for each frame from the speech signal; In a second network, a first accuracy is calculated from the frame-by-frame feature amount; In a third network, a mean and a precision of a prior distribution are calculated from the mean and the precision of the prior distribution, and a mean and a second precision of a posterior distribution are calculated from the feature amount and the first precision; In a fourth network, a speaker embedding is calculated from the mean of the posterior distribution and the second accuracy, and a speaker of the speech signal is classified. A learning device characterized by:

2. The frame-wise features are defined as the sum of the distributions of latent variables and uncertainties, where the latent variables follow a Gaussian distribution with the mean of the prior distribution and the precision, and the uncertainties follow a Gaussian distribution with mean 0 and the first precision. The learning device according to claim 1.

3. An input means for receiving an input of an audio signal; and an output means for outputting a speaker embedding for the input speech signal, the output means outputs a speaker embedding for the input speech signal using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the speech signal and the output value output from the output layer, for a neural network including an input layer that accepts an input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal; The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; The output means performs a calculation based on the learned weighting coefficients on the speech signal input to the input layer of the first network, and extracts the speaker embedding from the intermediate layer of the fourth network. A speaker embedding extraction device comprising:

4. An output means outputs an output value indicating a speaker of the voice signal based on the average of the posterior distribution and the second accuracy. The speaker embedding extraction apparatus according to claim 3.

5. a computer generates a speaker embedding extraction neural network by learning weighting coefficients for a neural network including an input layer that accepts an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer; The speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, The computer, when generating the neural network for extracting speaker embedding, In a first network, a feature amount is calculated for each frame from the speech signal; In a second network, a first accuracy is calculated from the frame-by-frame feature amount; In a third network, a mean and a precision of a prior distribution are calculated from the mean and the precision of the prior distribution, and a mean and a second precision of a posterior distribution are calculated from the feature amount and the first precision; In a fourth network, a speaker embedding is calculated from the mean of the posterior distribution and the second accuracy, and a speaker of the speech signal is classified. A learning method comprising:

6. Accepts audio signal input, outputting a speaker embedding for the input speech signal using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the speech signal and the output value output from the output layer, for a neural network including an input layer that accepts an input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal; The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; At the time of the output, a calculation is performed based on the learned weight coefficients on the speech signal input to the input layer of the first network, and the speaker embedding is extracted from the intermediate layer of the fourth network. The speaker embedding extraction method according to the present invention is characterized in that:

7. On the computer, a learning process is executed for a neural network including an input layer that receives an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal, to learn weighting coefficients so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer, thereby generating a speaker embedding extraction neural network; The speaker embedding extraction neural network is a neural network in which first to fourth networks are sequentially connected, In the learning process, A first network calculates a feature quantity for each frame from the speech signal; A first accuracy is calculated from the frame-by-frame feature amount in a second network; In a third network, a mean and a second accuracy of a posterior distribution are calculated from a mean and an accuracy of a prior distribution, and the feature amount and the first accuracy; In a fourth network, a speaker embedding is calculated from the mean of the posterior distribution and the second accuracy, and a speaker of the speech signal is classified. A learning program for.

8. On the computer, an input process for receiving an input of an audio signal; and Executing an output process that outputs a speaker embedding for the input speech signal; In the output process, a speaker embedding for the input speech signal is output using a speaker embedding extraction neural network in which weighting coefficients are trained so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the speech signal and the output value output from the output layer, for a neural network including an input layer that accepts an input of a speech signal and an output layer that outputs an output value indicating a speaker of the speech signal; The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; In the output process, a calculation is performed based on the learned weight coefficients on the speech signal input to the input layer of the first network, and the speaker embedding is extracted from the intermediate layer of the fourth network. Speaker embedding extractor for.

9. A trained model for causing a computer to output a speaker embedding for an input speech signal, comprising: The trained model is a speaker embedding extraction neural network in which weighting coefficients are trained for a neural network including an input layer that accepts an input of a voice signal and an output layer that outputs an output value indicating a speaker of the voice signal so as to minimize a loss function indicating an error between a speaker label indicating a speaker of the voice signal and the output value output from the output layer, The neural network for extracting speaker embeddings comprises: a first network for calculating frame-by-frame features from the speech signal; a second network connected to the first network and configured to calculate a first accuracy from the frame-by-frame feature quantity; a third network connected to the second network and configured to calculate a mean and a second accuracy of a posterior distribution from a mean and an accuracy of a prior distribution, and the feature quantity and the first accuracy; a fourth network connected to the third network and configured to calculate a speaker embedding from the mean of the posterior distribution and the second accuracy; The computer is caused to function to perform a calculation based on the learned weight coefficients on a speech signal input to an input layer of the first network, and to extract the speaker embedding from an intermediate layer of the fourth network. A pre-trained model for

10. The frame-wise features are defined as the sum of the distributions of latent variables and uncertainties, where the latent variables follow a Gaussian distribution with the mean of the prior distribution and the precision, and the uncertainties follow a Gaussian distribution with mean 0 and the first precision. The trained model according to claim 9.

Citation Information

Patent Citations

  • Speaker recognition

    US20190355366A1