Voice processing method and device and electronic equipment

Through the two-stage training of the speech recognition model, the basic phonetic symbol features of multiple languages ​​are learned and optimized training is performed for the target language, which solves the problem of low speech recognition accuracy in low-resource languages ​​and improves the accuracy of the transcribed text of the speech recognition model.

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

Patent Information

Application Number
CN202310233791.1
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

Under the conditions of low resource language speech data, the accuracy of the speech features learned by existing speech recognition models is low, resulting in low accuracy of transcribed texts.

Method used

A two-stage training speech recognition model is adopted. In the first stage, basic phonetic symbol features are learned through multi-lingual training speech and phonetic symbol sequences. In the second stage, training is performed based on sample speech and transcribed text in the target language to improve the training efficiency and accuracy of the speech recognition model. Spend.

Benefits of technology

It improves the speech recognition model's learning ability for low-resource speech data and enhances the accuracy of the speech recognition model's transcribed text in minority language speech processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588058A
    Figure CN118588058A
Patent Text Reader

Abstract

The invention provides a voice processing method and device and electronic equipment, and the method comprises the steps: obtaining a to-be-transcribed voice in response to a touch operation of a voice obtaining control in a voice transcription page; performing text transcription processing on the to-be-transcribed speech to obtain a transcribed text associated with the to-be-transcribed speech; displaying the transcription text; wherein the text transcription processing is realized based on a speech recognition model, the speech recognition model is obtained by training based on a first training stage and a second training stage, and in the first training stage, the text transcription processing is realized based on the speech recognition model. In the first training stage, an encoder of the speech recognition model performs training based on training speech of multiple languages and training phonetic symbol sequences corresponding to the training speech; the speech recognition model trained in the first training stage is trained based on sample speech of a target language and a target transcription text corresponding to the sample speech. And the accuracy of the transcriptional text output by the speech recognition model 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 processing method, device and electronic device. Background Art

[0002] With the development of information technology, speech recognition technology has been used more and more widely, and the requirements for the types of recognized languages ​​have become higher and higher.

[0003] At present, speech recognition can be performed on speech based on a pre-trained speech recognition model to obtain the corresponding transcribed text of the speech, wherein the speech recognition model is trained based on a large amount of training speech and the transcribed text corresponding to the training speech. However, it is difficult to obtain speech data of some languages ​​(such as speech of minority languages). When the speech recognition model is trained based on low-resource speech data, the accuracy of the learned speech features is low, which in turn leads to the low accuracy of the transcribed text output by the speech recognition model. Summary of the invention

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

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

[0006] In response to a touch operation on a speech acquisition control in a speech transcription page, acquiring speech to be transcribed;

[0007] Performing text transcription processing on the speech to be transcribed to obtain a transcribed text associated with the speech to be transcribed;

[0008] displaying the transcribed text;

[0009] Among them, the text transcription processing is implemented based on a speech recognition model, and the speech recognition model is obtained through training in a first training stage and a second training stage. In the first training stage, the encoder of the speech recognition model is trained based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to the training speech. In the second training stage, the speech recognition model trained in the first training stage is trained based on sample speech in a target language and target transcribed text corresponding to the sample speech.

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

[0011] The response module is used to obtain the speech to be transcribed in response to the touch operation of the speech acquisition control in the speech transcription page;

[0012] The processing module is used to perform text transcription processing on the speech to be transcribed to obtain a transcribed text associated with the speech to be transcribed;

[0013] The display module is used to display the transcribed text;

[0014] Among them, the text transcription processing is implemented based on a speech recognition model, and the speech recognition model is obtained through training in a first training stage and a second training stage. In the first training stage, the encoder of the speech recognition model is trained based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to the training speech. In the second training stage, the speech recognition model trained in the first training stage is trained based on sample speech in a target language and target transcribed text corresponding to the sample speech.

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

[0016] The memory stores computer-executable instructions;

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

[0018] 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 processing method as described in the first aspect and various possible aspects of the first aspect are implemented.

[0019] The present disclosure provides a speech processing method, device and electronic device, which, in response to a touch operation on a speech acquisition control in a speech transcription page, acquires speech to be transcribed, performs text transcription processing on the speech to be transcribed, obtains a transcribed text associated with the speech to be transcribed, and displays the transcribed text. In the above method, the text transcription processing is implemented based on a speech recognition model, and the speech recognition model is obtained through training in a first training stage and a second training stage. Since the encoder of the speech recognition model in the first training stage can learn the ability to convert speech into a phonetic symbol sequence, the speech recognition model can learn the more basic phonetic symbol features in the language in the first training stage. In this way, when the speech recognition model is trained based on low-resource sample speech in the second training stage, the speech recognition model can quickly learn accurate speech features, thereby improving the training efficiency and training accuracy of the speech recognition model. When the speech recognition model processes the speech to be transcribed, the speech recognition model can output an accurate transcribed text, thereby improving the accuracy of the output transcribed text. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

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

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

[0025] Figure 5 A process diagram of a speech processing method provided by an embodiment of the present disclosure;

[0026] Figure 6 A schematic diagram of a training method for the second training stage provided in an embodiment of the present disclosure;

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

[0028] Figure 8 A schematic diagram of a process for determining a predicted transcription text provided by an embodiment of the present disclosure;

[0029] Fig. 9 A schematic diagram of a training process of a speech recognition model provided in an embodiment of the present disclosure;

[0030] Fig.10 A schematic diagram of a training method for a first training phase provided by an embodiment of the present disclosure;

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

[0032] Fig.12 A schematic diagram of the structure of a speech processing device provided by an embodiment of the present disclosure;

[0033] Fig.13 A structural diagram of another speech processing device provided by an embodiment of the present disclosure; and

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

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

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

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

[0038] In the related art, speech recognition technology is being used more and more widely, and the requirements for the types of languages ​​to be recognized are also getting higher and higher. For example, speech recognition technology needs to recognize more speech in minority languages. At present, speech recognition processing can be performed on speech based on a pre-trained speech recognition model to obtain a transcribed text corresponding to the speech, wherein the speech recognition model is trained based on a large amount of training speech and the transcribed text corresponding to the training speech. However, the speech recognition model requires a large amount of speech data, and the speech data of some languages ​​is difficult to obtain (such as speech in minority languages). When the speech recognition model is trained based on low-resource speech data, the accuracy of the learned speech features is low, which leads to the low accuracy of the transcribed text output by the speech recognition model. How the speech recognition model can accurately transcribe the speech of low-resource minority languages ​​is an urgent problem to be solved.

[0039] In order to solve the technical problems in the related art, the embodiment of the present disclosure provides a speech processing method, in response to the touch operation of the speech acquisition control, a speech page is displayed, in response to the touch operation of the target speech of the multiple speech in the speech page, the target speech is determined as the speech to be transcribed, the speech to be transcribed is subjected to text transcription processing, the transcribed text associated with the speech to be transcribed is obtained, and the transcribed text is displayed. Among them, the text transcription processing is implemented based on the speech recognition model, and the speech recognition model is obtained by training based on the first training stage and the second training stage. Since in the first training stage, the encoder of the speech recognition model can learn general linguistic features (such as phonetic features), therefore, in the second training stage, the speech recognition model can quickly learn more accurate speech features, thereby improving the accuracy of the speech recognition model, and when the speech recognition model processes the speech to be transcribed, the speech recognition model can output accurate transcribed text, thereby improving the accuracy of the output transcribed text.

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

[0041] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1 , including a speech recognition model. The speech recognition model is used to perform text conversion processing on speech. A segment of speech is input into the speech recognition model, and the speech recognition model can output the text corresponding to the segment of speech. In the embodiment of the present disclosure, since the encoder of the speech recognition model can learn relatively accurate linguistic features (such as phonetic features), the speech recognition model can quickly and accurately learn the speech features of the speech data when it is trained based on low-resource speech data. Therefore, when the speech is transcribed into text based on the speech recognition model, the accuracy of the transcribed text obtained is relatively high.

[0042] It should be noted that Figure 1 The invention is merely an example of an application scenario of the embodiment of the present invention, and is not intended to limit the application scenario of the embodiment of the present invention.

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

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

[0045] S201. In response to a touch operation on a speech acquisition control in a speech transcription page, acquire speech to be transcribed.

[0046] The execution subject of the embodiment of the present disclosure may be an electronic device, or a voice processing device arranged in the electronic device. The voice processing device may be implemented based on software, or may be implemented based on a combination of software and hardware, which is not limited in the embodiment of the present disclosure.

[0047] Specifically, the voice transcription page may include a voice acquisition control. Optionally, the voice acquisition control may acquire voice. For example, the voice acquisition control may be a recording control, and when the user clicks the recording control, the electronic device may acquire real-time voice.

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

[0049] The speech to be transcribed may be speech to be transcribed into text. In response to the touch operation on the speech acquisition control in the speech transcription page, the speech to be transcribed is acquired in the following two feasible implementations:

[0050] A possible implementation method:

[0051] 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 on the voice acquisition control in the voice transcription page, the electronic device may jump from the voice transcription page to the voice page.

[0052] In response to a touch operation on any one of the multiple voices, the touched voice is determined as the voice to be transcribed. For example, the voice page includes voice 1 and voice 2. If the user clicks voice 1, the electronic device determines that the voice to be transcribed is voice 1. If the user clicks voice 2, the electronic device determines that the voice to be transcribed is voice 2.

[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 B, voice C and a confirmation control. When the user clicks voice A, the control corresponding to voice A is highlighted. After the user clicks the confirmation control, the electronic device determines voice A as the voice to be transcribed obtained 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 transcribed, thereby improving the flexibility of voice acquisition.

[0057] Another possible implementation:

[0058] In response to the touch operation on the voice acquisition control, the voice is recorded to obtain the voice to be transcribed. 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 transcribed acquired by the electronic device.

[0059] Next, combine Figure 4 , the process of an electronic device acquiring 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 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 transcribed 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 transcribed acquired by the electronic device, thereby improving the flexibility of voice acquisition.

[0062] S202: Perform text transcription processing on the speech to be transcribed to obtain a transcribed text associated with the speech to be transcribed.

[0063] Among them, the text transcription process is implemented based on the speech recognition model. Different speech recognition models can transcribe different languages ​​of speech. Therefore, after the electronic device obtains the speech to be transcribed, it can obtain the language of the speech to be transcribed, and determine the speech recognition model according to the language of the speech to be transcribed. Based on the speech recognition model corresponding to the language of the speech to be transcribed, the speech to be transcribed is subjected to text transcription processing to obtain the transcribed text associated with the speech to be transcribed.

[0064] For example, if the speech to be transcribed is in Chinese, the electronic device can obtain the speech recognition model corresponding to Chinese, and process the speech to be transcribed based on the speech recognition model corresponding to Chinese to obtain a transcribed text in Chinese; if the speech to be transcribed is in English, the electronic device can obtain the speech recognition model corresponding to English, and process the speech to be transcribed based on the speech recognition model corresponding to English to obtain an English transcribed text.

[0065] It should be noted that multiple types of speech recognition models can be set in an electronic device, and the sample speech trained for each type of speech recognition model is in a different language. In this way, the electronic device can perform text recognition processing on the speech to be recognized in multiple languages ​​based on multiple types of speech recognition models, thereby improving the accuracy and applicability of speech recognition of the electronic device.

[0066] Next, combine Figure 5 , the process of the speech processing method is explained.

[0067] Figure 5 A process diagram of a speech processing method provided by an embodiment of the present disclosure. Figure 5 , including: an electronic device. The electronic device includes a Chinese speech recognition model and an English speech recognition model. If a speech A to be recognized in Chinese is input into the electronic device, the electronic device can input the speech A to be recognized into the Chinese speech recognition model, and then output the Chinese text of the speech A to be recognized based on the Chinese speech recognition model. If a speech B to be recognized in English is input into the electronic device, the electronic device can input the speech B to be recognized into the English speech recognition model, and then output the English text of the speech B to be recognized based on the English speech recognition model.

[0068] 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. For example, Figure 5 The Chinese speech recognition model and the English speech recognition model can be in one model, which is not limited in the embodiments of the present disclosure.

[0069] Specifically, the speech recognition model includes an encoder and a decoder. The speech recognition model is obtained through training in a first training phase and a second training phase. In the first training phase, the encoder of the speech recognition model is trained based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to the training speech. In this way, after the training in the first training phase is completed, the encoder of the speech recognition model can convert the speech into a phonetic symbol sequence.

[0070] In the second training stage, the speech recognition model trained in the first training stage is trained based on the sample speech of the target language and the target transcribed text corresponding to the sample speech. In this way, the decoder of the speech recognition model can convert the phonetic symbol sequence into text. In this way, since the phonetic symbol sequence is a relatively basic linguistic feature, the speech recognition model can quickly and accurately learn the speech features of the sample speech, thereby reducing the difficulty of speech recognition model training and improving the training accuracy of the speech recognition model. Therefore, the accuracy of the transcribed text output by the speech recognition model is relatively high.

[0071] S203: Display the transcribed text.

[0072] Optionally, after the electronic device performs text transcription on the speech to be transcribed and obtains the transcribed text, the electronic device can display the transcribed text.

[0073] The disclosed embodiment provides a speech processing method, which displays a speech transcription page, obtains the speech to be transcribed in response to a touch operation on a speech acquisition control in the speech transcription page, performs text transcription processing on the speech to be transcribed, obtains the transcribed text corresponding to the speech to be transcribed, and displays the transcribed text. In this way, since the speech recognition model can learn more basic linguistic features, when the speech recognition model is trained based on low-resource speech data, the speech features can be obtained quickly and accurately, thereby improving the accuracy of the transcribed text output by the speech recognition model.

[0074] exist Figure 2 Based on the embodiment shown below, combined with Figure 6 , the training method of the second training stage of the speech recognition model is explained.

[0075] Figure 6 A schematic diagram of a training method for the second training phase provided by an embodiment of the present disclosure. Figure 6 ,include:

[0076] S601: Obtain sample speech in a target language and a target transcription text corresponding to the sample speech.

[0077] The target language may be the language of the speech to be transcribed. 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.

[0078] Optionally, the electronic device can determine the target language based on the model training request. For example, the electronic device can receive a model training request sent by a server or other electronic device, and the model 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.

[0079] The sample speech may be speech in the target language. For example, if the target language is Chinese, the sample speech may be speech in Chinese; if the target language is English, the sample speech may be speech in English; if the target language is French, the sample speech may be speech in French. Optionally, the electronic device may obtain sample speech in the target language from a network. For example, if the target language is Chinese, the electronic device may obtain speech in Chinese from a network; if the target language is English, the electronic device may obtain speech in English from a network.

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

[0081] It should be noted that the electronic device can also determine the target language according to the language of the sample speech. For example, if the sample speech obtained by the electronic device is English speech, the electronic device can determine that the training target is to recognize English speech, so the target language is English; if the sample speech obtained by the electronic device is Chinese speech, the electronic device can determine that the training target is to recognize English speech, so the target language is Chinese.

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

[0083] Optionally, the electronic device may receive the target transcribed text corresponding to the sample speech sent by other devices. For example, in actual application, the electronic device may construct a dictionary of sample speech and target transcribed text, wherein the key of the dictionary may be the sample speech, and the value of the dictionary may be the target transcribed text corresponding to the sample speech. In this way, when the electronic device obtains the sample speech, the dictionary may generate a key-value pair of the sample speech-target transcribed text, and the target transcribed text corresponding to the sample speech may be obtained. It should be noted that the target transcribed text may be a manually recognized transcribed text, which may improve the training accuracy of the speech recognition model.

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

[0085] S602: The encoder based on the speech recognition model processes the sample speech to obtain a sample phonetic symbol sequence associated with the sample speech.

[0086] Optionally, the speech recognition model may include an encoder and a decoder.

[0087] Next, combine Figure 7 , the structure of the speech recognition model is explained.

[0088] Figure 7 This is a schematic diagram of the structure of a speech recognition model provided by an embodiment of the present disclosure. Figure 7 , including a speech recognition model. The speech recognition model can convert speech into text corresponding to the speech. The speech recognition model includes an encoder and a decoder. Specifically, during the training process of the speech recognition model, the sample speech is input to the encoder of the speech recognition model, and the decoder of the speech recognition model can output the transcribed text corresponding to the sample speech.

[0089] Specifically, the encoder of the speech recognition model can be used to convert speech into a speech-related phonetic symbol sequence. For example, a speech segment is input to the encoder of the speech recognition model, and the encoder of the speech recognition model can output the phonetic symbol sequence of the speech segment. Among them, the phonetic symbol sequence can be a group of phonetic symbols corresponding to the sample speech. For example, the phonetic symbol can be a symbol for recording the phonemes of the speech, and 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 sample speech is Chinese, the encoder of the speech recognition model can output the pinyin sequence of the sample speech. If the sample speech is English, the encoder of the speech recognition model can output the international phonetic symbol sequence of the sample speech.

[0090] Optionally, the electronic device may input sample speech to an encoder of the speech recognition model, and the encoder of the speech recognition model may process the sample speech and output a sample phonetic symbol sequence associated with the sample speech.

[0091] S603: The decoder based on the speech recognition model processes the sample phonetic symbol sequence to obtain a predicted transcription text.

[0092] The predicted transcribed text may be a transcribed text after the speech recognition model processes the sample speech. For example, in the process of training the speech recognition model, for any sample speech, the speech recognition model can process the sample speech to obtain the corresponding predicted transcribed text. For example, the encoder of the speech recognition model can process the sample speech to obtain a sample phonetic symbol sequence related to the sample speech, and the decoder of the speech recognition model can decode the sample phonetic symbol sequence to obtain the predicted transcribed text corresponding to the sample speech.

[0093] Next, combine Figure 8 , the process of determining the predicted transcript is described.

[0094] Figure 8 A schematic diagram of a process for determining a predicted transcription text provided by an embodiment of the present disclosure. Figure 8 , including: a speech recognition model and sample speech. The speech recognition model includes an encoder and a decoder. The sample speech is input into the encoder of the speech recognition model, and the encoder of the speech recognition model can output a sample phonetic symbol sequence related to the sample speech, and the sample phonetic symbol sequence is input into the decoder of the speech recognition model, and the decoder of the speech recognition model decodes the sample phonetic symbol sequence to obtain the predicted transcription text corresponding to the sample speech.

[0095] S604: Train a speech recognition model based on the target transcription text and the predicted transcription text.

[0096] Specifically, the electronic device can train the speech recognition model based on the following feasible implementation methods: determine the loss between the target transcription text and the predicted transcription text, and train the speech recognition model based on the loss between the target transcription text and the predicted transcription text. For example, for any sample speech, the electronic device can process the sample speech based on the speech recognition model to obtain the predicted transcription text of the sample speech, and then determine the loss function based on the predicted transcription text of the sample speech and the target transcription text of the sample speech, and then train the speech recognition model through the loss function.

[0097] It should be noted that the loss function of the embodiment of the present disclosure may be any loss function, and the embodiment of the present disclosure is not limited to this.

[0098] Next, combine Fig. 9 , the training process of the speech recognition model in the embodiment of the present disclosure is explained.

[0099] Fig. 9 A diagram of the training process of a speech recognition model provided in an embodiment of the present disclosure. Fig. 9 , including: a speech recognition model, a sample speech, and a target transcription text corresponding to the sample speech. The sample speech is input to the encoder of the speech recognition model, the encoder of the speech recognition model can output a sample phonetic symbol sequence corresponding to the sample speech, and the sample phonetic symbol sequence is input to the decoder of the speech recognition model. The decoder of the speech recognition model decodes the sample phonetic symbol sequence to obtain a predicted transcription text corresponding to the sample speech. The speech recognition model can update the model parameters in the speech recognition model based on the loss between the target transcription text corresponding to the sample speech and the predicted transcription text corresponding to the sample speech.

[0100] The disclosed embodiment provides a training method for the second training stage, which obtains a sample speech of a target language and a target transcribed text corresponding to the sample speech, processes the sample speech based on an encoder of a speech recognition model to obtain a sample phonetic symbol sequence associated with the sample speech, processes the sample phonetic symbol sequence based on a decoder of the speech recognition model to obtain a predicted transcribed text, obtains the loss between the target transcribed text and the predicted transcribed text, and trains the speech recognition model based on the loss between the target transcribed text and the predicted transcribed text. In this way, the speech recognition encoder can extract the phonetic symbol sequence of the speech, and since the phonetic symbol sequence is a more basic speech representation, the speech recognition model can learn more accurate speech features based on a small amount of speech data, and therefore, the speech recognition model can be trained based on the speech of a minority language, thereby improving the training efficiency of the speech recognition model, and since the speech features learned by the speech recognition model are more accurate, the speech recognition model can accurately perform text recognition on the speech of the minority language, thereby improving the accuracy of the transcribed text output by the speech recognition.

[0101] Based on any of the above embodiments, Fig.10 , the training method of the first training stage of the speech recognition model is explained.

[0102] Fig.10 A schematic diagram of a training method for the first training phase provided by an embodiment of the present disclosure. Fig.10 The method flow includes:

[0103] S1001. Obtain training speech in multiple languages.

[0104] Specifically, the training speech is used to train the encoder of the speech recognition model, and the training language includes multiple languages. Optionally, the electronic device can obtain the training speech in the network. For example, the electronic device can obtain speech in multiple languages ​​in the network as the training speech of the encoder of the speech recognition model. Optionally, the electronic device can receive the training speech sent by other devices. For example, the electronic device can receive the training speech in multiple languages ​​sent by the server, and the electronic device can also obtain the training speech in multiple languages ​​in the database, which is not limited in the embodiments of the present disclosure.

[0105] Specifically, since the encoder of the speech recognition model is used to obtain the phonetic symbol sequence of the speech, the speech recognition model needs to be trained based on speech of more languages ​​so that the speech recognition model can learn more phonetic symbol information. For example, in actual application, the number of training speech of the encoder of the speech recognition model can be small, but the languages ​​of the training speech can be more, so that the accuracy of the encoder of the speech recognition model can be improved. For example, the training speech of the encoder of the speech recognition 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 encoder of the speech recognition model.

[0106] S1002: Obtain a training phonetic symbol sequence corresponding to each training speech.

[0107] 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?".

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

[0109] The electronic device can determine the training phonetic symbol sequence associated with the training speech based on the training text. For example, the electronic device can 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 can 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. In this way, the electronic device can accurately obtain the training phonetic symbol sequence (high training label accuracy) based on the training text, thereby improving the accuracy of the encoder of the speech recognition model.

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

[0111] S1003: Based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to each training speech, train the encoder of the speech recognition model.

[0112] Specifically, the electronic device trains the encoder of the speech recognition model based on the following feasible implementation method: for any training speech, the encoder based on the speech recognition model processes the training speech to obtain a predicted phonetic symbol sequence, and trains the encoder of the speech recognition model based on the predicted phonetic symbol sequence and the training phonetic symbol sequence corresponding to the training speech. For example, the electronic device can determine the loss between the predicted phonetic symbol sequence and the actual training phonetic symbol sequence of the training speech, and update the parameters in the encoder of the speech recognition model. In this way, since the accuracy of the training phonetic symbol sequence is relatively high, the encoder can more accurately learn the ability to convert speech into phonetic symbol sequence, thereby improving the accuracy of encoder training and the accuracy of speech recognition model training.

[0113] Next, combine Fig.11 , the training process of the encoder of the speech recognition model is explained.

[0114] Fig.11 A schematic diagram of the training process of an encoder provided in an embodiment of the present disclosure. Fig.11 , including an encoder for training speech and a speech recognition model. The training speech is input to the encoder of the speech recognition model, and the encoder of the speech recognition model can output a predicted phonetic symbol sequence. Electronic device ( Fig.11 (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 encoder of the speech recognition model can update the parameters in the encoder of the speech recognition model according to the loss between the predicted phonetic symbol sequence and the training phonetic symbol sequence.

[0115] Optionally, after the encoder training of the speech recognition model is completed, the training method of the speech recognition model further includes: obtaining a training speech of a target language and a 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 a 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 a 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.

[0116] Based on the training speech of the target speech and the target phonetic symbol sequence, the parameters of the encoder of the speech recognition model are updated. For example, after the training of the encoder of the speech recognition model is completed, the electronic device can also adjust the parameters of the encoder of the speech recognition model based on the training speech of the target speech and the target phonetic symbol sequence, so that the encoder of the speech recognition model can accurately determine the phonetic symbol sequence corresponding to the speech of the target language, thereby improving the accuracy of the encoder of the speech recognition model and improving the accuracy of speech recognition. For example, if the target language is Chinese, then after the training of the encoder of the speech recognition model is completed, the electronic device can adjust the parameters of the encoder of the speech recognition model based on the training speech of Chinese and the target phonetic symbol sequence (label), so that compared with the encoder of the speech recognition model after the training is completed, the accuracy of the phonetic symbol sequence of the target language output by the encoder of the speech recognition model after the parameter adjustment is higher, thereby improving the training accuracy of the speech recognition model.

[0117] The disclosed embodiment provides a training method for the first training stage, 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 encoder of the speech recognition model based on the training speech in multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech. In this way, the encoder of the speech recognition model can accurately learn the phonetic symbol features of the speech, and the electronic device can also adjust the parameters of the encoder of the speech recognition model after training based on the training speech and the phonetic symbol sequence of the target language, so as to improve the accuracy of the phonetic symbol sequence of the target language output by the encoder of the speech recognition model, thereby reducing the training difficulty of the speech recognition model and improving the training accuracy and training efficiency of the speech recognition model.

[0118] Fig.12 This is a schematic diagram of the structure of a speech processing device provided by an embodiment of the present disclosure. Fig.12 The speech processing device 120 includes a response module 121, a processing module 122 and a display module 123, wherein:

[0119] The response module 121 is used to obtain the speech to be transcribed in response to the touch operation of the speech acquisition control in the speech transcription page;

[0120] The processing module 122 is used to perform text transcription processing on the speech to be transcribed to obtain a transcribed text associated with the speech to be transcribed;

[0121] The display module 123 is used to display the transcribed text;

[0122] Among them, the text transcription processing is implemented based on a speech recognition model, and the speech recognition model is obtained through training in a first training stage and a second training stage. In the first training stage, the encoder of the speech recognition model is trained based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to the training speech. In the second training stage, the speech recognition model trained in the first training stage is trained based on sample speech in a target language and target transcribed text corresponding to the sample speech.

[0123] According to one or more embodiments of the present disclosure, the response module 121 is specifically used for:

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

[0125] In response to a touch operation on any one of the multiple voices, the touched voice is determined as the voice to be transcribed.

[0126] According to one or more embodiments of the present disclosure, the response module 121 is specifically used for:

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

[0128] The speech processing 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.

[0129] Fig.13 A schematic diagram of the structure of another speech processing device provided by an embodiment of the present disclosure. Fig.12 Based on the examples shown, see Fig.13 The speech processing device 120 further includes a training module 124, and the training module 124 is used to:

[0130] Obtaining a sample speech in a target language and a target transcription text corresponding to the sample speech;

[0131] The encoder based on the speech recognition model processes the sample speech to obtain a sample phonetic symbol sequence associated with the sample speech, wherein the encoder of the speech recognition model is used to convert the speech into a speech-related phonetic symbol sequence;

[0132] Processing the sample phonetic symbol sequence based on the decoder of the speech recognition model to obtain a predicted transcription text;

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

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

[0135] determining a loss between the target transcript and the predicted transcript;

[0136] The speech recognition model is trained based on the loss between the target transcript and the predicted transcript.

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

[0138] Get training speech in multiple languages;

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

[0140] The encoder of the speech recognition model is trained based on the training speech in the multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech.

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

[0142] For any training speech, the encoder based on the speech recognition model processes the training speech to obtain a predicted phonetic symbol sequence;

[0143] The encoder of the speech recognition model is trained based on the predicted phonetic symbol sequence and the training phonetic symbol sequence corresponding to the training speech.

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

[0145] Determine the training text corresponding to each training speech;

[0146] Based on the training text, a training phonetic symbol sequence associated with the training speech is determined.

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

[0148] Acquire the training speech of the target language and the target phonetic symbol sequence corresponding to the training speech of the target language;

[0149] Based on the training speech of the target speech and the target phonetic symbol sequence, the parameters of the encoder of the speech recognition model are updated.

[0150] The speech processing 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.

[0151] Fig.14 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Fig.14 , which shows a schematic diagram of the structure of an electronic device 1400 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.14 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.

[0152] like Fig.14 As shown, the electronic device 1400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1402 or a program loaded from a storage device 1408 to a random access memory (RAM) 1403. Various programs and data required for the operation of the electronic device 1400 are also stored in the RAM 1403. The processing device 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.

[0153] Typically, the following devices may be connected to the I / O interface 1405: input devices 1406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1409. The communication device 1409 may allow the electronic device 1400 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.14 The electronic device 1400 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.

[0154] 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 1409, or installed from the storage device 1408, or installed from the ROM 1402. When the computer program is executed by the processing device 1401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

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

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

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

[0158] 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 processing method that may be involved in various embodiments above is implemented.

[0159] The embodiments of the present disclosure provide a computer program product, including a computer program. When the computer program is executed by a processor, the speech processing method that may be involved in the above embodiments is implemented.

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

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

[0162] 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".

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

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

[0165] 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".

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

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

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

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

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

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

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

[0173] 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 processing method, It is characterized in that include: In response to a touch operation on a speech acquisition control in a speech transcription page, acquiring speech to be transcribed; Performing text transcription processing on the speech to be transcribed to obtain a transcribed text associated with the speech to be transcribed; displaying the transcribed text; Among them, the text transcription processing is implemented based on a speech recognition model, and the speech recognition model is obtained through training in a first training stage and a second training stage. In the first training stage, the encoder of the speech recognition model is trained based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to the training speech. In the second training stage, the speech recognition model trained in the first training stage is trained based on sample speech in a target language and target transcribed text corresponding to the sample speech.

2. The method according to claim 1, It is characterized in that The step of acquiring the speech to be transcribed in response to the touch operation on the speech acquisition control in the speech transcription page 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 any one of the multiple voices, the touched voice is determined as the voice to be transcribed.

3. The method according to claim 1, It is characterized in that The step of acquiring the speech to be transcribed in response to the touch operation on the speech acquisition control in the speech transcription page includes: In response to a touch operation on the voice acquisition control, voice recording is performed to obtain the voice to be transcribed.

4. The method according to any one of claims 1 to 3, It is characterized in that The second training phase of the speech recognition model is based on the following training method: Obtaining a sample speech in a target language and a target transcription text corresponding to the sample speech; The encoder based on the speech recognition model processes the sample speech to obtain a sample phonetic symbol sequence associated with the sample speech, wherein the encoder of the speech recognition model is used to convert the speech into a speech-related phonetic symbol sequence; Processing the sample phonetic symbol sequence based on the decoder of the speech recognition model to obtain a predicted transcription text; The speech recognition model is trained based on the target transcription text and the predicted transcription text.

5. The method according to claim 4, It is characterized in that The training of the speech recognition model based on the target transcription text and the predicted transcription text includes: determining a loss between the target transcript and the predicted transcript; The speech recognition model is trained based on the loss between the target transcript and the predicted transcript.

6. The method according to any one of claims 1 to 3, It is characterized in that The first training phase of the speech recognition model is based on the following training: Get training speech in multiple languages; Obtain the training phonetic symbol sequence corresponding to each training speech; The encoder of the speech recognition model is trained based on the training speech in the multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech.

7. The method according to claim 6, It is characterized in that The step of training the encoder of the speech recognition model based on the training speech of the multiple languages ​​and the training phonetic symbol sequence corresponding to each training speech comprises: For any training speech, the encoder based on the speech recognition model processes the training speech to obtain a predicted phonetic symbol sequence; The encoder of the speech recognition model is trained based on the predicted phonetic symbol sequence and the training phonetic symbol sequence corresponding to the training speech.

8. The method according to claim 6, It is characterized in that The step of obtaining a training phonetic symbol sequence corresponding to each training speech comprises: Determine the training text corresponding to each training speech; Based on the training text, a training phonetic symbol sequence associated with the training speech is determined.

9. The method according to claim 6, It is characterized in that After the encoder training of the speech recognition model is completed, the method further includes: Acquire the training speech of the target language and the target phonetic symbol sequence corresponding to the training speech of the target language; Based on the training speech of the target speech and the target phonetic symbol sequence, the parameters of the encoder of the speech recognition model are updated.

10. A speech processing device, It is characterized in that It includes a response module, a processing module and a display module, wherein: The response module is used to obtain the speech to be transcribed in response to the touch operation of the speech acquisition control in the speech transcription page; The processing module is used to perform text transcription processing on the speech to be transcribed to obtain a transcribed text associated with the speech to be transcribed; The display module is used to display the transcribed text; Among them, the text transcription processing is implemented based on a speech recognition model, and the speech recognition model is obtained through training in a first training stage and a second training stage. In the first training stage, the encoder of the speech recognition model is trained based on training speech in multiple languages ​​and training phonetic symbol sequences corresponding to the training speech. In the second training stage, the speech recognition model trained in the first training stage is trained based on sample speech in a target language and target transcribed text corresponding to the sample speech.

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 processing 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 processing method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Language determination method and electronic device

    US20250166611A1