Multi-language display method and device
Through voice information acquisition and language recognition, combined with multi-source encoder and Conformer architecture for information translation and quality assessment, it solves the problem of voice recognition and translation accuracy in multi-language presentations for visually impaired people, and achieves interference-free use in public places. Information display.
Patent Information
- Application Number
- CN202410757139.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology fails to effectively solve the problems of voice acquisition and language recognition in multi-language presentations for visually impaired people, and fails to correct text errors before translation, which affects the accuracy of the translation and may cause interference in public places.
Through the acquisition of voice information, content recognition, language recognition, information translation and quality assessment, combined with the multi-source encoder and Conformer architecture, language recognition and information repair are carried out, and through voice broadcast and sound control cover design, the vision-impaired people are realized Multilingual information display.
It improves the accuracy and work efficiency of multilingual information display, avoids interference in public places, and ensures the quality of translations and auditory compensation design.
Smart Images

Figure CN118535780A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of language display, and in particular to a method and device for multi-language display. Background Art
[0002] With the continuous advancement of economic globalization, many existing websites or mobile applications need to be internationalized and support display in multiple languages. The Chinese patent with application number 201911310717.5 discloses "a method for displaying pages in multiple languages, its device, electronic device and computer storage medium, the method comprising: setting a language package containing multiple language data; defining a display language variable for controlling the language displayed on the page in the state management attribute of the Vuex plug-in introduced in the Vue project; obtaining the user's language selection instruction; determining the target language currently required to be displayed on the page according to the language selection instruction; setting the display language variable to a value corresponding to the target language so that the page displays the target language, which uses the state management attribute in the plug-in Vuex to realize the internationalization of the page, can support the switching display of multiple languages, and does not need to add duplicate front-end pages, which is conducive to improving the page response speed and reducing the code volume. ";
[0003] This prior art only solves the problem that the existing front-end multi-language display method will automatically reset to the default language after refreshing the page, and the data fed back from the back end to the front end cannot support multi-language display. It does not take into account that when facing a group with visual impairments, it is necessary to determine the language of the information that needs to be translated through voice acquisition and language recognition, and before translating the information, it is necessary to correct the text of the information to be translated to ensure the accuracy of the subsequent overall translation of the information, and it is necessary to screen the translation by performing quality assessment on the translated text to further ensure the accuracy of the translation, and it is necessary to avoid disturbing others in public places. Summary of the invention
[0004] The object of the present invention is to provide a method and device for multi-language display to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a multi-language display method, comprising the following steps:
[0006] S1: Taking the method of multilingual display for visually impaired people as an example, the voice information of the person is acquired and the content is recognized, and then the language is recognized based on the recognized voice content, so as to provide data support for the subsequent multilingual information display;
[0007] S2: Based on the language results obtained by recognition, the information to be displayed is translated into different languages, and the quality of the translated information is evaluated, thereby screening the translated information;
[0008] S3: Based on the filtered translated information, the translated information is displayed and recorded and retained, so that the information can be directly displayed when needed in the future.
[0009] Preferably, the step S1 also includes taking the method for multilingual presentation for visually impaired people as an example, acquiring the voice information of the person and identifying the content, and performing pre-emphasis operation on the acquired voice information to supplement the energy loss of the high-frequency part during voice transmission, and performing frame and window operations on the acquired voice information to ensure the short-term stability of the voice information, and converting the voice information into a frequency domain signal through fast Fourier transform, and its specific expression is as follows:
[0010]
[0011] In the formula, f m [k] represents the result of fast Fourier transform of speech information, N represents the window size, m represents the mth audio frame, T represents the frame shift length, x[·] represents the time domain discrete signal, n represents the window size is n, and the frequency domain features are extracted. Based on the extracted frequency domain features, a triangular bandpass filter bank is used to perform another transformation, and the logarithm of the transformation result is taken to obtain the FBank feature.
[0012] Preferably, step S1 also includes using SpecAugment technology to mask the FBank feature selection random size area, and constructing a multilingual speech recognition model based on the Conformer architecture, including a shared feature extractor and a language identifier, wherein the shared feature extractor is composed of 14 layers of Conformer blocks, which are shared by all languages, wherein the language identifier is composed of a Conformer block and a linear mapping layer, so that each language has a different separate module, and based on the input marked random size area of the FBank feature, the output size of the multilingual speech recognition model is matched with the dictionary size of each language.
[0013] Preferably, step S1 further comprises limiting the output of the multilingual speech recognition model to between 0 and 1 by a softmax function, decoding the output of the multilingual speech recognition model after the softmax function processing by a greedy algorithm, removing meaningless blank frame characters, obtaining a decoded sequence, and calculating the average geometric probability of the decoded characters by a probability algorithm, and the specific expression thereof is as follows:
[0014]
[0015] In the formula, L represents the decoding length, t represents the decoding length is t, p<|> represents the probability solution, z t represents the decoding sequence when the decoding length is t, x represents the speech sequence, and the logarithm of the calculation result is taken to obtain the confidence of the current language. The confidence values of all languages are arranged from large to small, and the language with the largest confidence value is selected as the language recognition result of the speech.
[0016] Preferably, step S2 also includes, based on the language recognition result obtained in step S1, performing a translation operation on the information to be displayed. The specific operation is to construct an information repair model based on a multi-source encoder, which is composed of a source language sentence encoder, an inconsistent target language sentence encoder, an additional cross-attention layer, and a consistent target language sentence encoder, so that errors in sentences with inconsistent contexts in the information to be displayed are corrected through the information repair model, thereby splicing the context sentence with the current sentence, thereby ensuring the accuracy of translating the information to be displayed.
[0017] Preferably, step S2 further includes performing language translation of the repaired information to be displayed by machine translation, and performing quality assessment on the translated information. Specifically, based on the machine translation result of the repaired information to be displayed, a manually edited translation obtained by a translator manually editing the machine translation result according to the information to be displayed by the translator through big data technology is obtained, and the number of replacement, insertion, deletion and move operations is obtained by comparing the machine translation result and the manually edited translation through a TERCOM script, and the number of replacement, insertion, deletion and move operations is added to obtain a total number of operations, which is then divided by the number of words in the manually edited translation to obtain a quality assessment result of the machine translation, and the quality assessment result of the machine translation is compared with a preset translation quality threshold. When the quality assessment result of the machine translation is lower than the preset translation quality threshold, the machine translation result is discarded and the translation operation is performed again, otherwise the machine translation result is used, thereby implementing the screening of the translated information.
[0018] Preferably, step S3 also includes displaying translated information based on the screened translated information. After specific operation, since the target population is a group with visual impairments, auditory compensation design is implemented through voice broadcast based on the screened translated information, and further, a sound control cover is set in public places so that people can hear the voice broadcast sound only in specific areas in public places, thereby avoiding interference from multiple people, and the screened translated information is retained and recorded, so as to facilitate direct information display when needed in the future, improve work efficiency, and quickly obtain information and design different compensation methods for display when facing people of the same language with different obstacles in the future.
[0019] A multi-language display device includes a language recognition module, wherein the language recognition module is used to obtain voice information of a person and recognize the content, and then perform language recognition based on the recognized voice content, so as to provide data support for subsequent multi-language information display;
[0020] An information translation module, which is used to translate the information to be displayed based on the language results identified in the language identification module, and to perform quality assessment on the translated information, thereby screening the translated information;
[0021] The translation information display module is used to display the translated information based on the translated information filtered in the information translation module, and record and retain the translated information, so as to facilitate direct information display when needed in the future.
[0022] Compared with the prior art, the beneficial effects of the present invention include at least: the present invention proposes a method and device for multilingual display, taking the method for multilingual display for visually impaired people as an example, by acquiring the voice of the person and performing language recognition operation based on the acquired voice, the subsequent translation language information of the information to be displayed is determined, and before the information to be displayed is translated, the errors of sentences inconsistent with the context in the information to be displayed need to be corrected, so that the context sentence is spliced with the current sentence, thereby ensuring the accuracy of the translation of the information to be displayed, and the screening of the translated texts is achieved by performing quality assessment on the translated texts, further ensuring the accuracy of the translation, and by designing an auditory compensation method, information display is achieved for groups with visual impairments, and further by setting a sound control hood, people can hear the voice broadcast sound only in a specific area in a public place, thereby avoiding interference from multiple people. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1A schematic diagram of a multi-language display method flow chart provided by an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of a multi-language display device flow chart provided by an embodiment of the present invention.
[0025] In the figure: 101, language recognition module; 102, information translation module; 103, translation information display module. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] See also Figure 1-2 The present invention provides a technical solution: a multi-language display method, comprising the following steps:
[0028] S1: Taking the method of multilingual display for visually impaired people as an example, the voice information of the person is acquired and the content is recognized, and then the language is recognized based on the recognized voice content, so as to provide data support for the subsequent multilingual information display;
[0029] S2: Based on the language results obtained by recognition, the information to be displayed is translated into different languages, and the quality of the translated information is evaluated, thereby screening the translated information;
[0030] S3: Based on the filtered translated information, the translated information is displayed and recorded and retained, so that the information can be directly displayed when needed in the future.
[0031] Step S1 also includes taking the method of multi-language presentation for visually impaired people as an example, acquiring the voice information of the personnel and identifying the content, and performing pre-emphasis operation on the acquired voice information to supplement the energy loss of the high-frequency part during voice transmission, and performing frame division and windowing operation on the acquired voice information to ensure the short-term stability of the voice information, and converting the voice information into a frequency domain signal through fast Fourier transform, and its specific expression is as follows:
[0032]
[0033] In the formula, f m[k] represents the result of fast Fourier transform of speech information, N represents the window size, m represents the mth audio frame, T represents the frame shift length, x[·] represents the discrete signal in the time domain, n represents the window size is n, and the frequency domain features are extracted, and based on the extracted frequency domain features, a triangular bandpass filter bank is used to perform another transformation, and the logarithm of the transformation result is taken to obtain the FBank feature;
[0034] Step S1 also includes masking the FBank feature selection random size region using SpecAugment technology, and building a multilingual speech recognition model based on the Conformer architecture, including a shared feature extractor and a language identifier, wherein the shared feature extractor is composed of 14 layers of Conformer blocks, which are shared by all languages, wherein the language identifier is composed of a Conformer block and a linear mapping layer, so that each language has a different separate module, and based on the input labeled random size region of the FBank feature, the output size of the multilingual speech recognition model is matched with the dictionary size of each language;
[0035] Step S1 also includes limiting the output of the multilingual speech recognition model to between 0 and 1 through a softmax function, decoding the output of the multilingual speech recognition model after the softmax function through a greedy algorithm, removing meaningless blank frame characters, obtaining a decoded sequence, and calculating the average geometric probability of the decoded characters through a probability algorithm, the specific expression of which is as follows:
[0036]
[0037] In the formula, L represents the decoding length, t represents the decoding length is t, p<|> represents the probability solution, z t represents the decoding sequence when the decoding length is t, x represents the speech sequence, and the logarithm of the calculation result is taken to obtain the confidence of the current language, the confidence values of all languages are arranged from large to small, and the language with the largest confidence value is selected as the language recognition result of the speech;
[0038] Step S2 also includes translating the information to be displayed based on the language recognition result obtained in step S1. The specific operation is to construct an information repair model based on a multi-source encoder, which is composed of a source language sentence encoder, an inconsistent target language sentence encoder, an additional cross-attention layer, and a consistent target language sentence encoder, so that errors in sentences with inconsistent contexts in the information to be displayed are corrected through the information repair model, so that the context sentence is spliced with the current sentence, thereby ensuring the accuracy of the translation of the information to be displayed;
[0039] Step S2 also includes performing language translation of the repaired information to be displayed by machine translation, and performing quality assessment on the translated information. Specifically, based on the machine translation result of the repaired information to be displayed, the manual post-editing translation obtained by the translator according to the information to be displayed is obtained by manually editing the machine translation result by the translator through big data technology, and the number of replacement, insertion, deletion and move operations is obtained by comparing the machine translation result and the manual post-editing translation through the TERCOM script, and the number of replacement, insertion, deletion and move operations is added to obtain the total number of operations, and then divided by the number of words in the manual post-editing translation to obtain the quality assessment result of the machine translation, and the quality assessment result of the machine translation is compared with the preset translation quality threshold. When the quality assessment result of the machine translation is lower than the preset translation quality threshold, the machine translation result is eliminated and the translation operation is performed again, otherwise the machine translation result is used, thereby realizing the screening of the translated information;
[0040] Step S3 also includes displaying the translated information based on the filtered translated information. After the specific operation, since the target group is a group with visual impairments, the auditory compensation design is realized by voice broadcasting based on the filtered translated information, and further, a sound control cover is set in public places so that people can hear the voice broadcast sound only in specific areas in the public places, thereby avoiding the situation of multiple people interfering, and the filtered translated information is retained and recorded, so as to facilitate direct information display when there is a need in the future, improve work efficiency, and quickly obtain information and design different compensation methods for display when facing people of the same language with different obstacles in the future;
[0041] A multi-language display device includes a language recognition module 101, which is used to obtain voice information of a person and recognize the content, and then perform language recognition based on the recognized voice content, so as to provide data support for subsequent multi-language information display;
[0042] The information translation module 102 is used to translate the information to be displayed based on the language result identified by the language identification module 101, and to perform quality assessment on the translated information, thereby screening the translated information;
[0043] The translation information display module 103 is used to display the translated information based on the translated information filtered in the information translation module 102, and to record and retain the translated information, so as to facilitate direct information display when needed in the future.
[0044] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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.
[0045] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for multi-language display, characterized in that The following steps are involved: S1: Taking the method of multilingual display for visually impaired people as an example, the voice information of the person is acquired and the content is recognized, and then the language is recognized based on the recognized voice content, so as to provide data support for the subsequent multilingual information display; S2: Based on the language results obtained by recognition, the information to be displayed is translated into different languages, and the quality of the translated information is evaluated, thereby screening the translated information; S3: Based on the filtered translated information, the translated information is displayed and recorded and retained, so that the information can be directly displayed when needed in the future.
2. A multi-language display method according to claim 1, characterized in that: The step S1 also includes acquiring the voice information of the person and identifying the content, taking the method of multilingual presentation for the visually impaired as an example. The specific operation is to acquire the voice information of the person and identify the voice content, and to pre-emphasize the acquired voice information to make up for the energy loss of the high-frequency part in the voice transmission process, and to frame and window the acquired voice information to ensure the short-term stability of the voice information, and to convert the voice information into a frequency domain signal through fast Fourier transform, and to extract the frequency domain features, and based on the extracted frequency domain features, use a triangular bandpass filter group to perform another transformation, and take the logarithm of the transformation result to obtain the FBank feature.
3. The multi-language display method according to claim 1, characterized in that: The step S1 also includes using SpecAugment technology to mask the FBank feature selection random size area, and building a multilingual speech recognition model based on the Conformer architecture, including a shared feature extractor and a language identifier, wherein the shared feature extractor is composed of 14 layers of Conformer blocks and is shared by all languages, wherein the language identifier is composed of a Conformer block and a linear mapping layer, so that each language has a different separate module, and based on the input marked random size area of the FBank feature, the output size of the multilingual speech recognition model is matched with the dictionary size of each language.
4. The multi-language display method according to claim 1, characterized in that: The step S1 also includes limiting the output of the multilingual speech recognition model to between 0 and 1 through a softmax function, decoding the output of the multilingual speech recognition model after being processed by the softmax function through a greedy algorithm, removing meaningless blank frame characters, obtaining a decoded sequence, and calculating the average geometric probability of the decoded characters through a probability algorithm, taking the logarithm of the calculation result to obtain the confidence in the current language, arranging the confidence values of all languages from large to small, and selecting the language with the largest confidence value as the language recognition result of the speech.
5. The multi-language display method according to claim 1, characterized in that: The step S2 also includes translating the information to be displayed based on the language recognition result obtained in step S1. The specific operation is to construct an information repair model based on a multi-source encoder, which is composed of a source language sentence encoder, an inconsistent target language sentence encoder, an additional cross-attention layer, and a consistent target language sentence encoder. The information repair model is used to correct errors in sentences with inconsistent contexts in the information to be displayed, thereby splicing the context sentence with the current sentence to ensure the accuracy of the translation of the information to be displayed.
6. The multi-language display method according to claim 1, characterized in that: The step S2 also includes performing language translation of the repaired information to be displayed by machine translation, and performing quality assessment on the translated information. Specifically, based on the machine translation result of the repaired information to be displayed, a manual post-editing translation obtained by a translator manually editing the machine translation result according to the information to be displayed is obtained by using big data technology, and the number of replacement, insertion, deletion and move operations is obtained by comparing the machine translation result and the manual post-editing translation by a TERCOM script, and the number of replacement, insertion, deletion and move operations is added to obtain a total number of operations, which is then divided by the number of words in the manual post-editing translation to obtain a quality assessment result of the machine translation, and the quality assessment result of the machine translation is compared with a preset translation quality threshold. When the quality assessment result of the machine translation is lower than the preset translation quality threshold, the machine translation result is discarded and the translation operation is performed again, otherwise the machine translation result is used, thereby implementing the screening of the translated information.
7. The multi-language display method according to claim 1, characterized in that: The step S3 also includes displaying the translated information based on the screened translated information. After the specific operation, since the target population is a group with visual impairments, the auditory compensation design is realized through voice broadcasting based on the screened translated information, and further, a sound control cover is set in public places so that people can hear the voice broadcast sound only in specific areas in the public places, thereby avoiding interference from multiple people, and the screened translated information is retained and recorded, so as to facilitate direct information display when needed in the future, improve work efficiency, and quickly obtain information and design different compensation methods for display when facing people of the same language with different obstacles in the future.
8. A multi-language display device, characterized in that: It comprises a language recognition module (101), which is used to acquire voice information of a person and recognize the content, and then perform language recognition based on the recognized voice content, so as to provide data support for subsequent multilingual information display; An information translation module (102), the information translation module (102) being used to translate the information to be displayed based on the language result identified by the language identification module (101), and to perform quality assessment on the translated information, thereby screening the translated information; The translation information display module (103) is used to display the translated information based on the translated information filtered in the information translation module (102), and to record and store the translated information, so as to facilitate direct information display when needed in the future.
