Voice processing method and device, equipment, medium and product

By building a speech processing system that includes a pre-trained PLM model and using imitative speech data to train the PLM model, the problem of low speech recognition accuracy for specific speakers is solved and the speech recognition accuracy is improved without changing the ASR model. Acoustic characteristics are preserved.

CN118737154APending Publication Date: 2024-10-01电视电声研究所(中国电子科技集团公司第三研究所)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925174.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing speech recognition technology is difficult to accurately identify a specific speaker without changing the parameters or structure of the speech recognition model, especially in meeting records and criminal investigation scenarios, resulting in low speech recognition accuracy.

Method used

By building a speech processing system containing a pre-trained PLM model, using the ASR model and historical speech data to generate imitation speech data that is consistent with the acoustic characteristics of a specific speaker, and training through the PLM model to improve the speech recognition of the specific speaker accuracy.

Benefits of technology

Without changing the parameters or structure of the ASR model, the speech recognition accuracy of a specific speaker is improved and the acoustic characteristics of the speaker are retained, making it suitable for scenarios such as meeting records and criminal investigation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737154A_ABST
    Figure CN118737154A_ABST
Patent Text Reader

Abstract

The invention discloses a voice processing method and device, equipment, a medium and a product. The method comprises the following steps: acquiring to-be-recognized voice data of a target object, wherein the to-be-recognized voice data comprises acoustic features of the target object; the to-be-recognized voice data are input into a pre-constructed voice processing system, text data corresponding to the to-be-recognized voice data are obtained, the voice processing system at least comprises an ASR model and a pre-trained PLM model, and the PLM model is obtained through training according to a plurality of training texts and voice recognition results output by the ASR model, the voice recognition result is obtained according to historical voice data of the target object, and acoustic features of the to-be-recognized voice data are consistent with those of the historical voice data. According to the embodiment of the invention, the speech recognition accuracy of a specific speaker can be improved on the premise of not changing the ASR model parameters or structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, in order to realize the automatic conversion of human speech into corresponding text, a general speech recognition model is usually used for processing. Although it can adapt to different speakers, the recognition effects of different speakers may vary, especially when the speaker has a unique timbre, an accent, or a pronunciation habit that is different from that of most people. Therefore, for specific speakers, such as speech recognition of important speakers in conference record scenarios and speech recognition of key figures in criminal investigation scenarios, the relevant technology cannot convert the speech processing of a specific speaker into accurate text without changing the parameters or structure of the speech recognition model, making it difficult to achieve accurate recognition for a specific speaker. Summary of the invention

[0003] The embodiments of the present application provide a speech processing method, apparatus, device, medium and product, which are used to at least solve the problem of low speech recognition accuracy for a specific speaker in the related art.

[0004] In a first aspect, an embodiment of the present application provides a speech processing method, comprising:

[0005] Acquiring speech data to be recognized of a target object, wherein the speech data to be recognized includes acoustic features of the target object;

[0006] The speech data to be recognized is input into a pre-built speech processing system to obtain text data corresponding to the speech data to be recognized. The speech processing system at least includes an ASR model and a pre-trained PLM model. The PLM model is trained based on multiple training texts and speech recognition results output by the ASR model. The speech recognition results are obtained based on historical speech data of the target object. The speech data to be recognized is consistent with the acoustic features of the historical speech data.

[0007] In a second aspect, an embodiment of the present application provides a speech processing device, the device comprising:

[0008] An acquisition module, used for acquiring speech data to be recognized of a target object, wherein the speech data to be recognized includes acoustic features of the target object;

[0009] An input module is used to input the speech data to be recognized into a pre-built speech processing system to obtain text data corresponding to the speech data to be recognized, wherein the speech processing system at least includes an ASR model and a pre-trained PLM model, wherein the PLM model is trained based on multiple training texts and speech recognition results output by the ASR model, wherein the speech recognition results are obtained based on historical speech data of a target object, and the speech data to be recognized is consistent with the acoustic features of the historical speech data.

[0010] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the speech processing method described in any one of the embodiments of the first aspect are implemented.

[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the speech processing method described in any embodiment of the first aspect are implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the speech processing method provided in the first aspect of the embodiment of the present application.

[0013] The speech processing method, apparatus, device, medium and product of the embodiments of the present application pre-train a PLM model based on historical speech data including the acoustic features of the target object and multiple training texts, and use the ASR model and the speech processing system constructed by the PLM model obtained through training to process the speech data to be recognized of the target object that is consistent with the acoustic features of the historical speech data to obtain text data corresponding to the speech to be recognized, which can improve the speech recognition accuracy for a specific speaker without changing the parameters or structure of the ASR model. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] 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.

[0015] Figure 1 It is a flowchart of a speech processing method provided in an embodiment of the present application;

[0016] Figure 2 It is a flowchart of a method for constructing a speech processing system provided in an embodiment of the present application;

[0017] Figure 3 It is a flowchart of another method for constructing a speech processing system provided in an embodiment of the present application;

[0018] Figure 4 is a structural schematic diagram of a speech processing device provided in an embodiment of the present application;

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

[0020] Reference numerals:

[0021] Speech processing device 400, acquisition module 401, input module 402,

[0022] Electronic device 500 , processor 501 , memory 502 , communication interface 503 , bus 510 . DETAILED DESCRIPTION

[0023] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0024] It should be noted that, in this article, relational terms such as first and second, etc. 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 terms "include", "comprise" or any other variants thereof are 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 statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0025] Speech recognition, also known as Automatic Speech Recognition (ASR), aims to automatically convert human speech into corresponding text. Speech recognition systems are widely used in various fields such as industry, home appliances, communications, automotive electronics, medical care, home services, consumer electronics, etc., and are an important means to help machines understand the intention of human speech.

[0026] At present, general speech recognition models are usually trained using a large amount of annotated speech data from different people. One of the purposes of this is to make the model applicable to any speaker. Although the speech recognition model in the related art can adapt to different speakers, the recognition effect of different speakers may be different, especially when the speaker has a unique timbre, an accent, or a pronunciation habit that is different from that of most people. Therefore, for specific speakers, such as speech recognition of important speakers in conference record scenarios and speech recognition of key figures in criminal investigation scenarios, the related technology cannot convert the speech processing of a specific speaker into accurate text without changing the parameters or structure of the speech recognition model, making it difficult to achieve accurate recognition of a specific speaker.

[0027] In order to solve the problems of related technologies, the embodiments of the present application provide a speech processing method, device, equipment, medium and product.

[0028] The speech processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0029] Figure 1 FIG. 1 is a flow chart of a speech processing method 100 according to an embodiment of the present application. Figure 1 As shown, the speech processing method 100 may specifically include the following steps:

[0030] S101, obtaining speech data to be recognized of a target object, wherein the speech data to be recognized includes acoustic features of the target object;

[0031] S102. Input the speech data to be recognized into a pre-built speech processing system to obtain text data corresponding to the speech data to be recognized. The speech processing system at least includes an ASR model and a pre-trained PLM model. The PLM model is trained based on multiple training texts and speech recognition results output by the ASR model. The speech recognition results are obtained based on historical speech data of the target object. The speech data to be recognized has consistent acoustic features with the historical speech data.

[0032] Therefore, the PLM model is pre-trained according to the historical speech data including the acoustic features of the target object and multiple training texts, and the speech processing system constructed by using the ASR model and the PLM model obtained through training processes the speech data to be recognized of the target object that is consistent with the acoustic features of the historical speech data, so as to obtain text data corresponding to the speech to be recognized. This can improve the speech recognition accuracy for a specific speaker without changing the parameters or structure of the ASR model, and can retain the acoustic features of the specific speaker as much as possible, so that after speech processing, the direct mapping relationship between the speech of the specific speaker and the processing result can be retained.

[0033] The specific implementation methods of the above steps are introduced below.

[0034] In some embodiments, in S101, the number of target objects is one. That is to say, this embodiment is applied to the speech processing of a specific speaker. However, it should be understood that the speech processing method of this embodiment is implemented by a pre-constructed and trained speech processing system. Therefore, in order to realize speech processing for speakers other than the target object, the speech processing system of the embodiment of the present application can be retrained according to the speech data and acoustic features of the speaker based on the construction method of the speech processing system of the embodiment of the present application. The speech processing system of the embodiment of the present application is one-to-one corresponding to the speaker and is not applicable to other people. Among them, the construction method of the speech processing system provided in the embodiment of the present application will be described in detail in the corresponding embodiments below.

[0035] Optionally, the speech data to be recognized of the target object includes acoustic features of the target object, and the acoustic features include but are not limited to: timbre, accent, pronunciation habits, etc. of the target object.

[0036] In some embodiments, before S102 , a speech processing system is constructed and trained so as to utilize the speech processing system to process the to-be-recognized speech data of the target object into text data that accurately corresponds to the speech data.

[0037] It should be noted that it is difficult to optimize the speech recognition model (ASR model) for a specific speaker. For example, some speech recognition systems do not open the model optimization training function, or the system users cannot perform targeted optimization training on the speech recognition model for other reasons. In the related technology, training the speech recognition model based on voice data can theoretically alleviate the problem of low recognition rate of the speech recognition model for a specific speaker, but it essentially requires optimization training of the speech recognition model, which will not work without changing the model, resulting in the inability to improve the recognition effect of the speech recognition system for a specific speaker, which greatly limits the use of the speech recognition system in scenarios such as meeting records and criminal investigation.

[0038] It should also be noted that the acoustic characteristics (such as timbre, accent, pronunciation habits, etc.) of each object are different. Therefore, for the same sentence, the output results of the speech recognition model may be different. Thus, there is an adaptable regularity between a specific person and the speech recognition model, that is, an objectively existing law. In related technologies, the prior knowledge of the GPT large model in a certain scenario is used to correct misspelled words in the speech recognition result, without considering the acoustic characteristics of a specific speaker and without using the logical law existing between the speech of a specific speaker and the output of the speech recognition model, which cannot reflect the acoustic relationship between a person and the model, resulting in the inability to improve the recognition accuracy of a specific speaker.

[0039] For example, when the purpose of the target object is to say "do as you please", but due to its unique acoustic characteristics, the speech uttered by the target object when saying this sentence is output as the text "hao zi wei zhi" by the speech recognition model. Then, after learning the specific law corresponding to the speech uttered by the target object and the converted text, the original intention of what the target object said, "do as you please", can be output. However, the current general large language model cannot do this. It can only correct some high-frequency and common speech recognition errors, and cannot correct the speech output according to the acoustic characteristics of a person. For example, for "hao zi wei zhi", the general large language model still outputs "hao zi wei zhi" or other corrected results after processing, but may not be "do as you please".

[0040] Therefore, the speech processing system provided by the embodiments of the present application, on the one hand, does not need to make any modifications or training to the ASR model in the speech processing system. Only a small amount of speech data of a specific speaker is required to improve the recognition performance of the speech processing system for the specific speaker, that is, it can improve the speech recognition rate for the specific speaker without making any changes to the ASR model. On the other hand, the PLM model (Pre-trained Language Model) in the speech processing system of the embodiments of the present application can utilize the mapping relationship between the output text corresponding to the speech of a specific speaker and the correct text.

[0041] Specifically, the construction process of the speech processing system provided by the embodiments of the present application can refer to Figure 2 . As Figure 2 shown, a construction method 200 of a speech processing system provided by the embodiments of the present application may include the following steps: S201 to S207.

[0042] S201. Obtain the historical speech data of the target object and multiple training texts, where the historical speech data includes the acoustic characteristics of the target object.

[0043] In some embodiments, there is no special requirement for the selection of training texts, and any normal and fluent texts can be collected, and the amount of data for the training texts is not limited.

[0044] S202: Input the historical speech data and a plurality of training texts into a pre-built voice-imitation TTS model to obtain a plurality of voice-imitation speech data corresponding to each of the plurality of training texts, wherein the voice-imitation speech data has the same acoustic features as the historical speech data.

[0045] It should be noted that the imitation voice TTS (also known as voice cloning, voice imitation, etc.) technology in this embodiment has a strong voice imitation ability, and some can even achieve a level of realism. The demand for real voice data by imitation voice TTS is constantly decreasing. Mainstream algorithms such as BertVITS2, GPT-SoVITS, XTTS, and Volcano Voice Cloning have reduced the required data volume to 1 to 10 minutes. Therefore, in this embodiment, the data volume demand for the historical voice data of the target object can be basically controlled within 10 minutes.

[0046] In addition, as an optional embodiment, if the data is sufficient, the sound-imitation TTS model can be fine-tuned, that is, the sound-imitation TTS model can be trained according to historical speech data, so as to further improve the realism of the sound-imitation speech data output by the sound-imitation TTS model.

[0047] Thus, the imitation voice TTS model can be used to generate imitation voice data with similar timbre to the target object based on the acquired historical voice data of the target object and multiple training texts. That is, the imitation voice data output by the imitation voice TTS model is consistent with the acoustic features of the historical voice data, solving the problem that real voice is difficult to obtain in large quantities in some scenarios. And it should be understood that since the training text is used as a script for generating imitation voice, after this process is completed, the output imitation voice data should correspond to the training text one by one.

[0048] S203: Input the plurality of imitation voice data into a pre-built ASR model to obtain speech recognition results in text format corresponding to the plurality of imitation voice data.

[0049] In this embodiment, the ASR model is used to realize the recognition of input speech and convert it into text. In other words, the ASR model can be used to recognize the imitation voice data and generate the recognition result in text form.

[0050] It can be understood that this process contains the mapping relationship between the input speech (imitation speech data) and the output result (speech recognition result) under the timbre conditions of a specific speaker (i.e., the target object). When the amount of data is sufficient, it can reflect the recognition rules of the ASR model for the timbre of a specific speaker. For example, "South" may be recognized as "Blue Square" after being read by a certain speaker. This example is just a relatively simple one in practical applications. In fact, the recognition errors caused by the pronunciation of the speaker are often more complicated, and the ASR model is often difficult to correct automatically. However, the text of a certain speaker's speech recognized by the ASR model has a certain rule, and this rule is exactly what the subsequent PLM model needs to learn. It should be pointed out that the ASR model will not be modified or adjusted during the training process.

[0051] S204: Train the PLM model by taking the speech recognition result as the input of a pre-built PLM model and taking the training text as the output of the PLM model.

[0052] Optionally, there are many possibilities for selecting the PLM model, and most of them can realize the functions required by this embodiment. Below, this embodiment takes mT5 (multilingual Text-to-Text Transfer Transformer) as an example to describe the specific training process of the PLM model.

[0053] In specific implementation, mT5 uses T5 (Text-to-Text Transfer Transformer) as the basic model framework, but the training corpus is not limited to English, but expanded to 101 languages, including Chinese. The model structure uses the T5.1.1 version, and the model structure is not repeated here. mT5 is similar to T5 in that it regards any natural language processing task as a "text-to-text" task, that is, the input is text and the output is also text. In other words, the output text of the ASR model is used as input, and the output corrected text is used as the final recognition text, so as to achieve the purpose of improving the recognition rate of the ASR model for a specific speaker.

[0054] In the specific implementation, during the training phase, the speech recognition result is used as the input sentence and the training text is used as the output sentence. After tokenization and embedding, the parameters of the PLM model are trained and adjusted. In this way, by training the PLM model, it learns the mapping relationship between the text output by the ASR model and the training text.

[0055] S205: Determine whether at least one of the number of iterative training times, the correction accuracy, or the loss value of the PLM model meets a preset training stop condition.

[0056] In some embodiments, the preset training stop condition includes at least one of the following: the number of iterative training reaches a first preset threshold, the correction accuracy reaches a second preset threshold, and the number of times the loss value remains continuously non-decreasing reaches a third preset threshold. The loss value is obtained based on a preset loss function.

[0057] S206: If not, adjust the model parameters of the PLM model, and train the adjusted PLM model until the preset training stop condition is met to obtain a trained PLM model.

[0058] It should be noted that since the training text is collected by itself, the amount of data is not limited, so the training data of the PLM model is also not limited. Finally, after sufficient data training, that is, after the preset training stop condition is met, the PLM model has the ability to generate text that is completely consistent with the training text based on the speech recognition results, that is, the ability to correct the speech recognition results.

[0059] S207: construct a speech processing system according to the ASR model and the trained PLM model.

[0060] It can be seen that based on the construction method 200 of the speech processing system provided by the embodiment of the present application, the imitation speech data generated by the imitation speech TTS model is used as the input of the ASR model to generate data for PLM model training. In this way, the mapping relationship between the acoustic features of the target object and the ASR model can be retained, and the PLM model can also learn this mapping relationship and have the ability to correct errors in speech recognition results. Moreover, the accuracy of speech recognition for a specific speaker can be improved without making any modifications to the ASR model.

[0061] Furthermore, using the imitation TTS model to generate imitation speech similar to a specific speaker can reduce the requirements for training data of the specific speaker, as well as the corresponding workload of data cleaning and annotation. At the same time, since this method uses the TTS model to augment the speech data of a specific speaker, it can retain the acoustic characteristics of the specific speaker as much as possible, and then after speech processing, it can retain the direct mapping relationship between the speech of the specific speaker and the processing result. This advantage is suitable for improving the speech recognition performance of important speakers in conference recording scenarios, and improving the speech recognition performance of key figures in criminal investigation scenarios.

[0062] It should be noted that in the above embodiments, the imitation speech data generated by the imitation speech TTS model is used as the input of the ASR model to generate data for PLM model training. This is a preferred way to obtain data for PLM model training to further construct a speech processing system. It can solve the problem of insufficient PLM model training data due to the difficulty in obtaining a large amount of real speech of the target object in some scenarios.

[0063] In another embodiment, when the amount of historical speech data of the target object is sufficient, the specific implementation method of constructing the speech processing system can refer to Figure 3 .

[0064] like Figure 3 As shown, another method 300 for constructing a speech processing system provided in an embodiment of the present application may include the following steps: S301 to S305.

[0065] S301, obtaining historical speech data of a target object and a standard text corresponding to the historical speech data, wherein the historical speech data includes acoustic features of the target object;

[0066] S302, inputting the historical speech data into a pre-built ASR model to obtain a text recognition result of the historical speech data;

[0067] S303, using the text recognition results of the historical speech data as the input of the pre-built PLM model and the standard text as the output of the PLM model to train the PLM model;

[0068] S304, determining whether at least one of the number of iterative training times, the correction accuracy, or the loss value of the PLM model meets a preset training stop condition; if not, adjusting the model parameters of the PLM model, and training the adjusted PLM model until the preset training stop condition is met, thereby obtaining a trained PLM model;

[0069] S305: Obtain a speech processing system according to the ASR model and the trained PLM model.

[0070] Optionally, the preset training stop condition includes at least one of the following: the number of iterative training reaches a first preset threshold, the correction accuracy reaches a second preset threshold, and the number of times the loss value remains continuously non-decreasing reaches a third preset threshold. The loss value is obtained based on a preset loss function.

[0071] The above is a specific implementation method for constructing a speech processing system provided in the embodiment of the present application. By training and adjusting the parameters of the PLM model, the PLM model can learn the mapping relationship between the text output by the target object's speech after passing through the ASR model and the training text, and a high-precision and high-performance speech processing system can be constructed without changing the parameters or structure of the ASR model, so as to improve the accuracy of speech recognition for a specific speaker by using the speech processing system.

[0072] Back to Figure 1 The speech processing method 100 shown. In some embodiments, in S102, the speech data to be recognized is input into a pre-built speech processing system, the speech data to be recognized is converted into initial text data through the ASR model, and the initial text data is corrected through the PLM model to obtain corrected text data.

[0073] As can be seen from the above, the speech processing system can improve the performance of speech recognition for a specific speaker without changing the ASR model. Among them, the ASR model in the speech processing system is not modified during the training process, and the PLM model is obtained after training. In this way, based on the speech processing system, when the speech to be recognized of a specific speaker is input into the ASR model, the output speech recognition result is processed by the PLM model to obtain the corrected recognition result. Through this process, the accuracy of speech recognition for a specific speaker can be improved, and the speech processing of a specific speaker can be converted into accurate text.

[0074] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0075] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a speech processing device 400.

[0076] like Figure 4 As shown, the speech processing device 400 may include:

[0077] An acquisition module 401 is used to acquire speech data to be recognized of a target object, wherein the speech data to be recognized includes acoustic features of the target object;

[0078] The input module 402 is used to input the speech data to be recognized into a pre-built speech processing system to obtain text data corresponding to the speech data to be recognized. The speech processing system at least includes an ASR model and a pre-trained PLM model. The PLM model is trained based on multiple training texts and the speech recognition results output by the ASR model. The speech recognition results are obtained based on the historical speech data of the target object. The speech data to be recognized is consistent with the acoustic features of the historical speech data.

[0079] Optionally, the number of target objects is one.

[0080] In some embodiments, the input module 402 is specifically used to input the speech data to be recognized into a pre-built speech processing system, convert the speech data to be recognized into initial text data through the ASR model, and correct the initial text data through the PLM model to obtain corrected text data.

[0081] In some embodiments, the speech processing device 400 further includes a first building block ( Figure 4 Specifically, the first building block includes the following units:

[0082] A first acquisition unit, configured to acquire historical speech data of a target object and a plurality of training texts, wherein the historical speech data includes acoustic features of the target object;

[0083] A voice imitation unit, used for inputting the historical voice data and a plurality of training texts into a pre-built voice imitation TTS model, to obtain a plurality of voice imitation voice data corresponding to each of the plurality of training texts, wherein the voice imitation voice data has the same acoustic features as the historical voice data;

[0084] The first recognition unit is used to input a plurality of imitation voice data into a pre-built ASR model to obtain a speech recognition result in a text format corresponding to each of the plurality of imitation voice data;

[0085] A first training unit, configured to train the PLM model by using the speech recognition result as an input of a pre-built PLM model and the training text as an output of the PLM model;

[0086] A judging unit, used to judge whether at least one of the number of iterative training, correction accuracy or loss value of the PLM model meets a preset training stop condition;

[0087] A first adjustment unit, configured to adjust the model parameters of the PLM model if the conditions are not met, and train the adjusted PLM model until the preset training stop condition is met, thereby obtaining a trained PLM model;

[0088] The first construction unit is used to construct a speech processing system according to the ASR model and the trained PLM model.

[0089] As an optional embodiment, the first building module further includes a second training unit, which is used to train the voice-imitation TTS model according to the historical speech data.

[0090] In another embodiment, the speech processing device 400 further includes a second building block ( Figure 4 Specifically, the second building block includes the following units:

[0091] A second acquisition unit, configured to acquire historical speech data of a target object and a standard text corresponding to the historical speech data, wherein the historical speech data includes acoustic features of the target object;

[0092] A second recognition unit is used to input the historical voice data into a pre-built ASR model to obtain a text recognition result of the historical voice data;

[0093] A third training unit, configured to train the PLM model by using the text recognition result of the historical speech data as the input of the pre-built PLM model and the standard text as the output of the PLM model;

[0094] a second adjustment unit, configured to determine whether at least one of the number of iterative training times, the correction accuracy rate, or the loss value of the PLM model satisfies a preset training stop condition; if not, to adjust the model parameters of the PLM model, and to train the adjusted PLM model until the preset training stop condition is met, thereby obtaining a trained PLM model;

[0095] The second construction unit is used to construct a speech processing system according to the ASR model and the trained PLM model.

[0096] In some optional embodiments, the preset training stop condition includes at least one of the following: the number of iterative training reaches a first preset threshold, the correction accuracy reaches a second preset threshold, the number of times the loss value remains continuously without decreasing reaches a third preset threshold, and the loss value is obtained based on a preset loss function.

[0097] It should be noted that, for the convenience of description, the above device is described in various modules according to their functions. Of course, when implementing this application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0098] The device of the above embodiment is used to implement the corresponding speech processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0099] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an electronic device.

[0100] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided by this embodiment is shown.

[0101] The electronic device 500 may include a processor 501 and a memory 502 storing computer program instructions.

[0102] Specifically, the processor 501 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.

[0103] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 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. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.

[0104] In certain embodiments, the memory 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 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 method according to one aspect of the present application.

[0105] The processor 501 implements any one of the speech processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .

[0106] In some examples, the electronic device 500 may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.

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

[0108] Bus 510 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus 510 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end 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 510 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.

[0109] Exemplarily, the electronic device 500 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).

[0110] Based on the same technical concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any of the speech processing methods in the above-mentioned embodiments 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.

[0111] Based on the same technical concept, corresponding to any of the above-mentioned embodiments, the present application also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the speech processing method. Corresponding to the execution subject corresponding to each step in each embodiment of the speech processing method, the processor that executes the corresponding step can belong to the corresponding execution subject.

[0112] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0113] 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.

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

[0115] 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.

[0116] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application 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 in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A speech processing method, characterized in that: include: Acquiring speech data to be recognized of a target object, wherein the speech data to be recognized includes acoustic features of the target object; The speech data to be recognized is input into a pre-built speech processing system to obtain text data corresponding to the speech data to be recognized. The speech processing system at least includes an ASR model and a pre-trained PLM model. The PLM model is trained based on multiple training texts and speech recognition results output by the ASR model. The speech recognition results are obtained based on historical speech data of the target object. The speech data to be recognized is consistent with the acoustic features of the historical speech data.

2. The method according to claim 1, characterized in that Before inputting the speech data to be recognized into a pre-built speech processing system, the method further includes: Acquire historical speech data of a target object and a plurality of training texts, wherein the historical speech data includes acoustic features of the target object; Inputting the historical speech data and a plurality of training texts into a pre-built imitation voice TTS model to obtain a plurality of imitation voice data corresponding to each of the plurality of training texts, wherein the imitation voice data has the same acoustic features as the historical speech data; Inputting a plurality of imitation voice data into a pre-built ASR model to obtain speech recognition results in text format corresponding to each of the plurality of imitation voice data; Using the speech recognition result as the input of a pre-built PLM model and the training text as the output of the PLM model, training the PLM model; Determine whether at least one of the number of iterative training times, the correction accuracy, or the loss value of the PLM model meets a preset training stop condition; If not, adjusting the model parameters of the PLM model, and training the adjusted PLM model until the preset training stop condition is met, thereby obtaining a trained PLM model; A speech processing system is constructed according to the ASR model and the trained PLM model.

3. The method according to claim 1, characterized in that: The number of the target object is one; The step of inputting the speech data to be recognized into a pre-built speech processing system to obtain text data corresponding to the speech data to be recognized includes: The speech data to be recognized is input into a pre-built speech processing system, the speech data to be recognized is converted into initial text data through the ASR model, and the initial text data is corrected through the PLM model to obtain corrected text data.

4. The method according to claim 2, characterized in that: Before inputting the historical speech data and a plurality of training texts into a pre-built voice-imitation TTS model, the method further comprises: The voice-imitation TTS model is trained according to the historical speech data.

5. The method according to claim 1, characterized in that Before inputting the speech data to be recognized into a pre-built speech processing system, the method further includes: Acquire historical speech data of a target object and a standard text corresponding to the historical speech data, wherein the historical speech data includes acoustic features of the target object; Inputting the historical speech data into a pre-built ASR model to obtain a text recognition result of the historical speech data; Using the text recognition result of the historical speech data as the input of the pre-built PLM model and using the standard text as the output of the PLM model to train the PLM model; Determine whether at least one of the number of iterative training times, the correction accuracy or the loss value of the PLM model meets a preset training stop condition; if not, adjust the model parameters of the PLM model, and train the adjusted PLM model until the preset training stop condition is met, thereby obtaining a trained PLM model; A speech processing system is constructed according to the ASR model and the trained PLM model.

6. The method according to claim 2 or 5, characterized in that: The preset training stop condition includes at least one of the following: the number of iterative training reaches a first preset threshold, the correction accuracy reaches a second preset threshold, and the number of times the loss value remains continuously without decreasing reaches a third preset threshold, and the loss value is obtained based on a preset loss function.

7. A speech processing device, characterized in that: The device comprises: An acquisition module, used for acquiring speech data to be recognized of a target object, wherein the speech data to be recognized includes acoustic features of the target object; An input module is used to input the speech data to be recognized into a pre-built speech processing system to obtain text data corresponding to the speech data to be recognized, wherein the speech processing system at least includes an ASR model and a pre-trained PLM model, wherein the PLM model is trained based on multiple training texts and speech recognition results output by the ASR model, wherein the speech recognition results are obtained based on historical speech data of a target object, and the speech data to be recognized is consistent with the acoustic features of the historical speech data.

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

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

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the speech processing method as described in any one of claims 1 to 6.