Speech recognition method and device and electronic equipment

By using the phonetic symbol model for pre-training in the speech recognition model, the speech is converted into a phonetic symbol sequence, which solves the problem of low accuracy in speech recognition of small languages ​​and improves the performance of the speech recognition model under low resource conditions.

CN118588080APending Publication Date: 2024-09-03DOUYIN VISION CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310207441.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing speech recognition models have low accuracy in learning speech features when recognizing speech in minor languages, resulting in low text recognition accuracy, especially under low resource sample training conditions.

Method used

A pre-training method based on phonetic symbol models is used to reduce the difficulty of secondary training of the speech recognition model and improve the accuracy of speech feature learning by converting speech into phonetic symbol sequences.

Benefits of technology

It improves the speech-to-text accuracy of the speech recognition model under low resource conditions, reduces the difficulty and cost of training, and improves the efficiency and accuracy of speech recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588080A
    Figure CN118588080A
Patent Text Reader

Abstract

The invention provides a voice recognition method and device and electronic equipment, and the method comprises the steps: displaying a voice recognition page which comprises a voice obtaining control; in response to a touch operation on the voice acquisition control, acquiring a to-be-recognized voice; text recognition processing is performed on the to-be-recognized voice to obtain a transcription text corresponding to the to-be-recognized voice, the text recognition processing is realized based on a voice recognition model, the voice recognition model is obtained based on low-resource sample training, and pre-training of the voice recognition model is realized based on a phonetic symbol model. The phonetic symbol model is used for converting the voice into a phonetic symbol sequence. The training efficiency of the speech recognition model is improved, and the accuracy of speech-to-text conversion is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

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

[0003] At present, speech can be processed for text recognition based on a trained speech recognition model to obtain the transcribed text associated with the speech. The speech recognition model can be trained based on a large number of training speech and transcribed texts in the same language. However, it is difficult to obtain speech in minority languages. When there are fewer training speech samples, the accuracy of speech features learned by the speech recognition model is low, which in turn leads to low accuracy in text conversion by the speech recognition model. How to recognize speech in low-resource minority languages ​​by the speech recognition model is an urgent problem to be solved. Summary of the invention

[0004] The present disclosure provides a speech recognition method, device and electronic device, which are used to solve the technical problem of low accuracy of text conversion performed by speech recognition models in the prior art.

[0005] In a first aspect, the present disclosure provides a speech recognition method, the method comprising:

[0006] Displaying a speech recognition page, wherein the speech recognition page includes a speech acquisition control;

[0007] In response to a touch operation on the voice acquisition control, acquiring a voice to be recognized;

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

[0009] In a third aspect, the present disclosure provides a speech recognition device, the speech recognition device comprising a display module, a response module and a processing module, wherein:

[0010] The display module is used to display a speech recognition page, wherein the speech recognition page includes a speech acquisition control;

[0011] The response module is used to obtain the speech to be recognized in response to the touch operation on the speech acquisition control;

[0012] The 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, and the speech recognition model is obtained through 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.

[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device including: a processor and a memory;

[0014] The memory stores computer-executable instructions;

[0015] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the speech recognition method as described in the first aspect and various possible aspects of the first aspect.

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

[0017] The present disclosure provides a speech recognition method, device and electronic device, the 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, the speech to be recognized is acquired, the speech to be recognized is subjected to text recognition processing, and a transcribed text corresponding to the speech to be recognized is obtained, wherein 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. In the above method, 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 the more basic phonetic symbol features of the language during the pre-training process, and the pre-training accuracy of the speech recognition model is high, which can reduce the difficulty of the secondary training of the speech recognition model. Therefore, the speech recognition model is trained based on low-resource training speech samples, and can also learn more accurate speech features, thereby improving the accuracy of speech-to-text conversion. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative labor.

[0019] Figure 1A schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0020] Figure 2 A flowchart of a speech recognition method provided by an embodiment of the present disclosure;

[0021] Figure 3 A schematic diagram of a process of acquiring speech provided by an embodiment of the present disclosure;

[0022] Figure 4 A schematic diagram of another process of acquiring speech provided by an embodiment of the present disclosure;

[0023] Figure 5 A schematic diagram of a method for training a speech recognition model provided in an embodiment of the present disclosure;

[0024] Figure 6 A schematic diagram of a process for obtaining a sample phonetic symbol sequence provided by an embodiment of the present disclosure;

[0025] Figure 7 A schematic diagram of pre-training of a speech recognition model provided in an embodiment of the present disclosure;

[0026] Figure 8 A schematic diagram of the structure of a speech recognition model provided in an embodiment of the present disclosure;

[0027] Fig. 9 A schematic diagram of a process for determining a predicted transcription text provided by an embodiment of the present disclosure;

[0028] Fig.10 A training process of a speech recognition model provided in an embodiment of the present disclosure;

[0029] Fig.11 A schematic diagram of a method for training a phonetic symbol model provided in an embodiment of the present disclosure;

[0030] Fig.12 A schematic diagram of a training process of an encoder provided in an embodiment of the present disclosure;

[0031] Fig.13 A schematic diagram of the structure of a speech recognition device provided by an embodiment of the present disclosure;

[0032] Fig.14 A structural diagram of another speech recognition device provided by an embodiment of the present disclosure; and

[0033] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0034] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

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

[0036] Electronic device: a device with wireless transceiver function. Electronic devices can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; they can also be deployed on the water (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, a vehicle-mounted electronic device, a wireless terminal in self-driving, a wireless electronic device in remote medical, a wireless electronic device in smart grid, a wireless electronic device in transportation safety, a wireless electronic device in smart city, a wireless electronic device in smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present disclosure can also be called a terminal, a 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 fixed or mobile.

[0037] In the related art, speech recognition technology can convert speech into text. At present, electronic devices can perform text recognition processing on speech based on a trained speech recognition model, wherein the speech recognition model can be trained based on a large number of training speech and transcribed texts of the same language. However, for minority languages, it is more difficult to obtain speech in minority languages, and the number of training speech samples is small. When the speech recognition model is trained based on low-resource training speech samples, the accuracy of the speech features learned by the speech recognition model is low, which leads to the inability of the speech recognition model to accurately recognize the text of the speech of the minority language, and the accuracy of speech recognition is low. How the speech recognition model can recognize the speech of the minority language with low resources is an urgent problem to be solved.

[0038] In order to solve the technical problems in the related art, the embodiments of the present disclosure provide a speech recognition method, in which the electronic device can display a speech recognition page, and in response to the touch operation of the speech acquisition control in the speech recognition page, perform speech recording to obtain the speech to be recognized, perform text recognition processing on the speech to be recognized, and obtain the transcribed text corresponding to the speech to be recognized, wherein 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. In this way, since the speech recognition model can learn the more basic phonetic features of the language during the pre-training process, the pre-training accuracy of the speech recognition model is high, which can reduce the difficulty of the secondary training of the speech recognition model. Therefore, the speech recognition model is trained based on low-resource training speech samples, and can also learn more accurate speech features, thereby improving the accuracy of speech-to-text conversion.

[0039] Next, combine Figure 1 , the application scenarios of the embodiments of the present disclosure are described.

[0040] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1 , including a HuBERT model. Among them, the HuBERT model also 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.

[0041] It should be noted that Figure 1It is only an example to illustrate an application scenario of the embodiment of the present disclosure, and it is not a limitation of 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 is not limited to this.

[0042] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0043] Figure 2 A flow chart of a speech recognition method provided by an embodiment of the present disclosure. Figure 2 , the method may include:

[0044] S201, displaying a voice recognition page.

[0045] The executor of the embodiments of the present disclosure may be an electronic device or a speech recognition device arranged in the electronic device, wherein the speech recognition device may be implemented based on software or a combination of software and hardware, which is not limited by the embodiments of the present disclosure.

[0046] The speech recognition page includes a speech acquisition control. Optionally, the speech acquisition control can acquire speech. For example, the speech acquisition control can be a recording control, and when the user clicks the recording control, the electronic device can acquire real-time speech. For example, when the user clicks the speech acquisition control, the electronic device can display a page including multiple speech, and the user can click any one of the speech to obtain the speech to be recognized.

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

[0048] S202: In response to a touch operation on a voice acquisition control, acquire a voice to be recognized.

[0049] The speech to be recognized may be speech to be subjected to text recognition. Specifically, in response to a touch operation on a speech acquisition control, the speech to be recognized is acquired in the following two feasible implementations:

[0050] A possible implementation method:

[0051] In response to the touch operation on the voice acquisition control, the voice page is displayed. Among them, the voice page can include multiple voices. For example, when the user clicks the voice acquisition control in the voice recognition page, the electronic device can jump from the voice recognition page to the voice page.

[0052] 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, the voice page includes voice 1, voice 2, and voice 3. If the user clicks voice 1, the electronic device determines the target voice as voice 1, and determines voice 1 as the voice to be recognized as voice 1. If the user clicks voice 2, the electronic device determines the target voice as voice 2, and determines voice 2 as the voice to be recognized as voice 2. If the user clicks voice 3, the electronic device determines the target voice as voice 3, and determines voice 3 as the voice to be recognized.

[0053] Next, combine Figure 3 , the process of electronic device acquiring voice is explained.

[0054] Figure 3 A schematic diagram of a process of acquiring speech provided by an embodiment of the present disclosure. Figure 3 , including an electronic device. The display page of the electronic device is page 301, and page 301 includes a voice acquisition control and a confirmation control. When the user clicks the voice acquisition control, the display page of the electronic device jumps from page 301 to page 302.

[0055] See also Figure 3 , page 302 includes voice A, voice component 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 acquired by the electronic device.

[0056] In this feasible implementation, the electronic device can pre-store multiple voices, and 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.

[0057] Another possible implementation:

[0058] In response to the 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.

[0059] Next, combine Figure 4 , the process of an electronic device acquiring the speech to be recognized is explained.

[0060] Figure 4 This is another schematic diagram of the process of acquiring speech provided by the embodiment of the present disclosure. Figure 4 , including an electronic device. The display page of the electronic device includes a voice acquisition control. When the user clicks the voice acquisition control, the electronic device starts to record 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.

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

[0062] S203: Perform text recognition processing on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized.

[0063] The transcribed text may be 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.

[0064] Specifically, the text recognition process is implemented based on the speech recognition model. For example, if the speech to be recognized is in Chinese, the electronic device can perform text recognition based on a speech recognition model with Chinese speech conversion capability; if the speech to be recognized is in English, the electronic device can perform text recognition based on a speech recognition model with English speech conversion capability.

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

[0066] It should be noted that 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 are not limited to this.

[0067] Optionally, 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 transcribed text corresponding to the training speech. In the disclosed embodiment, since the speech recognition model can be trained based on low-resource samples, the training efficiency of the speech recognition model is higher.

[0068] Optionally, 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 into a phonetic symbol sequence, wherein the phonetic symbol sequence can be a group of phonetic symbols corresponding to the sample speech.

[0069] For example, the phonetic symbols may be symbols for recording the phonemes of speech. The Chinese pinyin letters, the English international phonetic symbols, etc. may 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 may output the pinyin sequence of the speech. If the speech input to the phonetic symbol model is English, the phonetic symbol model may output the international phonetic symbol sequence of the speech.

[0070] The phonetic model is obtained based on training speech of multiple languages ​​and the training phonetic sequence corresponding to each training speech. For example, in the actual training process, the phonetic model can learn the most basic phonetic features of the language. Therefore, the number of training speech of the phonetic model can be small, but the language types of the training speech should be more, so that the phonetic model can learn more phonetic features, thereby improving the accuracy of the phonetic model.

[0071] The disclosed embodiment provides a method for speech recognition, in which an electronic device can display a speech recognition page, and in response to a touch operation on a speech acquisition control in the speech recognition page, a speech recording is performed to obtain the speech to be recognized, and a text recognition process is performed on the speech to be recognized to obtain a transcribed text corresponding to the speech to be recognized. In this way, since the speech recognition model can learn the more basic phonetic features of the language based on the phonetic model during the pre-training of the speech recognition model, the pre-training accuracy of the speech recognition model is high, which can reduce the difficulty of the secondary training of the speech recognition model. Therefore, the speech recognition model can be trained based on low-resource training speech samples and can also learn more accurate speech features. The speech recognition model can be used to perform speech recognition processing on the speech, which can improve the accuracy of speech recognition.

[0072] exist Figure 2 Based on the embodiment shown below, combined with Figure 5 , the training method of the above-mentioned speech recognition model is explained.

[0073] Figure 5 A diagram of a method for training a speech recognition model provided in an embodiment of the present disclosure. Figure 5 The method flow includes:

[0074] S501: Acquire a plurality of first sample voices, and pre-train a voice recognition model based on the plurality of first sample voices and a phonetic symbol model.

[0075] Optionally, the first sample voice may be a voice in any language, for example, the first sample voice may be a voice in Chinese, the first sample voice may be a voice in English, or the first sample voice may be a voice in French.

[0076] It should be noted that the first sample voice may also be any segment of voice, which is not limited in the embodiment of the present disclosure.

[0077] Optionally, the electronic device may obtain multiple first sample voices from the network. For example, since the first sample voice does not need to be manually labeled with training labels, the electronic device may obtain any publicly available voice from the network and determine the voice as the first sample voice.

[0078] Optionally, the electronic device may receive the first sample voice sent by other devices. For example, the server may collect multiple first sample voices in advance, and the electronic device may receive the multiple first sample voices sent by the server.

[0079] Optionally, the electronic device may obtain the first sample voice from a database. For example, a plurality of first sample voices may be pre-stored in the database, and thus the electronic device may obtain the plurality of first sample voices from the database.

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

[0081] Among them, based on multiple first sample speech and phonetic symbol models, the speech recognition model is pre-trained, specifically: based on the phonetic symbol model, speech conversion processing is performed on the multiple first sample speech to obtain multiple sample phonetic symbol sequences associated with the multiple sample speech, and based on the multiple first sample speech and the multiple sample phonetic symbol sequences, the speech recognition model is pre-trained.

[0082] The phonetic symbol model is obtained based on training speech of multiple languages ​​and training phonetic symbol sequences 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.

[0083] Next, combine Figure 6 , the process of obtaining a sample phonetic symbol sequence is described.

[0084] Figure 6 A schematic diagram of a process for obtaining a sample phonetic symbol sequence provided by an embodiment of the present disclosure. Figure 6, including: a first sample speech A, a first sample speech B and a phonetic symbol model. Among them, the phonetic symbol model can convert the speech into a phonetic symbol sequence corresponding to the speech. The first sample speech A and the first sample speech B are input to 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 relatively accurate pseudo label of the speech recognition model can be obtained, thereby improving the training efficiency and training accuracy of the secondary training of the speech recognition model.

[0085] Based on multiple first sample speech and multiple sample phonetic symbol sequences, the speech recognition model is pre-trained. Specifically, the multiple first sample speech is processed 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, the loss between the first predicted phonetic symbol sequence and the sample phonetic symbol sequence associated with the first predicted phonetic symbol sequence is determined, and based on the loss, the speech recognition model is pre-trained.

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

[0087] For example, if the speech recognition model obtains a first predicted phonetic symbol sequence after processing the first sample speech, and the phonetic symbol model obtains a sample phonetic symbol sequence after processing the first sample speech, the speech recognition model can pre-train the encoder of the speech recognition model based on the patrol between the first predicted phonetic symbol sequence and the sample phonetic symbol sequence. In this way, the encoder in the pre-training stage of the speech recognition model can learn relatively basic linguistic features (phonetic symbol features), so the pre-training accuracy of the speech recognition model is higher, thereby reducing the difficulty of the secondary training of the speech recognition model, so that the speech recognition model can be trained based on low-resource training samples.

[0088] Next, combine Figure 7 , the process of pre-training the speech recognition model is explained.

[0089] Figure 7 A schematic diagram of pre-training of a speech recognition model provided in an embodiment of the present disclosure. Figure 7 , including a first sample speech, a phonetic symbol model and a speech recognition model. The phonetic symbol model can convert the speech into a phonetic symbol sequence corresponding to the speech, and the pre-trained part of the speech recognition model can be an encoder.

[0090] See also Figure 7, input the first sample speech into the phonetic symbol model, the phonetic symbol model can output a sample phonetic symbol sequence related to the first sample speech, and the sample phonetic symbol sequence can be a pseudo label pre-trained by the speech recognition model. The first sample speech is also input into the speech recognition model, and the speech recognition model can output a first predicted phonetic symbol sequence related to the first sample speech.

[0091] See also 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 the loss between the sample phonetic symbol sequence and the first predicted phonetic symbol sequence, update the model parameters of the speech recognition model. In this way, the speech recognition model can obtain more accurate pseudo labels through the phonetic symbol model for pre-training, saving labor costs and improving the efficiency and accuracy of pre-training.

[0092] S502: Acquire a plurality of second sample speech in a target language and a target transcription text corresponding to each second sample speech.

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

[0094] Optionally, the electronic device can determine the target language based on the training request of the speech recognition model. For example, the electronic device can receive a training request for the speech recognition model sent by a server or other electronic device, and the training request includes an identifier of the target language. The electronic device can 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 target of the speech recognition model is to recognize Chinese speech. Therefore, the electronic device can determine that the target language is Chinese.

[0095] The second sample voice may be a voice of the target language. For example, if the target language is Chinese, the second sample voice may be a voice of Chinese; if the target language is English, the second sample voice may be a voice of English; if the target language is French, the second sample voice may be a voice of French. Optionally, the electronic device may obtain the second sample voice of the target language from the network. For example, if the target language is Chinese, the electronic device may obtain a publicly available voice of Chinese from the network; if the target language is English, the electronic device may obtain a publicly available voice of English from the network.

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

[0097] 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 is the English corresponding to the second sample speech; if the second sample speech is in Chinese, the target transcription text is the Chinese corresponding to the second sample speech. For example, if the second sample speech is the Chinese speech "Today's weather is really good", the target transcription text corresponding to the second sample speech is the Chinese text "Today's weather is really good".

[0098] Optionally, the electronic device may receive a target transcribed text corresponding to the second sample speech sent by other devices. For example, in actual application, the second sample speech of the target language and the target transcribed text corresponding to the second sample speech may be pre-stored in the database. When the electronic device trains the speech recognition model, the target transcribed text corresponding to the second sample speech of the target language and the second sample speech may be obtained in the database. It should be noted that the target transcribed text may be a manually recognized text, which can improve the training accuracy of the speech recognition model.

[0099] 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 manner, and the embodiments of the present disclosure are not limited to this.

[0100] S503: Training the pre-trained speech recognition model based on the plurality of second sample speech and target transcription text.

[0101] Specifically, 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.

[0102] 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, a 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.

[0103] Next, combine Figure 8 , the structure of the speech recognition model is explained.

[0104] Figure 8 This is a schematic diagram of the structure of a speech recognition model provided by an embodiment of the present disclosure. Figure 8 , including: a speech recognition model. The speech recognition model includes an encoder and a text output layer. The encoder is based on Figure 2 The pre-trained model obtained by the speech recognition method in the illustrated embodiment, 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.

[0105] Specifically, the electronic device can obtain the predicted transcription text corresponding to the second sample speech based on the following feasible implementation method: the encoder based on the speech recognition model processes the second sample speech to obtain the second predicted phonetic symbol sequence corresponding to the second sample speech, and the decoder based on the speech recognition model processes the second predicted phonetic symbol sequence to obtain the predicted transcription text. For example, the decoder of the speech recognition model can be a text output layer, and the electronic device can process the second sample speech based on the pre-trained encoder of the speech recognition model to obtain the second predicted phonetic symbol sequence, and restore the second predicted phonetic symbol sequence based on the text output layer to obtain the transcription text predicted by the speech recognition model based on the second sample speech.

[0106] Next, combine Fig. 9 , the process of determining the predicted transcript is described.

[0107] Fig. 9 A schematic diagram of a process for determining a predicted transcription text provided by an embodiment of the present disclosure. Fig. 9 , including: a second sample speech and a speech recognition model. The speech recognition model includes an encoder and a text output layer. The encoder is based on Figure 2 The speech recognition method in the illustrated embodiment is obtained by pre-training.

[0108] See also Fig. 9 , input the second sample speech to 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 input the second predicted phonetic symbol sequence to the text output layer, and the text output layer can output the predicted transcription text corresponding to the second sample speech based on the second predicted phonetic symbol sequence.

[0109] Based on the target transcription text and the predicted transcription text, the pre-trained speech recognition model is trained, specifically: the loss between the target transcription text and the predicted transcription text is obtained, and based on the loss between the target transcription text and the predicted transcription text, the pre-trained speech recognition model is retrained. For example, the speech recognition model can determine a loss function based on the loss between the target text and the predicted text, and then update the model parameters in the speech recognition model according to the loss function.

[0110] Next, combine Fig.10 , the training process of the speech recognition model is explained.

[0111] Fig.10 A training process of a speech recognition model provided in an embodiment of the present disclosure. Fig.10 , including: a second sample speech, a speech recognition model, and a target transcribed text corresponding to the second sample speech. Among them, 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.

[0112] The disclosed embodiment provides a method for training a speech recognition model, wherein an electronic device can obtain a plurality of first sample speech, and pre-train the speech recognition model based on the plurality of first sample speech and phonetic symbol models, obtain a plurality of second sample speech of a target language and a target transcription text corresponding to each second sample speech, and train the pre-trained speech recognition model based on the plurality of second sample speech 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-label is a phonetic symbol sequence provided by the phonetic symbol model, the pre-training accuracy of the speech recognition model is relatively high, and thus the difficulty of the 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.

[0113] In any of the above embodiments, the above speech recognition method also includes a method for training a phonetic symbol model. Fig.11 , the training method of the phonetic symbol model is explained.

[0114] Fig.11 A schematic diagram of a method for training a phonetic symbol model provided in an embodiment of the present disclosure. Fig.11 ,include:

[0115] S1101. Obtain training speech in multiple languages.

[0116] Specifically, the training speech is used to train the phonetic symbol model, and the training language may include multiple languages. Optionally, the electronic device may obtain the training speech in the network. For example, the electronic device may obtain speech in multiple languages ​​in the network as the training speech for the phonetic symbol model. Optionally, the electronic device may receive the training speech sent by other devices. For example, the electronic device may receive the training speech in multiple languages ​​sent by the server, and the electronic device may also obtain the training speech in multiple languages ​​in the database, which is not limited in the embodiments of the present disclosure.

[0117] Specifically, 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 of the phonetic symbol model can be small, but the languages ​​of the training speech can be more, so that the accuracy of the phonetic symbol model can be improved. For example, the training speech of the phonetic symbol model can include 100 languages, and each language can include 10-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.

[0118] S1102: Obtain a training phonetic symbol sequence corresponding to each training speech.

[0119] Optionally, the electronic device may obtain the training phonetic symbol sequence corresponding to each training speech according to the following feasible implementation method: determine the training text corresponding to each training speech. The training text may be a 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?".

[0120] Optionally, the electronic device may obtain the training text corresponding to the training speech according to any feasible implementation method, which is not limited in the embodiments of the present disclosure.

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

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

[0123] S1103: Train a phonetic symbol model based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to each training speech.

[0124] Specifically, the electronic device trains the phonetic symbol model based on the following feasible implementation method: for any training speech, the training speech is processed 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. For example, the electronic device can update the 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.

[0125] Next, combine Fig.12 , the training process of the phonetic model is explained.

[0126] Fig.12 A schematic diagram of the training process of an encoder provided in an embodiment of the present disclosure. Fig.12 , including training speech and phonetic symbol model. The training speech is input to the phonetic symbol model, and the phonetic symbol model can output a third predicted phonetic symbol sequence. The electronic device ( Fig.12 (not shown) Based on the training speech, the training text corresponding to the training speech can be determined, and the training phonetic symbol sequence corresponding to the training speech can be obtained according to the training text. The phonetic symbol model can update the parameters in the phonetic symbol model according to the loss between the third predicted phonetic symbol sequence and the training phonetic symbol sequence.

[0127] Optionally, after the phonetic symbol model training is completed, the electronic device can also 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 can 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 can 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.

[0128] 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 training of the phonetic symbol model 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 the accuracy of speech recognition. For example, if the target language is Chinese, then after the training of the phonetic symbol model 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, so that compared with the phonetic symbol model after the training, the phonetic symbol model after parameter adjustment can more accurately determine the phonetic symbol sequence of the target language speech.

[0129] The disclosed embodiment provides a method for training a phonetic symbol model, which obtains training speech in multiple languages, determines the training text corresponding to each training speech, determines the 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 the phonetic symbol sequence in the target language, thereby improving the accuracy of the phonetic symbol model. Since the phonetic symbol model can assist the pre-training of the speech recognition model, the accuracy of the pre-training of the speech recognition model can be improved.

[0130] Fig.13 This is a schematic diagram of the structure of a speech recognition device provided by an embodiment of the present disclosure. Fig.13 The speech recognition device 130 includes a display module 131, a response module 132 and a processing module 133, wherein:

[0131] The display module 131 is used to display a speech recognition page, wherein the speech recognition page includes a speech acquisition control;

[0132] The response module 132 is used to obtain the speech to be recognized in response to the touch operation on the speech acquisition control;

[0133] 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, wherein the text recognition processing is implemented based on a speech recognition model, and the speech recognition model is obtained through 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.

[0134] According to one or more embodiments of the present disclosure, the response module 132 is specifically used to:

[0135] In response to a touch operation on the voice acquisition control, displaying a voice page, wherein the voice page includes a plurality of voices;

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

[0137] According to one or more embodiments of the present disclosure, the response module 132 is specifically used to:

[0138] In response to a touch operation on the voice acquisition control, voice recording is performed to obtain the voice to be recognized.

[0139] 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 effect are similar, and this embodiment will not be repeated here.

[0140] Fig.14 A schematic diagram of the structure of another speech recognition device provided by an embodiment of the present disclosure. Fig.13 Based on the examples shown, see Fig.14 The speech recognition device 130 further includes a training module 134, and the training module 134 is used to:

[0141] 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;

[0142] Acquire a plurality of second sample speech in the target language and a target transcription text corresponding to each second sample speech;

[0143] The speech recognition model after pre-training is trained based on the multiple second sample speech and the target transcription text.

[0144] According to one or more embodiments of the present disclosure, the training module 134 is specifically used for:

[0145] 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;

[0146] The speech recognition model is pre-trained based on the multiple first sample speech and the multiple sample phonetic symbol sequences.

[0147] According to one or more embodiments of the present disclosure, the training module 134 is specifically used for:

[0148] 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;

[0149] 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;

[0150] Based on the loss, the speech recognition model is pre-trained.

[0151] According to one or more embodiments of the present disclosure, the training module 134 is specifically used for:

[0152] Processing the second sample speech based on the speech recognition model to obtain a predicted transcription text corresponding to the second sample speech;

[0153] The pre-trained speech recognition model is trained based on the target transcription text and the predicted transcription text.

[0154] According to one or more embodiments of the present disclosure, the training module 134 is specifically used for:

[0155] Processing 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;

[0156] The decoder based on the speech recognition model processes the second predicted phonetic symbol sequence to obtain the predicted transcription text.

[0157] According to one or more embodiments of the present disclosure, the training module 134 is further used to:

[0158] Get training speech in multiple languages;

[0159] Obtain the training phonetic symbol sequence corresponding to each training speech;

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

[0161] 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 effect are similar, and this embodiment will not be repeated here.

[0162] Fig.15 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Fig.15 , which shows a schematic diagram of the structure of an electronic device 1500 suitable for implementing the 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 terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.15 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0163] like Fig.15As shown, the electronic device 1500 may include a processing device (e.g., a central processing unit, a graphics processor, 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 to 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.

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

[0165] 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 contains 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 through 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 executed.

[0166] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.

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

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

[0169] 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 as described above is implemented.

[0170] The embodiments of the present disclosure provide 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.

[0171] 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 an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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).

[0172] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

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

[0174] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0175] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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.

[0176] It should be noted that the modifications of "one" and "plurality" 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, it should be understood as "one or more".

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

[0178] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present 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.

[0179] For example, in response to receiving an active request from a 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. Thus, 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 a user, the method of sending a prompt message to the user can be, for example, a pop-up window, and the prompt message can be presented in 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.

[0180] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0181] 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 the relevant laws and regulations. The data may include information, parameters and messages, such as flow switching indication information.

[0182] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0183] 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 are 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.

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

Claims

1. A speech recognition method, It is characterized in that include: 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; 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 method according to claim 1, It is characterized in that 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; 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 method according to claim 1, It is characterized in that 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 method according to any one of claims 1 to 3, It is characterized in that 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; The speech recognition model after pre-training is trained based on the multiple second sample speech and the target transcription text.

5. The method according to claim 4, It is characterized in that 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; The speech recognition model is pre-trained based on the multiple first sample speech and the multiple sample phonetic symbol sequences.

6. The method according to claim 5, It is characterized in that 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; Based on the loss, the speech recognition model is pre-trained.

7. The method according to claim 4, It is characterized in that 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; The pre-trained speech recognition model is trained based on the target transcription text and the predicted transcription text.

8. The method according to claim 7, It is characterized in that 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: Processing 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; The decoder based on the speech recognition model processes the second predicted phonetic symbol sequence to obtain the predicted transcription text.

9. The method according to any one of claims 1 to 3, It is characterized in that The phonetic symbol model is trained based on the following method: Get training speech in multiple languages; Obtain the training phonetic symbol sequence corresponding to each training speech; 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.

10. A speech recognition device, It is characterized in that It includes a display module, a response module and a processing module, wherein: The display module is used to display a speech recognition page, wherein the speech recognition page includes a speech acquisition control; The response module is used to obtain the speech to be recognized in response to the touch operation on the speech acquisition control; The 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, and the speech recognition model is obtained through 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.

11. An electronic device, It is characterized in that include: Processor and memory; The memory stores computer-executable instructions; The processor executes 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 9.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the speech recognition method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Song identification method and device, medium and computing equipment

    CN119920222A