CN110232194A - Translate display methods, device, equipment and readable storage medium storing program for executing - Google Patents

Translate display methods, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110232194A
CN110232194A CN201910521609.6A CN201910521609A CN110232194A CN 110232194 A CN110232194 A CN 110232194A CN 201910521609 A CN201910521609 A CN 201910521609A CN 110232194 A CN110232194 A CN 110232194A
Authority
CN
China
Prior art keywords
display
rate
newest
opportunity
translation result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910521609.6A
Other languages
Chinese (zh)
Other versions
CN110232194B (en
Inventor
孔常青
何润
高建清
苏文畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Hear Technology Co Ltd
Original Assignee
Anhui Hear Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Hear Technology Co Ltd filed Critical Anhui Hear Technology Co Ltd
Priority to CN201910521609.6A priority Critical patent/CN110232194B/en
Publication of CN110232194A publication Critical patent/CN110232194A/en
Application granted granted Critical
Publication of CN110232194B publication Critical patent/CN110232194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of translation display methods, appliance arrangement and readable storage medium storing program for executing, when detecting that display buffer has new translation result to enter, determine and reach display parameters adjustment opportunity;The newest display parameters of determining display interface corresponding with display parameters adjustment opportunity;Since the display parameters adjust opportunity, until being based on the newest display parameters before next display parameters adjustment opportunity, being shown to translation result to be shown.Scheme disclosed in the embodiment of the present application can be adjusted the display parameters of display interface when detecting that display buffer has new translation result to enter, and translation result is flexibly shown.

Description

Translate display methods, device, equipment and readable storage medium storing program for executing
Technical field
This application involves automatic speech translation technology fields, and more specifically, it relates to a kind of translation display methods, dress It sets, equipment and readable storage medium storing program for executing.
Background technique
Currently, scene (e.g., the not agnate double scene talked with mutually or not mutually exchanged in different racial groups Agnate more people listen to the scene of lecture) in, voiced translation can be realized by automatic speech translation system.Automatic speech translation System is usually made of speech recognition, machine translation and textual presentation three parts.By taking more people listen to the scene of lecture as an example, automatically Speech translation system can obtain speaker's speech as source language speech data, and source language speech data are obtained by speech recognition Source language text data, then source language text data are translated by machine translation, target language text data are generated, most It is shown afterwards using target language text data as translation result, for listening speaker to watch to help to listen speaker to understand that speaker sends out Speech.
Due to listening speaker different from the language of speaker, the translation result for listening speaker that can only rely on display understands that speaker sends out Say content.Therefore, in order to make to listen speaker to more fully understand speaker's speech content, a kind of translation result display side of optimization is needed Formula.
Summary of the invention
In view of the above problems, the application is proposed in order to provide a kind of translation display methods, device, equipment and readable storage Medium.Concrete scheme is as follows:
A kind of translation display methods, comprising:
When detecting that display buffer has new translation result to enter, determines and reach display parameters adjustment opportunity;
The newest display parameters of determining display interface corresponding with display parameters adjustment opportunity;
Since the display parameters adjust opportunity, until before next display parameters adjustment opportunity, based on described newest aobvious Show parameter, translation result to be shown is shown.
Preferably, the newest display parameters of determination display interface corresponding with display parameters adjustment opportunity, packet It includes:
Determine that the reference of the display interface shows rate;
The newest display rate of determining display interface corresponding with display parameters adjustment opportunity;
The newest display parameters are determined with reference to display rate and the newest display rate according to described.
Preferably, the reference of the determination display interface shows rate, comprising:
Obtain the default display rate of the display interface;
Determine that the reference of the display interface shows that rate is the default display rate of the display interface.
Preferably, the reference of the determination display interface shows rate, comprising:
Obtain the history display rate of the display interface;The history display rate of the display interface is to reach described aobvious Before showing parameter adjustment opportunity, the last display parameters adjust the newest display rate of opportunity corresponding display interface;
Determine that the reference of the display interface shows that rate is the history display rate of the display interface.
Preferably, the newest display rate of determination display interface corresponding with display parameters adjustment opportunity, packet It includes:
Determine the length of the new translation result;
It obtains before reaching the display parameters adjustment opportunity, the last display parameters adjust opportunity corresponding history The length of translation result;
It obtains before reaching the display parameters adjustment opportunity, the last display parameters adjust opportunity corresponding display The history display unit at interface;
According to going through for the length of the new translation result, the length of the history translation result and the display interface The history unit of display, the newest display rate of determining display interface corresponding with display parameters adjustment opportunity.
Preferably, described according to the length of the new translation result, the length of the history translation result and described aobvious Show the history display unit at interface, determine the newest display rate of display interface corresponding with display parameters adjustment opportunity, Include:
Reach display according to the length of the history translation result and the determination of the history display unit of the display interface Parameter adjusts the length for the translation result not shown also when opportunity;
According to the length of the new translation result, the determination of the length of the translation result not shown also and the display Parameter adjusts the newest display rate of opportunity corresponding display interface.
Preferably, described to determine that the newest display is joined with reference to display rate and the newest display rate according to described Number, comprising:
Rate is shown according to the reference of the display interface, determines reference refresh period and the reference of the display interface The unit of display;
When the newest display rate is less than or equal to the rate with reference to display, the newest brush of the display interface is determined The new period is the reference refresh period, determines that the newest unit of display of the display interface is described with reference to the unit of display;
When the newest display rate is greater than the rate with reference to display, adjust described in the reference refresh period generation The newest refresh cycle of display interface, and display circle is generated according to the newest refresh cycle and the newest display rate The newest unit of display in face;Wherein, the newest refresh cycle is less than the reference refresh period.
Preferably, the method for determination of the default display rate of the display interface is as follows:
Determine quantity, the audio duration corresponding with the original language training text in original language training text comprising word And include the quantity of word in object language training text corresponding with the original language training text;
According to quantity, the audio corresponding with the original language training text in the original language training text including word Include the quantity of word in duration and object language training text corresponding with the original language training text, determines described aobvious Show the default display rate at interface.
Preferably, the method for determination of the translation result is as follows:
Make pauses in reading unpunctuated ancient writings to source language text data, obtains at least one source language text segment;
Successively at least one described source language text segment is translated, obtains translation result.
A kind of translation display apparatus, comprising:
Display parameters adjust opportunity determination unit, for when detecting that display buffer has new translation result to enter, It determines and reaches display parameters adjustment opportunity;
Newest display parameters determination unit, most for determining display interface corresponding with display parameters adjustment opportunity New display parameters;
Translation result display unit, for since the display parameters adjust opportunity, to next display parameters adjustment when Before machine, the newest display parameters are based on, translation result to be shown is shown.
Preferably, the newest display parameters determination unit includes:
With reference to display rate determination unit, for determining that the reference of the display interface shows rate;
Newest display rate determination unit, most for determining display interface corresponding with display parameters adjustment opportunity New display rate;
First determination unit, it is described newest for being determined according to the reference display rate and the newest display rate Display parameters.
Preferably, described to include: with reference to display rate determination unit
Default display rate acquiring unit, for obtaining the default display rate of the display interface;
Second determination unit, for determining that the reference of the display interface shows that rate is the default aobvious of the display interface Show rate.
Preferably, described to include: with reference to display rate determination unit
History display rate acquiring unit, for obtaining the history display rate of the display interface;The display interface History display rate be before reaching the display parameters adjustment opportunity, the last display parameters adjustment opportunity is corresponding aobvious Show the display rate at interface;
Third determination unit, for determining that the history that the reference of the display interface shows that rate is the display interface is aobvious Show rate.
Preferably, first determination unit includes:
The length determination unit of new translation result, for determining the length of the new translation result;
The length acquiring unit of history translation result, for obtaining before reaching the display parameters adjustment opportunity, most Nearly display parameters adjust the length of opportunity corresponding history translation result;
History display unit acquiring unit, it is the last for obtaining before reaching the display parameters adjustment opportunity Display parameters adjust the history display unit of opportunity corresponding display interface;
4th determination unit, for length, the length of the history translation result according to the new translation result, and The history display unit of the display interface, the newest display of determining display interface corresponding with display parameters adjustment opportunity Rate.
Preferably, the newest display parameters determination unit includes:
Reference refresh period and reference unit of display determination unit, for showing speed according to the reference of the display interface Rate determines the reference refresh period of the display interface and with reference to the unit of display;
Comparing unit shows rate for the newest display rate and the reference;
5th determination unit, for determining institute when the newest display rate is less than or equal to the rate with reference to display The newest refresh cycle for stating display interface is the reference refresh period, determines the newest unit of display of the display interface for institute It states with reference to the unit of display;When the newest display rate is greater than the rate with reference to display, the reference refresh period is adjusted The newest refresh cycle of the display interface is generated, and institute is generated according to the newest refresh cycle and the newest display rate State the newest unit of display of display interface;Wherein, the newest refresh cycle is less than the reference refresh period.
Preferably, described device further includes default display rate determination unit, is wrapped for determining in original language training text The corresponding audio duration of quantity and the original language training text and mesh corresponding with the original language training text containing word Poster says the quantity in training text comprising word;According in the original language training text include word quantity, with it is described In the corresponding audio duration of original language training text and object language training text corresponding with the original language training text Quantity comprising word determines the default display rate of the display interface.
Preferably, described device further includes translation result determination unit, for making pauses in reading unpunctuated ancient writings to source language text data, is obtained To at least one source language text segment;Successively at least one described source language text segment is translated, obtains translation knot Fruit.
A kind of translation display equipment, including memory and processor;
The memory, for storing program;
The processor realizes each step of translation display methods as described above for executing described program.
A kind of readable storage medium storing program for executing is stored thereon with computer program, real when the computer program is executed by processor Each step of display methods is now translated as described above.
By above-mentioned technical proposal, this application discloses a kind of translation display methods, appliance arrangement and readable storage medium storing program for executing, When detecting that display buffer has new translation result to enter, determines and reach display parameters adjustment opportunity;It is determining to be shown with described Show the newest display parameters of parameter adjustment opportunity corresponding display interface;Since the display parameters adjust opportunity, until next Before display parameters adjustment opportunity, the newest display parameters are based on, translation result to be shown is shown.The application is real Applying scheme disclosed in example can be when detecting that display buffer has new translation result to enter to the display parameters of display interface It is adjusted, translation result is flexibly shown.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of translation display methods flow chart disclosed in the embodiment of the present application;
Fig. 2 is a kind of method flow diagram of the newest display parameters of determining display interface disclosed in the embodiment of the present application;
Fig. 3 is a kind of translation display apparatus structural schematic diagram disclosed in the embodiment of the present application;
Fig. 4 is a kind of hardware block diagram of translation display equipment disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Present inventor has found during realizing application scheme, and fixed display ginseng is preset for display interface Number, when needing to show translation result, control display interface carries out translation result using the display parameters of the fixation The translation displaying scheme of display can be applied in the scene that different racial groups mutually exchange.But in different racial groups In the scene mutually exchanged, automatic speech translation system is real time translation of making a speech speaker, i.e. speaker makes a speech on one side, from Dynamic speech translation system, which carries out voiced translation to the speech of speaker on one side, can continuously emerge new translation in the whole process As a result, speaker speaks, word speed is faster, and the speed that translation result generates is also faster, if display interface is using fixed display ginseng Several pairs of translation results are shown, when the word quantity of the translation result shown in the unit time is newly-generated less than in the unit time Translation result word quantity when, it is more likely that the accumulation of translation result is caused, alternatively, causing partial translation result without Faxian Show, affects the understanding for listening speaker to speaker's speech content.
Aiming above situation in the embodiment of the present application, the scheme of being correspondingly improved is provided.The program can be supplied to Automatic speech translation system is come using this automatic speech translation system is able to carry out the embodiment of the present application public affairs in the process of running The translation display methods opened.Unlike the translation display methods of the prior art, scheme disclosed in the embodiment of the present application can The display parameters of display interface are adjusted when detecting that display buffer has new translation result to enter, after adjustment Display parameters to translation result to be shown (translation result to be shown may comprising the history translation result that has not shown with And new translation result) shown, so that translation result accumulation or partial translation result the case where can not showing are avoided the occurrence of, Make that speaker is listened to better understood when speaker's speech content.
Next, the translation display methods of the embodiment of the present application is introduced in conjunction with Fig. 1 exemplary process, such as Fig. 1 institute Show, this method comprises:
Step S100, it when detecting that display buffer has new translation result to enter, determines and reaches display parameters adjustment Opportunity.
Specifically, translation result is the target language text by generate after voiced translation to source language speech data Data can use the translation display methods of the application when showing to target language text data.The translation of the application Display methods can be implemented in first terminal, and display buffer can be set in first terminal, after generating translation result, It is to be shown that the translation result enters display buffer etc..Furthermore it is also possible in the second terminal communicated to connect with first terminal Middle setting display buffer, after generating translation result, it is to be shown which enters display buffer etc., first When terminal implements the translation display methods of the application, it can determine whether to reach display parameters by interacting with second terminal Adjustment opportunity and obtain translation result to be shown.
In this application, in order to determine whether to reach display parameters adjustment opportunity, first terminal needs real-time detection local Display buffer in or the display buffer of second terminal in whether there is new translation result to enter, detecting that display is slow When rushing the translation result of Qu Youxin and entering, determines and reach display parameters adjustment opportunity.Specifically, when display buffer is arranged the When in one terminal, by whether there is new translation result to enter in first terminal real-time detection display buffer, work as display buffer , can be by whether there is new translation result to enter in second terminal real-time detection display buffer, such as when being arranged in second terminal When fruit detects that display buffer has new translation result to enter, then prompt information is sent to first terminal, first terminal is being received Can determine after to the prompt information has new translation result to enter in display buffer.
Step S110, the newest display parameters of determination display interface corresponding with display parameters adjustment opportunity.
In the embodiment of the present application, the display parameters of display interface may include refresh cycle and the display of display interface The unit of display at interface, wherein the refresh cycle of display interface indicates how long display interface updates once, display interface The unit of display indicates that display interface more newly increases the word quantity of display every time.Example is such as: the refresh cycle of display interface is 0.33s, the unit of display of display interface are 1, then it represents that display interface can 1 word of new display every 0.33s.
Specifically, it determines in the previous step after reaching display parameters adjustment opportunity, when determining and display parameters adjust The newest display parameters of the corresponding display interface of machine.Specifically, determining display interface corresponding with display parameters adjustment opportunity Newest display parameters are referred to determining the newest refresh cycle of the display parameters adjustment opportunity corresponding display interface and be shown Show the newest unit of display at interface.
Step S120, since the display parameters adjust opportunity, until being based on institute before next display parameters adjustment opportunity Newest display parameters are stated, translation result to be shown is shown.
Specifically, have determined that the newest refresh cycle of display interface and the newest of display interface show in abovementioned steps Show unit, in this step since the display parameters adjust opportunity, to before next display parameters adjustment opportunity, based on showing The newest refresh cycle at interface and the newest unit of display of display interface show translation result to be shown.
It should be noted that translation result to be shown in the embodiment of the present application includes the history translation result not shown And the new translation result.Before the history translation result refers to reaching the display parameters adjustment opportunity, recently The primary translation result for entering display buffer.The new translation result is that the display that enters detected in step S100 is delayed The translation result in area is rushed, in this application, history translation result has had not yet been displayed when reaching the display parameters adjustment opportunity Part shown also based on the newest refresh cycle of display interface and the newest unit of display of display interface.
The embodiment of the present application is disclosed to translate display methods, is detecting that display buffer has new translation result to enter When, it determines and reaches display parameters adjustment opportunity;Determining the newest of display interface corresponding with display parameters adjustment opportunity is shown Show parameter;Since the display parameters adjust opportunity, until being based on the newest display before next display parameters adjustment opportunity Parameter shows translation result to be shown.Scheme disclosed in the embodiment of the present application can detect display buffer There is new translation result to be adjusted when entering to the display parameters of display interface, based on display parameters adjusted to not showing Complete history translation result and new translation result are shown, to avoid the occurrence of translation result accumulation or partial translation knot The case where fruit can not show makes that speaker is listened to better understood when speaker's speech content.
In one embodiment of the application, above-mentioned steps S110 is described, it is determining to adjust opportunity with the display parameters The specific implementation process of the newest display parameters of corresponding display interface.In conjunction with the exemplary process of Fig. 2, to the determining and display The specific implementation process of the newest display parameters of parameter adjustment opportunity corresponding display interface is introduced, as shown in Fig. 2, the mistake Journey may include:
Step S1101: determine that the reference of display interface shows rate.
In the embodiment of the present application, the word number of the display rate representation display interface unit time display of display interface Amount plays the aobvious of reference role in the newest display parameters of determining display interface corresponding with display parameters adjustment opportunity Show that rate is that the reference of display interface shows rate.In the embodiment of the present application, display can be determined in different ways The reference at interface shows rate.
Mode one, the present embodiment can show speed as the reference of display interface using the default display rate of display interface Rate.
In the embodiment of the present application, presetting display rate can be calculated by preprocessing process, specifically, can obtain Original language training text is taken, corresponding punctuation mark is manually added to original language training text and carries out human translation obtaining accordingly Object language training text, then, it is determined that in original language training text comprising word quantity, with the original language training text It include the quantity of word in this corresponding audio duration and object language training text corresponding with the original language training text; Finally, when according to the quantity in the original language training text including word, audio corresponding with the original language training text Include the quantity of word in object language training text long and corresponding with the original language training text, determines the display The default display rate at interface.
Specifically, first according to the quantity, corresponding with the original language training text in original language training text including word Audio duration calculation obtain experience have shown that rate, experience have shown that rate, that is, original language is within the unit time (generally being measured with the second) Word quantity to be shown is needed, further according to the quantity and the original language training text in original language training text including word Quantity in corresponding object language training text comprising word and experience have shown that rate, determines the default of the display interface Show rate.
Example is such as: according to formula U0=T1/m is calculated experience have shown that rate U0, according to formula V0=(T2/T1) * U0, calculate The default display rate V of display interface0.Wherein, T1 is the total words that original language training text includes, and T2 is object language instruction Practice the total words that text includes, m is the corresponding audio duration of original language training text.
Mode two, the present embodiment can show speed as the reference of display interface using the history display rate of display interface Rate.
In the embodiment of the present application, history display rate can be before reaching the display parameters adjustment opportunity, any Display parameters adjust the display rate of opportunity corresponding display interface.
As a kind of optional embodiment, the history display rate of the display interface is to reach the display parameters adjustment Before opportunity, the last display parameters adjust the display rate of opportunity corresponding display interface.
Show that i is the positive integer more than or equal to 1, then for example, it is assumed that corresponding parameter of current display parameters adjustment opportunity is i First display parameters adjustment opportunity display rate of corresponding display interface is V1, corresponding with display parameters adjustment opportunity aobvious The newest display rate for showing interface is Vi, then the history display rate of display interface is Vi-1, then the reference of display interface shows speed Rate is Vi-1
Step S1102: the newest display rate of determining display interface corresponding with display parameters adjustment opportunity.
In the embodiment of the present application, the newest display rate of display interface corresponding with display parameters adjustment opportunity can adopt It is determined with various ways, specific as follows:
Mode one when detecting that display buffer has new translation result to enter for the first time, determines and reaches first display ginseng The newest display rate on number adjustment opportunity, display interface corresponding with first display parameters opportunity can be the default of display interface Show rate.
Mode two, non-detect for the first time can be according to new translation result when display buffer has new translation result to enter Length, the length of history translation result, history display unit, determining display interface corresponding with display parameters adjustment opportunity Newest display rate.Wherein, history translation result and history display unit can be when reaching display parameters adjustment Before machine, any display parameters adjust opportunity corresponding translation result and the unit of display.
As an embodiment, the length of the new translation result can be first determined in the present embodiment, and is obtained Before reaching the display parameters adjustment opportunity, the length that the last display parameters adjust opportunity corresponding translation result is made For the length of history translation result, and obtain the last display parameters before reaching the display parameters adjustment opportunity History display unit of the unit of display of adjustment opportunity corresponding display interface as display interface;Further according to the new translation As a result length, the length of the history translation result and the history display unit of the display interface, the determining and display Parameter adjusts the newest display rate of opportunity corresponding display interface.Wherein, before reaching the display parameters adjustment opportunity, The last display parameters adjust the length of opportunity corresponding history translation result, refer specifically to: reaching the display ginseng Before number adjustment opportunity, the last time enters the length of the translation result of the display buffer.
Specifically, can be determined according to the length of the history translation result and the history display unit of the display interface The length of translation result not shown also when reaching display parameters adjustment opportunity, further according to the new translation result length, The newest display speed of the determining display interface corresponding with display parameters adjustment opportunity of the length for the translation result not shown also Rate.
Show for example, according to formula noShowNum=Li-1-[nsi-1*(si-si-1)] determine that reaching display parameters adjusts opportunity When the length noShowNum of translation result that does not show also, according to formula Vi=(Li+noShowNum)/(si-si-1) determine with The display parameters adjust the newest display rate V of opportunity corresponding display interfacei, wherein LiFor the new translation result Length, Li-1For the length of the history translation result, nsi-1For the history display unit of the display interface, SiFor display ginseng At the time of number adjustment opportunity corresponds to, Si-1For before reaching the display parameters adjustment opportunity, the last display parameters are adjusted At the time of opportunity corresponds to.
Step S1103: show that rate and newest display rate determine newest display parameters according to reference.
Specifically, show that rate and newest display rate determine the specific implementation process of newest display parameters according to reference May include:
S1, according to the reference of the display interface show rate, determine the display interface the reference refresh period and With reference to the unit of display.
As an embodiment, if it is determined that the reference of the display interface shows that rate is V0, V0For display interface Default display rate, then according to formula t0=1/V0Determine the reference refresh period t of the display interface0, according to formula ns0 =V0*t0(rounding up) determines the reference unit of display ns of the display interface0
As another embodiment, if it is determined that the reference of the display interface shows that rate is Vi-1, Vi-1It is aobvious The history display rate for showing interface, then according to formula ti-1=1/Vi-1Determine the reference refresh period t of the display interfacei-1, root According to formula nsi-1=Vi-1*ti-1(rounding up) determines the reference unit of display ns of the display interfacei-1
Newest display speed record described in S2, comparison shows rate with the reference, when the newest display rate is less than or equal to When the rate with reference to display, S3 is executed, when the newest display rate is greater than the rate with reference to display, executes S4.
S3, the newest refresh cycle for determining the display interface are the reference refresh period, determine the display interface The newest unit of display be it is described refer to the unit of display.
It is a kind of to show for example, determining that the reference of the display interface shows that rate is V0If Vi/V0When≤1, described in determination The newest refresh cycle t of display interfacei=t0, determine the newest unit of display ns of the display interfacei=ns0
Another shows for example, determining that the reference of the display interface shows that rate is Vi-1If Vi/Vi-1When≤1, determine The newest refresh cycle t of the display interfacei=ti-1, determine the newest unit of display ns of the display interfacei=nsi-1
S4, the adjustment reference refresh period generate the newest refresh cycle of the display interface, and according to described newest Refresh cycle and the newest display rate generate the newest unit of display of the display interface;Wherein, the newest refreshing week Phase is less than the reference refresh period.
Specifically, different adjusting parameters can be preset, rate is shown according to the newest display rate and the reference Ratio locating for different sections, the reference refresh period is adjusted using different adjusting parameters and generates the display interface The newest refresh cycle makes the newest refresh cycle be less than the reference refresh period.
Show that rate is V in the reference for determining the display interface0Under the premise of, one kind shows for example, if 1 < Vi/V0≤ When 1.2, the newest refresh cycle t of the display interface is determinedi=t0/ 1.1, determine the newest unit of display of the display interface nsi=Vi*ti(rounding up).Another kind shows for example, if Vi/V0When > 1.2, the newest refreshing week of the display interface is determined Phase ti=t0/ 1.2, determine the newest unit of display ns of the display interfacei=Vi*ti(rounding up).
In addition, present inventor also found during realizing application scheme, source language speech data are carried out After speech recognition obtains source language text data, first according to the pause information of source language speech data to source language text data It carries out sentence to divide to obtain multiple source language text segments, then each source language text segment is turned over by machine translation It translates, generates the corresponding target language text segment of each source language text segment, each target language text segment is to generate Translation result.But due to the specific different habit of speaking of different speakers, only stop only in accordance with source language speech data Information of pausing, which carries out multiple source language text segments that sentence divides to source language text data, may not meet actual context, Cause each target language text segment semanteme for carrying out translation generation to each source language text segment imperfect, when using upper The translation display methods of embodiment offer is stated when showing to these target language text segments, will affect and listen speaker to speech The understanding of person's speech content.
Also directed to above situation in the embodiment of the present application, the scheme of being correspondingly improved is provided.The program can be supplied to certainly Dynamic speech translation system is come using this automatic speech translation system is able to carry out the embodiment of the present application in the process of running and discloses Translation result method of determination.Translation result method of determination disclosed in the embodiment of the present application can use preset punctuate model pair Source language text data are made pauses in reading unpunctuated ancient writings, and the source language text segment for meeting actual context is obtained, so as to each source language text Each target language text segment that segment carries out translation generation is semantic complete, shows when using translation provided by the above embodiment It when method shows these target language text segments, can help that speaker is listened to understand speaker's speech content.
Specifically, translation result method of determination disclosed in the embodiment of the present application is by breaking to source language text data Sentence, obtains at least one source language text segment, then successively translate at least one described source language text segment, obtains Translation result.
It should be noted that being to be broken using preset punctuate model to source language text data in the embodiment of the present application Sentence, wherein preset punctuate model can be using BLSTM model, the Self-Attention model under sequence labelling frame Deng model can also be generated using the sequence under Encode-Decode frame.
Translation display apparatus disclosed in the embodiment of the present application is described below, translation display apparatus described below with Above-described translation display methods can correspond to each other reference.
It is a kind of translation display apparatus structural schematic diagram disclosed in the embodiment of the present application referring to Fig. 3, Fig. 3.As shown in figure 3, The translation display apparatus may include:
Display parameters adjust opportunity determination unit 11, for detecting that display buffer has new translation result to enter When, it determines and reaches display parameters adjustment opportunity;
Newest display parameters determination unit 12, for determining display interface corresponding with display parameters adjustment opportunity Newest display parameters;
Translation result display unit 13, for since the display parameters adjust opportunity, to next display parameters adjustment Before opportunity, the newest display parameters are based on, translation result to be shown is shown.
Optionally, the newest display parameters determination unit includes:
With reference to display rate determination unit, for determining that the reference of the display interface shows rate;
Newest display rate determination unit, most for determining display interface corresponding with display parameters adjustment opportunity New display rate;
First determination unit, it is described newest for being determined according to the reference display rate and the newest display rate Display parameters.
Optionally, described to include: with reference to display rate determination unit
Default display rate acquiring unit, for obtaining the default display rate of the display interface;
Second determination unit, for determining that the reference of the display interface shows that rate is the default aobvious of the display interface Show rate.
Optionally, described to include: with reference to display rate determination unit
History display rate acquiring unit, for obtaining the history display rate of the display interface;The display interface History display rate be before reaching the display parameters adjustment opportunity, the last display parameters adjustment opportunity is corresponding aobvious Show the display rate at interface;
Third determination unit, for determining that the history that the reference of the display interface shows that rate is the display interface is aobvious Show rate.
Optionally, first determination unit includes:
The length determination unit of new translation result, for determining the length of the new translation result;
The length acquiring unit of history translation result, for obtaining before reaching the display parameters adjustment opportunity, most Nearly display parameters adjust the length of opportunity corresponding history translation result;
History display unit acquiring unit, it is the last for obtaining before reaching the display parameters adjustment opportunity Display parameters adjust the history display unit of opportunity corresponding display interface;
4th determination unit, for length, the length of the history translation result according to the new translation result, and The history display unit of the display interface, the newest display of determining display interface corresponding with display parameters adjustment opportunity Rate.
Optionally, the newest display parameters determination unit includes:
Reference refresh period and reference unit of display determination unit: for showing speed according to the reference of the display interface Rate determines the reference refresh period of the display interface and with reference to the unit of display;
Comparing unit shows rate for the newest display rate and the reference;
5th determination unit, for determining institute when the newest display rate is less than or equal to the rate with reference to display The newest refresh cycle for stating display interface is the reference refresh period, determines the newest unit of display of the display interface for institute It states with reference to the unit of display;When the newest display rate is greater than the rate with reference to display, the reference refresh period is adjusted The newest refresh cycle of the display interface is generated, and institute is generated according to the newest refresh cycle and the newest display rate State the newest unit of display of display interface;Wherein, the newest refresh cycle is less than the reference refresh period.
Optionally, described device further includes default display rate determination unit, is wrapped for determining in original language training text The corresponding audio duration of quantity and the original language training text and mesh corresponding with the original language training text containing word Poster says the quantity in training text comprising word;According in the original language training text include word quantity, with it is described In the corresponding audio duration of original language training text and object language training text corresponding with the original language training text Quantity comprising word determines the default display rate of the display interface.
Optionally, described device further includes translation result determination unit, for making pauses in reading unpunctuated ancient writings to source language text data, is obtained To at least one source language text segment;Successively at least one described source language text segment is translated, obtains translation knot Fruit.
Translation display apparatus disclosed in the embodiment of the present application can be applied to translation display equipment, such as PC terminal, cloud platform, clothes Business device and server cluster etc..Optionally, Fig. 4 shows the hardware block diagram of translation display equipment, and referring to Fig. 4, translation is aobvious The hardware configuration for showing equipment may include: at least one processor 1, at least one communication interface 2,3 He of at least one processor At least one communication bus 4;
In the embodiment of the present application, processor 1, communication interface 2, memory 3, communication bus 4 quantity be at least one, And processor 1, communication interface 2, memory 3 complete mutual communication by communication bus 4;
Processor 1 may be a central processor CPU or specific integrated circuit ASIC
(Application Specific Integrated Circuit), or be arranged to implement of the invention real Apply one or more integrated circuits etc. of example;
Memory 3 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory) etc., a for example, at least magnetic disk storage;
Wherein, memory is stored with program, the program that processor can call memory to store, and described program is used for:
When detecting that display buffer has new translation result to enter, determines and reach display parameters adjustment opportunity;
The newest display parameters of determining display interface corresponding with display parameters adjustment opportunity;
Since the display parameters adjust opportunity, until before next display parameters adjustment opportunity, based on described newest aobvious Show parameter, translation result to be shown is shown.
Optionally, the refinement function of described program and extension function can refer to above description.
The embodiment of the present application also provides a kind of storage medium, which can be stored with the journey executed suitable for processor Sequence, described program are used for:
When detecting that display buffer has new translation result to enter, determines and reach display parameters adjustment opportunity;
The newest display parameters of determining display interface corresponding with display parameters adjustment opportunity;
Since the display parameters adjust opportunity, until before next display parameters adjustment opportunity, based on described newest aobvious Show parameter, translation result to be shown is shown.
Optionally, the refinement function of described program and extension function can refer to above description.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (12)

1. a kind of translation display methods characterized by comprising
When detecting that display buffer has new translation result to enter, determines and reach display parameters adjustment opportunity;
The newest display parameters of determining display interface corresponding with display parameters adjustment opportunity;
Since the display parameters adjust opportunity, until before next display parameters adjustment opportunity, based on the newest display ginseng Number, shows translation result to be shown.
2. the method according to claim 1, wherein the determination is corresponding with display parameters adjustment opportunity The newest display parameters of display interface, comprising:
Determine that the reference of the display interface shows rate;
The newest display rate of determining display interface corresponding with display parameters adjustment opportunity;
The newest display parameters are determined with reference to display rate and the newest display rate according to described.
3. according to the method described in claim 2, it is characterized in that, the determination display interface reference show rate, Include:
Obtain the default display rate of the display interface;
Determine that the reference of the display interface shows that rate is the default display rate of the display interface.
4. according to the method described in claim 2, it is characterized in that, the determination display interface reference show rate, Include:
Obtain the history display rate of the display interface;The history display rate of the display interface is to reach the display ginseng Before number adjustment opportunity, the last display parameters adjust the newest display rate of opportunity corresponding display interface;
Determine that the reference of the display interface shows that rate is the history display rate of the display interface.
5. according to the method described in claim 2, it is characterized in that, the determination is corresponding with display parameters adjustment opportunity The newest display rate of display interface, comprising:
Determine the length of the new translation result;
It obtains before reaching the display parameters adjustment opportunity, the last display parameters adjust opportunity corresponding history translation As a result length;
It obtains before reaching the display parameters adjustment opportunity, the last display parameters adjust opportunity corresponding display interface History display unit;
It is aobvious according to the history of the length of the new translation result, the length of the history translation result and the display interface Show unit, the newest display rate of determining display interface corresponding with display parameters adjustment opportunity.
6. according to the method described in claim 5, it is characterized in that, the length according to the new translation result, described The history display unit of the length of history translation result and the display interface, it is determining to adjust opportunity pair with the display parameters The newest display rate for the display interface answered, comprising:
Reach display parameters according to the length of the history translation result and the determination of the history display unit of the display interface The length for the translation result not shown also when adjustment opportunity;
According to the length of the new translation result, the determination of the length of the translation result not shown also and the display parameters The newest display rate of adjustment opportunity corresponding display interface.
7. method as claimed in any of claims 2 to 6, which is characterized in that described fast with reference to display according to described Rate and the newest display rate determine the newest display parameters, comprising:
Rate is shown according to the reference of the display interface, determines the reference refresh period of the display interface and with reference to display Unit;
When the newest display rate is less than or equal to the rate with reference to display, the newest refreshing week of the display interface is determined Phase is the reference refresh period, determines that the newest unit of display of the display interface is described with reference to the unit of display;
When the newest display rate is greater than the rate with reference to display, the reference refresh period generation display is adjusted The newest refresh cycle at interface, and the display interface is generated according to the newest refresh cycle and the newest display rate The newest unit of display;Wherein, the newest refresh cycle is less than the reference refresh period.
8. according to the method described in claim 3, it is characterized in that, the method for determination of the default display rate of the display interface It is as follows:
Determine in original language training text comprising the quantity of word, audio duration corresponding with the original language training text and with It include the quantity of word in the corresponding object language training text of the original language training text;
According to quantity, the audio duration corresponding with the original language training text in the original language training text including word And display circle is determined comprising the quantity of word in object language training text corresponding with the original language training text The default display rate in face.
9. the method according to claim 1, wherein the method for determination of the translation result is as follows:
Make pauses in reading unpunctuated ancient writings to source language text data, obtains at least one source language text segment;
Successively at least one described source language text segment is translated, obtains translation result.
10. a kind of translation display apparatus characterized by comprising
Display parameters adjust opportunity determination unit, for determining when detecting that display buffer has new translation result to enter Reach display parameters adjustment opportunity;
Newest display parameters determination unit, for the newest aobvious of determining display interface corresponding with display parameters adjustment opportunity Show parameter;
Translation result display unit, for since the display parameters adjust opportunity, to next display parameters adjust opportunity it Before, the newest display parameters are based on, translation result to be shown is shown.
11. a kind of translation shows equipment, which is characterized in that including memory and processor;
The memory, for storing program;
The processor realizes translation display methods as claimed in any one of claims 1-9 wherein for executing described program Each step.
12. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed When device executes, each step of translation display methods as claimed in any one of claims 1-9 wherein is realized.
CN201910521609.6A 2019-06-17 2019-06-17 Translation display method, device, equipment and readable storage medium Active CN110232194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910521609.6A CN110232194B (en) 2019-06-17 2019-06-17 Translation display method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910521609.6A CN110232194B (en) 2019-06-17 2019-06-17 Translation display method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110232194A true CN110232194A (en) 2019-09-13
CN110232194B CN110232194B (en) 2024-04-09

Family

ID=67860005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910521609.6A Active CN110232194B (en) 2019-06-17 2019-06-17 Translation display method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110232194B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246236A (en) * 1996-12-19 2000-03-01 汤姆森消费电子有限公司 Method and apparatus for providing modulated scroll rate for text display
JP2003299027A (en) * 2002-03-29 2003-10-17 Sanyo Electric Co Ltd Character reproducer
CN1770262A (en) * 2004-11-01 2006-05-10 英业达股份有限公司 Speech display system and method
CN102170553A (en) * 2010-02-26 2011-08-31 夏普株式会社 Conference system, information processor, conference supporting method and information processing method
CN108366182A (en) * 2018-02-13 2018-08-03 京东方科技集团股份有限公司 Text-to-speech synchronizes the calibration method reported and device, computer storage media
US20180336891A1 (en) * 2015-10-29 2018-11-22 Hitachi, Ltd. Synchronization method for visual information and auditory information and information processing device
EP3422203A1 (en) * 2017-06-29 2019-01-02 Vestel Elektronik Sanayi ve Ticaret A.S. Computer implemented simultaneous translation method simultaneous translation device
CN109408833A (en) * 2018-10-30 2019-03-01 科大讯飞股份有限公司 A kind of interpretation method, device, equipment and readable storage medium storing program for executing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246236A (en) * 1996-12-19 2000-03-01 汤姆森消费电子有限公司 Method and apparatus for providing modulated scroll rate for text display
JP2003299027A (en) * 2002-03-29 2003-10-17 Sanyo Electric Co Ltd Character reproducer
CN1770262A (en) * 2004-11-01 2006-05-10 英业达股份有限公司 Speech display system and method
CN102170553A (en) * 2010-02-26 2011-08-31 夏普株式会社 Conference system, information processor, conference supporting method and information processing method
US20180336891A1 (en) * 2015-10-29 2018-11-22 Hitachi, Ltd. Synchronization method for visual information and auditory information and information processing device
EP3422203A1 (en) * 2017-06-29 2019-01-02 Vestel Elektronik Sanayi ve Ticaret A.S. Computer implemented simultaneous translation method simultaneous translation device
CN108366182A (en) * 2018-02-13 2018-08-03 京东方科技集团股份有限公司 Text-to-speech synchronizes the calibration method reported and device, computer storage media
CN109408833A (en) * 2018-10-30 2019-03-01 科大讯飞股份有限公司 A kind of interpretation method, device, equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110232194B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US8924216B2 (en) System and method for synchronizing sound and manually transcribed text
JP6541630B2 (en) Speech end pointing
US10649729B2 (en) Audio device with auditory system display and methods for use therewith
WO2015180444A1 (en) Method for adjusting screen refresh rate, terminal and computer storage medium
CN110177298B (en) Voice-based video speed doubling playing method and system
EP2955713A1 (en) Synchronous audio playback method, apparatus and system
CN105070118A (en) Pronunciation correcting method and device for language learning
WO2021082572A1 (en) Wake-up model generation method, smart terminal wake-up method, and devices
CN110428811B (en) Data processing method and device and electronic equipment
CN110738986B (en) Long voice labeling device and method
JP2020095719A5 (en)
CN109599125A (en) A kind of overlapping sound detection method and relevant apparatus
CN104317392B (en) A kind of information control method and electronic equipment
US10964301B2 (en) Method and apparatus for correcting delay between accompaniment audio and unaccompanied audio, and storage medium
CN104978966A (en) Method and apparatus realizing compensation of frame loss in audio stream
CN109005402A (en) A kind of appraisal procedure and device of video
CN106251875A (en) The method of a kind of frame losing compensation and terminal
CN102956125B (en) Cloud digital phonetic teaching recording system
CN110232194A (en) Translate display methods, device, equipment and readable storage medium storing program for executing
CN112423019B (en) Method and device for adjusting audio playing speed, electronic equipment and storage medium
CN110534131A (en) A kind of audio frequency playing method and system
CN105759964B (en) Sound input method and device for virtual reality equipment and virtual reality equipment
CN112201227A (en) Voice sample generation method and device, storage medium and electronic device
CN110491366B (en) Audio smoothing method and device, computer equipment and storage medium
CN106534964B (en) Method and device for adjusting speech rate

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant