Method and device for processing speech recognition model, and storage medium
By generating multiple training samples and training speech recognition models based on these samples, the problem of low accuracy and low training efficiency of general speech recognition models is solved, and more efficient and accurate speech recognition model training is achieved, which is suitable for a variety of scenarios.
Patent Information
- Application Number
- CN202310693826.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2023-06-12
- Publication Date
- 2024-09-10
AI Technical Summary
Existing general-purpose speech recognition models have low accuracy when converting speech information into text information, resulting in inability to meet requirements in specific scenarios. Moreover, the rate of obtaining training samples is low, which reduces the adjustment efficiency of the speech recognition model.
By obtaining multiple pronunciation models and text information, multiple training samples are generated based on these models and information. Each sample includes speech information and text information, which is used to train a general speech recognition model, improve the accuracy and efficiency of training samples, and filter through Conditionally select speech information and models suitable for the target scene to enrich the diversity of training samples.
It improves the accuracy and efficiency of the speech recognition model, can automatically obtain high-quality training samples, is suitable for speech recognition tasks in different scenarios, and enhances the adaptability and accuracy of the model.
Smart Images

Figure CN118629397A
Abstract
Description
[0001] This application claims priority to Chinese patent application No. 202310224531.8 filed on March 9, 2023, with invention name “Speech recognition field adaptation method, device and storage medium based on sound cloning”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computers, and in particular to a method, device and storage medium for processing a speech recognition model. Background Art
[0003] Speech recognition models are used to convert speech information into text information. Speech recognition models have been widely used in scenarios such as instant messaging or customer service quality inspection. The general speech recognition models currently available on the market do not have high accuracy in converting speech information into text information and may not meet the requirements. Therefore, it is necessary to adjust the general speech recognition models.
[0004] In the related art, the voices of a large number of people speaking are recorded to obtain a large amount of audio information. Then, for any audio information, the audio information is manually converted into text information, and the audio information and the text information are combined into a training sample. The above process is repeated to obtain a large number of training samples. The general speech recognition model is adjusted using the large number of training samples to obtain a speech recognition model with higher accuracy.
[0005] The related technology needs to rely on manual methods to obtain text information when obtaining training samples, and the rate of obtaining training samples is low, which reduces the efficiency of adjusting the speech recognition model. Summary of the invention
[0006] The present application provides a method, device and storage medium for processing a speech recognition model to improve the efficiency of training the speech recognition model. The technical solution is as follows:
[0007] In a first aspect, the present application provides a method for processing a speech recognition model, and the method is applied to a cloud service platform. In the method, multiple pronunciation models and multiple text information are obtained, the multiple pronunciation models correspond to multiple persons, and each pronunciation model is used to imitate the voice characteristics of the person corresponding to each pronunciation model. Based on the multiple pronunciation models and the multiple text information, multiple training samples are obtained, each training sample includes speech information and at least one text information, the multiple text information includes the at least one text information, and each speech information is obtained by converting the at least one text information by one pronunciation model in the multiple pronunciation models. Based on the multiple training samples, a general speech recognition model is trained to obtain a target speech recognition model.
[0008] Since the multiple pronunciation models obtained correspond to multiple persons, for each person, the pronunciation model corresponding to the person is used to imitate the voice characteristics of the person, so that the sound emitted by the person is the same or similar to the sound emitted by the pronunciation model corresponding to the person. In this way, multiple training samples are obtained based on the multiple pronunciation models and the multiple text information, which not only can automatically obtain training samples, but also improves the accuracy of the obtained training samples. The general speech recognition model is trained based on the multiple training samples, which improves the accuracy and efficiency of the training speech recognition model.
[0009] In a possible implementation, voice information of multiple persons is obtained, and the voice information of the persons is obtained by recording the sounds made by the persons. A general pronunciation model is trained based on the voice information of the multiple persons, and multiple pronunciation models corresponding to the multiple persons are obtained, and the difference between the voice feature of each person and the voice feature of the pronunciation model corresponding to each person is less than a feature threshold. In this way, a large number of pronunciation models can be obtained through the voice information of a large number of persons, and a large number of voice information can be obtained by converting the at least one text information through a large number of pronunciation models, and the at least one text information and each voice information are composed of different training samples to improve the diversity of training samples.
[0010] In another possible implementation, voice information of M persons is obtained, where M is an integer greater than 1. From the voice information of the M persons, voice information of the multiple persons that meet the screening conditions is obtained. In this way, multiple persons in the target scene to which the target speech recognition model is applied can be selected through the screening conditions, multiple pronunciation models can be obtained through the voice information of the multiple persons, multiple training samples can be obtained through the multiple pronunciation models, and then the target speech recognition model applied to the target scene can be trained using the multiple training samples.
[0011] In another possible implementation, voice information of M persons is obtained, where M is an integer greater than 1. A general pronunciation model is trained based on the voice information of the M persons to obtain M pronunciation models corresponding to the M persons. From the M pronunciation models corresponding to the M persons, multiple pronunciation models corresponding to the multiple persons that meet the screening conditions are obtained. In this way, multiple pronunciation models corresponding to multiple persons applied to the target scene can be selected from the obtained pronunciation models through the screening conditions, multiple training samples are obtained through the multiple pronunciation models, and then the target speech recognition model applied to the target scene can be trained using the multiple training samples.
[0012] In another possible implementation, the multiple persons include a first person, and a recording interface is displayed, the recording interface including multiple characters with different pronunciations. The sound of the first person reading the multiple characters is recorded to obtain voice information of the first person. In this way, the voice information of the real person can be obtained, so that a pronunciation model with the same or similar pronunciation as the pronunciation of the person can be trained based on the voice information of the person.
[0013] In another possible implementation, the screening condition includes one or more of the following conditions:
[0014] The age range of the multiple persons, the proportion of male persons among the multiple persons, the proportion of female persons among the multiple persons, the language types of the multiple persons, the accent types of the multiple persons, or the occupations of the multiple persons.
[0015] In another possible implementation, a sentence template is obtained, the sentence template includes a sentence in which a keyword slot exists. A candidate word set corresponding to the keyword slot is obtained, the candidate word set includes multiple candidate keywords to be filled in the keyword slot. Based on the sentence template and the candidate word set, multiple text information is obtained, each text information includes a complete sentence, and the complete sentence is obtained by filling the candidate keyword in the candidate word set in the keyword slot in the sentence template. In this way, a large amount of text information can be automatically obtained, enriching the training samples, and improving the efficiency and accuracy of training the speech recognition model.
[0016] In another possible implementation, the general speech recognition model includes a multi-layer network. The general speech recognition model is trained based on the multiple training samples to adjust the parameters of at least one layer of the network included in the general speech recognition model to obtain a target speech recognition model to improve the efficiency of training the speech recognition model.
[0017] In another possible implementation, the voice feature of the person includes one or more of the following features: the voice quality of the person, or the timbre of the person.
[0018] In a second aspect, the present application provides a device for processing a speech recognition model, which is used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.
[0019] In a third aspect, the present application provides a computing device cluster, the cluster comprising at least one computing device, each device in the at least one computing device comprising at least one processor and at least one memory, the at least one memory storing computer-readable instructions; the at least one processor executes the computer-readable instructions so that the cluster implements the method in the first aspect or any possible implementation manner of the first aspect.
[0020] In a fourth aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the method in the first aspect or any possible implementation manner of the first aspect.
[0021] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program is loaded by a processor to execute the method in the first aspect or any possible implementation manner of the first aspect.
[0022] In a sixth aspect, the present application provides a chip comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;
[0024] Figure 2 It is a structural diagram of another network architecture provided in an embodiment of the present application;
[0025] Figure 3 is a flow chart of a method for processing a speech recognition model provided by an embodiment of the present application;
[0026] Figure 4 This is a schematic diagram of a condition setting interface structure provided in an embodiment of the present application;
[0027] Figure 5 It is a schematic diagram of a statement template structure provided in an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of a candidate word set provided in an embodiment of the present application;
[0029] Figure 7 It is a schematic diagram of the structure of a device for processing a speech recognition model provided in an embodiment of the present application;
[0030] Figure 8is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0031] Fig. 9 It is a schematic diagram of the structure of a cluster provided in an embodiment of the present application;
[0032] Fig.10 It is a schematic diagram of the structure of another cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0034] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0035] See also Figure 1 An embodiment of the present application provides a network architecture 100, wherein the network architecture 100 includes a cloud service platform 101 and an application service platform 102, and the cloud service platform 101 communicates with the application service platform 102.
[0036] The cloud service platform 101 includes a general speech recognition model, which is used to convert speech information into text information. Optionally, the general speech recognition model is an existing speech recognition model.
[0037] The cloud service platform 101 provides a training service for training a general speech recognition model. The application service platform 102 includes an application service for providing an application service through a target speech recognition model, which is a model obtained by requesting the cloud service platform 101 to train the general speech recognition model.
[0038] The accuracy of converting speech information into text information by a general speech recognition model may not be high. When the application service platform 102 needs a target speech recognition model with higher accuracy than the general speech recognition model, the application service platform 102 sends a training request to the cloud service platform 101 .
[0039] The cloud service platform 101 receives the training request, and trains the general speech recognition model based on the training request to obtain a target speech recognition model. The target speech recognition model converts speech information into text information with a higher accuracy than the general speech recognition model converts speech information into text information. The target speech recognition model is deployed in the application service platform 102. In this way, the application service platform 102 can provide application services through the target speech recognition model.
[0040] In some embodiments, the application services provided by the application service platform 102 may include one or more of the following services: in-vehicle assistant service, point-reading machine application service, freight monitoring service, telephone sales service or pilot intercom service, etc.
[0041] In some embodiments, the cloud service platform 101 may be a cluster, including at least one computing device, etc.
[0042] Different application services are applied to different scenarios. For each scenario, the scenario may involve a large number of special and / or proprietary words. In the case where the general speech recognition model lacks targeted training samples to train, the general speech recognition model is used to convert the speech information belonging to the scenario, and the converted text information often cannot achieve satisfactory results. Therefore, the application service platform 102 needs to request the cloud service platform 101 to train the general speech recognition model to obtain the target speech recognition model applied to the scenario.
[0043] In some embodiments, see Figure 2 The network architecture 100 further includes a plurality of application terminals 103, which communicate with the application service platform 102. Each application terminal 103 is located at the user side and can run the application service provided by the application service platform 102 to provide the application service to the user.
[0044] For example, for the vehicle-machine scenario in which the in-vehicle assistant service is applied, the service provider of the in-vehicle assistant service needs a target speech recognition model applied to the vehicle-machine scenario. For the application service platform 102 that provides the in-vehicle assistant service, the service provider can use the application service platform 102 to send a training request to the cloud service platform 101. The cloud service platform 101 receives the training request, trains the general speech recognition model based on the training request, and obtains the target speech recognition model applied to the vehicle-machine scenario. The application service platform 103 receives the target speech recognition model sent by the cloud service platform 101.
[0045] In some embodiments, in the vehicle scenario, the multiple application terminals 103 may be vehicle terminals installed in the car. For any vehicle terminal installed in the car, the user can send a voice conversion request to the application service platform 102 through the vehicle terminal, and the voice conversion request includes the voice information to be converted. The application service platform 102 receives the voice conversion request, converts the voice information into text information through the target voice recognition model, and sends the converted text information to the vehicle terminal. The vehicle terminal displays the converted text information.
[0046] See also Figure 3 The present application embodiment provides a method 300 for processing a speech recognition model, wherein the method 300 is applied to Figure 1 or Figure 2 The network architecture 100 is shown. The method 300 includes the following process.
[0047] Step 301: Acquire multiple pronunciation models, where the multiple pronunciation models correspond to multiple persons, and each pronunciation model is used to imitate the voice characteristics of the person corresponding to each pronunciation model.
[0048] Among them, for each of the multiple persons, the difference between the sound characteristics of the person's pronunciation and the sound characteristics of the pronunciation model corresponding to the person is less than the feature threshold, so that the pronunciation model corresponding to the person is used to imitate the sound characteristics of the person.
[0049] In some embodiments, the sound features of the person's pronunciation include one or more of the following features: the sound quality of the person's pronunciation or the timbre of the person's pronunciation, etc.
[0050] Since the difference between the sound feature of the person's pronunciation and the sound feature of the pronunciation model corresponding to the person is less than the feature threshold, it means that the sound quality of the person's pronunciation is the same as the sound quality of the pronunciation model and / or the timbre of the person's pronunciation is the same as the timbre of the pronunciation model. Alternatively, it means that the sound quality of the person's pronunciation is similar to the sound quality of the pronunciation model and / or the timbre of the person's pronunciation is similar to the timbre of the pronunciation model. In this way, the sound emitted by the person is the same or similar to the sound emitted by the pronunciation model, and the pronunciation model imitates the sound emitted by the person.
[0051] In some embodiments, the execution entity of the method 300 may be Figure 1 or Figure 2 The cloud service platform in the network architecture 100 is shown.
[0052] In step 301, the cloud service platform receives a training request sent by the application service platform, and acquires the multiple pronunciation models under the triggering of the training request.
[0053] In some embodiments, the training request may also include a screening condition, where the screening condition is used to screen out the multiple personnel, where the multiple personnel are users in the first scenario to which the application service provided by the application service platform is applied.
[0054] In some embodiments, the screening conditions include one or more of the following conditions: the age range of the multiple persons, the proportion of male persons among the multiple persons, the proportion of female persons among the multiple persons, the language types of the multiple persons, the accent types of the multiple persons, or the occupations of the multiple persons.
[0055] In some embodiments, the cloud service platform may send a condition setting interface to the application service platform, the condition setting interface including multiple candidate screening conditions. The application service platform receives the condition setting interface and displays the condition setting interface so that the service provider of the application service platform selects the screening condition from the multiple candidate screening conditions included in the condition setting interface.
[0056] The voice type of the person may be the dialect spoken by the person, for example, common dialects include Mandarin, Wu dialect or Cantonese dialect, and the accent type of the person may be a light accent or a heavy accent.
[0057] For example, the cloud service platform can send the following to the application service platform: Figure 4 The condition setting interface shown includes an age setting axis, an input component corresponding to the proportion of male personnel, an input component corresponding to the proportion of female personnel, selection components corresponding to multiple voice types, selection components corresponding to multiple accent types, and selection components corresponding to multiple occupations. The application service platform receives the condition setting interface and displays the condition setting interface.
[0058] In this way, the service provider corresponding to the application service platform can use this age setting axis to set the age range (such as Figure 4 20 and less than or equal to 50 years old), enter the proportion of male personnel in the input component corresponding to the proportion of male personnel (such as Figure 4 As shown, the proportion of male personnel is 60%), enter the proportion of female personnel in the input component corresponding to the proportion of female personnel (such as Figure 4 As shown in Figure 1, the proportion of female employees is 40%), use the selection component corresponding to the language type to select one or more language types (such as Figure 4 As shown, the selected language types include Mandarin, Wu dialect and Northern dialect), and one or more accent types are selected through the selection components corresponding to the accent types (such as Figure 4 As shown, the selected accent type is a light accent), and / or, one or more occupations are selected through the selection components corresponding to the occupations (such as Figure 4 As shown, the selected occupation is driver).
[0059] Then the application service platform obtains one or more conditions set in the condition setting interface to obtain a screening condition, which includes the one or more conditions obtained. The application service platform sends a training request to the cloud service platform, which includes the screening condition.
[0060] In step 301, the multiple pronunciation models may be acquired through the following operations 3011-3013.
[0061] 3011: Obtain the personnel information and voice information of M persons.
[0062] Here, M is an integer greater than 1, for example, M=10000, 20000 or 30000.
[0063] For each of the M persons, the voice information of the person is obtained by recording the sound made by the person. Optionally, the person information of the person includes one or more of the following information: the age of the person, the language type spoken by the person, the accent type of the person, the gender of the person, or the occupation of the person.
[0064] In some embodiments, the general speech recognition model includes personnel information and speech information of a large number of personnel, and the speech information of each person in the general speech recognition model is obtained by recording the sound of each person in advance. The general speech recognition model may be trained based on the speech information of the large number of personnel. The speech information of the M persons is the speech information in the general speech recognition model.
[0065] In some embodiments, a recording interface is displayed to a first person, the recording interface including multiple characters with different pronunciations, and the first person is any one of the M persons. The sound of the first person reading the multiple characters is recorded to obtain voice information of the first person. For persons other than the first person among the M persons, the voice information of the persons other than the first person among the M persons is obtained in the same manner as described above. Optionally, during implementation:
[0066] The cloud service platform may send the recording interface to the application service platform, and the recording interface includes the multiple characters. The application service platform sends the recording interface to the application terminals of the M persons. The application terminal of any one of the M persons, that is, the application terminal of the first person, receives the recording interface and displays the recording interface, so that the first user can read aloud the multiple characters in the recording interface. The application terminal of the first person records the sound emitted by the first user to obtain the voice information of the first person, and sends the personnel information and voice information of the first person to the application service platform. The M persons are users who use the application services provided by the application service platform.
[0067] The application service platform receives the personnel information and voice information of the first person, and similarly receives the personnel information and voice information of M-1 persons other than the first person among the M persons, that is, receives the personnel information and voice information of M persons in total, and sends the personnel information and voice information of the M persons to the cloud service platform. The cloud service platform receives the personnel information and voice information of the M persons.
[0068] Among them, the sounds made by the M persons are recorded and the voice information of the M persons is sent to the cloud service platform, and the voice information of the M persons is used to train a general speech recognition model, all of which are authorized and confirmed by the M persons.
[0069] 3012: Acquire voice information of multiple persons that meet the screening condition from the voice information of the M persons.
[0070] In some embodiments, voice information of multiple persons whose personal information meets the screening condition is selected from the voice information of the M persons.
[0071] The multiple persons selected are users in the first scenario in which the application service provided by the application service platform is applied. For example, the application service provided by the application service platform is a car assistant service, which is applied in a car and used to communicate with the driver in the car, so the multiple persons selected may be the driver of the car.
[0072] In some embodiments, the application service platform may send a recording interface to the application terminals corresponding to the M persons whose personnel information meets the screening condition, so that the voice information of each person collected is the voice information of the person whose personnel information meets the screening condition. In other words, the voice information of the M persons is the voice information of multiple persons whose personnel information meets the screening condition. Therefore, the operation of 3012 may not be performed, but the following operation of 3013 may be performed directly.
[0073] 3013: Train a common pronunciation model based on the voice information of the multiple persons to obtain multiple pronunciation models corresponding to the multiple persons.
[0074] For each of the multiple persons, for ease of explanation, the person is referred to as a first person. Based on the voice information of the first person, a universal pronunciation model is trained using online cloning technology to obtain a pronunciation model corresponding to the first person.
[0075] In some embodiments, the time length of the first person's voice information exceeds a time threshold, so training a universal pronunciation model with the first person's voice information will improve the accuracy of the pronunciation model corresponding to the first person.
[0076] In some embodiments, the universal pronunciation model may be pre-trained speech synthesis (speech synthesis / test to speech, TTS) or the like.
[0077] The above operations 3011-3013 are only an implementation example of obtaining multiple pronunciation models. In addition to this implementation example, other implementation examples can also be used to obtain the multiple pronunciation models.
[0078] For example, an implementation example is listed below. In this implementation example, the personnel information and voice information of M persons are obtained in advance, a common pronunciation model is trained based on the voice information of the M persons, and M pronunciation models corresponding to the M persons are obtained. The M pronunciation models correspond one-to-one to the personnel information of the M persons.
[0079] Thus, when a training request including a screening condition is received from the application service platform, multiple pronunciation models corresponding to the multiple persons that meet the screening condition are obtained from the M pronunciation models corresponding to the M persons. Optionally, multiple pronunciation models corresponding to the multiple persons whose personnel information meets the screening condition are selected from the M pronunciation models corresponding to the M persons.
[0080] Step 302: Acquire multiple text messages, each of which includes multiple characters.
[0081] In 302, multiple text information can be obtained through the following operations 3021-3023.
[0082] 3021: Get a sentence template, where the sentence template includes a sentence having a keyword slot.
[0083] A large number of sentence templates are enumerated in advance, and each sentence template includes a sentence with at least one keyword slot. The part of speech of the keyword slot may be a noun, and it acts as an adverbial or object in the sentence. After the keyword slot in the sentence template is filled with a keyword, a complete sentence is obtained.
[0084] For example, see Figure 5 , a large number of statement templates are enumerated in advance, such as Figure 5 The sentence template "help me book an alarm for {TIME}" includes a keyword slot {TIME}, the part of speech of the keyword slot {TIME} is a noun, and it plays the role of an adverbial in the sentence.
[0085] like Figure 5The sentence template "set an alarm for {DATE}{TIME}" includes two keyword slots, which are {DATE} and {TIME}. The parts of speech of the keyword slots {DATE} and {TIME} are nouns, and they play the role of adverbials in the sentence.
[0086] like Figure 5 The sentence template "play a song {MUSIC_TITLE}" includes a keyword slot {MUSIC_TITLE}, the part of speech of the keyword slot {MUSIC_TITLE} is a noun, and it plays the role of an object in the sentence.
[0087] For the sentence template "Please help me set an alarm for {TIME}", the keyword slot {TIME} in the sentence template is filled with the keyword "eight o'clock in the morning" to obtain a complete sentence "Please help me set an alarm for eight o'clock in the morning".
[0088] In some embodiments, the part of speech of the keyword slot may also be an interjection or a commonly used colloquial vocabulary. For example, for the sentence template "help me order an alarm clock {LABLE} for {TIME}", the sentence template includes two keyword slots, the part of speech of the keyword slot {DATE} is a noun, and the part of speech of the keyword slot {LABLE} is an interjection. The keyword slot {TIME} in the sentence template is filled with the keyword "8 o'clock in the morning", and the interjection "bar" is filled in the keyword slot {LABLE}, and a complete sentence "help me order an alarm clock for 8 o'clock in the morning" is obtained. This makes the obtained complete sentence more real and natural, and more in line with the real corpus.
[0089] For any scenario, try to enumerate sentence templates that cover the entire scenario in advance. Perform similar semantic expansion on any of the enumerated sentence templates to obtain at least one sentence template, and the semantics of any sentence template is similar or identical to the semantics of the at least one sentence template. For example, for the sentence template "help me order an alarm clock for {TIME}", perform similar semantic expansion on the sentence template to obtain the sentence template "help me order an alarm clock for {TIME}". The semantics of the sentence template "help me order an alarm clock for {TIME}" is basically the same as the semantics of the sentence template "help me order an alarm clock for {TIME}". This can enrich the sentence templates.
[0090] In some embodiments, each enumerated statement template has its own application scenario. When a statement template is reported, the statement template and the scenario to which the statement template is applied can be correspondingly saved in the correspondence between statement templates and scenarios.
[0091] Thus, in 3021, based on the first scenario, multiple corresponding sentence templates are obtained from the correspondence between the sentence templates and the scenarios.
[0092] 3022: For a keyword slot in the sentence template, obtain a candidate word set corresponding to the keyword slot, where the candidate word set includes multiple candidate keywords to be filled into the keyword slot.
[0093] For any keyword slot included in any sentence template, candidate keywords corresponding to the keyword slot can be enumerated in advance, and the candidate keywords are formed into a candidate word set corresponding to the keyword slot. The keyword slot and the candidate word set are correspondingly stored in the corresponding relationship between the keyword slot and the candidate word set.
[0094] In 3022, for the keyword slot in the sentence template, based on the keyword slot, a candidate word set corresponding to the keyword slot is obtained from the correspondence between the keyword slot and the candidate word set.
[0095] For example, for Figure 5 The keyword slot {TIME} in the keyword slot {TIME} is enumerated to obtain the candidate keywords "2pm", "8am", "10pm", etc. corresponding to the keyword slot {TIME}. The enumerated candidate keywords "2pm", "8am", "10pm", etc. are combined into a candidate word set corresponding to the keyword slot {TIME}. The candidate word set is as follows: Figure 6 (a) shown.
[0096] for Figure 5 The keyword slot {MUSIC_TITLE} in the keyword slot {MUSIC_TITLE} is enumerated to obtain the candidate keywords "song 1", "song 2", "song 3", etc. corresponding to the keyword slot {MUSIC_TITLE}. The enumerated candidate keywords "song 1", "song 2", "song 3", etc. are combined into a candidate word set corresponding to the keyword slot {MUSIC_TITLE}. The candidate word set is as follows: Figure 6 (b) as shown.
[0097] for Figure 5 The keyword slot {DATE} in the keyword slot {DATE} is enumerated to obtain the candidate keywords "today", "tomorrow", "the day after tomorrow", etc. The enumerated candidate keywords "today", "tomorrow", "the day after tomorrow", etc. are combined into a candidate word set corresponding to the keyword slot {DATE}. The candidate word set is as follows: Figure 6 (c) as shown.
[0098] for Figure 5The keyword slot {SITE_NAME} in the keyword slot {SITE_NAME} is enumerated to obtain the candidate keywords "Beijing", "Shanghai", "Guangzhou", etc. corresponding to the keyword slot {SITE_NAME}. The enumerated candidate keywords "Beijing", "Shanghai", "Guangzhou", etc. are combined into a candidate word set corresponding to the keyword slot {SITE_NAME}. The candidate word set is as follows: Figure 6 (d) as shown.
[0099] for Figure 5 The keyword slot {APP_NAME} in the keyword slot {APP_NAME} is enumerated to obtain the candidate keywords "Application 1", "Application 2", "Application 3", etc. corresponding to the keyword slot {APP_NAME}. The enumerated candidate keywords "Application 1", "Application 2", "Application 3", etc. are combined into a candidate word set corresponding to the keyword slot {APP_NAME}. The candidate word set is as follows: Figure 6 (e) as shown.
[0100] 3023: Acquire multiple text information based on the sentence template and the candidate word set, each text information includes a complete sentence, and the complete sentence is obtained by filling the candidate keyword in the candidate word set in the keyword slot in the sentence template.
[0101] For each keyword slot in any sentence template, select a candidate keyword from the candidate word set corresponding to the keyword slot, and fill the candidate keyword into the keyword slot in the sentence template to obtain a complete sentence. Then select another candidate keyword, and fill the other candidate keyword into the keyword slot in the sentence template to obtain a complete sentence. Repeat the above process to obtain a large number of complete sentences. For any text information, the text information includes one or more complete sentences.
[0102] For example, Figure 5 In the sentence template "help me order an alarm for {TIME}", the candidate word set corresponding to the keyword slot {TIME} in the sentence template is as follows Figure 6 (a) shows the candidate word set. Figure 6 Select a candidate keyword "2pm" from the candidate word set shown in (a), and fill the candidate keyword into the keyword slot {TIME} in the sentence template to obtain a complete sentence "set an alarm for me at 2pm".
[0103] From Figure 6 Select a candidate keyword "8 o'clock in the morning" from the candidate word set shown in (a), and fill the candidate keyword into the keyword slot {TIME} in the sentence template to obtain a complete sentence "help me set an alarm for 8 o'clock in the morning".
[0104] From Figure 6 Select a candidate keyword "10 o'clock in the evening" from the candidate word set shown in (a), and fill the candidate keyword into the keyword slot {TIME} in the sentence template to obtain a complete sentence "help me set an alarm for 10 o'clock in the evening".
[0105] In this way, text information 1, text information 2 and text information 3 can be obtained. Text information 1 includes "Please set an alarm for me at 2 pm", text information 2 includes "Please set an alarm for me at 8 am", and text information 3 includes "Please set an alarm for me at 10 pm".
[0106] In some embodiments, there is no strict execution order between the above steps 301 and 302. Step 301 may be executed first and then step 302, step 302 may be executed first and then step 301, or step 301 and step 302 may be executed simultaneously.
[0107] Step 303: Acquire multiple training samples based on the multiple pronunciation models and the multiple text information. For each training sample, the training sample includes voice information and at least one text information. The multiple text information includes the at least one text information. The voice information is obtained by converting at least one text information by one pronunciation model among the multiple pronunciation models.
[0108] In step 303, it can be implemented through the following operations 3031-3035.
[0109] 3031: Select at least one text information from the multiple text information to obtain a text information set, where the text information set includes the at least one text information.
[0110] 3032: Select a pronunciation model from the multiple pronunciation models.
[0111] 3033: Use the pronunciation model to convert the text information set into voice information to obtain a training sample, where the training sample includes at least one text information in the text information set and the voice information.
[0112] 3034: If there is an unselected pronunciation model in the multiple pronunciation models, select a pronunciation model from the unselected pronunciation models, and return to execute 3033. If there is no unselected pronunciation model in the multiple pronunciation models, execute 3035.
[0113] 3035: Select at least one text information from the multiple text information to obtain a text information set, which includes the selected at least one text information and is different from each text information set that has been obtained. Return to execute 3032.
[0114] If a text information set different from each of the obtained text information sets cannot be selected from the plurality of text information sets, the process ends and the operation of the following step 304 is performed.
[0115] Since the pronunciation model is used to automatically convert at least one text information into voice information, a training sample including the at least one text information and the voice information is obtained, so that the training sample can be automatically obtained, thereby improving the efficiency of obtaining the training sample.
[0116] Since the sound features of the pronunciation model corresponding to the first person are substantially the same as the sound features of the pronunciation of the first person, the voice information obtained by converting the at least one text information by the pronunciation model corresponding to the first person is substantially the same as the voice information generated by the first person reading the at least one text information aloud. In other words, the voice information in the training sample is substantially the same as the real voice information uttered by the first person, thereby improving the accuracy of the training sample.
[0117] The pronunciation models corresponding to the multiple persons can be obtained through the voice information of the multiple persons, so that a large number of pronunciation models with different pronunciations can be obtained through the voice information of a large number of persons. By converting the at least one text information through a large number of pronunciation models, a large number of voice information with different pronunciations can be obtained, and the at least one text information and the large number of voice information with different pronunciations are combined into a large number of training samples, thereby enriching the diversity of the training samples.
[0118] Step 304: Train the general speech recognition model based on the multiple training samples to obtain a target speech recognition model.
[0119] In some embodiments, the entire general speech recognition model is trained based on the multiple training samples to obtain a target speech recognition model.
[0120] In implementation, the speech information in each training sample is converted using a general speech recognition model to obtain text information corresponding to each training sample, and the network parameters of the general speech recognition model are adjusted based on the text information corresponding to each training sample and the text information included in each training sample. When the number of adjustments reaches a specified number, the speech recognition model at this time is used as the target speech recognition model, or, when the adjusted speech recognition model converges, the speech recognition model at this time is used as the target speech recognition model.
[0121] In some embodiments, the general speech recognition model includes a multi-layer network. The general speech recognition model is trained based on the multiple training samples to adjust the parameters of at least one layer of the network included in the general speech recognition model to obtain a target speech recognition model.
[0122] In implementation, the speech information in each training sample is converted using a general speech recognition model to obtain text information corresponding to each training sample, and the network parameters of the at least one layer of network in the general speech recognition model are adjusted based on the text information corresponding to each training sample and the text information included in each training sample. When the number of adjustments reaches a specified number, the speech recognition model at this time is used as the target speech recognition model, or, when the adjusted speech recognition model converges, the speech recognition model at this time is used as the target speech recognition model.
[0123] In an embodiment of the present application, multiple pronunciation models corresponding to multiple persons are obtained based on the voice information of multiple persons and a universal pronunciation model, so that the sound features of each person's pronunciation are substantially the same as the sound features of the pronunciation of the pronunciation model corresponding to each person. The multiple pronunciation models are used to convert at least one text information to obtain multiple voice information with different pronunciations, and the at least one text information and different voice information are combined into different training samples. In this way, not only can training samples be automatically obtained, the efficiency of obtaining training samples is improved, and the efficiency of training a universal speech recognition model is improved, but also the accuracy and diversity of the obtained training samples can be improved. The universal speech recognition model is trained based on the training samples, and the accuracy of training the universal speech recognition model can be improved.
[0124] See also Figure 7 The present application embodiment provides a device 700 for processing a speech recognition model, wherein the device 700 is applied to Figure 1 or Figure 2 The cloud service platform or Figure 3 The cloud service platform in the method 300 shown includes:
[0125] An acquisition unit 701 is used to acquire a plurality of pronunciation models and a plurality of text information, wherein the plurality of pronunciation models correspond to a plurality of persons, and each pronunciation model is used to imitate the voice characteristics of the person corresponding to each pronunciation model;
[0126] The acquisition unit 701 is further configured to acquire multiple training samples based on the multiple pronunciation models and the multiple text information, each training sample includes voice information and at least one text information, the multiple text information includes the at least one text information, and each voice information is obtained by converting the at least one text information by one of the multiple pronunciation models;
[0127] The processing unit 702 is used to train the general speech recognition model based on the multiple training samples to obtain a target speech recognition model.
[0128] Optionally, the detailed implementation process of the acquisition unit 701 acquiring multiple pronunciation models and multiple text information can be found in Figure 3The relevant contents of step 301 and step 302 of the method 300 are not described in detail here.
[0129] Optionally, the detailed implementation process of the acquisition unit 701 acquiring multiple training samples can be found in Figure 3 The relevant contents of step 303 of the method 300 are not described in detail here.
[0130] Optionally, the detailed implementation process of the processing unit 702 training the general speech recognition model based on the multiple training samples can be found in Figure 3 The relevant contents of step 304 of the method 300 are not described in detail here.
[0131] Optionally, the acquiring unit 702 is configured to:
[0132] Acquire voice information of multiple persons, where the voice information of the persons is obtained by recording the sounds made by the persons;
[0133] A common pronunciation model is trained based on the voice information of the multiple persons to obtain the multiple pronunciation models corresponding to the multiple persons, and the difference between the voice feature of each person and the voice feature of the pronunciation model corresponding to each person is less than a feature threshold.
[0134] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the voice information of multiple persons can be found in Figure 3 The relevant contents of step 3012 of the method 300 are not described in detail here.
[0135] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the multiple pronunciation models corresponding to the multiple persons can be found in Figure 3 The relevant contents of step 3013 of the method 300 are not described in detail here.
[0136] Optionally, the acquiring unit 701 is configured to:
[0137] Obtain voice information of M persons, where M is an integer greater than 1;
[0138] From the voice information of the M persons, voice information of the multiple persons that meet the screening condition is obtained.
[0139] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the voice information of M persons can be found in Figure 3 The relevant contents of step 3011 of the method 300 are not described in detail here.
[0140] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the voice information of the multiple persons meeting the screening condition can be found in Figure 3The relevant contents of step 3012 of the method 300 are not described in detail here.
[0141] Optionally, the acquiring unit 701 is configured to:
[0142] Obtain voice information of M persons, where M is an integer greater than 1;
[0143] Training a universal pronunciation model based on the voice information of the M persons to obtain M pronunciation models corresponding to the M persons;
[0144] From the M pronunciation models corresponding to the M persons, the multiple pronunciation models corresponding to the multiple persons that meet the screening condition are obtained.
[0145] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the voice information of M persons can be found in Figure 3 The relevant contents of step 3011 of the method 300 are not described in detail here.
[0146] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the M pronunciation models corresponding to the M persons can be found in Figure 3 The relevant contents of step 3013 of the method 300 are not described in detail here.
[0147] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the multiple pronunciation models corresponding to the multiple persons meeting the screening condition can be found in Figure 3 The relevant contents of step 3013 of the method 300 are not described in detail here.
[0148] Optionally, the multiple persons include a first person, and the acquiring unit 701 is configured to:
[0149] Displaying a recording interface, the recording interface including a plurality of characters with different pronunciations;
[0150] The sound produced by the first person reading the multiple characters is recorded to obtain the voice information of the first person.
[0151] Optionally, the detailed implementation process of obtaining unit 701 displaying the recording interface can be found in Figure 3 The relevant contents of step 3013 of the method 300 are not described in detail here.
[0152] Optionally, the detailed implementation process of the acquisition unit 701 obtaining the voice information of the first person can be found in Figure 3 The relevant contents of step 3013 of the method 300 are not described in detail here.
[0153] Optionally, the screening condition includes one or more of the following conditions:
[0154] The age range of the multiple persons, the proportion of male persons among the multiple persons, the proportion of female persons among the multiple persons, the language types of the multiple persons, the accent types of the multiple persons, or the occupations of the multiple persons.
[0155] Optionally, the acquiring unit 701 is configured to:
[0156] Obtain a sentence template, the sentence template including a sentence having a keyword slot;
[0157] Obtain a candidate word set corresponding to the keyword slot, the candidate word set including a plurality of candidate keywords to be filled into the keyword slot;
[0158] A plurality of text information is obtained based on the sentence template and the candidate word set, each of which includes a complete sentence, and the complete sentence is obtained by filling the candidate keyword in the candidate word set in the keyword slot in the sentence template.
[0159] Optionally, the detailed implementation process of obtaining the statement template by the obtaining unit 701 can be found in Figure 3 The relevant contents of step 3021 of the method 300 are not described in detail here.
[0160] Optionally, the detailed implementation process of the acquisition unit 701 acquiring the candidate word set corresponding to the keyword slot can be found in Figure 3 The relevant contents of step 3022 of the method 300 are not described in detail here.
[0161] Optionally, the detailed implementation process of the acquisition unit 701 acquiring multiple text information based on the sentence template and the candidate word set can be found in Figure 3 The relevant contents of step 3023 of the method 300 are not described in detail here.
[0162] Optionally, the general speech recognition model includes a multi-layer network, a processing unit 702, for:
[0163] The general speech recognition model is trained based on the multiple training samples to adjust the parameters of at least one layer of network included in the general speech recognition model to obtain a target speech recognition model.
[0164] Optionally, the processing unit 702 trains the general speech recognition model based on the multiple training samples to adjust the parameters of at least one layer of the network included in the general speech recognition model. Figure 3 The relevant contents of step 3023 of the method 300 are not described in detail here.
[0165] Optionally, the sound features of a person's pronunciation include one or more of the following features: the sound quality of the person's pronunciation, or the timbre of the person's pronunciation.
[0166] In an embodiment of the present application, an acquisition unit acquires multiple pronunciation models and multiple text information, the multiple pronunciation models correspond one-to-one to multiple persons, and the sound features of each person's pronunciation are substantially the same as the sound features of the pronunciation model corresponding to each person. The acquisition unit uses the multiple pronunciation models to convert at least one text information to obtain multiple voice information with different pronunciations, and the at least one text information and different voice information are combined into different training samples. In this way, the acquisition unit can not only automatically acquire training samples, improve the efficiency of acquiring training samples, improve the efficiency of the processing unit in training the speech recognition model, but also improve the accuracy and diversity of the acquired training samples. Training the speech recognition model based on the training samples can improve the accuracy of the trained speech recognition model.
[0167] See also Figure 8 , the present application embodiment provides a computing device 800. For example, the computing device 800 may be Figure 1 or Figure 2 The cloud service platform in the network architecture shown includes devices, or Figure 3 Devices in a cloud service platform of the method 300 are shown.
[0168] like Figure 8 As shown, the computing device 800 includes: a bus 802, a processor 804, a memory 806, and a communication interface 808. The processor 804, the memory 806, and the communication interface 808 communicate through the bus 802. The computing device 800 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 800.
[0169] The bus 802 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The bus 802 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 802 may include a path for transmitting information between various components of the computing device 800 (eg, the memory 806, the processor 804, and the communication interface 808).
[0170] The processor 804 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0171] The memory 806 may include a volatile memory, such as a random access memory (RAM). The processor 804 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0172] See also Figure 8 , the memory 806 stores executable program codes, and the processor 804 executes the executable program codes to respectively implement Figure 7 The functions of the acquisition unit 701 and the processing unit 702 in the device 700 shown in the figure are implemented to realize the method provided by any of the above embodiments. That is, the memory 806 stores instructions for executing the method provided by any of the above embodiments. Or,
[0173] The communication interface 808 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 800 and other devices or communication networks.
[0174] The embodiment of the present application also provides a cluster. The cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0175] like Fig. 9 As shown, the cluster includes at least one computing device 800. The memory 806 in one or more computing devices 800 in the cluster may store the same instructions for executing the method provided by any of the above embodiments.
[0176] In some possible implementations, the memory 806 of one or more computing devices 800 in the cluster may also store partial instructions for executing the above-mentioned method for backing up data. In other words, a combination of one or more computing devices 800 may jointly execute instructions for executing the method provided in any of the above-mentioned embodiments.
[0177] In some possible implementations, one or more computing devices in the cluster may be connected via a network, which may be a wide area network or a local area network. Fig.10 A possible implementation is shown. Fig.10 As shown, two computing devices 800A and 800B are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device.
[0178] In this type of possible implementation, the memory 806 in the computing device 800A stores the execution Figure 7 Instructions for obtaining the functions of the unit 701 in the embodiment shown. Meanwhile, the memory 806 in the computing device 800B stores instructions for executing the following Fig. 9 Instructions for the functionality of processing unit 702 in the illustrated embodiment.
[0179] It should be understood that Fig.10 The functions of the computing device 800A shown in FIG. 8 may also be completed by multiple computing devices 800. Similarly, the functions of the computing device 800B may also be completed by multiple computing devices 800.
[0180] The present application embodiment also provides another cluster. The connection relationship between the computing devices in the cluster can be similar to that of Fig.10 The connection mode of the cluster of the acquisition function is different in that the memory 806 in one or more computing devices 800 in the cluster may store the same instructions for executing the method provided in any of the above embodiments.
[0181] In some possible implementations, the memory 806 of one or more computing devices 800 in the cluster may also store partial instructions for executing the method provided in any of the above embodiments. In other words, the combination of one or more computing devices 800 may jointly execute instructions for executing the method provided in any of the above embodiments.
[0182] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the method provided in any of the above embodiments.
[0183] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the method provided in any of the above embodiments.
[0184] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0185] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing a speech recognition model, characterized in that: The method is applied to a cloud service platform, and includes: Acquire multiple pronunciation models and multiple text information, wherein the multiple pronunciation models correspond to multiple persons, and each pronunciation model is used to imitate the voice characteristics of the person corresponding to each pronunciation model; Acquire multiple training samples based on the multiple pronunciation models and the multiple text information, each training sample includes voice information and at least one text information, the multiple text information includes the at least one text information, and each voice information is obtained by converting the at least one text information by one of the multiple pronunciation models; The general speech recognition model is trained based on the multiple training samples to obtain a target speech recognition model.
2. The method according to claim 1, characterized in that The obtaining of multiple pronunciation models comprises: Acquire voice information of multiple persons, where the voice information of the persons is obtained by recording the sounds made by the persons; A universal pronunciation model is trained based on the voice information of the multiple persons to obtain the multiple pronunciation models corresponding to the multiple persons, and the difference between the voice features of each person and the voice features of the pronunciation model corresponding to each person is less than a feature threshold.
3. The method according to claim 2, characterized in that The obtaining of voice information of multiple persons includes: Obtain voice information of M persons, where M is an integer greater than 1; From the voice information of the M persons, voice information of the multiple persons that meet the screening condition is obtained.
4. The method according to claim 1, characterized in that The obtaining of multiple pronunciation models comprises: Obtain voice information of M persons, where M is an integer greater than 1; Training a universal pronunciation model based on the voice information of the M persons to obtain M pronunciation models corresponding to the M persons; From the M pronunciation models corresponding to the M persons, the multiple pronunciation models corresponding to the multiple persons that meet the screening condition are obtained.
5. The method according to claim 2, 3 or 4, characterized in that: The multiple persons include a first person, and obtaining voice information of the first person includes: Displaying a recording interface, wherein the recording interface includes a plurality of characters with different pronunciations; The sound produced by the first person reading the multiple characters is recorded to obtain the voice information of the first person.
6. The method according to claim 3 or 4, characterized in that The screening conditions include one or more of the following conditions: The age range of the multiple persons, the proportion of male persons among the multiple persons, the proportion of female persons among the multiple persons, the language types of the multiple persons, the accent types of the multiple persons, or the occupations of the multiple persons.
7. The method according to any one of claims 1 to 6, characterized in that: The obtaining of multiple text information includes: Obtaining a sentence template, wherein the sentence template includes a sentence having a keyword slot; Obtain a candidate word set corresponding to the keyword slot, the candidate word set including a plurality of candidate keywords to be filled into the keyword slot; A plurality of text information is acquired based on the sentence template and the candidate word set, each of the text information includes a complete sentence, and the complete sentence is obtained by filling the candidate keywords in the candidate word set in the keyword slot in the sentence template.
8. The method according to any one of claims 1 to 7, characterized in that: The general speech recognition model includes a multi-layer network, and the general speech recognition model is trained based on the multiple training samples to obtain a target speech recognition model, including: The general speech recognition model is trained based on the multiple training samples to adjust the parameters of at least one layer of network included in the general speech recognition model to obtain the target speech recognition model.
9. The method according to any one of claims 1 to 8, characterized in that The voice characteristics of the person include one or more of the following characteristics: the voice quality of the person, or the timbre of the person.
10. A device for processing a speech recognition model, characterized in that: The device is applied to a cloud service platform, and includes: An acquisition unit, used for acquiring a plurality of pronunciation models and a plurality of text information, wherein the plurality of pronunciation models correspond to a plurality of persons, and each pronunciation model is used for imitating the voice characteristics of the person corresponding to each pronunciation model; The acquisition unit is further used to acquire multiple training samples based on the multiple pronunciation models and the multiple text information, each training sample includes voice information and at least one text information, the multiple text information includes the at least one text information, and each voice information is obtained by converting the at least one text information by one of the multiple pronunciation models; A processing unit is used to train a general speech recognition model based on the multiple training samples to obtain a target speech recognition model.
11. The device according to claim 10, characterized in that The acquisition unit is used to: Acquire voice information of multiple persons, where the voice information of the persons is obtained by recording the sounds made by the persons; A universal pronunciation model is trained based on the voice information of the multiple persons to obtain the multiple pronunciation models corresponding to the multiple persons, and the difference between the voice features of each person and the voice features of the pronunciation model corresponding to each person is less than a feature threshold.
12. The device according to claim 11, characterized in that The acquisition unit is used to: Obtain voice information of M persons, where M is an integer greater than 1; From the voice information of the M persons, voice information of the multiple persons that meet the screening condition is obtained.
13. The device according to claim 10, characterized in that The acquisition unit is used to: Obtain voice information of M persons, where M is an integer greater than 1; Training a universal pronunciation model based on the voice information of the M persons to obtain M pronunciation models corresponding to the M persons; From the M pronunciation models corresponding to the M persons, the multiple pronunciation models corresponding to the multiple persons that meet the screening condition are obtained.
14. The device according to claim 11, 12 or 13, characterized in that The multiple persons include a first person, and the acquiring unit is configured to: Displaying a recording interface, wherein the recording interface includes a plurality of characters with different pronunciations; The sound produced by the first person reading the multiple characters is recorded to obtain the voice information of the first person.
15. The device according to claim 12 or 13, characterized in that The screening conditions include one or more of the following conditions: The age range of the multiple persons, the proportion of male persons among the multiple persons, the proportion of female persons among the multiple persons, the language types of the multiple persons, the accent types of the multiple persons, or the occupations of the multiple persons.
16. The device according to any one of claims 10 to 15, characterized in that The acquisition unit is used to: Obtaining a sentence template, wherein the sentence template includes a sentence having a keyword slot; Obtain a candidate word set corresponding to the keyword slot, the candidate word set including a plurality of candidate keywords to be filled into the keyword slot; A plurality of text information is acquired based on the sentence template and the candidate word set, each of the text information includes a complete sentence, and the complete sentence is obtained by filling the candidate keywords in the candidate word set in the keyword slot in the sentence template.
17. The device according to any one of claims 10 to 16, characterized in that: The general speech recognition model includes a multi-layer network, and the processing unit is used to: The general speech recognition model is trained based on the multiple training samples to adjust the parameters of at least one layer of network included in the general speech recognition model to obtain the target speech recognition model.
18. The device according to any one of claims 10 to 17, characterized in that The voice characteristics of the person include one or more of the following characteristics: the voice quality of the person, or the timbre of the person.
19. A computing device cluster, characterized in that: The cluster includes at least one computing device, each of the at least one computing device includes at least one processor and at least one memory, and the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the cluster executes the method according to any one of claims 1 to 9.
20. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
21. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Speech recognition method, device, terminal and storage medium
CN111261144A
Statement material generation method and terminal equipment
CN111353293A
Voice playing method and device, computer equipment and computer readable storage medium
CN111524501A
Generation method and device of speech recognition model, recognition method and device, medium and equipment
CN114765025A
Voice conversion model training method and device, voice conversion method and device, electronic equipment and storage medium
CN114937458A
