Speech recognition method and apparatus, and electronic device

By using a speech recognition method based on low-resource samples in minority languages, the pre-training model learns phonetic symbol features, solving the problem of low accuracy in speech recognition in minority languages, and improving the accuracy and training efficiency of speech recognition.

WO2024183560A1PCT designated stage expired Publication Date: 2024-09-12DOUYIN VISION CO LTD +1

Patent Information

Application Number
PCT/CN2024/078748
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-03
Filing Date
2024-02-27
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

For minority languages, the speech recognition model has a small number of training speech samples and low accuracy in learning speech features, resulting in low speech recognition accuracy.

Method used

Using a speech recognition method based on low-resource samples, the basic phonetic symbol features of the language are learned through the pre-training model, which reduces the difficulty of secondary training and improves the accuracy of speech feature learning.

Benefits of technology

It improves the accuracy and training efficiency of the speech recognition model, especially in the speech recognition task of minority languages, and enhances the accuracy of speech-to-text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078748_12092024_PF_FP_ABST
    Figure CN2024078748_12092024_PF_FP_ABST
Patent Text Reader

Abstract

A speech recognition method and apparatus, and an electronic device. The method comprises: displaying a speech recognition page, the speech recognition page comprising a speech acquisition control (S201); in response to a touch operation on the speech acquisition control, acquiring speech to be recognized (S202); and performing text recognition processing on said speech to obtain transcription text corresponding to the speech, the text recognition processing being implemented on the basis of a speech recognition model, the speech recognition model being obtained on the basis of low-resource sample training, pre-training of the speech recognition model being implemented on the basis of a phonetic symbol model, and the phonetic symbol model being used for converting speech into a phonetic symbol sequence (S203).
Need to check novelty before this filing date? Find Prior Art

Description

Voice recognition method, device and electronic equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese application with application number 202310207441.8 and application date March 3, 2023, and claims its priority. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0003] The present disclosure relates to the field of speech recognition technology, and in particular to a speech recognition method, device, and electronic device. Background Art

[0004] Speech recognition technology can convert speech into text. For example, speech recognition technology can convert Chinese speech into Chinese text.

[0005] Currently, speech can be processed for text recognition based on a trained speech recognition model to obtain speech-related transcribed text. The speech recognition model can be trained based on a large amount of training speech and transcribed text in the same language.

[0006] Summary of the Invention

[0007] In a first aspect, the present disclosure provides a speech recognition method, which includes: displaying a speech recognition page, wherein the speech recognition page includes a speech acquisition control; acquiring a speech to be recognized in response to a touch operation on the speech acquisition control; and performing text recognition processing on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized, wherein the text recognition processing is implemented based on a speech recognition model, the speech recognition model is obtained based on low-resource sample training, and the pre-training of the speech recognition model is implemented based on a phonetic symbol model, and the phonetic symbol model is used to convert speech into a phonetic symbol sequence.

[0008] In a second aspect, the present disclosure provides a speech recognition device, which includes: a display module for displaying a speech recognition page, wherein the speech recognition page includes a speech acquisition control; a response module for acquiring a speech to be recognized in response to a touch operation on the speech acquisition control; and a processing module for performing text recognition processing on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized, wherein the text recognition processing is implemented based on a speech recognition model, the speech recognition model is obtained based on low-resource sample training, and the pre-training of the speech recognition model is implemented based on a phonetic symbol model, and the phonetic symbol model is used to convert speech into a phonetic symbol sequence.

[0009] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: a memory for storing computer-executable instructions; and a processor for executing the computer-executable instructions stored in the memory, so that the processor executes the speech recognition method as described in the first aspect and various possible aspects of the first aspect.

[0010] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the speech recognition method as described in the first aspect and various possible aspects of the first aspect is implemented.

[0011] In a fifth aspect, an embodiment of the present disclosure provides a computer program, comprising: instructions, which, when executed by a processor, enable the processor to execute the speech recognition method as described in the first aspect and various possible aspects of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0013] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0014] FIG2 is a flow chart of a speech recognition method provided by an embodiment of the present disclosure;

[0015] FIG3 is a schematic diagram of a process for acquiring speech according to an embodiment of the present disclosure;

[0016] FIG4 is a schematic diagram of another process for acquiring speech according to an embodiment of the present disclosure;

[0017] FIG5 is a schematic diagram of a method for training a speech recognition model provided by an embodiment of the present disclosure;

[0018] FIG6 is a schematic diagram of a process for obtaining a sample phonetic symbol sequence according to an embodiment of the present disclosure;

[0019] FIG7 is a schematic diagram of pre-training of a speech recognition model provided by an embodiment of the present disclosure;

[0020] FIG8 is a schematic diagram of the structure of a speech recognition model provided by an embodiment of the present disclosure;

[0021] FIG9 is a schematic diagram of a process for determining a predicted transcript provided by an embodiment of the present disclosure;

[0022] FIG10 is a training process of a speech recognition model provided by an embodiment of the present disclosure;

[0023] FIG11 is a schematic diagram of a method for training a phonetic symbol model according to an embodiment of the present disclosure;

[0024] FIG12 is a schematic diagram of a training process of an encoder provided by an embodiment of the present disclosure;

[0025] FIG13 is a schematic structural diagram of a speech recognition device provided by an embodiment of the present disclosure;

[0026] FIG14 is a schematic diagram of the structure of another speech recognition device provided by an embodiment of the present disclosure; and

[0027] FIG15 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0029] To facilitate understanding, the concepts involved in the embodiments of the present disclosure are explained below.

[0030] Electronic device: is a device with wireless transceiver function. The electronic device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.). The electronic device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, an on-board electronic device, a wireless terminal in self-driving, a wireless electronic device in remote medical care, a wireless electronic device in a smart grid, a wireless electronic device in transportation safety, a wireless electronic device in a smart city, a wireless electronic device in a smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present disclosure can also be called a terminal, user equipment (UE), an access electronic device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote electronic device, a mobile device, a UE electronic device, a wireless communication device, a UE agent or a UE device, etc. Electronic devices may also be stationary or mobile.

[0031] In related technologies, speech recognition technology can convert speech into text. Currently, electronic devices can perform text recognition processing on speech based on trained speech recognition models. These models can be trained based on a large number of training speech and transcribed text in the same language. However, for minority languages, speech acquisition is more difficult, and the number of training speech samples is relatively small. When speech recognition models are trained based on low-resource training speech samples, the accuracy of the speech features learned by the speech recognition models is low. This can lead to the speech recognition models being unable to accurately recognize speech in minority languages, resulting in low speech recognition accuracy. This, in turn, leads to low accuracy in text conversion performed by the speech recognition models.

[0032] In view of this, an embodiment of the present disclosure provides a voice recognition method, in which an electronic device can display a voice recognition page, and in response to a touch operation on a voice acquisition control in the voice recognition page, perform voice recording to obtain the voice to be recognized, perform text recognition processing on the voice to be recognized, and obtain a transcribed text corresponding to the voice to be recognized, wherein the text recognition processing is implemented based on a voice recognition model, and the voice recognition model is obtained based on low-resource sample training. In this way, since the voice recognition model can learn the more basic phonetic features of the language during the pre-training process, the pre-training accuracy of the voice recognition model is high, which can reduce the difficulty of the secondary training of the voice recognition model. Therefore, the voice recognition model is trained based on low-resource training voice samples, and can also learn more accurate voice features, thereby improving the accuracy of voice-to-text conversion.

[0033] The application scenario of the embodiment of the present disclosure is described below with reference to FIG1 .

[0034] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1 shows the HuBERT model. The HuBERT model includes a text output layer, and the HuBERT model can perform text conversion processing on speech. A segment of speech is input into the HuBERT model, and the HuBERT model can output the text corresponding to the segment of speech. In the embodiment of the present disclosure, since the pseudo-labels pre-trained by the HuBERT model are the phonetic symbol sequences provided by the phonetic symbol model, the accuracy of the pre-training of the HuBERT model is relatively high. When the HuBERT model is trained, since the effect of the pre-trained HuBERT model is relatively good, the training efficiency of the HuBERT model is relatively high, and the accuracy of the HuBERT model is relatively high, thereby improving the accuracy of speech recognition.

[0035] It should be noted that Figure 1 only illustrates an application scenario of the embodiment of the present disclosure in the form of an example, and does not limit the application scenario of the embodiment of the present disclosure. The HuBERT model can also be other self-supervised speech recognition models, and the embodiment of the present disclosure does not limit this.

[0036] The following detailed description of the technical solution of the present disclosure and how the technical solution of the present disclosure solves the above-mentioned technical problems is provided with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0037] FIG2 is a flow chart of a speech recognition method provided by an embodiment of the present disclosure. Referring to FIG2 , the method may include steps S201 to S203.

[0038] In step S201, a voice recognition page is displayed.

[0039] The execution subject of the embodiments of the present disclosure may be an electronic device or a voice recognition device provided in the electronic device, wherein the voice recognition device may be implemented based on software or based on a combination of software and hardware, which is not limited in the embodiments of the present disclosure.

[0040] The speech recognition page includes a speech acquisition control. In some embodiments, the speech acquisition control can acquire speech. For example, the speech acquisition control can be a recording control. When a user clicks the recording control, the electronic device can acquire real-time speech. For example, when a user clicks the speech acquisition control, the electronic device can display a page containing multiple speech sounds. The user can click any speech sound to obtain the speech sound to be recognized.

[0041] In some embodiments, in response to a touch operation on a voice recognition application, the electronic device may display a voice recognition page. For example, when a user clicks on a voice recognition application on a display page of the electronic device, the electronic device may display a voice recognition page, which may include a voice acquisition control.

[0042] In step S202, in response to a touch operation on a voice acquisition control, a voice to be recognized is acquired.

[0043] The speech to be recognized may be speech to be subjected to text recognition. In some embodiments, in response to a touch operation on a speech acquisition control, the speech to be recognized is acquired. There are two feasible implementation methods as follows.

[0044] A possible implementation:

[0045] In response to a touch operation on the voice acquisition control, a voice page is displayed. The voice page may include multiple voices. For example, when a user clicks the voice acquisition control in the voice recognition page, the electronic device may jump from the voice recognition page to the voice page.

[0046] In response to a touch operation on a target voice among multiple voices, the electronic device can determine the target voice as the voice to be recognized. For example, if the voice page includes Voice 1, Voice 2, and Voice 3, if the user clicks Voice 1, the electronic device determines that the target voice is Voice 1 and determines Voice 1 as the voice to be recognized. If the user clicks Voice 2, the electronic device determines that the target voice is Voice 2 and determines Voice 2 as the voice to be recognized. If the user clicks Voice 3, the electronic device determines that the target voice is Voice 3 and determines Voice 3 as the voice to be recognized.

[0047] The following describes the process of acquiring voice by the electronic device with reference to FIG3 .

[0048] Figure 3 is a schematic diagram of a voice acquisition process provided by an embodiment of the present disclosure. Figure 3 shows an electronic device. The electronic device displays page 301, which includes a voice acquisition control and a confirmation control. When a user clicks the voice acquisition control, the electronic device's display page jumps from page 301 to page 302.

[0049] 3 , page 302 includes voice A, voice B, voice C, and a confirmation control. When the user clicks voice C, the control corresponding to voice A is highlighted. After the user clicks the confirmation control, the electronic device determines voice C as the voice to be recognized obtained by the electronic device.

[0050] In this feasible implementation, the electronic device can pre-store multiple voices. In response to the user's operation, the electronic device can determine any segment of voice as the acquired voice to be recognized, thereby improving the flexibility of voice acquisition.

[0051] Another possible implementation:

[0052] In response to a touch operation on the voice acquisition control, voice recording is performed to obtain the voice to be recognized. For example, when the user clicks the voice acquisition control in the voice recognition page, the electronic device can start recording, and the electronic device can determine the recorded voice as the voice to be recognized acquired by the electronic device.

[0053] The following describes the process of an electronic device acquiring a speech to be recognized with reference to FIG4 .

[0054] FIG4 is a schematic diagram of another process for acquiring voice according to an embodiment of the present disclosure. FIG4 illustrates an electronic device. The display page of the electronic device includes a voice acquisition control. When a user clicks the voice acquisition control, the electronic device begins recording the user's voice. When the user clicks the stop recording control, the electronic device stops recording the user's voice and determines the recorded user's voice as the voice to be recognized acquired by the electronic device.

[0055] In this feasible implementation, the electronic device can acquire the user's voice in real time, and determine the user's voice as the voice to be recognized acquired by the electronic device, thereby improving the flexibility of voice acquisition.

[0056] In step S203, text recognition processing is performed on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized.

[0057] The transcribed text may be the text associated with the speech to be recognized. For example, if the speech to be recognized is Chinese, the transcribed text associated with the Chinese speech may be the Chinese text corresponding to the Chinese speech; if the speech to be recognized is English, the transcribed text associated with the English speech may be the English text corresponding to the English speech.

[0058] In some embodiments, text recognition processing is implemented based on a speech recognition model. For example, if the speech to be recognized is in Chinese, the electronic device may perform text recognition processing based on a speech recognition model with Chinese speech conversion capabilities; if the speech to be recognized is in English, the electronic device may perform text recognition processing based on a speech recognition model with English speech conversion capabilities.

[0059] It should be noted that the language of the speech to be recognized obtained in the embodiment of the present disclosure is the same as the target language. In actual application, the electronic device can set multiple types of speech recognition models, and different types of speech recognition models can convert different languages ​​of speech.

[0060] It should be noted that the various types of speech recognition models in the embodiments of the present disclosure may also be integrated into the same model, and the embodiments of the present disclosure do not limit this.

[0061] In some embodiments, the speech recognition model is trained based on low-resource samples. The low-resource samples may be samples with less training data. For example, the low-resource samples may be a small amount of training speech in the same language and the corresponding transcribed text of the training speech. For example, the low-resource samples are training speech and the corresponding transcribed text of the training speech whose number is less than a predetermined threshold. In the embodiments of the present disclosure, since the speech recognition model can be trained based on low-resource samples, the training efficiency of the speech recognition model is higher.

[0062] In some embodiments, the pre-training of the speech recognition model is implemented based on a phonetic symbol model, which is used to convert speech into a phonetic symbol sequence. For example, the phonetic symbol model can convert any speech segment into a phonetic symbol sequence, where the phonetic symbol sequence can be a set of phonetic symbols corresponding to the sample speech.

[0063] For example, phonetic symbols can be symbols that record phonemes of speech. The pinyin letters of Chinese, the international phonetic symbols of English, etc. can all be the phonetic symbols shown in the embodiments of the present disclosure. If the speech input to the phonetic symbol model is Chinese, the phonetic symbol model can output the pinyin sequence of the speech. If the speech input to the phonetic symbol model is English, the phonetic symbol model can output the international phonetic symbol sequence of the speech.

[0064] The phonetic model is derived from training speech in multiple languages ​​and the corresponding training phonetic sequences for each training speech. For example, during actual training, the phonetic model can learn the most basic phonetic features of a language. Therefore, the number of training speech can be small, but the training speech should be in a variety of languages. This allows the model to learn more phonetic features, thereby improving its accuracy.

[0065] An embodiment of the present disclosure provides a speech recognition method. An electronic device can display a speech recognition page, wherein the speech recognition page includes a speech acquisition control. In response to a touch operation on the speech acquisition control in the speech recognition page, a speech to be recognized is acquired (for example, a speech recording is performed to obtain the speech to be recognized), and text recognition processing is performed on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized. The text recognition processing is implemented based on a speech recognition model, and the speech recognition model is trained based on low-resource samples. In this way, since the pre-training of the speech recognition model is implemented based on a phonetic symbol model, and the phonetic symbol model can convert speech into a phonetic symbol sequence, the speech recognition model can learn relatively basic phonetic symbol features of the language during the pre-training process. Since the speech recognition model can learn relatively basic phonetic symbol features of the language based on the phonetic symbol model during the pre-training process of the speech recognition model, the pre-training accuracy of the speech recognition model is high, which can reduce the difficulty of secondary training of the speech recognition model. Therefore, the speech recognition model can learn relatively accurate speech features when trained based on low-resource training speech samples. Speech recognition processing of speech by the speech recognition model can improve the accuracy of speech recognition.

[0066] Based on the embodiment shown in FIG. 2 , the training method of the above-mentioned speech recognition model will be described below in conjunction with FIG. 5 .

[0067] FIG5 is a schematic diagram of a method for training a speech recognition model provided by an embodiment of the present disclosure. Referring to FIG5 , the method flow includes steps S501 to S503.

[0068] In step S501, a plurality of first sample speech sounds are obtained, and a speech recognition model is pre-trained based on the plurality of first sample speech sounds and a phonetic symbol model.

[0069] In some embodiments, the first sample voice may be in any language, for example, Chinese, English, or French.

[0070] It should be noted that the first sample speech may also be any segment of speech, and the embodiment of the present disclosure does not limit this.

[0071] In some embodiments, the electronic device can obtain multiple first sample voices from the network. For example, since the first sample voices do not require manual labeling training labels, the electronic device can obtain any publicly available voice segment from the network and determine the segment as the first sample voice.

[0072] In some embodiments, the electronic device may receive the first sample voice sent by another device. For example, a server may collect multiple first sample voices in advance, and the electronic device may receive the multiple first sample voices sent by the server.

[0073] In some embodiments, the electronic device may obtain the first sample voice from a database. For example, the database may pre-store multiple first sample voices, and thus the electronic device may obtain multiple first sample voices from the database.

[0074] It should be noted that the electronic device may also obtain multiple first sample voices based on any other feasible implementation method, and the embodiment of the present disclosure is not limited to this.

[0075] In some embodiments, a speech recognition model is pre-trained based on multiple first sample speech and phonetic symbol models, including: performing speech conversion processing on the multiple first sample speech based on the phonetic symbol model to obtain multiple sample phonetic symbol sequences associated with the multiple sample speech, and pre-training the speech recognition model based on the multiple first sample speech and the multiple sample phonetic symbol sequences.

[0076] The phonetic symbol model is obtained based on training speech in multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech. For example, the electronic device can input a first sample speech into the phonetic symbol model, and the phonetic symbol model can output a sample phonetic symbol sequence corresponding to the first sample speech.

[0077] The process of obtaining a sample phonetic symbol sequence is described below with reference to FIG6 .

[0078] FIG6 is a schematic diagram of a process for obtaining a sample phonetic symbol sequence provided by an embodiment of the present disclosure. FIG6 shows a first sample speech A, a first sample speech B, and a phonetic symbol model. The phonetic symbol model can convert speech into a phonetic symbol sequence corresponding to the speech. The first sample speech A and the first sample speech B are input into the phonetic symbol model, and the phonetic symbol model can output a sample phonetic symbol sequence a corresponding to the first sample speech A and a sample phonetic symbol sequence b corresponding to the first sample speech B. In this way, based on the phonetic symbol model, a more accurate pseudo-label for the speech recognition model can be obtained, thereby improving the training efficiency and training accuracy of the secondary training of the speech recognition model.

[0079] In some embodiments, a speech recognition model is pre-trained based on multiple first sample speech and multiple sample phonetic symbol sequences, including: processing the multiple first sample speech based on the speech recognition model to obtain multiple first predicted phonetic symbol sequences associated with the multiple first sample speech, and for any first predicted phonetic symbol sequence, determining the loss between the first predicted phonetic symbol sequence and the sample phonetic symbol sequence associated with the first predicted phonetic symbol sequence, and pre-training the speech recognition model based on the loss.

[0080] For example, the electronic device may process the plurality of first speech samples based on the phonetic symbol model to obtain a plurality of first predicted phonetic symbol sequences associated with the plurality of first speech samples. For example, if the speech recognition model includes a HuBERT model, the HuBERT model may process the first speech samples to obtain a first predicted phonetic symbol sequence corresponding to the first speech samples.

[0081] For example, if the speech recognition model processes the first sample speech and obtains a first predicted phonetic symbol sequence, and the phonetic symbol model processes the first sample speech and obtains a sample phonetic symbol sequence, the speech recognition model can pre-train the speech recognition model's encoder based on the loss between the first predicted phonetic symbol sequence and the sample phonetic symbol sequence. In this way, the encoder in the speech recognition model's pre-training phase can learn relatively basic linguistic features (phonetic symbol features), resulting in a higher pre-training accuracy for the speech recognition model. This reduces the difficulty of the speech recognition model's secondary training and allows the speech recognition model to be trained based on low-resource training samples.

[0082] The following describes the pre-training process of the speech recognition model with reference to FIG7 .

[0083] Figure 7 is a schematic diagram of a pre-training process for a speech recognition model provided by an embodiment of the present disclosure. Figure 7 shows a first sample speech, a phonetic symbol model, and a speech recognition model. The phonetic symbol model can convert speech into a corresponding phonetic symbol sequence, and the pre-trained portion of the speech recognition model can be an encoder.

[0084] Referring to Figure 7 , a first sample speech is input to the phonetic symbol model, which can output a sample phonetic symbol sequence related to the first sample speech. This sample phonetic symbol sequence can serve as pseudo labels pre-trained for the speech recognition model. The first sample speech is also input to the speech recognition model, which can output a first predicted phonetic symbol sequence related to the first sample speech.

[0085] As shown in Figure 7, the speech recognition model can obtain the loss between the sample phonetic symbol sequence and the first predicted phonetic symbol sequence, and based on this loss, update the model parameters of the speech recognition model. In this way, the speech recognition model can obtain more accurate pseudo-labels for pre-training using the phonetic symbol model, saving labor costs and improving pre-training efficiency and accuracy.

[0086] In step S502, a plurality of second sample speech sounds in a target language and a target transcription text corresponding to each second sample speech sound are obtained.

[0087] The target language can be the language of the speech to be recognized. For example, if the speech recognition model needs to recognize Chinese speech, the target language can be Chinese; if the speech recognition model needs to recognize English speech, the target language can be English; if the speech recognition model needs to recognize French speech, the target language can be French.

[0088] In some embodiments, the electronic device may determine the target language based on a training request for a speech recognition model.

[0089] In some embodiments, the speech recognition method further includes: before obtaining a plurality of second sample speech of the target language, receiving a training request for the speech recognition model, the training request including an identifier of the target language; and determining the target language based on the identifier of the target language. For example, an electronic device may receive a training request for a speech recognition model sent by a server or other electronic device, the training request including an identifier of the target language, and the electronic device may determine the target language based on the identifier of the target language. For example, if the training request for the speech recognition model sent by the server to the electronic device includes an identifier of Chinese, it means that the training goal of the speech recognition model is to recognize Chinese speech, and therefore, the electronic device may determine that the target language is Chinese.

[0090] The second sample voice may be a voice in the target language. For example, if the target language is Chinese, the second sample voice may be a voice in Chinese; if the target language is English, the second sample voice may be a voice in English; if the target language is French, the second sample voice may be a voice in French. In some embodiments, the electronic device may obtain the second sample voice in the target language from a network. For example, if the target language is Chinese, the electronic device may obtain a publicly available voice in Chinese from the network; if the target language is English, the electronic device may obtain a publicly available voice in English from the network.

[0091] It should be noted that the electronic device can obtain the second sample voice according to any other feasible implementation method, and the embodiment of the present disclosure is not limited to this.

[0092] The target transcription text may be the transcription text corresponding to the second sample speech. For example, if the second sample speech is in English, the target transcription text may be the English text corresponding to the second sample speech. If the second sample speech is in Chinese, the target transcription text may be the Chinese text corresponding to the second sample speech. For example, if the second sample speech is in Chinese and is the Chinese text "Today's weather is really good", the target transcription text corresponding to the second sample speech may be the Chinese text "Today's weather is really good".

[0093] In some embodiments, the electronic device may receive a target transcribed text corresponding to a second sample speech sent from another device. For example, in actual applications, a database may pre-store the second sample speech in the target language and the target transcribed text corresponding to the second sample speech. When the electronic device trains a speech recognition model, the target transcribed text corresponding to the second sample speech in the target language and the second sample speech may be obtained from the database. It should be noted that the target transcribed text may be manually recognized text, which can improve the training accuracy of the speech recognition model.

[0094] It should be noted that the electronic device may also obtain the target transcription text corresponding to the second sample speech according to any other feasible implementation method, and the embodiment of the present disclosure is not limited to this.

[0095] In step S503, the pre-trained speech recognition model is trained based on the plurality of second sample speech and target transcription text.

[0096] In some embodiments, the electronic device can train the pre-trained speech recognition model based on the following feasible implementation method: process the second sample speech based on the speech recognition model to obtain the predicted transcription text corresponding to the second sample speech, and train the pre-trained speech recognition model based on the target transcription text and the predicted transcription text.

[0097] Specifically, the speech recognition model includes a pre-trained encoder and a text output layer (decoder). For example, the speech recognition model may include a pre-trained encoder and a text output layer. In the specific scenario of speech-to-text conversion, the text output layer can convert the speech features output by the pre-trained encoder into text information. For example, after the encoder pre-training is completed, the text output layer can be added to the speech recognition model to obtain the speech recognition model of the embodiment of the present disclosure, and then the speech recognition model as a whole can be trained.

[0098] The structure of the speech recognition model is described below with reference to FIG8 .

[0099] FIG8 is a schematic diagram of the structure of a speech recognition model provided in an embodiment of the present disclosure. FIG8 shows the speech recognition model. The speech recognition model includes an encoder and a text output layer. The encoder is a pre-trained model obtained based on the speech recognition method in the embodiment shown in FIG2 . The text output layer can process the output of the encoder and then convert the output of the encoder into text, so that the speech recognition model has the function of converting speech to text.

[0100] In some embodiments, the electronic device may obtain the predicted transcribed text corresponding to the second sample speech based on the following feasible implementation: an encoder based on a speech recognition model processes the second sample speech to obtain a second predicted phonetic symbol sequence corresponding to the second sample speech, and a decoder based on the speech recognition model processes the second predicted phonetic symbol sequence to obtain the predicted transcribed text. For example, the decoder of the speech recognition model may be a text output layer, and the electronic device may process the second sample speech based on a pre-trained encoder of the speech recognition model to obtain a second predicted phonetic symbol sequence, and restore the second predicted phonetic symbol sequence based on the text output layer to obtain the transcribed text predicted by the speech recognition model based on the second sample speech.

[0101] The process of determining the predicted transcription text is described below with reference to FIG9 .

[0102] FIG9 is a schematic diagram of a process for determining a predicted transcript according to an embodiment of the present disclosure. FIG9 illustrates a second sample speech and a speech recognition model. The speech recognition model includes an encoder and a text output layer. The encoder is pre-trained based on the speech recognition method of the embodiment shown in FIG2 .

[0103] Please refer to Figure 9. The second sample speech is input into the encoder in the speech recognition model. The encoder of the speech recognition model can output a second predicted phonetic symbol sequence related to the second sample speech, and the second predicted phonetic symbol sequence is input into the text output layer. The text output layer can output the predicted transcription text corresponding to the second sample speech based on the second predicted phonetic symbol sequence.

[0104] In some embodiments, training a pre-trained speech recognition model based on the target transcript and the predicted transcript includes obtaining a loss between the target transcript and the predicted transcript, and retraining the pre-trained speech recognition model based on the loss between the target transcript and the predicted transcript. For example, the speech recognition model may determine a loss function based on the loss between the target transcript and the predicted transcript, and then update model parameters in the speech recognition model based on the loss function.

[0105] The following describes the training process of the speech recognition model with reference to FIG10 .

[0106] Figure 10 shows a training process of a speech recognition model provided by an embodiment of the present disclosure. Figure 10 shows the second sample speech, the speech recognition model, and the target transcribed text corresponding to the second sample speech. The speech recognition model includes an encoder and a text output layer. The second sample speech is input to the encoder in the speech recognition model, and the encoder of the speech recognition model can output a second predicted phonetic symbol sequence related to the second sample speech, and the second predicted phonetic symbol sequence is input to the text output layer, and the text output layer can output a predicted transcribed text corresponding to the second sample speech based on the second predicted phonetic symbol sequence. Based on the target transcribed text and the predicted transcribed text corresponding to the second sample speech, the loss is determined, and the model parameters in the speech recognition model are updated according to the loss. In this way, since the speech recognition model is a pre-trained model, and the features related to the phonetic symbol information output by the encoder of the speech recognition model are more basic speech representations, the speech recognition model can be trained based on a small amount of annotated second sample speech, thereby improving the efficiency of model training.

[0107] The disclosed embodiment provides a method for training a speech recognition model, wherein an electronic device can obtain a plurality of first sample speech sounds, and pre-train the speech recognition model based on the plurality of first sample speech sounds and a phonetic symbol model, obtain a plurality of second sample speech sounds of a target language and a target transcription text corresponding to each second sample speech sound, and train the pre-trained speech recognition model based on the plurality of second sample speech sounds and the target transcription text. In this way, since the speech recognition model can learn the more basic phonetic symbol features of the language during pre-training, and the pre-trained pseudo-labels are phonetic symbol sequences provided by the phonetic symbol model, the pre-training accuracy of the speech recognition model is high. In this way, the difficulty of secondary training of the speech recognition model can be reduced, so that the speech recognition model can be trained based on low-resource training samples, thereby improving the training efficiency and model accuracy of the speech recognition model.

[0108] In any of the above embodiments, the above speech recognition method further includes a method for training a phonetic symbol model. The following describes the method for training a phonetic symbol model in conjunction with FIG. 11 .

[0109] FIG11 is a schematic diagram of a method for training a phonetic symbol model provided by an embodiment of the present disclosure. Referring to FIG11 , the training method includes steps S1101 to S1103.

[0110] In step S1101, training speech in multiple languages ​​is obtained.

[0111] Specifically, the training speech is used to train the phonetic symbol model, and the training languages ​​may include multiple languages. In some embodiments, the electronic device may obtain the training speech from a network. For example, the electronic device may obtain speech in multiple languages ​​from a network as training speech for the phonetic symbol model. In some embodiments, the electronic device may receive training speech from other devices. For example, the electronic device may receive training speech in multiple languages ​​from a server, or the electronic device may obtain training speech in multiple languages ​​from a database, although this is not limited in the presently disclosed embodiments.

[0112] In some embodiments, since the phonetic symbol model is used to obtain the phonetic symbol sequence of speech, the phonetic symbol model needs to be trained based on speech of more languages ​​so that the phonetic symbol model can learn more phonetic symbol information. For example, in actual application, the number of training speech for the phonetic symbol model can be small, but the languages ​​of the training speech can be more, which can improve the accuracy of the phonetic symbol model. For example, the training speech of the phonetic symbol model can include 100 languages, and each language can include 10 to 20 speech. In this way, even if the language is a small language with a small number of users, the electronic device can obtain enough training speech to train the phonetic symbol model.

[0113] In step S1102, a training phonetic symbol sequence corresponding to each training speech is obtained.

[0114] In some embodiments, obtaining the training phonetic symbol sequence corresponding to each training speech includes: determining a training text corresponding to each training speech; and determining the training phonetic symbol sequence associated with the training speech based on the training text.

[0115] For example, the electronic device may obtain the training phonetic symbol sequence corresponding to each training speech according to the following feasible implementation method: determining the training text corresponding to each training speech. The training text may be the transcribed text corresponding to the training speech. For example, if the training speech is the Chinese speech "Have you eaten?", the training text corresponding to the training speech may be the Chinese text "Have you eaten?".

[0116] In some embodiments, the electronic device may obtain the training text corresponding to the training speech according to any feasible implementation method, and the embodiments of the present disclosure are not limited to this.

[0117] The electronic device may determine a training phonetic symbol sequence associated with the training speech based on the training text.

[0118] In some embodiments, the training text includes words. Determining the training phonetic symbol sequence associated with the training speech based on the training text includes: identifying the phonetic symbols corresponding to the words to obtain the training phonetic symbol sequence corresponding to the training speech.

[0119] For example, the electronic device may obtain multiple words included in each training speech and determine a training phonetic symbol sequence based on the multiple words. For example, the electronic device may obtain multiple words included in each training speech and recognize the phonetic symbols corresponding to the words, thereby obtaining a training phonetic symbol sequence corresponding to the training speech.

[0120] It should be noted that the electronic device in the embodiment of the present disclosure can determine the training phonetic symbol sequence corresponding to the training speech based on any feasible implementation method, and the embodiment of the present disclosure is not limited to this.

[0121] In step S1103 , the phonetic symbol model is trained based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to each training speech.

[0122] In some embodiments, the electronic device trains the phonetic symbol model based on the following feasible implementation: for any training speech, the electronic device processes the training speech based on the phonetic symbol model to obtain a third predicted phonetic symbol sequence, and trains the phonetic symbol model based on the third predicted phonetic symbol sequence and the training phonetic symbol sequence corresponding to the training speech. For example, the electronic device may update parameters in the phonetic symbol model based on the loss between the third predicted phonetic symbol sequence and the actual training phonetic symbol sequence of the training speech.

[0123] The training process of the phonetic symbol model is described below with reference to FIG12 .

[0124] FIG12 is a schematic diagram of a training process of an encoder provided by an embodiment of the present disclosure. FIG12 shows a training speech and a phonetic symbol model. The training speech is input into the phonetic symbol model, and the phonetic symbol model can output a third predicted phonetic symbol sequence. The electronic device (not shown in FIG12 ) can determine the training text corresponding to the training speech based on the training speech, and obtain the training phonetic symbol sequence corresponding to the training speech based on the training text. The phonetic symbol model can update the parameters in the phonetic symbol model based on the loss between the third predicted phonetic symbol sequence and the training phonetic symbol sequence.

[0125] In some embodiments, after the phonetic symbol model training is completed, the electronic device may further obtain the training speech of the target language and the target phonetic symbol sequence corresponding to the training speech of the target language. For example, if the target language is Chinese, the electronic device may obtain the training speech of Chinese from the training speech of multiple languages, and determine the phonetic symbol sequence corresponding to the training speech of Chinese as the target phonetic symbol sequence; if the target language is English, the electronic device may obtain the training speech of English from the training speech of multiple languages, and determine the phonetic symbol sequence corresponding to the training speech of English as the target phonetic symbol sequence.

[0126] The electronic device can update the parameters of the phonetic symbol model based on the training speech and target phonetic symbol sequence of the target language. For example, after the phonetic symbol model training is completed, the electronic device can also adjust the parameters of the phonetic symbol model based on the training speech and target phonetic symbol sequence of the target language, so that the phonetic symbol model can accurately determine the phonetic symbol sequence corresponding to the speech of the target language, thereby improving the accuracy of the phonetic symbol model and improving the accuracy of speech recognition. For example, if the target language is Chinese, then after the phonetic symbol model training is completed, the electronic device can adjust the parameters of the phonetic symbol model based on the training speech and target phonetic symbol sequence (label) of Chinese. In this way, compared with the phonetic symbol model after the training is completed, the phonetic symbol model after parameter adjustment can more accurately determine the phonetic symbol sequence of the target language speech.

[0127] The disclosed embodiments provide a method for training a phonetic symbol model, which obtains training speech in multiple languages, determines a training text corresponding to each training speech, determines a training phonetic symbol sequence associated with the training speech based on the training text, and trains the phonetic symbol model based on the training speech in multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech. In this way, the phonetic symbol model can accurately output the phonetic symbol sequence corresponding to the speech, and the electronic device can also adjust the parameters of the trained phonetic symbol model based on the training speech and phonetic symbol sequence in the target language, thereby improving the accuracy of the phonetic symbol model. Since the phonetic symbol model can assist in the pre-training of the speech recognition model, the accuracy of the pre-training of the speech recognition model can be improved.

[0128] FIG13 is a schematic diagram of the structure of a speech recognition device provided by an embodiment of the present disclosure. Referring to FIG13 , the speech recognition device 130 includes a display module 131 , a response module 132 , and a processing module 133 .

[0129] The display module 131 is used to display a voice recognition page, which includes a voice acquisition control.

[0130] The response module 132 is configured to acquire the speech to be recognized in response to a touch operation on the speech acquisition control.

[0131] The processing module 133 is used to perform text recognition processing on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized. The text recognition processing is implemented based on a speech recognition model, and the speech recognition model is obtained by training based on low-resource samples. The pre-training of the speech recognition model is implemented based on a phonetic symbol model, and the phonetic symbol model is used to convert speech into a phonetic symbol sequence.

[0132] According to one or more embodiments of the present disclosure, the response module 132 is used to: display a voice page in response to a touch operation on the voice acquisition control, wherein the voice page includes multiple voices; and determine the target voice as the voice to be recognized in response to a touch operation on a target voice among the multiple voices.

[0133] According to one or more embodiments of the present disclosure, the response module 132 is configured to perform voice recording in response to a touch operation on the voice acquisition control to obtain the voice to be recognized.

[0134] The speech recognition device provided in the embodiment of the present disclosure can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0135] FIG14 is a schematic diagram of the structure of another speech recognition device provided in an embodiment of the present disclosure. Referring to FIG14 , based on the embodiment shown in FIG13 , the speech recognition device 130 further includes a training module 134. The training module 134 is configured to: obtain a plurality of first sample speech sounds, and pre-train the speech recognition model based on the plurality of first sample speech sounds and the phonetic symbol model; obtain a plurality of second sample speech sounds in a target language and target transcripts corresponding to each second sample speech sound; and train the pre-trained speech recognition model based on the plurality of second sample speech sounds and the target transcripts.

[0136] According to one or more embodiments of the present disclosure, the training module 134 is configured to: receive a training request for the speech recognition model, wherein the training request includes an identifier of a target language; and determine the target language based on the identifier of the target language.

[0137] According to one or more embodiments of the present disclosure, the training module 134 is used to: perform speech conversion processing on the multiple first sample speech sounds based on the phonetic symbol model to obtain multiple sample phonetic symbol sequences associated with the multiple first sample speech sounds, wherein the phonetic symbol model is obtained based on training speech sounds of multiple languages ​​and training phonetic symbol sequences corresponding to each of the training speech sounds; and pre-train the speech recognition model based on the multiple first sample speech sounds and the multiple sample phonetic symbol sequences.

[0138] According to one or more embodiments of the present disclosure, the training module 134 is used to: process the multiple first sample speech sounds based on the speech recognition model to obtain multiple first predicted phonetic symbol sequences associated with the multiple first sample speech sounds; for any first predicted phonetic symbol sequence, determine the loss between the first predicted phonetic symbol sequence and the sample phonetic symbol sequence associated with the first predicted phonetic symbol sequence; and pre-train the speech recognition model based on the loss.

[0139] According to one or more embodiments of the present disclosure, the training module 134 is used to: process the second sample speech based on the speech recognition model to obtain a predicted transcription text corresponding to the second sample speech; and train the pre-trained speech recognition model based on the target transcription text and the predicted transcription text.

[0140] According to one or more embodiments of the present disclosure, the training module 134 is used to: process the second sample speech based on the encoder of the speech recognition model to obtain a second predicted phonetic symbol sequence corresponding to the second sample speech; and process the second predicted phonetic symbol sequence based on the decoder of the speech recognition model to obtain the predicted transcription text.

[0141] According to one or more embodiments of the present disclosure, the training module 134 is further used to: obtain training speech in multiple languages; obtain a training phonetic symbol sequence corresponding to each training speech; and train the phonetic symbol model based on the training speech in multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech.

[0142] According to one or more embodiments of the present disclosure, the training module 134 is configured to: determine a training text corresponding to each training speech; and determine a training phonetic symbol sequence associated with the training speech based on the training text.

[0143] According to one or more embodiments of the present disclosure, the training text includes words; the training module 134 is configured to identify phonetic symbols corresponding to the words to obtain a training phonetic symbol sequence corresponding to the training speech.

[0144] According to one or more embodiments of the present disclosure, the training module 134 is used to: for any training speech, process the training speech based on the phonetic symbol model to obtain a third predicted phonetic symbol sequence; and train the phonetic symbol model based on the third predicted phonetic symbol sequence and the training phonetic symbol sequence corresponding to the training speech.

[0145] The speech recognition device provided in the embodiment of the present disclosure can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0146] FIG15 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Please refer to FIG15 , which shows a schematic diagram of the structure of an electronic device 1500 suitable for implementing an embodiment of the present disclosure. The electronic device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG15 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0147] As shown in FIG15 , the electronic device 1500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1502 or a program loaded from a storage device 1508 into a random access memory (RAM) 1503. Various programs and data required for the operation of the electronic device 1500 are also stored in the RAM 1503. The processing device 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An input / output (I / O) interface 1505 is also connected to the bus 1504.

[0148] Typically, the following devices may be connected to the I / O interface 1505: an input device 1506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1509. The communication device 1509 may allow the electronic device 1500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 15 shows an electronic device 1500 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0149] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 1509, or installed from the storage device 1508, or installed from the ROM 1502. When the computer program is executed by the processing device 1501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0150] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0151] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0152] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0153] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the speech recognition method that may be involved in various embodiments above is implemented.

[0154] An embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the speech recognition method that may be involved in various embodiments as described above.

[0155] An embodiment of the present disclosure provides a computer program, comprising: instructions, which, when executed by a processor, enable the processor to perform the speech recognition method that may be involved in various embodiments as described above.

[0156] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0157] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0159] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0160] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0161] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0162] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0163] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0164] For example, in response to receiving an active request from the user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thereby, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure based on the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from the user, the method of sending a prompt message to the user can be, for example, a pop-up window, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0165] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0166] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws and regulations. Data may include information, parameters and messages, such as flow switching indication information.

[0167] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0168] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0169] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A speech recognition method, comprising: Displaying a speech recognition page, wherein the speech recognition page includes a speech acquisition control; In response to a touch operation on the voice acquisition control, acquiring a voice to be recognized; and The speech to be recognized is subjected to text recognition processing to obtain a transcribed text corresponding to the speech to be recognized, wherein the text recognition processing is implemented based on a speech recognition model, the speech recognition model is obtained based on low-resource sample training, and the pre-training of the speech recognition model is implemented based on a phonetic symbol model, and the phonetic symbol model is used to convert speech into a phonetic symbol sequence.

2. The speech recognition method according to claim 1, wherein: The step of acquiring the to-be-recognized voice in response to the touch operation on the voice acquisition control includes: In response to a touch operation on the voice acquisition control, displaying a voice page, wherein the voice page includes a plurality of voices; and In response to a touch operation on a target voice among the multiple voices, the target voice is determined as the voice to be recognized.

3. The speech recognition method according to claim 1, wherein: The step of acquiring the to-be-recognized voice in response to the touch operation on the voice acquisition control includes: In response to a touch operation on the voice acquisition control, voice recording is performed to obtain the voice to be recognized.

4. The speech recognition method according to any one of claims 1 to 3, wherein: The speech recognition model is trained based on the following steps: Acquire a plurality of first sample voices, and pre-train the voice recognition model based on the plurality of first sample voices and the phonetic symbol model; Acquire a plurality of second sample speech in the target language and a target transcription text corresponding to each second sample speech; and The speech recognition model after pre-training is trained based on the multiple second sample speech and the target transcription text.

5. The speech recognition method according to claim 4, further comprising: Before acquiring a plurality of second sample speech in the target language, receiving a training request for the speech recognition model, wherein the training request includes an identifier of the target language; and The target language is determined according to the identifier of the target language.

6. The speech recognition method according to claim 4 or 5, wherein: Pre-training the speech recognition model based on the multiple first sample speech and the phonetic symbol model includes: Performing speech conversion processing on the plurality of first sample speech sounds based on the phonetic symbol model to obtain a plurality of sample phonetic symbol sequences associated with the plurality of first sample speech sounds, wherein the phonetic symbol model is obtained based on training speech sounds of multiple languages ​​and training phonetic symbol sequences corresponding to each of the training speech sounds; and The speech recognition model is pre-trained based on the multiple first sample speech and the multiple sample phonetic symbol sequences.

7. The speech recognition method according to claim 6, wherein: The pre-training of the speech recognition model based on the plurality of first sample speech and the plurality of sample phonetic symbol sequences comprises: Processing the plurality of first sample speech sounds based on the speech recognition model to obtain a plurality of first predicted phonetic symbol sequences associated with the plurality of first sample speech sounds; For any first predicted phonetic symbol sequence, determining a loss between the first predicted phonetic symbol sequence and a sample phonetic symbol sequence associated with the first predicted phonetic symbol sequence; and Based on the loss, the speech recognition model is pre-trained.

8. The speech recognition method according to any one of claims 4 to 7, wherein: The step of training the pre-trained speech recognition model based on the plurality of second sample speech and the target transcribed text comprises: Processing the second sample speech based on the speech recognition model to obtain a predicted transcription text corresponding to the second sample speech; and The pre-trained speech recognition model is trained based on the target transcription text and the predicted transcription text.

9. The speech recognition method according to claim 8, wherein: The processing of the second sample speech based on the speech recognition model to obtain a predicted transcription text corresponding to the second sample speech includes: The encoder based on the speech recognition model processes the second sample speech to obtain the second sample speech. A second predicted phonetic symbol sequence corresponding to the speech; and The decoder based on the speech recognition model processes the second predicted phonetic symbol sequence to obtain the predicted transcription text.

10. The speech recognition method according to any one of claims 1 to 9, wherein: The phonetic symbol model is trained based on the following method: Get training speech in multiple languages; Obtaining a training phonetic symbol sequence corresponding to each training speech; and The phonetic symbol model is trained based on the training speech of the multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech.

11. The speech recognition method according to claim 10, wherein: Obtaining the training phonetic symbol sequence corresponding to each training speech includes: Determine the training text corresponding to each training speech; and Based on the training text, a training phonetic symbol sequence associated with the training speech is determined.

12. The speech recognition method according to claim 11, wherein: The training text includes words; Determining a training phonetic symbol sequence associated with the training speech based on the training text includes: recognizing the phonetic symbols corresponding to the words to obtain a training phonetic symbol sequence corresponding to the training speech.

13. The speech recognition method according to any one of claims 10 to 12, wherein: The phonetic symbol model is trained based on the training speech of the multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech, including: For any training speech, processing the training speech based on the phonetic symbol model to obtain a third predicted phonetic symbol sequence; and The phonetic symbol model is trained based on the third predicted phonetic symbol sequence and the training phonetic symbol sequence corresponding to the training speech.

14. A speech recognition device, comprising: A display module, used for displaying a speech recognition page, wherein the speech recognition page includes a speech acquisition control; a response module, configured to acquire the to-be-recognized voice in response to a touch operation on the voice acquisition control; and A processing module is used to perform text recognition processing on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized, wherein the text recognition processing is implemented based on a speech recognition model, the speech recognition model is obtained based on low-resource sample training, and the pre-training of the speech recognition model is implemented based on a phonetic model, and the phonetic model is used to convert speech into a phonetic sequence.

15. An electronic device, comprising: Memory for storing computer-executable instructions; and A processor, configured to execute the computer-executable instructions stored in the memory, so that the processor executes the speech recognition method according to any one of claims 1 to 13.

16. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the speech recognition method according to any one of claims 1 to 13 is implemented.

17. A computer program comprising: Instructions, when executed by a processor, cause the processor to perform the speech recognition method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Voice recognition method and device, medium and equipment

    CN113470619A

  • Speech recognition method and device, electronic equipment and storage medium

    CN114783426A

  • Speech recognition method based on phoneme embedding

    CN115116433A

  • Speech recognition model training method and device, electronic equipment and storage medium

    CN115116443A

  • Dialect speech recognition method and device, equipment and storage medium

    CN115240640A

Cited By

  • Low-resource language speech recognition and model training method, device and program product

    CN121506111A

  • Low-resource language speech recognition and model training method, device and program product

    CN121506111B