Voice data processing method and device, equipment, storage medium and vehicle

Through the fusion processing of the semantic feature vector of speech data and the feature vector of the utterance object, the problem of data scarcity in the speech recognition task is solved, the recognition accuracy of the speech recognition model is improved, and effective data augmentation of tasks related to the utterance object is achieved.

CN118737136APending Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310324530.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the field of speech recognition, especially in speech recognition tasks such as dialects and minority languages, data scarcity problems are often encountered, resulting in low recognition accuracy of speech recognition models. Existing technologies such as speed perturbation, noise addition, spectrum perturbation and other methods are difficult to achieve. Effectively solve the problem of data scarcity related to vocal objects.

Method used

By obtaining the fusion processing of the semantic feature vector of the speech data and the voicing object feature vector, the vocoder and synthesizer or encoder and decoder in the speech conversion model are used to perform data augmentation, and the third feature vector corresponding to the voicing object feature vector is generated. 2 voice data, thus solving the problem of data scarcity.

Benefits of technology

The recognition accuracy of the speech recognition model is improved. By performing data augmentation from the perspectives of vocal objects and semantic information, the diversity of training samples is enhanced, and the recognition accuracy of the speech recognition model is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737136A_ABST
    Figure CN118737136A_ABST
Patent Text Reader

Abstract

The invention discloses a voice data processing method and device, equipment, a storage medium and a vehicle. The method comprises the following steps: acquiring first voice data; recognizing the first voice data through a first voice recognition model to obtain a semantic feature vector of the first voice data; selecting a sounding object feature vector from the sounding object recognition model; and performing fusion processing on the semantic feature vector and the sounding object feature vector to obtain second voice data corresponding to the sounding object feature vector, the sounding objects of the first voice data and the second voice data being different. According to the embodiment of the invention, the method achieves the augmentation of the first voice data from the feature angle of the sound production object, obtains the second voice data, solves a problem of data scarcity in the face of a voice recognition task related to the sound production object, and improves the recognition accuracy of a voice recognition model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of speech processing technology, and in particular, relates to a speech data processing method, device, equipment, storage medium and vehicle. Background Art

[0002] In the field of speech recognition, a large number of speech samples are usually required to train a relatively accurate speech recognition model. If there are few speech samples, it is difficult to obtain a relatively accurate speech recognition model.

[0003] However, in some specific speech recognition tasks, such as dialect, minority language and other speech recognition subtasks, data scarcity is often encountered. At present, data augmentation is usually achieved by perturbing speech data by speed, adding noise, and spectral perturbation. Although this method of processing speech data can solve the problem of data scarcity to a certain extent, it is still prone to data scarcity when facing speech recognition tasks related to the sound object, thereby reducing the recognition accuracy of the speech recognition model. Summary of the invention

[0004] The embodiments of the present application provide a voice data processing method, apparatus, device, storage medium and vehicle, which can solve the data scarcity problem when facing voice recognition tasks related to the sound-emitting object, thereby improving the recognition accuracy of the voice recognition model.

[0005] In a first aspect, an embodiment of the present application provides a method for processing voice data, the method comprising:

[0006] Acquire first voice data;

[0007] Recognize the first speech data by using the first speech recognition model to obtain a semantic feature vector of the first speech data;

[0008] Selecting a sound object feature vector from a sound object recognition model;

[0009] The semantic feature vector and the sound object feature vector are fused to obtain second voice data corresponding to the sound object feature vector. The first voice data and the second voice data have different sound objects.

[0010] In some implementations of the first aspect, fusing the semantic feature vector with the sound object feature vector to obtain second speech data corresponding to the sound object feature vector includes:

[0011] The semantic feature vector is converted by using the vocoder in the speech conversion model to obtain a semantic acoustic waveform;

[0012] The vocoder is used to convert the characteristic vector of the sound object to obtain the acoustic waveform of the sound object;

[0013] The semantic acoustic waveform and the acoustic waveform of the utterance object are spliced ​​and synthesized by the synthesizer in the speech conversion model to obtain the second speech data.

[0014] In some implementations of the first aspect, fusing the semantic feature vector with the sound object feature vector to obtain second speech data corresponding to the sound object feature vector includes:

[0015] Using the encoder and decoder in the speech conversion model, respectively encode and decode the sound object feature vector and the semantic feature vector to obtain a first amplitude spectrum of the sound object feature vector and a second amplitude spectrum of the semantic feature vector;

[0016] Iteratively generate a first phase spectrum corresponding to a first amplitude spectrum of a feature vector of a sound object and a second phase spectrum corresponding to a second amplitude spectrum of a semantic feature vector according to a preset algorithm;

[0017] The voice waveform is reconstructed by using the first amplitude spectrum, the first phase spectrum, the second amplitude spectrum and the second phase spectrum through the vocoder in the voice conversion model to obtain the second voice data.

[0018] In some implementations of the first aspect, recognizing first speech data by using a first speech recognition model to obtain a semantic feature vector of the first speech data includes:

[0019] Extracting acoustic features of the first speech data by an acoustic feature extractor in the first speech recognition model;

[0020] Processing the acoustic features using different hidden layers of the first speech recognition model to obtain a representation value of the acoustic features of each frame of the first speech data;

[0021] The first speech recognition model obtains a semantic feature vector of the first speech data based on the representation value of the acoustic feature of each frame of the first speech data.

[0022] In some implementations of the first aspect, the first speech recognition model and the sound object recognition model are both neural network models, and the semantic feature vector includes: a first feature vector composed of the posterior probability of the phonemes in each frame of the first speech data, and / or a second feature vector composed of the representation values ​​of the acoustic features of the first speech data after processing by different hidden layers of the first speech recognition model.

[0023] In some implementations of the first aspect, after fusing the semantic feature vector with the sound object feature vector to obtain second speech data corresponding to the sound object feature vector, the method further includes:

[0024] For the second voice data, annotate the utterance object information and the semantic information to obtain label data corresponding to the second voice data;

[0025] An initial speech recognition model is trained according to the second speech data and its corresponding label data to obtain a second speech recognition model.

[0026] In a second aspect, an embodiment of the present application provides a voice data processing device, the device comprising:

[0027] An acquisition module, used for acquiring first voice data;

[0028] A first recognition module, configured to recognize first speech data through a first speech recognition model to obtain a semantic feature vector of the first speech data;

[0029] A selection module, used for selecting a sound object feature vector from a sound object recognition model;

[0030] The processing module is used to fuse the semantic feature vector with the sound object feature vector to obtain second voice data corresponding to the sound object feature vector, and the sound objects of the first voice data and the second voice data are different.

[0031] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0032] When the processor executes the computer program instructions, it implements the voice data processing method as described in any one of the first aspects.

[0033] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer readable storage medium is stored computer program instructions, and when the computer program instructions are executed by a processor, a voice data processing method as described in any one of the first aspects is implemented.

[0034] In a fifth aspect, an embodiment of the present application provides a vehicle, the vehicle comprising at least one of the following:

[0035] The speech data processing device as described in the second aspect;

[0036] The electronic device as described in the third aspect;

[0037] A computer-readable storage medium as described in the fourth aspect.

[0038] The speech data processing method, apparatus, device, storage medium and vehicle provided in the embodiments of the present application obtain first speech data, recognize the first speech data through a first speech recognition model, obtain a semantic feature vector of the first speech data, select a feature vector of the sound object from the sound object recognition model, fuse the semantic feature vector with the feature vector of the sound object, and obtain second speech data corresponding to the feature vector of the sound object. According to the embodiments of the present application, for the first speech data with low resources, the speech data is fused from the two perspectives of the sound object and the semantic information to obtain the second speech data. Based on this, the first speech data is augmented from the perspective of the characteristics of the sound object to obtain the second speech data, which can solve the problem of data scarcity when facing speech recognition tasks related to the sound object, and further solve the problem of low recognition accuracy of the speech recognition model due to the scarcity of training samples in some specific fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0040] Figure 1 It is a flowchart of a voice data processing method provided in an embodiment of the present application;

[0041] Figure 2 It is a flowchart of a method for obtaining a semantic feature vector provided in an embodiment of the present application;

[0042] Figure 3 It is a flowchart of a speech synthesis method provided in an embodiment of the present application;

[0043] Figure 4 is a flowchart of another speech synthesis method provided in an embodiment of the present application;

[0044] Figure 5 It is a flowchart of a speech recognition model training method provided in an embodiment of the present application;

[0045] Figure 6 It is a structural schematic diagram of a voice data processing device provided in an embodiment of the present application;

[0046] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0049] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0050] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0051] In the field of speech recognition, a large number of speech samples are usually required to train a relatively accurate speech recognition model. If there are few speech samples, it is difficult to obtain a relatively accurate speech recognition model.

[0052] However, in some specific speech recognition tasks, such as dialect, minority language and other speech recognition subtasks, data scarcity is often encountered. At present, data augmentation is usually achieved by perturbing speech data by speed, adding noise, and spectral perturbation. Although this method of processing speech data can solve the problem of data scarcity to a certain extent, when facing speech recognition tasks related to the sound object, it is impossible to augment the characteristics of the sound object, and data scarcity is still prone to occur, thereby reducing the recognition accuracy of the speech recognition model.

[0053] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, equipment, storage medium and vehicle for processing voice data. The voice data processing method provided by the embodiments of the present application is first introduced below.

[0054] Figure 1 FIG. 1 is a flow chart of a method for processing voice data provided by an embodiment of the present application. Figure 1 As shown, the voice data processing method may specifically include the following steps:

[0055] S101, obtaining first voice data;

[0056] S102, recognizing first speech data by using a first speech recognition model to obtain a semantic feature vector of the first speech data;

[0057] S103, selecting a sound object feature vector from a sound object recognition model;

[0058] S104: Fusing the semantic feature vector with the sound object feature vector to obtain second voice data corresponding to the sound object feature vector, wherein the first voice data and the second voice data have different sound objects.

[0059] Therefore, according to the voice data processing method provided in the embodiment of the present application, the first voice data is obtained, the first voice data is recognized by the first voice recognition model, the semantic feature vector of the first voice data is obtained, and the feature vector of the sound object is selected from the sound object recognition model, and the semantic feature vector is fused with the feature vector of the sound object to obtain the second voice data corresponding to the feature vector of the sound object. According to the embodiment of the present application, for the first voice data with low resources, the voice data is fused from the two perspectives of the sound object and the semantic information to obtain the second voice data. Based on this, the first voice data is augmented from the perspective of the characteristics of the sound object to obtain the second voice data, which can solve the problem of data scarcity when facing voice recognition tasks related to the sound object, and further solve the problem of low recognition accuracy of the voice recognition model due to the scarcity of training samples in some specific fields.

[0060] In some embodiments, in S101, the first voice data may be voice data of one or more sound-producing objects. Different sound-producing objects have different speaking accents, that is, the timbre of each sound-producing object is different, which also reflects the diversity of the sound-producing objects.

[0061] In some embodiments, in S102, the first speech recognition model may be, but is not limited to, a neural network model, and the semantic feature vector includes: a first feature vector composed of the posterior probability of the phoneme of each frame of the first speech data, and / or a second feature vector composed of the representation value of the acoustic feature after the first speech data is processed by different hidden layers of the first speech recognition model. Among them, the posterior probability of the phoneme, namely PPG (Phonetic Posteriorgram), is a matrix of time to category, indicating the posterior probability of each speech category for each specific time frame of an utterance, and the posterior probability of a single phoneme as a function of time is called a posterior trajectory.

[0062] In the neural network model, a hidden layer neuron can represent a certain feature, and different hidden layer neurons can be connected to adjacent layer neurons through weights, so that different neurons realize layer-by-layer abstraction of features, and each layer expresses the first speech data differently. As an example, Figure 2 As shown, the above S102 may specifically include the following steps:

[0063] S201, extracting acoustic features of first speech data by an acoustic feature extractor in a first speech recognition model;

[0064] S202, using different hidden layers of the first speech recognition model to process the acoustic features to obtain a representation value of the acoustic features of each frame of the first speech data;

[0065] S203: The first speech recognition model obtains a semantic feature vector of the first speech data based on the representation value of the acoustic feature of each frame of the first speech data.

[0066] In some embodiments, in S201, an acoustic feature extractor in a first speech recognition model is used to extract linguistic features from a text corresponding to the first speech data, and then an acoustic feature is generated from the linguistic features. As an example, the acoustic feature may include prosodic features and spectral features of the first speech data, wherein the prosodic feature may include features based on fundamental frequency, time features, pronunciation clarity, sound level, phrases, phonemes, words and their feature boundaries, etc., and the spectral feature may include linear prediction cepstral coefficients, frequency domain features (filter bank, Fbank), Mel frequency cepstral coefficients (Me l-frequency cepstral coefficients, MFCC), etc.

[0067] In some embodiments, in S202 and S203, the acoustic features used for speech recognition should contain effective information for distinguishing between phonemes, such as having good time resolution and frequency resolution, and having good pattern recognition characteristics, such as feature independence. A speech signal is approximately continuous and stable in a short period of time, and the extracted acoustic features are sent to the first speech recognition model, such as the fundamental frequency, phoneme, speech category, time features, etc. of the first speech data. Since the first speech recognition model is a neural network model, the acoustic features are processed by different hidden layers of the neural network model. For the acoustic features of each audio frame, after the hidden layer processing, the representation value corresponding to the acoustic feature can be output, and the mean of all the representation values ​​is calculated as the semantic feature vector of the audio frame, and then the semantic feature vectors are spliced ​​according to the time features of each audio frame to obtain the semantic feature vector of the first speech data. .

[0068] As an example, before recognizing the first voice data through the first voice recognition model, the full amount of voice recognition data of many sound-making objects is first input into the neural network model for training to construct the first voice recognition model. Exemplarily, the full amount of voice recognition data includes two main parts: acoustics and language. The connection between the two involves a pronunciation dictionary, which contains a mapping between words and phonemes. Different mapping relationships will produce different recognition effects. Based on this, the first voice recognition model is constructed by training with the full amount of voice recognition data, so that when the first voice recognition model is used to recognize the first voice data, the semantic content of the first voice data can be accurately identified.

[0069] Thus, the first speech data is recognized by using the first speech recognition model, the acoustic features in the first speech data are extracted, and the acoustic features are processed by using different hidden layers of the first speech recognition model to obtain the representation value of the acoustic features of each frame of the first speech data, thereby obtaining a semantic feature vector according to the representation value. Based on this, on the basis of the neural network model, the probability of each word in the first speech data is represented by a matrix or a vector, and the semantic feature vector of the first speech data is obtained by corresponding to the feature representation form of the feature level corresponding to different neurons through the phoneme posterior probability and / or the hidden state of the neural network model, that is, the first speech data, so as to accurately obtain the specific content to be expressed by the first speech data.

[0070] In some embodiments, in S103, the sound object recognition model is also a neural network model. As an example, before the first voice data is recognized by the sound object recognition model, the full amount of sound object data of many sound objects is also input into the neural network model for training to construct a sound object recognition model. Exemplarily, the sound object recognition model processes the full amount of sound object data based on different hidden layers of the neural network model, and extracts voiceprint features of different objects from the full amount of sound object data. Different hidden layers represent different feature levels, so the voiceprint features of the sound object have different expressions in different hidden layers. Then, the voiceprint feature parameters under each expression are combined to obtain the sound object feature vector of each sound object.

[0071] Based on this, the sound object recognition model includes a sound object feature vector set including multiple sound object feature vectors. Exemplarily, when selecting a sound object feature vector, one or more sound object feature vectors can be randomly selected from the sound object feature vector set so as to fuse the sound object feature vector with the semantic feature vector to achieve voice data augmentation. It should be noted that although both the first speech recognition model and the sound object recognition model are neural network models, the neural network models corresponding to the two are different.

[0072] In some embodiments, in S104, as an example, Figure 3 As shown, the above S104 may specifically include the following steps:

[0073] S301, using a vocoder in a speech conversion model to convert a semantic feature vector to obtain a semantic acoustic waveform;

[0074] S302, using a vocoder to convert the feature vector of the sound object to obtain an acoustic waveform of the sound object;

[0075] S303: Using a synthesizer in the speech conversion model, the semantic acoustic waveform is concatenated with the acoustic waveform of the utterance object to obtain second speech data.

[0076] As an example, the semantic feature vector and the sound object feature vector are features obtained by processing the speech data based on the neural network. Since speech is very complex and difficult to model, it is usually necessary to map the low-dimensional acoustic features to the high-dimensional speech waveform. Therefore, the semantic feature vector and the sound object feature vector are converted into corresponding acoustic waveforms by the vocoder, so as to realize speech synthesis by the waveform splicing method. Exemplarily, the semantic feature vector and the sound object feature vector both contain the fundamental frequency, spectrum, duration and other features of the speech signal, and the speech feature vector and the sound object feature vector are also spliced ​​by basic units, such as syllables, phonemes, etc., and the waveform splicing is to extract the appropriate splicing units from the speech feature vector and the sound object feature vector, and splice them into sentences, so as to obtain the second speech data.

[0077] Therefore, since the semantic acoustic waveform is a time domain concept, the feature vector of the sound object and the semantic feature vector are fused by waveform splicing to obtain the second speech data, thereby realizing data augmentation from the time domain perspective.

[0078] In some embodiments, in S104, as Figure 4 As shown, the above S104 may include the following steps:

[0079] S401, using an encoder and a decoder in a speech conversion model to respectively encode and decode the sound object feature vector and the semantic feature vector to obtain a first amplitude spectrum of the sound object feature vector and a second amplitude spectrum of the semantic feature vector;

[0080] S402, iteratively generating a first phase spectrum corresponding to a first amplitude spectrum of a feature vector of a sound object and a second phase spectrum corresponding to a second amplitude spectrum of the semantic feature vector according to a preset algorithm;

[0081] S403 , using the vocoder in the speech conversion model to reconstruct the speech waveform using the first amplitude spectrum, the first phase spectrum, the second amplitude spectrum, and the second phase spectrum to obtain second speech data.

[0082] As an example, in S401, an encoder-decoder model structure with an attention mechanism is used in the speech conversion model, whereby the encoder and decoder are used to encode and decode the sound object feature vector and the semantic feature vector respectively to obtain a first amplitude spectrum of the sound object feature vector and a second amplitude spectrum of the semantic feature vector.

[0083] As an example, in S402 and S403, when performing speech tasks such as speech synthesis and speaker change, the spectrum of the target signal is usually generated or modified, but due to the lack of phase information, the echo audio signal cannot be directly restored from the spectrum. Therefore, a preset algorithm, such as the Griffin-Lim algorithm, is used to iteratively generate a phase spectrum corresponding to the spectrum, and then the voice coder in the speech conversion model uses the phase spectrum and the amplitude spectrum in the spectrum to reconstruct the speech waveform, thereby obtaining the second speech data.

[0084] Exemplarily, the first phase spectrum and the second phase spectrum are randomly initialized and generated using the Griffin-Lim algorithm, a complex matrix is ​​created, the first amplitude spectrum of the feature vector of the sound object and the second amplitude spectrum of the semantic feature vector are used as the real layer, the imaginary layer is randomly initialized using noise, and then the first phase spectrum and the first amplitude spectrum, as well as the second phase spectrum and the second amplitude spectrum are inversely Fourier transformed to construct a new speech waveform, so as to inverse Fourier transform the complex matrix. The constructed new speech waveform is further Fourier transformed to obtain a new amplitude spectrum and phase spectrum, and in each transformation, the complex matrix obtained in the previous step converts the inaccurate time domain signal into amplitude and phase in the frequency domain. Based on this, the phase spectrum and the amplitude spectrum are iteratively generated to perform inverse Fourier transform and Fourier transform to reconstruct the speech waveform until the synthesized speech achieves a satisfactory effect or the number of iterations reaches the upper limit, and the second speech data is obtained.

[0085] Therefore, the semantic feature vector of the first voice data is extracted by using the first voice recognition model, and the feature vector of the sound object is selected from the sound object recognition model, and the semantic feature vector and the feature vector of the sound object are fused through the voice conversion system to obtain the second voice data. Based on the processing characteristics of the neural network, the semantic content of the converted second voice data is the same as that of the first voice data, but the sound objects of the first voice data and the second voice data are different, thereby realizing data augmentation of the first voice data and improving the diversity of the low-resource first voice data.

[0086] Figure 5 FIG. 1 is a flow chart of a speech recognition model training method provided in an embodiment of the present application. Figure 5 As shown, after S104, the method may further include the following steps:

[0087] S501, annotating the second voice data with the sound object information and the semantic information to obtain the label data corresponding to the second voice data;

[0088] S502: Train an initial speech recognition model based on the second speech data and its corresponding label data to obtain a second speech recognition model.

[0089] In some embodiments, in S501, the obtained second voice data is labeled, that is, the second voice data is labeled with the sound object information and semantic information, the sound object information refers to the voiceprint characteristics of the speaker corresponding to the second voice data, and the semantic information refers to the specific content expressed by the second voice data. Based on this, the second voice data is labeled with the sound object information and semantic information, that is, the label data corresponding to the second voice data is obtained.

[0090] In some embodiments, in S502, each second voice data and its corresponding label data are used to train the initial voice recognition model, thereby obtaining a second voice recognition model that can recognize both the sound object and the voice content.

[0091] Therefore, after obtaining the second voice data, the second voice data is labeled, so as to train the initial voice recognition model based on the second voice data and its corresponding label data. Since the second voice data is obtained by data augmentation using the voice data processing method provided in the embodiment of the present application, for training the voice recognition model, the diversity of the voice recognition model training samples is improved, thereby solving the problem of scarcity of training sample data while reducing the difficulty of training the voice recognition model, and improving the recognition rate and recognition accuracy of the voice recognition model.

[0092] It should be noted that the application scenarios described in the above embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0093] Based on the same inventive concept, the present application embodiment provides a voice data processing device, specifically combined with Figure 6 Provide detailed explanation.

[0094] Figure 6 FIG. 1 is a schematic diagram showing the structure of a voice data processing device provided in an embodiment of the present application. Figure 6 As shown, the voice data processing device 600 may include:

[0095] An acquisition module 601 is used to acquire first voice data;

[0096] A first recognition module 602, configured to recognize first speech data by using a first speech recognition model to obtain a semantic feature vector of the first speech data;

[0097] A selection module 603 is used to select a sound object feature vector from a sound object recognition model;

[0098] The processing module 604 is used to fuse the semantic feature vector with the sound object feature vector to obtain second voice data corresponding to the sound object feature vector. The first voice data and the second voice data have different sound objects.

[0099] Therefore, according to the speech data processing device provided in the embodiment of the present application, the first speech data is obtained, the first speech data is recognized by the first speech recognition model, the semantic feature vector of the first speech data is obtained, and the feature vector of the sound object is selected from the sound object recognition model, and the semantic feature vector is fused with the feature vector of the sound object to obtain the second speech data corresponding to the feature vector of the sound object. According to the embodiment of the present application, for the first speech data with low resources, the speech data is fused from the two perspectives of the sound object and the semantic information to obtain the second speech data. Based on this, the first speech data is augmented from the perspective of the characteristics of the sound object to obtain the second speech data, which can solve the problem of data scarcity when facing speech recognition tasks related to the sound object, and further solve the problem of low recognition accuracy of the speech recognition model due to the scarcity of training samples in some specific fields.

[0100] In some embodiments, the first identification module 602 may include the following units:

[0101] An extraction unit, configured to extract acoustic features of the first speech data by using an acoustic feature extractor in the first speech recognition model;

[0102] A first processing unit, configured to process the acoustic features using different hidden layers of the first speech recognition model to obtain a representation value of the acoustic features of each frame of the first speech data;

[0103] The second processing unit is used for the first speech recognition model to obtain a semantic feature vector of the first speech data based on the representation value of the acoustic feature of each frame of the first speech data.

[0104] In some embodiments, the processing module 604 may include the following units:

[0105] A first conversion unit, used for converting the semantic feature vector using a vocoder in a speech conversion model to obtain a semantic acoustic waveform;

[0106] A second conversion unit, used to convert the feature vector of the sound object using a vocoder to obtain an acoustic waveform of the sound object;

[0107] The synthesis unit is used to splice and synthesize the semantic acoustic waveform with the acoustic waveform of the sound object through a synthesizer in the speech conversion model to obtain the second speech data.

[0108] In some embodiments, the processing module 604 may include the following units:

[0109] A third processing unit is used to use the encoder and decoder in the speech conversion model to encode and decode the sound object feature vector and the semantic feature vector respectively, so as to obtain a first amplitude spectrum of the sound object feature vector and a second amplitude spectrum of the semantic feature vector;

[0110] A generating unit, configured to iteratively generate a first phase spectrum corresponding to a first amplitude spectrum of a feature vector of a sound object and a second phase spectrum corresponding to a second amplitude spectrum of a semantic feature vector according to a preset algorithm;

[0111] The construction unit is used to reconstruct the speech waveform by using the first amplitude spectrum, the first phase spectrum, the second amplitude spectrum and the second phase spectrum through the vocoder in the speech conversion model to obtain the second speech data.

[0112] In some embodiments, the first speech recognition model and the sound object recognition model are both neural network models, and the semantic feature vector includes: a first feature vector composed of the posterior probability of the phonemes in each frame of the first speech data, and / or a second feature vector composed of the representation values ​​of the acoustic features after processing the first speech data using different hidden layers of the first speech recognition model.

[0113] In some embodiments, the voice data processing device 600 may further include the following modules:

[0114] A labeling module, used to label the second voice data with the information of the utterance object and the semantic information, and obtain label data corresponding to the second voice data;

[0115] The training module is used to train the initial speech recognition model according to the second speech data and its corresponding label data to obtain the second speech recognition model.

[0116] Figure 6 Each unit in the voice data processing device shown has the function of realizing Figures 1 to 5 The functions of the voice data processing method shown and the corresponding technical effects achieved are not repeated here for the sake of brevity.

[0117] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0118] The electronic device 700 may include a processor 701 and a memory 702 storing computer program instructions.

[0119] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0120] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 702 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 702 may be inside or outside the electronic device 700. In a particular embodiment, the memory 702 is a non-volatile solid-state memory.

[0121] In certain embodiments, the memory 702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically the memory 702 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the first aspect of the present application.

[0122] The processor 701 implements the voice data processing method in the above embodiment by reading and executing the computer program instructions stored in the memory 702 .

[0123] In some examples, the electronic device 700 may further include a communication interface 703 and a bus 704. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 704 and communicate with each other.

[0124] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0125] Bus 704 includes hardware, software or both, and the components of electronic device 700 are coupled to each other. For example, but not limitation, bus 704 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 704 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0126] Exemplarily, the electronic device 700 may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).

[0127] The electronic device 700 can be combined with Figure 1 and Figure 6 The described speech data processing method and device.

[0128] In addition, in combination with the voice data processing method in the above embodiment, the embodiment of the present application may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the voice data processing method in the above embodiment is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as portable disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, etc.

[0129] In addition, the embodiment of the present application further provides a vehicle, which may include at least one of the following:

[0130] The speech data processing device as described in the second aspect;

[0131] The electronic device as described in the third aspect;

[0132] A computer-readable storage medium as described in the fourth aspect.

[0133] It should be understood that the above specific embodiments of the present application are only used to illustrate or explain the principles of the present application, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present application should be included in the protection scope of the present application. In addition, the claims attached to the present application are intended to cover all changes and modifications that fall within the scope and boundaries of the attached claims, or the equivalent forms of such scope and boundaries.

[0134] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0135] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0136] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0137] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for processing speech data, characterized in that: include: Acquire first voice data; Recognize the first speech data by using a first speech recognition model to obtain a semantic feature vector of the first speech data; Selecting a sound object feature vector from a sound object recognition model; The semantic feature vector is fused with the sound object feature vector to obtain second voice data corresponding to the sound object feature vector, and the first voice data and the second voice data have different sound objects.

2. The method according to claim 1, characterized in that The fusing the semantic feature vector with the sound object feature vector to obtain second speech data corresponding to the sound object feature vector includes: The semantic feature vector is converted by using a vocoder in a speech conversion model to obtain a semantic acoustic waveform; Using the vocoder to convert the feature vector of the sound object to obtain an acoustic waveform of the sound object; The semantic acoustic waveform and the sound object acoustic waveform are spliced ​​and synthesized by the synthesizer in the speech conversion model to obtain the second speech data.

3. The method according to claim 1, characterized in that The method of fusing the semantic feature vector with the sound object feature vector to obtain second speech data corresponding to the sound object feature vector comprises: Using an encoder and a decoder in a speech conversion model, respectively encode and decode the sound object feature vector and the semantic feature vector to obtain a first amplitude spectrum of the sound object feature vector and a second amplitude spectrum of the semantic feature vector; Iteratively generate, according to a preset algorithm, a first phase spectrum corresponding to a first amplitude spectrum of the feature vector of the sound object, and a second phase spectrum corresponding to a second amplitude spectrum of the semantic feature vector; The second speech data is obtained by reconstructing a speech waveform using the first amplitude spectrum, the first phase spectrum, the second amplitude spectrum and the second phase spectrum through a vocoder in the speech conversion model.

4. The method according to claim 1, characterized in that: The step of recognizing the first speech data by using a first speech recognition model to obtain a semantic feature vector of the first speech data includes: Extracting acoustic features of the first speech data by an acoustic feature extractor in the first speech recognition model; Processing the acoustic features using different hidden layers of the first speech recognition model to obtain a representation value of the acoustic features of each frame of the first speech data; The first speech recognition model obtains a semantic feature vector of the first speech data based on a representation value of an acoustic feature of each frame of the first speech data.

5. The method according to claim 4, characterized in that The first speech recognition model and the sound object recognition model are both neural network models, and the semantic feature vector includes: a first feature vector composed of the posterior probability of the phonemes of each frame of the first speech data, and / or a second feature vector composed of the representation values ​​of the acoustic features of the first speech data after processing by different hidden layers of the first speech recognition model.

6. The method according to claim 1, characterized in that After fusing the semantic feature vector with the sound object feature vector to obtain second voice data corresponding to the sound object feature vector, the method further includes: Annotating the second voice data with the utterance object information and the semantic information to obtain the label data corresponding to the second voice data; An initial speech recognition model is trained based on the second speech data and its corresponding label data to obtain a second speech recognition model.

7. A voice data processing device, characterized in that: include: An acquisition module, used for acquiring first voice data; A first recognition module, configured to recognize the first speech data by using a first speech recognition model to obtain a semantic feature vector of the first speech data; A selection module, used for selecting a sound object feature vector from a sound object recognition model; The processing module is used to fuse the semantic feature vector with the sound object feature vector to obtain second voice data corresponding to the sound object feature vector, and the sound objects of the first voice data and the second voice data are different.

8. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the voice data processing method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the voice data processing method according to any one of claims 1 to 6 is implemented.

10. A vehicle, characterized in that: The vehicle includes at least one of the following: The speech data processing device according to claim 7; The electronic device as claimed in claim 8; The computer readable storage medium of claim 9.

Citation Information

Cited By

  • Voice data processing method and device, electronic equipment and readable medium

    CN119559957A

  • Voice data processing method and device, electronic equipment and readable medium

    CN119559957B