Polyphonetic character speech processing method and device, and readable storage medium
By receiving documents and identifying polyphonic words based on preset rules, the pronunciation is determined for speech synthesis, which solves the problem of high cost and low efficiency in polyphonic language recognition, and achieves automatic and accurate recognition and output.
Patent Information
- Application Number
- CN202410075436.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-01-18
AI Technical Summary
Existing multi-phonetic language recognition technology is costly and inefficient, cannot effectively identify the valid pronunciation of specific paragraphs, requires manual intervention and is error-prone.
Provides a polyphonic word speech processing method. By receiving documents, it is determined based on preset polyphonic character recognition rules that the corresponding word of the polyphonic character belongs to a special polyphonic word vocabulary or a common polyphonic word vocabulary, determines its pronunciation, and performs speech synthesis output. Utilize preset tags and acoustic parameters for accurate identification and synthesis.
It achieves automatic and accurate identification of effective pronunciation of multi-phonetic characters, reduces the cost of multi-phonetic character language recognition, improves efficiency, and reduces manual intervention and error rates.
Smart Images

Figure CN117975937B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and particularly to a method and device for processing polyphonic words in speech, and a readable storage medium. Background Art
[0002] The current method for processing the discrimination output of Chinese polyphonic words is through a language recognition model. Essentially, each pronunciation of a polyphonic word and each word formed by them are regarded as different words. For example, the character "都" has two pronunciations, du and dou, which can form words alone or form words such as "首都" (capital) and "都是" (all). The probability of "都 (dou) 是" (all) is different in the language model. For example, after the character "不" (not), the probability of "dou" is much greater than that of "du". Thus, when the input speech is "在首都的不都是北京人" (Not all people in the capital are Beijingers), the language recognition model selects the most likely word or single-character string based on probability: 在首都 (du) 的不都 (dou) 是北京人 (Not all people in the capital (du) are Beijingers).
[0003] The above polyphonic word language recognition technology can only discriminate the pronunciation with a relatively high probability of a Chinese character in a specific phrase, and cannot judge and recognize the valid pronunciation of a specific paragraph. Currently, this can only be identified manually, but manual identification consumes a large amount of manpower and financial resources, and incorrect Chinese speech output often occurs. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a method and device for processing polyphonic words in speech, and a readable storage medium, so as to solve the problems of high cost and low efficiency in existing polyphonic word language recognition.
[0005] To solve the above technical problems, this specification is implemented as follows:
[0006] In a first aspect, a method for processing polyphonic words in speech is provided, including:
[0007] Receiving a document including polyphonic words;
[0008] Based on a preset polyphonic word recognition rule, determining that the word corresponding to the target polyphonic word in the document belongs to a special polyphonic word library or a common polyphonic word library;
[0009] If it belongs to the special polyphonic word library, determining that the pronunciation of the word corresponding to the target polyphonic word is the pronunciation of a preset special vocabulary;
[0010] If it belongs to the common polyphonic word library, determining the pronunciation of the word corresponding to the target polyphonic word based on a preset label;
[0011] Performing speech synthesis and output based on the pronunciation of the word corresponding to the polyphonic word included in the document and the pronunciation of the word corresponding to the non-polyphonic word.
[0012] Optionally, the determining, based on a preset polyphone recognition rule, whether the word corresponding to the target polyphone in the document belongs to a special polyphone word library or a common polyphone word library comprises:
[0013] Comparing the text of the document with a preset polyphonetic character library to determine the target polyphonetic character;
[0014] Comparing the target words corresponding to the target polyphone in the document with the commonly used polyphone word library;
[0015] If there is a match, it is identified that the target word belongs to the common polyphone word library;
[0016] Otherwise, it is identified that the target word belongs to the special polyphone word library.
[0017] Optionally, the step of determining that the target polyphonetic character corresponds to a word that is a pronunciation of a preset special vocabulary comprises:
[0018] Based on the preset mapping relationship between pronunciation and words, the pronunciation of the word corresponding to the target polyphone is determined.
[0019] Optionally, determining the pronunciation of the word corresponding to the target polyphonetic character based on the preset label includes:
[0020] The pronunciation of the word corresponding to the target polyphone is determined based on a combination of one or more of a part-of-speech tag, a tone tag, a special phrase tag, and a single-word combination word tag.
[0021] Optionally, after determining the pronunciation of the word corresponding to the target polyphone, the method further includes:
[0022] Comparing the pronunciation of the words corresponding to the target polyphonetic character with the pronunciation of the commonly used polyphonetic character word library;
[0023] If there are at least two pronunciations in the commonly used polyphone word library that are the same as the pronunciation corresponding to the word corresponding to the target polyphone word, the pronunciation of the word is determined to be the pronunciation corresponding to the commonly used polyphone word library.
[0024] Optionally, before determining, based on a preset polyphone recognition rule, whether a word corresponding to the target polyphone in the document belongs to a special polyphone word library or a common polyphone word library, the method further includes:
[0025] Segmenting the text of the document to determine each polyphonetic character in the document;
[0026] Determine whether each polyphone character is a high-frequency polyphone character or a low-frequency polyphone character;
[0027] If the difference between the frequency of occurrence of high-frequency polyphone characters in the document and the frequency of occurrence of low-frequency polyphone characters in the document does not exceed a preset threshold, it is determined based on a preset polyphone recognition rule that the corresponding word of the target polyphone character in the document belongs to a special polyphone character database or a common polyphone character database.
[0028] Optionally, performing speech synthesis based on the pronunciations of the words corresponding to the polyphonetic characters and the pronunciations of the words corresponding to the non-polyphonetic characters included in the document includes:
[0029] By performing word splitting processing on the text of the document, a plurality of words are obtained;
[0030] Determining words corresponding to polyphones and words corresponding to non-polyphones among the plurality of words;
[0031] Obtaining the pronunciation of words corresponding to polyphones and the pronunciation of words corresponding to non-polyphones;
[0032] Determine acoustic parameters corresponding to a plurality of words based on a preset prediction model;
[0033] Speech synthesis is performed based on the acoustic parameters and the pronunciations of the multiple words.
[0034] Optionally, the steps of the method are implemented using robotic process automation technology.
[0035] In a second aspect, a polyphonetic character speech processing device is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0036] In a third aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0037] In an embodiment of the present application, a document including polyphones is received; based on a preset polyphone recognition rule, it is determined whether a target polyphone corresponding word in the document belongs to a special polyphone word library or a commonly used polyphone word library; if it belongs to a special polyphone word library, the target polyphone corresponding word is determined to be the pronunciation of a preset special vocabulary; if it belongs to a commonly used polyphone word library, the pronunciation of the target polyphone corresponding word is determined based on a preset label; speech synthesis is performed based on the pronunciation of the polyphone corresponding words and the pronunciation of the non-polyphone corresponding words included in the document and the output, thereby automatically and accurately identifying the effective pronunciation of the polyphones in the document, reducing the cost of polyphone language recognition, and improving the efficiency of polyphone language recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0039] Figure 1 It is a flowchart of the polyphonetic character speech processing method of the embodiment of the present application.
[0040] Figure 2 It is a schematic diagram of the overall flow of the polyphonetic character speech processing method according to an embodiment of the present application.
[0041] Figure 3 It is a schematic diagram of the robotic process automation processing flow of the polyphonetic character speech processing method according to an embodiment of the present application.
[0042] Figure 4 It is a structural diagram of the polyphonetic character speech processing device of the first embodiment of the present application.
[0043] Figure 5 It is a structural diagram of the polyphonetic character speech processing device of the second embodiment of the present application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. The numbering of the drawings in this application is only used to distinguish the various steps in the scheme, and is not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.
[0045] In order to solve the problems existing in the prior art, the present application provides a method for processing polyphonetic characters. Figure 1 It is a flowchart of the polyphonetic character speech processing method of the embodiment of the present application.
[0046] like Figure 1 As shown, the following steps are included:
[0047] Step 102, receiving a document including polyphonetic characters;
[0048] Step 104, based on a preset polyphone recognition rule, determining whether a word corresponding to the target polyphone in the document belongs to a special polyphone word library or a common polyphone word library;
[0049] Step 106, if it belongs to the special polyphone word library, then determine that the word corresponding to the target polyphone word is the pronunciation of a preset special vocabulary;
[0050] Step 108, if it belongs to the common polyphonic word library, determine the pronunciation of the word corresponding to the target polyphonic character based on the preset tag;
[0051] Step 110, perform speech synthesis and output based on the pronunciations of the words corresponding to the polyphonic characters and the words corresponding to the non-polyphonic characters included in the document.
[0052] In step 102, the received document can be the text input by the user through the operation terminal, and this document includes one or more polyphonic characters. Subsequently, it is necessary to identify the pronunciations of each polyphonic character in this document.
[0053] In the embodiment of the present application, after obtaining the document, it is first necessary to determine whether the words corresponding to each polyphonic character in the document are words of special polyphonic characters or common polyphonic words. For example, the target polyphonic character is "dun", and its polyphonic pronunciations are "dun" and "du". The word corresponding to the special polyphonic character of "dun" is "Modu", and the word corresponding to the common polyphonic word of "dun" is "dunshi".
[0054] Based on the solution provided in the above embodiment, optionally, in the above step 104, the determining whether the word corresponding to the target polyphonic character in the document belongs to the special polyphonic word library or the common polyphonic word library based on the preset polyphonic character recognition rule includes: comparing the text of the document with the preset polyphonic character library to determine the target polyphonic character; comparing the target word formed by the target polyphonic character in the document with the common polyphonic word library; if there is a match, it is recognized that the target word belongs to the common polyphonic word library; otherwise, it is recognized that the target word belongs to the special polyphonic word library.
[0055] Before determining whether the word corresponding to the polyphonic character belongs to the special polyphonic word library or the common polyphonic word library, first compare the text of the document with the preset polyphonic character library to determine each polyphonic character in the document. The preset polyphonic character library stores various polyphonic characters.
[0056] For example, compare each character in the text with the preset polyphonic character library. If the target character matches the preset polyphonic character library, it means that the target character is a polyphonic character. After determining the polyphonic character, then determine the words corresponding to each polyphonic character in the document. For example, the text of the document is "Hello, this is the capital Beijing". By comparing with the preset polyphonic character library, determine the polyphonic character "du" in it and the word "capital" corresponding to this polyphonic character "du".
[0057] Then, compare the words corresponding to each polyphonic character in the document with the common polyphonic word library respectively. The common polyphonic word library stores the words corresponding to various polyphonic characters, and at the same time marks the part of speech, tone, special phrase, single-character combination word label.
[0058] If the target word matches the common polyphonic word library, it indicates that the target word belongs to the common polyphonic word library, and the polyphonic character in the target word is a common polyphonic character. Otherwise, it is recognized that the target word belongs to the special polyphonic word library, and the polyphonic character in the target word is a special polyphonic character.
[0059] For the target word corresponding to the special polyphonic word library, the pronunciation of the target word is determined as the pronunciation of the preset dedicated vocabulary. Specifically, determining the pronunciation of the target polyphonic word corresponding to the word as the pronunciation of the preset dedicated vocabulary includes: determining the pronunciation of the target polyphonic word corresponding to the word based on the preset mapping relationship between the pronunciation and the word.
[0060] Special polyphonic words usually have a low usage or occurrence frequency, and the corresponding pronunciation is a fixed pronunciation. If it enters the special polyphonic word library, the pronunciation of the target word is the fixed dedicated vocabulary pronunciation. For example, for "首都" (capital city), the corresponding unique fixed pronunciation is "shoudu".
[0061] In addition, there may be a situation where the pronunciation of a proper noun conflicts with the pronunciations of multiple common phrases. Further, after determining the pronunciation of the target polyphonic word corresponding to the word, it also includes: comparing the pronunciation of the target polyphonic word corresponding to the word with the pronunciations in the common polyphonic word library; if there are at least two pronunciations in the common polyphonic word library that are the same as the pronunciation of the target polyphonic word corresponding to the word, then determine the pronunciation of the word as the pronunciation corresponding to the common polyphonic word library.
[0062] That is to say, if the pronunciation of the proper noun of the target word conflicts with the pronunciations of multiple common phrases, the pronunciation of the common word is preferentially output. For example, for the word "冒顿" corresponding to a special polyphonic character, it appears in "有了感冒顿时鼻音不畅" (After having a cold, one's nasal voice becomes blocked immediately). Therefore, the pronunciation of "冒顿 (modu)" conflicts with the pronunciations of the common phrases "感冒" (cold) and "顿时" (immediately). At this time, the two common words "感冒" and "顿时" are the preferentially output words, avoiding "冒顿 (modu)" as a voice output item.
[0063] For the target word corresponding to the common polyphonic word library, the pronunciation of the target word is determined based on the preset label. Specifically, determining the pronunciation of the target polyphonic word corresponding to the word based on the preset label includes: determining the pronunciation of the target polyphonic word corresponding to the word based on the combination of one or more of the part-of-speech label, tone label, special phrase label, and single-character combination word label.
[0064] Commonly used polyphone words are usually used or appear frequently, and the corresponding pronunciation may have different tones, special phrases and single-word combination words with different parts of speech. If you enter the common polyphone word library, based on one or more of the part-of-speech tag, special phrase tag and single-word combination word tag of the pronunciation of the target word, the part of speech of the target word is judged, or whether the target word is a special phrase or a single-word combination word, and based on the judgment result, the corresponding pronunciation and tone of the target word are determined.
[0065] In the above-mentioned embodiment, the pronunciation recognition of polyphones is performed based on the pre-created polyphone database, special polyphone database and common polyphone database. In one embodiment, before determining that the target polyphone corresponding words in the document belong to the special polyphone database or the common polyphone database based on the preset polyphone recognition rules, it also includes: segmenting the text of the document to determine each polyphone in the document; determining whether each polyphone belongs to a high-frequency polyphone or a low-frequency polyphone; if the difference between the frequency of high-frequency polyphone sounds in the document and the frequency of low-frequency polyphone sounds in the document does not exceed the preset threshold, then determining that the target polyphone corresponding words in the document belong to the special polyphone database or the common polyphone database based on the preset polyphone recognition rules.
[0066] Low-frequency polyphonic characters are polyphonic characters that appear very infrequently. For example, low-frequency polyphonic characters are pronounced with one pronunciation in most cases, and pronounced with another pronunciation only in a few cases. In this case, a pronunciation table can be established for each character, and the corresponding words and pronunciations can be input. When annotating the pronunciation, the pronunciation of the corresponding low-frequency polyphonic characters can be identified by matching. If there is no matching word in the pronunciation table, the high-frequency pronunciation is used for pronunciation.
[0067] In addition, there are three cases for high-frequency polyphonic characters. If a certain sound only appears in a specific word or context, it will be matched after word segmentation. If the coverage rate of a certain sound is more than 99%, the same solution as low-frequency polyphonic characters is adopted. If the frequency of a polyphonic character appearing in a document is similar to that of a low-frequency polyphonic character and a high-frequency polyphonic character, the polyphonic character can be identified through the three polyphonic character libraries, special polyphonic character word libraries and common polyphonic character word libraries established above.
[0068] After the pronunciation of the words corresponding to the polyphones included in the document is recognized, it is necessary to perform speech synthesis and output the polyphones corresponding to the document.
[0069] Based on the solution provided in the above embodiment, optionally, in the above step 110, the speech synthesis based on the pronunciation of the words corresponding to the polyphones and the pronunciation of the words corresponding to the non-polyphones included in the document includes: obtaining a plurality of words by performing word splitting processing on the text of the document; determining the words corresponding to the polyphones and the words corresponding to the non-polyphones among the plurality of words; obtaining the pronunciation of the words corresponding to the polyphones and the pronunciation of the words corresponding to the non-polyphones; determining the acoustic parameters corresponding to the plurality of words based on a preset prediction model; and performing speech synthesis based on the acoustic parameters and the pronunciation of the plurality of words.
[0070] Specifically, the text in the document is processed by word splitting to obtain multiple words, and the language features corresponding to the polyphonic words and non-polyphonic words in the multiple words are determined. Then, according to the preset speech synthesis model, such as the HMM duration model and the DNN acoustic model, the duration, fundamental frequency and spectrum parameters corresponding to the language features are predicted respectively. These parameters reflect some "key information" of the sound signal and can change the intonation, speech speed, etc. of the synthesized speech. Based on the above parameters, the speech waveform is reconstructed using a vocoder to complete the speech synthesis of the corresponding text of the document.
[0071] Next, combine Figure 2 The overall process of the polyphonetic character speech processing method of the embodiment of the present application is described as follows: Figure 2 The following steps are shown:
[0072] Step 202, obtaining a preset polyphone recognition rule;
[0073] Step 204, identifying the polyphones in the received document based on the commonly used polyphone database and recognition rules;
[0074] Step 206, determining whether the polyphonetic word combination in the document, that is, the words corresponding to the polyphonetic words, are common words, if so, proceeding to step 208, otherwise proceeding to step 214;
[0075] Step 208, searching and comparing polyphonetic words based on a common word library;
[0076] Step 210, if there is a match, determine the corresponding word of the polyphonetic character from the commonly used polyphonetic character word library;
[0077] Step 212, outputting the pronunciation of the word;
[0078] Step 214, searching and comparing polyphonetic words based on the proprietary word library;
[0079] Step 216, if there is a match, determine the corresponding word of the polyphonetic character from the special polyphonetic character database;
[0080] Step 218, outputting the pronunciation of the word;
[0081] Step 220, further determining whether the words output by the special polyphone word library conflict with a combination of multiple common words in the document, if so, proceed to step 222, otherwise proceed to step 224;
[0082] Step 222, discarding the pronunciation of words outputted by the conflicting special polyphone word library, and outputting the pronunciation of common words;
[0083] Step 224, performing speech synthesis based on the output word pronunciation to output the speech corresponding to the document including polyphonetic characters.
[0084] The polyphonetic character speech processing method of the embodiment of the present application has a wide range of application scenarios for speech recognition output, such as consulting office scenarios, where too many consultants lead to a lack of manpower. The polyphonetic character speech processing method of the embodiment of the present application can accurately identify polyphonetic characters in the consulting answer documents provided by consultants, and provide them to the corresponding consulting users through the robot terminal after speech synthesis processing. In this way, the workload of consultants can be effectively alleviated, and accurate speech recognition and output can obtain a good service experience.
[0085] Optionally, the steps of the method are implemented using robotic process automation technology.
[0086] The specific principle is to input rules to Robotic Process Automation (RPA), and realize the self-processing of polyphones by constructing a polyphone voice processing model in RPA technology. The embodiment of this application establishes a natural language processing (NLP) model to realize automatic correct voice output by intervening in the RPA system. The NLP model can achieve the effect of eliminating ambiguity and fuzziness.
[0087] like Figure 3 As shown, the terminal operator inputs the text corpus into the polyphone speech processing model by entering text. The polyphone speech processing model has three parts: a corpus database module 22, a corpus analysis module 24, and a speech output module 26. Correct speech output is achieved through the three modules and sent to the robot terminal 20 for implementation. The main function of the corpus analysis database module 22 is to store the input text data, corresponding to step 102; the corpus analysis module 24 has a polyphone classification vocabulary and an NLP model embedded inside, and its main function is to classify and process the input text data and conduct diversion training to provide a basis for correct speech output, corresponding to steps 104 to 108; the main function of the speech output module 26 is to output the classified text data into the correct pronunciation of Chinese polyphones, corresponding to step 110.
[0088] When using RPA technology to automatically process business, before standardizing the construction of polyphonetic character speech processing models and connecting them to the RPA system, the RPA system is implemented using a cross-platform scripting language based on Python code, and the design of automated processes can be completed through process design tools.
[0089] Specifically, Figure 4 As shown, the following steps are included:
[0090] Step 302: Connect the RPA system to the RPA automation program based on Python code, upload the script and output the code;
[0091] Step 304, polyphonetic character speech processing model input: mainly responsible for providing users with convenient methods and interfaces, mainly using process rule generation or automated process generation as a task for further process arrangement and execution;
[0092] Step 306, NLP model generation phase: automatically generate the aforementioned polyphonetic character speech processing model;
[0093] Step 308, automatic processing flow generation phase: automatically generating an automated processing flow;
[0094] Step 310, model automation processing: through the automation program control arrangement, to form an executable dispatch arrangement program;
[0095] Step 312, model automatic delivery phase: the model is delivered to the model automatic operation phase through the automatic program control process;
[0096] Step 314, robot automated monitoring;
[0097] Step 316, model automation operation link: the process is automated through robot automation monitoring and knowledge extraction reference of the Chinese polyphone scene knowledge base to achieve accurate control of the RPA program. The arranged program is imported into the server control platform, and the robot terminal obtains the latest automation strategy;
[0098] Step 318, model automation control link: mainly responsible for assigning work tasks to each robot, and responsible for supervising, managing and controlling the work process;
[0099] Step 320, automatic pronunciation output link: mainly in the computer terminal that deploys and executes specific tasks, it can interact with the physical machine or virtualized environment to perform specific business and process execution.
[0100] The above RPA system uses a scenario-driven program to accumulate a semantic recognition knowledge base. Through training, each word in the common vocabulary is mapped into a vector of fixed dimension, and all these vectors are put together to form a word vector space, and each vector can be regarded as a point in this space. By introducing "distance" in this space, the (phonetic and semantic) similarity between words can be judged based on the distance between them, and a definition of various common words and proprietary vocabulary is given based on semantic role annotation.
[0101] The RPA system displays the operation of the RPA program through reports and views based on the management, operation process and results of the RPA program. At the same time, each step of the robot completing the task is monitored and recorded. The RPA system uses Python code as the underlying layer, supports the picking and operation of control elements of browsers (B / S), applications (C / S), and Java clients, and realizes automation. In the process of picking controls, the picking mode can be switched through shortcut keys, supporting the picking of control elements, label picking, area picking, and opening / closing picking.
[0102] The embodiment of this application uses RPA technology to automatically model the commonly used polyphone combinations in Chinese based on the special and complex word formation methods of Chinese, and uses automation technology to achieve the correct voice output of commonly used polyphones in Chinese, and conducts new technical transformation and exploration for the deficiencies in the training of the speech probability model. Compared with the speech recognition service provided by traditional algorithms, the use of RPA automated control methods allows each step of the robot task to be automatically monitored and recorded, and the operation and maintenance management realizes automated control and monitoring, without the need for manual speech correction and modification, and achieves a high experience of speech output.
[0103] The correct output of Chinese polyphones is achieved by building a vocabulary model and taking advantage of the automated processing of the RPA management and control system. For the ambiguity of the voice output of Chinese corpus, the NLP model is used to eliminate the ambiguity. At the same time, during the input of text corpus, the correct voice output of Chinese polyphones can be achieved through polyphone voice recognition and speech synthesis, which ultimately improves the end-user experience and solves the problem that many current software cannot correctly recognize Chinese polyphones.
[0104] In an embodiment of the present application, a document including polyphones is received; based on a preset polyphone recognition rule, it is determined whether a target polyphone corresponding word in the document belongs to a special polyphone word library or a commonly used polyphone word library; if it belongs to a special polyphone word library, the target polyphone corresponding word is determined to be the pronunciation of a preset special vocabulary; if it belongs to a commonly used polyphone word library, the pronunciation of the target polyphone corresponding word is determined based on a preset label; speech synthesis is performed based on the pronunciation of the polyphone corresponding words and the pronunciation of the non-polyphone corresponding words included in the document and the output, thereby automatically and accurately identifying the effective pronunciation of the polyphones in the document, reducing the cost of polyphone language recognition, and improving the efficiency of polyphone language recognition.
[0105] Alternatively, if Figure 5 As shown, the embodiment of the present application also provides an electronic device 2000, including a processor 2400 and a memory 2200, the memory 2200 stores a program or instruction that can be executed on the processor 2400, and the program or instruction, when executed by the processor 2400, implements the various steps of the above-mentioned polyphonetic character speech processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0106] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of any of the above-mentioned polyphonetic character speech processing method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the readable storage medium includes a computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0109] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for processing polyphonetic characters, characterized in that: include: receiving a document including polyphonetic characters; Based on a preset polyphone recognition rule, determining that a word corresponding to a target polyphone in the document belongs to a special polyphone word library or a common polyphone word library; If it belongs to the special polyphone word library, determining the pronunciation of the word corresponding to the target polyphone word as a preset special word; If it belongs to the commonly used polyphone word library, determining the pronunciation of the word corresponding to the target polyphone word based on the preset label; Perform speech synthesis and output based on the pronunciation of the words corresponding to the polyphonetic characters and the pronunciation of the words corresponding to the non-polyphonetic characters included in the document; Among them, before determining, based on the preset polyphone recognition rules, whether the target polyphone corresponding words in the document belong to the special polyphone word library or the commonly used polyphone word library, the method also includes: segmenting the text of the document to determine the polyphones in the document; determining whether each polyphone belongs to a high-frequency polyphone or a low-frequency polyphone; if the difference between the frequency of occurrence of high-frequency polyphones in the document and the frequency of occurrence of low-frequency polyphones in the document does not exceed a preset threshold, determining, based on the preset polyphone recognition rules, whether the target polyphone corresponding words in the document belong to the special polyphone word library or the commonly used polyphone word library.
2. The method according to claim 1, characterized in that: The step of determining, based on a preset polyphone recognition rule, that a word corresponding to a target polyphone in the document belongs to a special polyphone word library or a common polyphone word library comprises: Comparing the text of the document with a preset polyphonetic character library to determine the target polyphonetic character; Comparing the target words corresponding to the target polyphone in the document with the commonly used polyphone word library; If there is a match, it is identified that the target word belongs to the common polyphone word library; Otherwise, it is identified that the target word belongs to the special polyphone word library.
3. The method according to claim 1, characterized in that The step of determining that the target polyphonetic character corresponds to a word that is a pronunciation of a preset special vocabulary comprises: Based on the preset mapping relationship between pronunciation and words, the pronunciation of the word corresponding to the target polyphone is determined.
4. The method according to claim 1, characterized in that: The step of determining the pronunciation of the word corresponding to the target polyphonetic character based on the preset label includes: The pronunciation of the word corresponding to the target polyphone is determined based on a combination of one or more of a part-of-speech tag, a tone tag, a special phrase tag, and a single-word combination word tag.
5. The method according to claim 3, characterized in that: After determining the pronunciation of the word corresponding to the target polyphone, the method further includes: Comparing the pronunciation of the words corresponding to the target polyphonetic character with the pronunciation of the commonly used polyphonetic character word library; If there are at least two pronunciations in the commonly used polyphone word library that are the same as the pronunciation corresponding to the word corresponding to the target polyphone word, the pronunciation of the word is determined to be the pronunciation corresponding to the commonly used polyphone word library.
6. The method according to claim 1, characterized in that The performing speech synthesis based on the pronunciation of the words corresponding to the polyphonetic characters and the pronunciation of the words corresponding to the non-polyphonetic characters included in the document comprises: By performing word splitting processing on the text of the document, a plurality of words are obtained; Determining words corresponding to polyphones and words corresponding to non-polyphones among the plurality of words; Obtaining the pronunciation of words corresponding to polyphones and the pronunciation of words corresponding to non-polyphones; Determine acoustic parameters corresponding to a plurality of words based on a preset prediction model; Speech synthesis is performed based on the acoustic parameters and the pronunciations of the multiple words.
7. The method according to claim 1, characterized in that The steps of the method are implemented using robotic process automation technology.
8. A polyphonetic character speech processing device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the polyphonetic character speech processing method as described in any one of claims 1 to 7 are implemented.
9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the polyphonetic character speech processing method as described in any one of claims 1-7 are implemented.
Citation Information
Patent Citations
Polyphone pronunciation determination method and system, electronic equipment and medium
CN114492403A
