Spoken language learning method and apparatus, device, and storage medium
Through user-defined scene description information and historical human-machine conversational speech, the conversational speech of the spoken language learning device is directly generated, which solves the problems of limited scenarios and accumulation of errors in traditional spoken language learning methods, and improves the efficiency of spoken language learning and user willingness.
Patent Information
- Application Number
- PCT/CN2024/075898
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-17
AI Technical Summary
Traditional spoken language learning methods are limited to fixed scenarios, and errors are prone to occur through speech recognition, text generation, and speech synthesis, resulting in machine responses that are not in line with the user's emotional state and reducing the user's willingness to speak.
By obtaining user-defined scene description information, the machine's current dialogue voice is directly generated based on the scene description information and historical human-machine conversation speech, achieving end-to-end speech generation, retaining the prosodic information of the user's voice, and ensuring that the reply matches the situation and emotion.
It expands the scope of scenarios for users to learn spoken language, improves the efficiency of spoken language learning, enhances the user's willingness to have a spoken dialogue with the machine, reduces inherited errors, and generates conversational speech that is more in line with the user's emotional state.
Smart Images

Figure CN2024075898_17102024_PF_FP_ABST
Abstract
Description
Oral learning method, device, equipment and storage medium Technical Field
[0001] This application claims priority to a domestic application filed with the Patent Office of China on April 13, 2023, with application number 202310417710.3 and invention name “Spoken Language Learning Method, Device, Equipment and Storage Medium”, and a domestic application filed with the Patent Office of China on April 28, 2023, with application number 202310493202.3 and invention name “Spoken Language Learning Method, Device, Equipment and Storage Medium”, the entire contents of which are incorporated by reference into this application. Background Art
[0002] In today's globalized world, mastering one or more foreign languages is an inevitable requirement. Foreign language learning, especially oral learning, has become a global challenge.
[0003] Traditional personalized oral learning solutions typically provide users with oral questions in fixed scenarios for practice. Alternatively, within a fixed scenario, text recognition is performed based on the user's conversational speech, and the machine's response text is determined based on the recognized text. Then, through speech synthesis, the response text is synthesized into speech output to achieve the purpose of human-machine dialogue training. First, the existing technology uses fixed scenarios, which limits the scope of scenarios for users to learn oral language. Second, the existing approach of achieving human-machine dialogue through speech recognition, text generation, and speech synthesis is prone to error accumulation. For example, when there is an error in the user's speech recognition, the machine's response text generated based on the erroneous recognition text will be incorrect, which in turn will lead to errors in the synthesized speech. Furthermore, the existing approach is also prone to losing the prosodic information of the user's speech. Reply text generation and speech synthesis based solely on recognized text can cause the sentiment of the machine's response content to not match the user's current emotional state, reducing the user's willingness to engage in oral dialogue with the machine, thereby affecting the efficiency of oral learning.
[0004] Summary of the Invention
[0005] In view of the above problems, this application is proposed to provide a spoken language learning method, device, equipment and storage medium to improve the accuracy of machine response speech during spoken language learning and improve the user's spoken language learning efficiency. The specific solution is as follows:
[0006] In a first aspect, a spoken language learning method is provided, comprising:
[0007] Obtaining user-defined scenario description information, wherein the scenario description information is used to define the scenario of the current spoken conversation;
[0008] Generate the machine's current turn of dialogue speech based on the scenario description information, the user's current turn of input speech, and the historical dialogue speech between the user and the machine before the current turn in the current oral dialogue process;
[0009] Output the current round of dialogue speech of the machine.
[0010] In a second aspect, a spoken language learning device is provided, comprising:
[0011] A scenario description information acquisition unit, configured to acquire scenario description information defined by a user, wherein the scenario description information is used to define the scenario of the current spoken conversation;
[0012] A conversation speech generating unit, configured to generate the machine's current turn conversation speech based on the scenario description information, the user's current turn input speech, and the historical conversation speech between the user and the machine before the current turn in the current oral conversation;
[0013] A dialogue voice output unit is used to output the current round of dialogue voice of the machine.
[0014] In a third aspect, a spoken language learning device is provided, comprising: a memory and a processor;
[0015] The memory is used to store programs;
[0016] The processor is used to execute the program to implement the various steps of the spoken language learning method as described above.
[0017] In a fourth aspect, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned spoken language learning method are implemented.
[0018] By leveraging the above technical solution, this application supports user-defined scenarios for spoken dialogues. By acquiring user-defined scenario description information, the application generates the machine's current-round dialogue voice based on this scenario description information, the user's current-round input voice, and the historical conversation voices between the user and the machine before the current round in this spoken dialogue, and outputs the current-round dialogue voice. This allows the user to practice spoken dialogue with the machine in user-defined scenarios during the spoken language learning process. Clearly, since this application supports user-defined spoken dialogue scenarios, it expands the scope of scenarios for users' spoken language learning, facilitating their spoken language learning. In addition, the present application abandons the existing technology of generating machine reply voice through user voice recognition, machine reply text generation, and voice synthesis, and directly generates the machine's current round of dialogue voice based on the scenario description information and the historical human-machine dialogue voice, that is, it realizes end-to-end voice generation, retains the rhythmic information of the user voice in the historical human-machine dialogue voice, makes the generated machine's current round of dialogue voice more in line with the user's current emotional state, and improves the user's willingness to have an oral dialogue with the machine. At the same time, the scenario description information is also taken into account when generating the machine's current round of dialogue voice, so that the generated dialogue voice conforms to the user-defined scenario description information, standardizes the scene of oral dialogue, and improves the efficiency of user oral learning as a whole. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0020] FIG1 is a flow chart of a spoken language learning method provided in an embodiment of the present application;
[0021] Figure 2 illustrates a schematic diagram of a human-computer dialogue interface in a spoken language learning scenario;
[0022] FIG3 illustrates a schematic diagram of a process for generating scenario description information based on a model;
[0023] FIG4 illustrates an interface diagram of a related sentence expression provided before a spoken conversation;
[0024] FIG5 illustrates a schematic diagram of a process for generating the current-round conversation speech of a machine based on a model;
[0025] FIG6 illustrates a schematic diagram of a model-based error correction and polishing of user input speech;
[0026] FIG7 illustrates a schematic diagram of a process for generating a user conversational ability evaluation based on a model;
[0027] FIG8 illustrates a schematic diagram of an output interface for evaluating user conversational ability;
[0028] FIG9 is a schematic diagram of the structure of a spoken language learning device provided in an embodiment of the present application;
[0029] FIG10 is a schematic diagram of the structure of the spoken language learning device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0031] This application provides a spoken language learning solution that can be applied to spoken language learning scenarios of various languages. It helps users practice and learn spoken language through human-machine spoken dialogue, and supports users to define the scenario of each spoken dialogue, realizing human-machine spoken dialogue in the defined scenario. At the same time, this application adopts an end-to-end speech generation solution, which can directly generate the machine's current round of dialogue speech based on the defined scenario description information and the human-machine historical dialogue speech, abandoning the route adopted by the existing technology of user speech recognition, machine reply text generation, and speech synthesis, reducing inherited errors, while retaining the rhythmic information of the user's voice, etc., improving the matching degree between the machine reply speech and the user's emotions, making users more willing to have oral dialogues with the machine, thereby improving the efficiency of users' spoken language learning.
[0032] The present application solution can be implemented based on a terminal with data processing capabilities, which can be a mobile phone, computer, learning machine, etc.
[0033] Next, in conjunction with FIG1 , the spoken language learning method of the present application may include the following steps:
[0034] Step S100: Obtain user-defined scenario description information.
[0035] The scenario description information is used to define the scenario of the current oral dialogue, and the dialogue scenario may include the subject information of the oral dialogue, the expression tasks that need to be completed during the dialogue process, and the like.
[0036] For example, the scenario description information can be:
[0037] Topic: At the beginning of the new semester, a new student joins the class. The teacher encourages everyone to become friends with the new student. Say hello for the first time and chat about their interests and hobbies.
[0038] Task: Introduce each other's names, welcome him to the class, talk about your interests and hobbies, and learn about each other's favorite foods.
[0039] Before a user starts a spoken conversation with a machine, they can first define the scenario description information of this spoken conversation. The machine can then have a spoken conversation with the user in this scenario, standardizing the scenario of the spoken conversation.
[0040] It should be explained here that a spoken conversation defined in this application may include multiple rounds of conversations between a user and a machine. A spoken conversation may be a spoken practice process of a user, that is, a complete spoken conversation process in a defined conversation scenario.
[0041] Step S110: Generate the machine's current-round dialogue voice based on the scenario description information, the user's current-round input voice, and the historical dialogue voices between the user and the machine before the current turn in this oral dialogue.
[0042] Specifically, after a user begins a spoken conversation with a machine, the machine needs to respond to each round of user input. To this end, in this step, when generating each round of machine speech, the machine can generate the current round of speech based on the contextual description information determined in the previous step, the user's current round of input, and the previous rounds of conversation between the user and the machine. In other words, when generating each round of machine speech, it is necessary to refer to the defined contextual description information and the previous rounds of conversation between the user and the machine to ensure that the generated machine speech for the current round of conversation always remains within the defined conversational context and is semantically coherent with the previous rounds of conversation.
[0043] Furthermore, this step can employ an end-to-end speech generation approach. This involves directly generating the machine's speech for the current turn based on contextual description information, the user's current input speech, and historical human-machine conversations. This end-to-end speech generation approach preserves the prosody of the user's conversational speech, specifically the emotions expressed in the user's speech. This allows the generated machine speech to better align with the emotions of the user's input speech, resulting in a more human-like and intelligent machine. Furthermore, this end-to-end speech generation approach avoids the inherited errors common in existing technologies.
[0044] Optionally, the historical conversational speech between the user and the machine used as a reference when generating the machine's current turn of conversational speech in this step can be all historical conversational speech prior to the current turn in the current spoken conversation. Alternatively, a portion of the historical conversational speech can be selected as input reference, for example, selecting a set number of historical conversational speech rounds prior to the current turn. Alternatively, the semantic information of the user's current turn's input speech can be analyzed, and historical conversational speech can be searched for historical conversational speech whose relevance to the semantic information meets a set relevance threshold.
[0045] Step S120: output the current round of dialogue voice of the machine.
[0046] Specifically, the generated machine conversational speech can be directly output to the user. Specifically, the output can be the audio of the current round of conversational speech, or the recognized text of the conversational speech can be output synchronously.
[0047] Figure 2 shows a diagram of a human-computer dialogue interface for spoken language learning. The left dialog box contains the text corresponding to each round of dialogue speech generated by the machine, while the right dialog box contains the text corresponding to the dialogue speech input by the user.
[0048] It should be noted that FIG2 illustrates the example of transcribing the conversation voice into text form for display. In addition, the audio bar corresponding to the conversation voice between the machine and the user can also be directly displayed.
[0049] The spoken language learning method provided in the embodiments of the present application supports user-defined spoken language dialogue scenarios. By obtaining user-defined scenario description information, the method further generates the machine's current-round dialogue voice based on the scenario description information, the user's current-round input voice, and the historical dialogue voices between the user and the machine before the current turn in the current spoken dialogue, and outputs the current-round dialogue voice. This achieves the purpose of practicing spoken language dialogue between the user and the machine in the user-defined scenario during the spoken language learning process. Obviously, because the present application supports user-defined spoken language dialogue scenarios, it expands the scope of scenarios for users' spoken language learning and facilitates users' spoken language learning. In addition, the present application abandons the existing technology of generating machine reply voice through user voice recognition, machine reply text generation, and voice synthesis, and directly generates the machine's current round of dialogue voice based on the scenario description information and the historical human-machine dialogue voice, that is, it realizes end-to-end voice generation, retains the rhythmic information of the user voice in the historical human-machine dialogue voice, makes the generated machine's current round of dialogue voice more in line with the user's current emotional state, and improves the user's willingness to have an oral dialogue with the machine. At the same time, the scenario description information is also taken into account when generating the machine's current round of dialogue voice, so that the generated dialogue voice conforms to the user-defined scenario description information, standardizes the scene of oral dialogue, and improves the efficiency of user oral learning as a whole.
[0050] Optionally, the scenario description information obtained in the embodiments of the present application can be in any one or more combinations of text, voice, and image formats. That is, the scenario description information can include at least one or more of scenario description text, scenario description voice, and scenario description image. The scenario description image can be a scenario image corresponding to the current oral conversation scenario. Users can define scenario description information in the form of text, voice, or image according to their preferred input method.
[0051] In some embodiments of the present application, several optional implementations of the above step S100 of obtaining user-defined scenario description information are provided.
[0052] 1. An optional situation:
[0053] The present application may provide an interface for users to input scenario description information, on this basis, the scenario description information input by the user may be directly used as user-defined scenario description information.
[0054] The user may input the scenario description information in text form or voice form.
[0055] 2. Another optional situation:
[0056] Considering that in some cases, the user may not be able to determine the specific context of the conversation, this embodiment can support the user to determine the specific context of the conversation by interacting with the machine.
[0057] In this case, the application can provide an interface for the user to input contextual prompt information, and obtain the contextual prompt information input by the user. The contextual prompt information is used to indicate the context of the current spoken dialogue generated by the machine. The contextual prompt information may include the role and function to be played by the machine. The contextual prompt information can be in text or voice form, depending on the user's input method.
[0058] After acquiring the situation prompt information, the situation description information of the spoken conversation can be generated as the user-defined situation description information in the form of dialogue interaction with the user. Specifically, the situation description information can be generated in the form of voice dialogue interaction or text dialogue interaction.
[0059] Referring to FIG3 , the scenario prompt information input by the user in the example of FIG3 is “I ask you to play the role of my friend and chat with me. Let’s first discuss what to chat about and what tasks I want to complete.”
[0060] In this embodiment, a pre-trained model can be used to take the situation prompt information and the voice dialogue between the user and the machine as input, and the model can generate the dialogue voice for each round until the model generates all the situation description information.
[0061] For example, given the contextual prompt information input by the user, the model can generate the following sentence: "How about we talk about weekend plans?" Then, using the model-generated speech, the contextual prompt information, and the user's interactive dialogue input "OK" as new input, the model generates the next round of dialogue speech: "Do you want to speak first, or should I?" In this way, the model continuously generates new dialogue speech, using the contextual prompt information and the interactive dialogue content between the user and the machine as input, until it has obtained all the requirements specified in the contextual prompt information, that is, a complete description of the context.
[0062] For example, after multiple rounds of conversation, the final scenario description information is: "The topic of the conversation is weekend plans. The tasks you need to complete include: (1) asking the other party about their weekend plans; (2) explaining your own weekend plans."
[0063] 3. Another optional situation:
[0064] In the above two implementations, it is necessary to provide interfaces for users to input scenario description information or input scenario prompt information respectively.
[0065] This embodiment provides a more intelligent method for acquiring scenario description information, and only requires providing a unified input interface for the user.
[0066] Based on this, the user can obtain the information input through the unified input interface. If the user has a clear conversation scenario, they can directly enter the scenario description information. If the user is unsure of the conversation scenario, they can also enter the scenario prompt information.
[0067] After obtaining the user's input information, the present application can automatically analyze the input information to determine whether the input information contains complete scenario description information. For example, a rule-based judgment method can be used to determine whether the input information contains dialogue topic information and expression task information to be completed. If so, it can be determined that the input information contains complete scenario description information. Otherwise, it can be determined that the input information does not contain complete scenario description information. In addition, a pre-trained machine learning model can be used to classify the input information. The classification results can include two categories, namely, containing complete scenario description information and not containing complete scenario description information.
[0068] Based on the above, if the input information is determined to contain complete scenario description information, the input information can be used as the user-defined scenario description information. Otherwise, the scenario description information of the spoken conversation can be generated through interactive voice dialogue with the user as the user-defined scenario description information. The process of generating scenario description information through interactive voice dialogue with the user can be referred to in the relevant description above.
[0069] The method provided in this embodiment supports users to directly input complete scenario description information or input scenario prompt information. Users do not need to distinguish the input information and can freely choose the input content according to their current wishes, making the determination of the dialogue scenario in the oral learning process more intelligent.
[0070] In some embodiments of the present application, another spoken language learning method is further provided. Building on the spoken language learning method described in the previous embodiments, this embodiment further provides a learning process for sentence expressions associated with the scenario description information after obtaining user-defined scenario description information and before engaging in a spoken conversation with the user, so that the user can first learn sentence expressions related to the current spoken conversation scenario before engaging in a spoken conversation with the machine.
[0071] Specifically, the application can analyze the acquired scenario description information to obtain sentence expressions associated with the current oral dialogue scenario, and further output the associated sentence expressions for the user to practice before the current oral dialogue.
[0072] Among them, related sentence expressions can be further divided into core sentence expressions and extended sentence expressions. Core sentence expressions are the basic expressions in the current oral dialogue context, while extended sentence expressions can be provided for users with more learning ability, expanding other expression methods in oral dialogue contexts.
[0073] In this embodiment, the process of analyzing the scenario description information to obtain associated sentence expressions can be implemented in a variety of different ways. For example, a pre-trained natural language processing model can be used to analyze the scenario description information to output associated sentence expressions. Alternatively, the scenario description information can be analyzed to obtain the current spoken conversation scenario type, and then preset sentence expressions matching the current spoken conversation scenario type can be retrieved.
[0074] Referring to FIG. 4 , it illustrates a scenario assistant interface, which can also be understood as an interface diagram of associated sentence expressions provided before a spoken conversation.
[0075] Take the acquired scenario description information including the following information as an example:
[0076] Topic: At the beginning of the new semester, a new student joins the class. The teacher encourages everyone to become friends with the new student. Say hello for the first time and chat about their interests and hobbies.
[0077] Task: Introduce each other's names, welcome him to the class, talk about your interests and hobbies, and learn about each other's favorite foods.
[0078] FIG4 illustrates sentence expressions associated with the above-mentioned scenario description information, including core expressions and extended expressions.
[0079] When outputting associated sentence expressions, both the source and target language expressions can be output. For example, a native Chinese speaker learning spoken English can display both Chinese and English sentence expressions. Furthermore, the corresponding audio can be output, as shown in Figure 4. When a user clicks on a corresponding sentence expression, the corresponding audio will play.
[0080] When the user has finished learning the related sentences, he can trigger the "Start Dialogue" control on the interface to enter the subsequent human-computer oral dialogue phase.
[0081] In some embodiments of the present application, the process of generating the machine's current round of dialogue voice based on the aforementioned step S110, based on the scenario description information, the voice input by the user in the current round, and the historical dialogue voice between the user and the machine before the current round in this oral dialogue process, is introduced.
[0082] In this embodiment, a spoken conversation speech generation model may be pre-trained. The process of generating the current round of conversation speech of the machine using the spoken conversation speech generation model may include:
[0083] Encoding the scenario description information to obtain a scenario description encoding vector sequence;
[0084] Encode the user's current input speech and the historical conversation speech between the user and the machine before the current turn in this oral dialogue to obtain a discretized acoustic symbol sequence;
[0085] Generating a discrete acoustic symbol sequence of a machine reply speech based on the scenario description coding vector sequence and the discretized acoustic symbol sequence;
[0086] The discrete acoustic symbol sequence of the conversation speech is converted into a machine reply speech as the current turn conversation speech of the machine.
[0087] As shown in FIG5 , the spoken dialogue speech generation model may include: a first encoding module, a second encoding module, a generation module, and a decoding module.
[0088] The first encoding module is used to encode the scenario description information to obtain a scenario description encoding vector sequence;
[0089] The second encoding module is used to encode the speech input by the user in the current round and the historical speech of the user and the machine before the current round in the oral dialogue to obtain a discretized acoustic symbol sequence;
[0090] The generation module is used to generate a discrete acoustic symbol sequence of the machine reply speech based on the scenario description coding vector sequence and the discretized acoustic symbol sequence;
[0091] The decoding module is used to convert the discrete acoustic symbol sequence of the dialogue speech into a machine reply speech as the current turn dialogue speech of the machine.
[0092] It should be noted that, depending on the form of the scenario description information, the first encoding module can adopt different structures. For example, if the scenario description information is in text form, the first encoding module can adopt a text encoding module, such as a bidirectional language model, such as BERT, to encode the scenario description information in text form. If the scenario description information is in voice form, the first encoding module can adopt an audio encoding module to encode the scenario description information in audio form. If the scenario description information is in image form, the first encoding module can adopt an image encoding module to encode the scenario description information in image form. Figure 5 only uses the scenario description information in text form as an example.
[0093] The second encoding module is used to encode the voice, so the second encoding module can use the audio encoding module. It should be noted that the voice input by the user in the current round and the historical conversation voice between the user and the machine before the current round in this oral dialogue can be spliced together and then input into the second encoding module. When splicing the voice, the user voice and the machine voice can be separated by setting the splicing symbol. For example, after the user inputs the voice, splice " <s>"Separator, spliced after the machine responds to the voice"< / s> ” delimiter.
[0094] The generation module can adopt the transformer autoregressive model structure, take the scene description encoding vector sequence and the discretized acoustic symbol sequence as input, and generate the discrete acoustic symbol sequence of the machine response speech.
[0095] The decoding module is responsible for converting the discrete acoustic symbol sequence into machine reply speech, so the decoding module can adopt the audio decoding module.
[0096] It should be noted that the process of generating the situation description information of the oral dialogue based on the situation prompt information in the aforementioned embodiment in the form of interactive voice dialogue with the user adopts the model shown in Figure 3. The model shown in Figure 3 can be the oral dialogue speech generation model in this embodiment. It is only necessary to provide training data related to the situation description information to train the model during the model training stage. For example, situation prompt information for training and human-computer interaction dialogue speech containing situation description information can be provided as training data.
[0097] In some embodiments of the present application, another spoken language learning method is further provided.
[0098] In this embodiment, a function of correcting and polishing the user's input speech during the spoken conversation can be further provided. The speech correction can include either or both of grammatical correction and pronunciation correction.
[0099] Specifically, the present application can obtain first prompt information for detecting the user's pronunciation, and then based on the first prompt information, correct and polish each sentence input by the user during the oral conversation, and output the erroneous expressions in the user's voice and the polished voice.
[0100] Optionally, the error correction and polishing process can be performed after the oral conversation ends, with each sentence input by the user during the oral conversation being corrected and polished separately to avoid interrupting the conversation process. Of course, it is also possible to select to perform error correction and polish on the user's input speech during the oral conversation.
[0101] The first prompt information may be a pre-set template prompt information, and after detecting that the oral conversation has ended, the preset first prompt information may be automatically obtained, and then the error correction and polishing process may be performed based on the first prompt information. Of course, it is also possible to display a first function control on the interface after detecting that the oral conversation has ended, and the name of the first function control may be "Error Correction and Polishing". Then, after detecting that the user triggers the first function control, the preset first prompt information may be obtained, and then the error correction and polishing process may be performed based on the first prompt information.
[0102] In addition, the first prompt information can also be a prompt information input by the user. The user can actively input the first prompt information during the oral dialogue or after the oral dialogue ends to instruct the machine to perform error correction and polishing.
[0103] The first prompt information may be in text form or voice form.
[0104] The functionality provided in this embodiment for correcting and polishing user input speech can be implemented based on the spoken conversation speech generation model provided in the previous embodiment. During the model training phase, the original speech with mispronounced and grammatically incorrect words and the manually polished speech can be used as training data.
[0105] 6 , which illustrates a schematic diagram of using a spoken dialogue speech generation model to correct and polish user input speech.
[0106] The first prompt information includes: Please correct the pronunciation and grammar of the user's voice input and polish it.
[0107] In some embodiments of the present application, another spoken language learning method is further provided.
[0108] In this embodiment, a function for evaluating the user's conversational ability during a spoken conversation may be further provided. The evaluation of the user's conversational ability may include, but is not limited to, any one or more of the following: comments, ability scores, pronunciation and grammatical errors, and the use of core expressions.
[0109] Specifically, the present application can obtain second prompt information for evaluating the user's conversation process, and then generate evaluation information of the user's conversation ability based on the second prompt information and the conversation voice between the user and the machine during this oral conversation. The evaluation information can be in voice form, text or other forms.
[0110] The process of evaluating the user's conversation ability may be to perform an overall evaluation of the speech input by the user during the oral conversation after the oral conversation ends.
[0111] The second prompt information may be a pre-set template prompt information. Upon detecting the end of the spoken conversation, the preset second prompt information may be automatically obtained, and the user's conversational ability evaluation information may be generated based on the second prompt information. Alternatively, upon detecting the end of the spoken conversation, a second function control may be displayed on the interface. The second function control may be named "Generate Conversational Ability Evaluation." Upon detecting that the user triggers the second function control, the preset second prompt information may be obtained, and the user's conversational ability evaluation information may be generated based on the second prompt information.
[0112] In addition, the second prompt information can also be prompt information input by the user. After the oral conversation ends, the user can actively input the second prompt information to instruct the machine to generate evaluation information of the user's conversation ability.
[0113] The second prompt information may be in text form or voice form.
[0114] The function provided in this embodiment for evaluating the conversational competence of the user and machine during a spoken conversation can be implemented based on the spoken conversational speech generation model provided in the previous embodiment. During the model training phase, the model simply uses multiple rounds of conversational speech between the user and the machine, along with the annotated user conversational competence evaluation information, as training data.
[0115] 7 , which illustrates a schematic diagram of a process for generating a user conversation ability evaluation using a spoken conversation speech generation model.
[0116] The second prompt information includes: Please evaluate the user's conversation ability in the entire conversation, and provide a score and comments.
[0117] Further referring to FIG8 , it illustrates a schematic diagram of an output interface for evaluating user conversational ability.
[0118] As shown in the figure, the user's conversation ability throughout the entire conversation process can be evaluated, for example: the completion of the tasks specified in the scenario description information, the completion of the core expression, the existence of pronunciation / pronunciation skill errors, the existence of grammatical errors, etc.
[0119] Furthermore, corresponding learning resources can be provided based on the evaluation results (i.e., the "gas station" in Figure 8 is a link control for learning resources), such as oral learning resources related to the task, oral learning resources related to core expressions, oral learning resources related to pronunciation / pronunciation skills, and oral learning resources related to grammatical errors. This embodiment can recommend similar oral learning resources to users based on the evaluation results, allowing users to conduct targeted oral practice, improve their mastery of relevant knowledge points, and enhance the overall efficiency of oral learning.
[0120] The lower part of Figure 8 also illustrates the recognized text corresponding to the human-computer dialogue voice during the oral dialogue, wherein the user's incorrect expressions can be highlighted. For example, if the user makes an error in pronouncing the word "welcome", the word can be highlighted to remind the user.
[0121] In the above-mentioned embodiments of the present application, the spoken conversation speech generation model can be used to realize functions such as generating the current round of conversation speech of the machine, correcting and polishing each sentence input by the user, and generating evaluation speech of the user's conversation ability. This embodiment introduces an optional training process of the corresponding spoken conversation speech generation model.
[0122] The model training process provided in this embodiment can be roughly divided into three stages:
[0123] Phase 1: Training the basic speech conversation capabilities of the spoken conversation speech generation model based on the first dataset.
[0124] The first data set may include collected real two-person conversation speech and two-person conversation speech synthesized based on real conversation text.
[0125] This application can obtain video data publicly available on the Internet, and after data cleaning and structured processing, obtain two-person voice conversation data, which is used to train a model so that the model can learn general voice conversation capabilities from massive amounts of data. Specifically, massive amounts of Internet video data can be classified based on pre-trained conversation video and non-conversation video classifiers, non-conversation video data can be removed, and then the conversation video data can be transcribed. The number of speakers is determined based on the transcribed text, and data with more than two speakers is removed. The conversational speech in the two-person conversation data is then segmented according to the speaker change points, and the speaker roles are marked to obtain the final standardized real two-person voice conversation data.
[0126] Furthermore, in order to further expand the two-person conversation voice, speech synthesis technology can be used to perform speech synthesis on the real two-person conversation text to obtain the synthesized two-person conversation voice.
[0127] In the second stage, the spoken dialogue speech generation model is trained based on the second dataset to provide spoken dialogue training capabilities.
[0128] The second data set includes real oral practice conversation voices (for example, real oral practice conversation voices between people) and scenario description information.
[0129] By using the second data set to train the model, the model can be adapted to the oral dialogue practice scenario.
[0130] The spoken dialogue speech generation model trained in the first and second stages can be used to generate the current round of dialogue speech for the machine.
[0131] In the third stage, the error correction and polishing capabilities of the spoken dialogue speech generation model are trained based on the third dataset, and the user dialogue ability evaluation capability of the spoken dialogue speech generation model is trained based on the fourth dataset.
[0132] Among them, the third data set includes the original speech and manually polished speech of words marked with pronunciation errors and grammatical errors. Using the third data set to train the model can enable the model to have the ability to automatically correct and polish pronunciation and expression.
[0133] Considering that the amount of real conversation data in actual situations is small and it is difficult to cover various answer situations, in this embodiment, a large amount of non-conversation data can be used for manual annotation to construct a third data set.
[0134] The fourth dataset includes multiple rounds of conversations between users and the machine, along with annotated user conversational competence evaluation information. Using this dataset to train a model enables the model to generate user conversational competence evaluations.
[0135] It should be noted that in the third phase, the model can be trained using both the third and fourth datasets simultaneously, or sequentially. For example, using both datasets simultaneously for model training means that pronunciation, automatic expression correction, polishing, and conversational competence assessment are trained together. Both datasets share the same input and output formats, differing only in the input prompt information (the first prompt information is used in the first phase, while the second prompt information is used in the second phase), and the number of conversational voices (the first is a single user input voice, while the second is the entire conversational voice between the user and the machine).
[0136] After the three stages of model training, the resulting spoken conversational speech generation model can generate the machine's current conversational speech, perform error correction and polishing on each sentence input by the user, and generate speech evaluations of the user's conversational abilities. This spoken conversational speech generation model can adopt the codec model structure shown in Figure 5, or it can employ a generative, large-scale pre-trained language model, such as the chatGPT series.
[0137] The spoken language learning device provided in an embodiment of the present application is described below. The spoken language learning device described below and the spoken language learning method described above can be referenced to each other.
[0138] See FIG9 , which is a schematic diagram of the structure of a spoken language learning device disclosed in an embodiment of the present application.
[0139] As shown in FIG9 , the apparatus may include:
[0140] A scenario description information acquisition unit 11 is used to acquire scenario description information defined by the user, wherein the scenario description information is used to define the scenario of the current spoken conversation;
[0141] A conversation speech generating unit 12 is configured to generate the machine's current turn conversation speech based on the scenario description information, the user's current turn input speech, and the historical conversation speech between the user and the machine before the current turn in the current oral conversation;
[0142] The dialogue voice output unit 13 is used to output the current round of dialogue voice of the machine.
[0143] Optionally, the process of the scenario description information obtaining unit obtaining the user-defined scenario description information may include:
[0144] Using the input scenario description information as user-defined scenario description information;
[0145] or,
[0146] Obtaining input context prompt information, wherein the context prompt information is used to instruct the machine to generate a context for this spoken dialogue;
[0147] Based on the scenario prompt information, scenario description information of this spoken dialogue is generated in the form of dialogue interaction with the user as user-defined scenario description information.
[0148] Further optionally, the process of the scenario description information obtaining unit obtaining the user-defined scenario description information may include:
[0149] Get user input information;
[0150] determining whether the input information includes complete scenario description information, and if so, using the input information as user-defined scenario description information;
[0151] If not, based on the input information, the scenario description information of this oral dialogue is generated in the form of dialogue interaction with the user as the user-defined scenario description information.
[0152] Optionally, the device of the present application may further include:
[0153] The associated sentence expression determination unit is used to analyze the scenario description information before conducting an oral dialogue with the user to obtain the sentence expression associated with the current oral dialogue scenario; and output the associated sentence expression for the user to practice before the current oral dialogue.
[0154] Optionally, the device of the present application may further include:
[0155] The error correction and polishing unit is used to obtain first prompt information for detecting the user's pronunciation; based on the first prompt information, each sentence input by the user during the oral dialogue is corrected and polished, and the incorrect expressions in the user's voice and the polished voice are output.
[0156] Optionally, the device of the present application may further include:
[0157] The conversation ability evaluation unit is used to obtain second prompt information for evaluating the user conversation process; based on the second prompt information and the conversation voice between the user and the machine during the oral conversation, generate an evaluation voice of the user's conversation ability.
[0158] Optionally, the process of the conversational speech generation unit generating the current round of conversational speech of the machine can be implemented by a pre-trained spoken conversational speech generation model;
[0159] Then, the process of generating the machine's current round of dialogue speech through the spoken dialogue speech generation model includes:
[0160] Encoding the scenario description information to obtain a scenario description encoding vector sequence;
[0161] Encode the user's current input speech and the historical conversation speech between the user and the machine before the current turn in this oral dialogue to obtain a discretized acoustic symbol sequence;
[0162] Generating a discrete acoustic symbol sequence of a machine reply speech based on the scenario description coding vector sequence and the discretized acoustic symbol sequence;
[0163] The discrete acoustic symbol sequence of the conversation speech is converted into a machine reply speech as the current turn conversation speech of the machine.
[0164] Further optionally, the process of the conversational speech generation unit generating the current round of conversational speech of the machine is implemented by a pre-trained spoken conversational speech generation model. In this case, the apparatus of the present application may further include: a first model training unit for training the spoken conversational speech generation model. The training process may include:
[0165] In the first stage, the basic speech conversation capabilities of the spoken conversation speech generation model are trained based on a first dataset, which includes collected real two-person conversation speech and two-person conversation speech synthesized based on real conversation text;
[0166] In the second stage, the oral conversation practice capability of the oral conversation speech generation model is trained based on a second data set, wherein the second data set includes real oral conversation practice speech and scenario description information.
[0167] Further optionally, the process in which the conversational speech generation unit generates the current round of conversational speech of the machine, and the error correction and polishing unit performs error correction and polishing on each sentence input by the user, can all be implemented by a pre-trained spoken conversational speech generation model. In this case, the apparatus of the present application may further include:
[0168] The second model training unit is used to train the spoken dialogue speech generation model. The training process may include:
[0169] In the first stage, the basic speech conversation capabilities of the spoken conversation speech generation model are trained based on a first dataset, which includes collected real two-person conversation speech and two-person conversation speech synthesized based on real conversation text;
[0170] In the second stage, the spoken conversation speech generation model is trained to provide spoken conversation training capabilities based on a second dataset, wherein the second dataset includes real spoken conversation training speech and scenario description information;
[0171] In the third stage, the error correction and polishing capabilities of the spoken dialogue speech generation model are trained based on a third data set, wherein the third data set includes original speech and manually polished speech of words marked with pronunciation errors and grammatical errors.
[0172] Further optionally, the process of the conversational speech generation unit generating the current round of conversational speech of the machine and the conversational ability evaluation unit generating the user's conversational ability evaluation speech can both be implemented by a pre-trained spoken conversational speech generation model. In this case, the apparatus of the present application may further include:
[0173] The third model training unit is used to train the spoken dialogue speech generation model. The training process may include:
[0174] In the first stage, the basic speech conversation capabilities of the spoken conversation speech generation model are trained based on a first dataset, which includes collected real two-person conversation speech and two-person conversation speech synthesized based on real conversation text;
[0175] In the second stage, the spoken conversation speech generation model is trained to provide spoken conversation training capabilities based on a second dataset, wherein the second dataset includes real spoken conversation training speech and scenario description information;
[0176] In the third stage, the user conversation ability evaluation capability of the spoken conversation speech generation model is trained based on the fourth data set, wherein the fourth data set includes multiple rounds of conversation speech between the user and the machine and the annotated user conversation ability evaluation information.
[0177] The spoken language learning device provided in the embodiments of the present application can be applied to spoken language learning devices, such as mobile phones, computers, learning machines, etc. Optionally, FIG10 shows a hardware structure block diagram of the spoken language learning device. Referring to FIG10 , the hardware structure of the spoken language learning device may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4;
[0178] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;
[0179] The processor 1 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention;
[0180] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;
[0181] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:
[0182] Obtaining user-defined scenario description information, wherein the scenario description information is used to define the scenario of the current spoken conversation;
[0183] Generate the machine's current turn of dialogue speech based on the scenario description information, the user's current turn of input speech, and the historical dialogue speech between the user and the machine before the current turn in the current oral dialogue process;
[0184] Output the current round of dialogue speech of the machine.
[0185] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0186] An embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0187] Obtaining user-defined scenario description information, wherein the scenario description information is used to define the scenario of the current spoken conversation;
[0188] Generate the machine's current turn of dialogue speech based on the scenario description information, the user's current turn of input speech, and the historical dialogue speech between the user and the machine before the current turn in the current oral dialogue process;
[0189] Output the current round of dialogue speech of the machine.
[0190] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0191] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0192] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referenced to each other.
[0193] The above description of the disclosed embodiments will enable those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is to be construed in the widest manner consistent with the principles and novel features disclosed herein.
Claims
1. A method for learning spoken language, characterized in that: include: Obtaining user-defined scenario description information, wherein the scenario description information is used to define the scenario of the current spoken conversation; Generate the machine's current round of dialogue speech based on the scenario description information, the user's current round of input speech, and the historical dialogue speech between the user and the machine before the current round in this oral dialogue process; Output the current turn of dialogue speech of the machine.
2. The method according to claim 1, characterized in that The scenario description information includes: the subject scenario of the oral dialogue, and / or the expression task to be completed during the dialogue process.
3. The method according to claim 1, characterized in that The scenario description information includes at least one of the following: scenario description text, scenario description voice, and scenario description image.
4. The method according to claim 1, characterized in that: The obtaining of user-defined scenario description information includes: Using the input scenario description information as user-defined scenario description information; or, Obtaining input scenario prompt information, wherein the scenario prompt information is used to instruct the machine to generate a scenario for this spoken dialogue; Based on the situational prompt information, situational description information of the current spoken dialogue is generated in the form of dialogue interaction with the user as user-defined situational description information.
5. The method according to claim 1, characterized in that The obtaining of user-defined scenario description information includes: Get user input information; determining whether the input information contains complete scenario description information, and if so, using the input information as user-defined scenario description information; If not, based on the input information, the scenario description information of this oral dialogue is generated in the form of dialogue interaction with the user as the user-defined scenario description information.
6. The method according to claim 1, characterized in that Before engaging in a spoken conversation with the user, it also includes: Analyze the scenario description information to obtain sentence expressions associated with the current oral dialogue scenario; The associated sentence expressions are output for the user to practice before this oral dialogue.
7. The method according to claim 1, characterized in that Also includes: Obtaining first prompt information for detecting the user's pronunciation; Based on the first prompt information, each speech input by the user during the oral dialogue is corrected and polished, and the erroneous expressions in the user's speech and the polished speech are output.
8. The method according to claim 1, characterized in that Also includes: Obtaining second prompt information for evaluating the user's conversation process; Based on the second prompt information and the conversation voice between the user and the machine during the oral conversation, an evaluation of the user's conversation ability is generated.
9. The method according to claim 1, characterized in that: The process of generating the machine's current round of dialogue speech is achieved through a pre-trained spoken dialogue speech generation model; Then, the process of generating the current round of conversation speech of the machine through the spoken conversation speech generation model includes: Encoding the scenario description information to obtain a scenario description encoding vector sequence; Encode the speech input by the user in the current round and the historical speech between the user and the machine before the current round in this oral dialogue to obtain a discretized acoustic symbol sequence; Based on the scenario description coding vector sequence and the discretized acoustic symbol sequence, generating a discrete acoustic symbol sequence of the machine reply speech; The discrete acoustic symbol sequence of the dialogue speech is converted into a machine reply speech as the current turn dialogue speech of the machine.
10. The method according to claim 1, characterized in that The process of generating the current round of dialogue speech of the machine is implemented by a pre-trained spoken dialogue speech generation model. The training process of the spoken dialogue speech generation model includes: In the first stage, the basic speech conversation ability of the spoken conversation speech generation model is trained based on the first data set, wherein the first data set includes the collected real two-person conversation speech and the two-person conversation speech synthesized based on the real conversation text; In the second stage, the oral conversation practice capability of the oral conversation speech generation model is trained based on a second data set, wherein the second data set includes real oral conversation practice speech and scenario description information.
11. The method according to claim 7, characterized in that The process of generating the current round of conversation speech of the machine and correcting and polishing each sentence of speech input by the user is realized by a pre-trained spoken conversation speech generation model. The training process of the spoken conversation speech generation model includes: In the first stage, the basic speech conversation ability of the spoken conversation speech generation model is trained based on the first data set, wherein the first data set includes the collected real two-person conversation speech and the two-person conversation speech synthesized based on the real conversation text; In the second stage, the spoken conversation training capability of the spoken conversation speech generation model is trained based on a second data set, wherein the second data set includes real spoken conversation training speech and scenario description information; In the third stage, the error correction and polishing capabilities of the spoken dialogue speech generation model are trained based on the third data set, wherein the third data set includes the original speech and the manually polished speech of words marked with pronunciation errors and grammatical errors.
12. The method according to claim 8, characterized in that The process of generating the current round of conversation speech of the machine and generating the evaluation of the user's conversation ability is achieved by using a pre-trained spoken conversation speech generation model. The training process of the spoken conversation speech generation model includes: In the first stage, the basic speech conversation ability of the spoken conversation speech generation model is trained based on the first data set, wherein the first data set includes the collected real two-person conversation speech and the two-person conversation speech synthesized based on the real conversation text; In the second stage, the spoken conversation training capability of the spoken conversation speech generation model is trained based on a second data set, wherein the second data set includes real spoken conversation training speech and scenario description information; In the third stage, the user dialogue ability evaluation capability of the spoken dialogue speech generation model is trained based on the fourth data set, wherein the fourth data set includes multiple rounds of dialogue speech between the user and the machine and annotated user dialogue ability evaluation information.
13. A spoken language learning device, characterized in that: include: A scenario description information acquisition unit, used to acquire scenario description information defined by a user, wherein the scenario description information is used to define the scenario of this oral dialogue; A dialogue speech generation unit is used to generate a dialogue speech based on the scenario description information and the user's current input. The speech and the historical speech of the user and the machine before the current turn in this oral dialogue process are used to generate the current turn of the machine's dialogue speech; A dialogue voice output unit is used to output the current round of dialogue voice of the machine.
14. A spoken language learning device, characterized in that: include: Memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the spoken language learning method according to any one of claims 1 to 12.
15. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the spoken language learning method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Scenario man-machine dialogue type oral interactive learning method
CN109493658A
Man-machine conversation method and device, computer equipment and storage medium
CN112052321A
Personalized dialogue method and system based on memory neural network
CN112182162A
Session type human-computer interaction spoken language evaluation method and device and storage medium
CN112307742A
Scene dialogue training method and device, readable storage medium and terminal equipment
CN115168641A
Cited By
Spoken dialogue quality evaluation method for college English learning
CN120235355A
