CN104795083B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN104795083B CN104795083B CN201510216845.9A CN201510216845A CN104795083B CN 104795083 B CN104795083 B CN 104795083B CN 201510216845 A CN201510216845 A CN 201510216845A CN 104795083 B CN104795083 B CN 104795083B
- Authority
- CN
- China
- Prior art keywords
- subtitle
- sentence
- moment
- starting
- time
- 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.)
- Active
Links
Abstract
Information processing method and electronic equipment disclosed in the present application capture its voice messaging after multimedia file commences play out, and obtain the starting playing time corresponding to it in real time when target voice sentence is captured;Afterwards, based on the starting playing time, the subtitle time shaft of subtitle file is adjusted, finally the orthochronous axis according to gained after adjustment carries out subtitle file display control, and realization subtitle is played simultaneously with multimedia file voice messaging.As it can be seen that the stationary problem of subtitle and video speech is solved without manual mode using the application, and it is more time saving and energy saving, improve user experience.
Description
Technical field
The invention belongs to multimedia information field more particularly to a kind of information processing methods and electronic equipment.
Background technology
Video file may have the phenomenon that without subtitle, for example, user's foreign language film video to be watched without from
Band subtitle.
Based on this, in order to more swimmingly watch, understand video content, user need to download one it is opposite with video to be watched
The subtitle file answered, however, the video file of same content might have multiple versions, such as pirated video disc, DVD (Digital
Versatile Disc, digital versatile disc), blue light etc., different editions can cause piece of video due to publisher, advertisement are when difference
The time span of head is different, so as to when user carries out matching broadcasting using the subtitle file of download with video file, often
Generate subtitle and the nonsynchronous phenomenon of video speech.At present, it is only capable of manually adjusting the time shaft of subtitle file
Whole, to solve the stationary problem of subtitle and video speech, which is time-consuming and laborious, reduces user experience.
The content of the invention
In view of this, it is an object of the invention to provide a kind of information processing method and electronic equipment, to solve existing skill
Art causes time-consuming and laborious because solving the stationary problem of subtitle and video speech using manual mode, and user experience is low to ask
Topic.
For this purpose, the present invention is disclosed directly below technical solution:
A kind of information processing method, applied to the electronic equipment with multimedia file playing function, the multimedia text
Part corresponds to a subtitle file, and the subtitle file includes the first subtitle time shaft and the N subtitle sentence chronologically arranged, the first word
The starting that curtain time shaft includes each subtitle sentence shows that moment and termination show the moment, and N is natural number;The described method includes:
The voice messaging of played multimedia file is captured, and target language is obtained in real time when target voice sentence is captured
The corresponding starting playing time of sound sentence;
Based on the starting playing time, the first subtitle time shaft is adjusted, obtains the second subtitle time shaft;
Display control is carried out to subtitle file according to the second subtitle time shaft, to realize subtitle and multimedia file language
Message breath is played simultaneously.
The above method, it is preferred that the target voice sentence is first voice sentence of multimedia file;It is then described to be based on institute
Starting playing time is stated, the first subtitle time shaft is adjusted, obtaining the second subtitle time shaft includes:
Calculate first between the starting playing time of target voice sentence and the starting display moment of first object subtitle sentence
Time difference, wherein, the first object subtitle sentence shows moment earliest subtitle sentence for starting on the first subtitle time shaft;
It is poor based on the first time, the moment is shown to the starting of N subtitle sentence on the first subtitle time shaft, terminates display
Moment is adjusted, and obtains the second subtitle time shaft.
The above method, it is preferred that it is described poor based on the first time, to N subtitle sentence on the first subtitle time shaft
Starting shows that moment, termination show that the moment is adjusted, and obtaining the second subtitle time shaft is:
The starting of N subtitle sentence on first subtitle time shaft is shown into the moment, terminates and shows the moment, respectively with described first
Time difference carries out summation operation, obtains the second subtitle time shaft.
The above method, it is preferred that described to be to subtitle file progress display control according to the second subtitle time shaft:
It is the starting display moment of every subtitle sentence and termination display moment provided according to the second subtitle time shaft, right
Every subtitle sentence in subtitle file carries out display control respectively.
The above method, it is preferred that the target voice sentence is the voice sentence currently commenced play out in multimedia file;Then institute
It states based on the starting playing time, the first subtitle time shaft is adjusted, obtaining the second subtitle time shaft includes:
Calculate second between the starting playing time of target voice sentence and the starting display moment of the second target subtitle sentence
Time difference, the second target subtitle sentence are that starting shows that the moment is earliest in each subtitle sentence for do not played in subtitle file display
Subtitle sentence;
Based on second time difference, to the second target subtitle sentence when the starting on the first subtitle time shaft is shown
It carves and terminates and show that the moment is adjusted, obtain the second subtitle time shaft.
The above method, it is preferred that it is described based on second time difference, to the second target subtitle sentence in the first subtitle
Starting on time shaft, which shows the moment and terminates, shows that the moment is adjusted, and obtaining the second subtitle time shaft is:
The starting of the second target subtitle sentence is shown the moment and terminated and shows the moment, respectively with second time difference
Summation operation is carried out, obtains the second subtitle time shaft.
The above method, it is preferred that described to be to subtitle file progress display control according to the second subtitle time shaft:
When the starting display moment of the second target subtitle sentence provided according to the second subtitle time shaft and termination display
It carves, display control is carried out to the second target subtitle sentence.
A kind of electronic equipment has multimedia file playing function, and the multimedia file corresponds to a subtitle file, described
Subtitle file includes the first subtitle time shaft and the N number of subtitle sentence chronologically arranged, and the first subtitle time shaft includes each subtitle sentence
Starting show the moment and terminate show the moment, N is natural number;The electronic equipment includes:
Capture module, for capturing the voice messaging of played multimedia file, and when target voice sentence is captured
The corresponding starting playing time of target voice sentence is obtained in real time;
Module is adjusted, for being based on the starting playing time, the first subtitle time shaft is adjusted, obtains the
Two subtitle time shafts;
Control module, for carrying out display control to subtitle file according to the second subtitle time shaft, to realize subtitle
With being played simultaneously for multimedia file voice messaging.
Above-mentioned electronic equipment, it is preferred that the target voice sentence is first voice sentence of multimedia file;The then tune
Mould preparation block includes:
First computing unit shows for calculating the starting playing time of target voice sentence and the starting of first object subtitle sentence
Show that the first time between the moment is poor, wherein, the first object subtitle sentence shows the moment for starting on the first subtitle time shaft
Earliest subtitle sentence;
The first adjustment unit, starting to first subtitle time shaft on N subtitle sentence poor for being based on the first time
Display moment, termination show that the moment is adjusted, and obtain the second subtitle time shaft.
Above-mentioned electronic equipment, it is preferred that the first adjustment unit is:
First and arithmetic element, it is shown for the starting of N subtitle sentence on the first subtitle time shaft to be shown the moment, is terminated
Moment respectively with the first time poor carry out summation operation, obtains the second subtitle time shaft.
Above-mentioned electronic equipment, it is preferred that the control module is:
First control unit, the starting of every subtitle sentence for being provided according to the second subtitle time shaft show the moment
And terminate and show the moment, display control is carried out respectively to every subtitle sentence in subtitle file.
Above-mentioned electronic equipment, it is preferred that the target voice sentence is the voice sentence currently commenced play out in multimedia file;
Then the adjustment module includes:
Second computing unit shows for calculating the starting playing time of target voice sentence and the starting of the second target subtitle sentence
Show the second time difference between the moment, the second target subtitle sentence rises not played in subtitle file in each subtitle sentence of display
Begin to show the subtitle sentence that the moment is earliest;
Second adjustment unit, for being based on second time difference, to the second target subtitle sentence in the first subtitle
Starting on countershaft, which shows the moment and terminates, shows that the moment is adjusted, and obtains the second subtitle time shaft.
Above-mentioned electronic equipment, it is preferred that the second adjustment unit is:
Second and arithmetic element, show the moment for showing the moment and terminating the starting of the second target subtitle sentence,
Summation operation is carried out with second time difference respectively, obtains the second subtitle time shaft.
Above-mentioned electronic equipment, it is preferred that the control module is:
Second control unit, the starting of the second target subtitle sentence for being provided according to the second subtitle time shaft are shown
Moment and termination show the moment, and display control is carried out to the second target subtitle sentence.
From above scheme, information processing method and electronic equipment disclosed in the present application start to broadcast in multimedia file
Its voice messaging is captured after putting, and obtains the starting playing time corresponding to it in real time when target voice sentence is captured;Afterwards,
Based on the starting playing time, the subtitle time shaft of subtitle file is adjusted, gained is correct after final foundation adjustment
Time shaft carries out subtitle file display control, and realization subtitle is played simultaneously with multimedia file voice messaging.As it can be seen that using
The application solves the stationary problem of subtitle and video speech without manual mode, more time saving and energy saving, improves user's body
It tests.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart for information processing method embodiment one that the application provides;
Fig. 2 is a kind of flow chart for information processing method embodiment two that the application provides;
Fig. 3 is a kind of flow chart for information processing method embodiment three that the application provides;
Fig. 4 is a kind of flow chart for information processing method example IV that the application provides;
Fig. 5 is a kind of flow chart for information processing method embodiment five that the application provides;
Fig. 6 is the structure diagram for a kind of electronic equipment embodiment six that the application provides;
Fig. 7 is the structure diagram for a kind of electronic equipment embodiment seven that the application provides;
Fig. 8 is the structure diagram for a kind of electronic equipment embodiment eight that the application provides;
Fig. 9 is the structure diagram for a kind of electronic equipment embodiment nine that the application provides;
Figure 10 is the structure diagram for a kind of electronic equipment embodiment ten that the application provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment belongs to the scope of protection of the invention.
Embodiment one
With reference to figure 1, Fig. 1 is a kind of flow chart for information processing method embodiment one that the application provides, and the method should
For the electronic equipment with multimedia file playing function, the multimedia file corresponds to a subtitle file, the subtitle file
Including the first subtitle time shaft and the N subtitle sentence chronologically arranged, the starting that the first subtitle time shaft includes each subtitle sentence is shown
Show the moment and terminate and show the moment, N is natural number.
As shown in Figure 1, the method may include following steps:
S101:The voice messaging of played multimedia file is captured, and is obtained in real time when target voice sentence is captured
The corresponding starting playing time of target voice sentence.
It wherein, specifically can be by installing audio receiver additional in the electronic device, when carrying out the broadcasting of real-time receiving multimedia file
The audio sent, and pass through speech recognition technology and (the various audios of such as background music may be included) from the audio of reception and catch
Voice when catching voice messaging therein, such as capturing human dialog or sing.
When capturing target voice sentence, such as first voice of multimedia file or the kth that currently commences play out
(natural number for being more than 1) voice etc., while the starting playing time corresponding to the target voice sentence is obtained, wherein, the mesh
The starting playing time of poster sound sentence is using the starting playing time of multimedia file as zero reference point.
In the application other embodiment, its audio file can also be directly acquired after multimedia file commences play out,
And according to preset voice messaging recognition rule, for example according to speech audio tracing pattern and other audio (such as background sounds
It is happy) difference of tracing pattern, the audio curve of target voice sentence is provided in the audio curve provided from the audio file, it is real
The capture of existing target voice sentence.Wherein, xth (natural number) article voice sentence specifically it is corresponding sequentially identified from audio file the
X speech audio curve, meanwhile, according to audio file sound intermediate frequency curve and the correspondence of reproduction time, obtain target voice
The starting playing time of sentence.
S102:Based on the starting playing time, the first subtitle time shaft is adjusted, when obtaining the second subtitle
Countershaft.
Subtitle time shaft in subtitle file is not corresponding with the audio timeline of multimedia file, can be by audio
The actual play moment of voice sentence as adjustment foundation, adjusts accordingly subtitle time shaft in file.
The starting playing time of target voice sentence acquired in previous step is to start in multimedia file playing process
Play the actual moment of the target voice sentence, therefore, specifically can according to captured voice sentence starting playing time to subtitle
Time shaft adjusts accordingly, to obtain correct subtitle time shaft.
S103:Display control is carried out to subtitle file according to the second subtitle time shaft, to realize subtitle and multimedia
File voice information is played simultaneously.
It, can be based on the subtitle playing time indicated on subtitle time shaft, to word after obtaining correct subtitle time shaft
Subtitle in curtain file carries out display control, finally realizes being played simultaneously for subtitle and multimedia file voice messaging.
From above scheme, information processing method disclosed in the present application captures it after multimedia file commences play out
Voice messaging, and the starting playing time corresponding to it is obtained when target voice sentence is captured in real time;Afterwards, based on described
Beginning playing time is adjusted the subtitle time shaft of subtitle file, and the final orthochronous axis according to gained after adjustment is to word
Curtain file carries out display control, and realization subtitle is played simultaneously with multimedia file voice messaging.It as it can be seen that need not using the application
The stationary problem of subtitle and video speech is solved using manual mode, it is more time saving and energy saving, improve user experience.
Embodiment two
With reference to figure 2, Fig. 2 is the flow chart of a kind of information processing method embodiment two that the application provides, in the present embodiment,
The target voice sentence is first voice sentence of multimedia file, then as shown in Fig. 2, the step S102 can be by following
Step is realized:
S201:It calculates between the starting playing time of target voice sentence and the starting display moment of first object subtitle sentence
It is poor at the first time, wherein, the first object subtitle sentence shows moment earliest subtitle sentence for starting on the first subtitle time shaft;
S202:It is poor based on the first time, moment, end are shown to the starting of N subtitle sentence on the first subtitle time shaft
It only shows that the moment is adjusted, obtains the second subtitle time shaft.
The present embodiment is suitable for the starting of each subtitle sentence on subtitle time shaft, termination shows that the moment integrally shifts to an earlier date or delay phase
With the application scenarios of duration, i.e., in subtitle file, starting, the termination of every subtitle sentence show that the moment is corresponding with audio file
The starting of voice sentence terminates time difference all same between playing time, for example, compared with the starting of voice sentence in audio file,
Playing time is terminated, the starting of every subtitle sentence in subtitle file terminates and shows that the moment postpones 5s backward.
In above application scene, since the display moment of each subtitle sentence of subtitle file integrally shifts to an earlier date or delays same time,
Thus, it is only required to obtain in multimedia file in the starting playing time of first voice sentence and subtitle file first subtitle sentence
Starting shows the time difference between the moment, afterwards, can carry out disposably integrated regulation to subtitle time shaft according to the time difference,
It specifically, can be by the way that the starting of every subtitle sentence on subtitle time shaft, termination being shown, the moment sums with the time difference
Computing obtains the correct display moment of every subtitle sentence, to realize corresponding for subtitle time shaft and audio timeline.
Embodiment three
With reference to figure 3, a kind of flow chart for information processing method embodiment three that Fig. 3 provides for the application, the present embodiment base
In two described scheme of embodiment, as shown in figure 3, step S103 described in the present embodiment specifically can be real by following steps
It is existing:
S301:When the starting display moment of every subtitle sentence provided according to the second subtitle time shaft and termination display
It carves, display control is carried out respectively to every subtitle sentence in subtitle file.
Description based on embodiment two is understood, disposable integrated regulation is being carried out to subtitle time shaft using the time difference
Afterwards, the display moment of every subtitle sentence is the correct moment on subtitle time shaft, and therefore, the present embodiment utilizes the subtitle after adjustment
Time shaft (i.e. described second subtitle time shaft) carries out display control respectively to each subtitle sentence, finally realizes subtitle and more matchmakers
Body file voice information is played simultaneously.
Example IV
With reference to figure 4, Fig. 4 is the flow chart of a kind of information processing method example IV that the application provides, in the present embodiment,
The target voice sentence is the voice sentence currently commenced play out in multimedia file;Then as shown in figure 4, the step S102 can be with
It is realized by following steps:
S401:It calculates between the starting playing time of target voice sentence and the starting display moment of the second target subtitle sentence
Second time difference, the second target subtitle sentence show the moment most not play starting in each subtitle sentence of display in subtitle file
Early subtitle sentence;
S402:Based on second time difference, to starting of the second target subtitle sentence on the first subtitle time shaft
Display moment and termination show that the moment is adjusted, and obtain the second subtitle time shaft.
The present embodiment is suitable for the starting of each subtitle sentence on subtitle time shaft, termination shows that the moment shifts to an earlier date or delays not respectively
With the application scenarios of duration, i.e., in subtitle file, starting, the termination of each subtitle sentence show that the moment is corresponding with audio file
The starting of voice sentence, the time difference terminated between playing time are not quite similar, for example, compared with of voice sentence in audio file
Begin, terminate playing time, the starting of some subtitle sentences in subtitle file terminates and shows that the moment postpones 5s, some subtitle sentences backward
Starting, terminate and show that the moment postpones 3s backward, and the starting of other subtitle sentences, terminate and show that the moment then shifts to an earlier date 1s etc..
In above application scene, since the display moment of each subtitle sentence in subtitle file shifts to an earlier date or the duration phase not to the utmost delayed
Together, therefore, the actual conditions that need to be shifted to an earlier date or be delayed based on every subtitle sentence carry out differentiated adjustment, specifically to every subtitle sentence
Ground need to capture every voice sentence, and calculate the starting playing time of every voice sentence and of corresponding subtitle sentence in subtitle file
Begin to show the time difference between the moment, and the moment, which is adjusted, to be shown to starting, the termination of the subtitle sentence based on the time difference.
In the present embodiment, a voice sentence is often captured, is both needed to once be adjusted, is different from the disposable whole of embodiment two
Body adjusts, and the scene of the present embodiment need to can just finally obtain correct time shaft by repeatedly adjusting.
It should be noted that in two kinds of application scenarios that the application provides, on the subtitle time shaft of subtitle file, each word
Curtain sentence shows that the precedence at moment does not generate disorder, i.e., the display order of every subtitle sentence and its institute in multimedia file
The broadcasting order of corresponding voice sentence is consistent, therefore, during using the application, can capture voice sentence by the precedence of reproduction time,
And the captured corresponding subtitle sentence of voice sentence is sequentially sequentially obtained from subtitle file, xth (natural number) voice sentence tool
The xth subtitle sentence that body correspondence is sequentially obtained from subtitle file, so as to which the first voice sentence pair captured in embodiment two should
In the subtitle sentence that the starting display moment on subtitle time shaft is earliest, the present embodiment, the current speech sentence captured corresponds to word
Starting in each subtitle sentence of display is not played in curtain file and shows moment earliest subtitle sentence.
Embodiment five
With reference to figure 5, a kind of flow chart for information processing method embodiment five that Fig. 5 provides for the application, the present embodiment base
In the described scheme of example IV, as shown in figure 5, step S103 described in the present embodiment specifically can be real by following steps
It is existing:
S501:The starting of the second target subtitle sentence according to the second subtitle time shaft offer shows the moment and terminates aobvious
Show the moment, display control is carried out to the second target subtitle sentence.
In the application scenarios that example IV provides, since the display moment of each subtitle sentence in subtitle file in advance or is delayed
Duration is not quite similar, and therefore, is capturing current speech sentence, and the starting playing time according to current speech sentence is to the subtitle time
After axis is adjusted, whole correct time shaft can not be obtained, if the display moment is when currently adjusting the display of subtitle sentence
Subtitle sentence after quarter does not adjust yet.
Based on this, the present embodiment only in accordance with this adjustment after gained current subtitle sentence the display moment, to current subtitle
Sentence carries out display control, to realize being played simultaneously for current subtitle sentence and current speech sentence.And other subtitle sentences then need to be aobvious at it
Show after being adjusted on demand constantly, could be shown by control.
Embodiment six
With reference to figure 6, Fig. 6 is the structure diagram for a kind of electronic equipment embodiment six that the application provides, and the electronics is set
Standby to have multimedia file playing function, the multimedia file corresponds to a subtitle file, which includes the first subtitle
Time shaft and the N subtitle sentence chronologically arranged, the starting that the first subtitle time shaft includes each subtitle sentence show moment and termination
Show the moment, N is natural number.
As shown in fig. 6, the electronic equipment can include capture module 100, adjustment module 200 and control module 300.
Capture module 100 for capturing the voice messaging of played multimedia file, and is captured in target voice sentence
When obtain the corresponding starting playing time of target voice sentence in real time.
It wherein, specifically can be by installing audio receiver additional in the electronic device, when carrying out the broadcasting of real-time receiving multimedia file
The audio sent, and pass through speech recognition technology and (the various audios of such as background music may be included) from the audio of reception and catch
Voice when catching voice messaging therein, such as capturing human dialog or sing..
When capturing target voice sentence, such as first voice of multimedia file or the kth that currently commences play out
(natural number for being more than 1) voice etc., while the starting playing time corresponding to the target voice sentence is obtained, wherein, the mesh
The starting playing time of poster sound sentence is using the starting playing time of multimedia file as zero reference point.
In the application other embodiment, its audio file can also be directly acquired after multimedia file commences play out,
And according to preset voice messaging recognition rule, for example according to speech audio tracing pattern and other audio (such as background sounds
It is happy) difference of tracing pattern, the audio curve of target voice sentence is provided in the audio curve provided from the audio file, it is real
The capture of existing target voice sentence.Wherein, xth (natural number) article voice sentence specifically it is corresponding sequentially identified from audio file the
X speech audio curve, meanwhile, according to audio file sound intermediate frequency curve and the correspondence of reproduction time, obtain target voice
The starting playing time of sentence.
Module 200 is adjusted, for being based on the starting playing time, the first subtitle time shaft is adjusted, is obtained
To the second subtitle time shaft.
Subtitle time shaft in subtitle file is not corresponding with the audio timeline of multimedia file, can be by audio
The actual play moment of voice sentence as adjustment foundation, adjusts accordingly subtitle time shaft in file.
The starting playing time of target voice sentence acquired in a upper module is to start in multimedia file playing process
Play the actual moment of the target voice sentence, therefore, specifically can according to captured voice sentence starting playing time to subtitle
Time shaft adjusts accordingly, to obtain correct subtitle time shaft.
Control module 300, for carrying out display control to subtitle file according to the second subtitle time shaft, to realize word
Curtain is played simultaneously with multimedia file voice messaging.
It, can be based on the subtitle playing time indicated on subtitle time shaft, to word after obtaining correct subtitle time shaft
Subtitle in curtain file carries out display control, finally realizes being played simultaneously for subtitle and multimedia file voice messaging.
From above scheme, electronic equipment disclosed in the present application captures its voice after multimedia file commences play out
Information, and the starting playing time corresponding to it is obtained when target voice sentence is captured in real time;Afterwards, broadcast based on the starting
The moment is put, the subtitle time shaft of subtitle file is adjusted, the final orthochronous axis according to gained after adjustment is to subtitle text
Part carries out display control, and realization subtitle is played simultaneously with multimedia file voice messaging.As it can be seen that using the application without
Manual mode solves the stationary problem of subtitle and video speech, more time saving and energy saving, improves user experience.
Embodiment seven
With reference to figure 7, Fig. 7 is the structure diagram of a kind of electronic equipment embodiment seven that the application provides, in the present embodiment,
The target voice sentence is first voice sentence of multimedia file, then as shown in fig. 7, the adjustment module 200 includes first
Computing unit 201 and the first adjustment unit 202.
First computing unit 201, for calculating the starting playing time of target voice sentence and of first object subtitle sentence
Begin to show that the first time between the moment is poor, wherein, the first object subtitle sentence shows to be originated on the first subtitle time shaft
Moment earliest subtitle sentence;
The first adjustment unit 202, it is poor for being based on the first time, to N subtitle sentence on the first subtitle time shaft
Starting shows that moment, termination show that the moment is adjusted, and obtains the second subtitle time shaft.
Wherein, the first adjustment unit is specially first and arithmetic element, for by N word on the first subtitle time shaft
The starting of curtain sentence shows the moment, terminates the display moment, respectively with the first time poor carry out summation operation, obtains the second subtitle
Time shaft.
The present embodiment is suitable for the starting of each subtitle sentence on subtitle time shaft, termination shows that the moment integrally shifts to an earlier date or delay phase
With the application scenarios of duration, i.e., in subtitle file, starting, the termination of every subtitle sentence show that the moment is corresponding with audio file
The starting of voice sentence terminates time difference all same between playing time, for example, compared with the starting of voice sentence in audio file,
Playing time is terminated, the starting of every subtitle sentence in subtitle file terminates and shows that the moment postpones 5s backward.
In above application scene, since the display moment of each subtitle sentence of subtitle file integrally shifts to an earlier date or delays same time,
Thus, it is only required to obtain in multimedia file in the starting playing time of first voice sentence and subtitle file first subtitle sentence
Starting shows the time difference between the moment, afterwards, can carry out disposably integrated regulation to subtitle time shaft according to the time difference,
It specifically, can be by the way that the starting of every subtitle sentence on subtitle time shaft, termination being shown, the moment sums with the time difference
Computing obtains the correct display moment of every subtitle sentence, to realize corresponding for subtitle time shaft and audio timeline.
Embodiment eight
With reference to figure 8, the structure diagram for a kind of electronic equipment embodiment eight that Fig. 8 provides for the application, the present embodiment base
In seven described scheme of embodiment, as shown in figure 8, control module 300 described in the present embodiment is specially the first control unit
301, the starting of every subtitle sentence for being provided according to the second subtitle time shaft, which shows the moment and terminates, shows the moment, right
Every subtitle sentence in subtitle file carries out display control respectively.
Description based on embodiment seven is understood, disposable integrated regulation is being carried out to subtitle time shaft using the time difference
Afterwards, the display moment of every subtitle sentence is the correct moment on subtitle time shaft, and therefore, the present embodiment utilizes the subtitle after adjustment
Time shaft (i.e. described second subtitle time shaft) carries out display control respectively to each subtitle sentence, finally realizes subtitle and more matchmakers
Body file voice information is played simultaneously.
Embodiment nine
With reference to figure 9, Fig. 9 is the structure diagram of a kind of electronic equipment embodiment nine that the application provides, in the present embodiment,
The target voice sentence is the voice sentence currently commenced play out in multimedia file;Then as shown in figure 9, the adjustment module 200
Including the second computing unit 203 and second adjustment unit 204.
Second computing unit 203, for calculating the starting playing time of target voice sentence and of the second target subtitle sentence
Begin to show the second time difference between the moment, the second target subtitle sentence is each subtitle sentence for not playing display in subtitle file
Middle starting shows moment earliest subtitle sentence;
Second adjustment unit 204, for being based on second time difference, to the second target subtitle sentence in the first subtitle
Starting on time shaft, which shows the moment and terminates, shows that the moment is adjusted, and obtains the second subtitle time shaft.
Wherein, second adjustment unit 204 is specially second and arithmetic element, for rising the second target subtitle sentence
Begin to show the moment and terminate the display moment, carry out summation operation with second time difference respectively, obtain the second subtitle time shaft.
The present embodiment is suitable for the starting of each subtitle sentence on subtitle time shaft, termination shows that the moment shifts to an earlier date or delays not respectively
With the application scenarios of duration, i.e., in subtitle file, starting, the termination of each subtitle sentence show that the moment is corresponding with audio file
The starting of voice sentence, the time difference terminated between playing time are not quite similar, for example, compared with of voice sentence in audio file
Begin, terminate playing time, the starting of some subtitle sentences in subtitle file terminates and shows that the moment postpones 5s, some subtitle sentences backward
Starting, terminate and show that the moment postpones 3s backward, and the starting of other subtitle sentences, terminate and show that the moment then shifts to an earlier date 1s etc..
In above application scene, since the display moment of each subtitle sentence in subtitle file shifts to an earlier date or the duration phase not to the utmost delayed
Together, therefore, the actual conditions that need to be shifted to an earlier date or be delayed based on every subtitle sentence carry out differentiated adjustment, specifically to every subtitle sentence
Ground need to capture every voice sentence, and calculate the starting playing time of every voice sentence and of corresponding subtitle sentence in subtitle file
Begin to show the time difference between the moment, and the moment, which is adjusted, to be shown to starting, the termination of the subtitle sentence based on the time difference.
In the present embodiment, a voice sentence is often captured, is both needed to once be adjusted, is different from the disposable whole of embodiment two
Body adjusts, and the scene of the present embodiment need to can just finally obtain correct time shaft by repeatedly adjusting.
It should be noted that in two kinds of application scenarios that the application provides, on the subtitle time shaft of subtitle file, each word
Curtain sentence shows that the precedence at moment does not generate disorder, i.e., the display order of every subtitle sentence and its institute in multimedia file
The broadcasting order of corresponding voice sentence is consistent, therefore, during using the application, can capture voice sentence by the precedence of reproduction time,
And the captured corresponding subtitle sentence of voice sentence is sequentially sequentially obtained from subtitle file, xth (natural number) voice sentence tool
The xth subtitle sentence that body correspondence is sequentially obtained from subtitle file, so as to which the first voice sentence pair captured in embodiment seven should
In the subtitle sentence that the starting display moment on subtitle time shaft is earliest, the present embodiment, the current speech sentence captured corresponds to word
Starting in each subtitle sentence of display is not played in curtain file and shows moment earliest subtitle sentence.
Embodiment ten
With reference to figure 10, the structure diagram for a kind of electronic equipment embodiment ten that Figure 10 provides for the application, the present embodiment
Based on nine described scheme of embodiment, as shown in Figure 10, control module 300 described in the present embodiment is specially that the second control is single
Member 302, the starting of the second target subtitle sentence for being provided according to the second subtitle time shaft show the moment and terminate display
Moment carries out display control to the second target subtitle sentence.
In the application scenarios that embodiment nine provides, since the display moment of each subtitle sentence in subtitle file in advance or is delayed
Duration is not quite similar, and therefore, is capturing current speech sentence, and the starting playing time according to current speech sentence is to the subtitle time
After axis is adjusted, whole correct time shaft can not be obtained, if the display moment is when currently adjusting the display of subtitle sentence
Subtitle sentence after quarter does not adjust yet.
Based on this, the present embodiment only in accordance with this adjustment after gained current subtitle sentence the display moment, to current subtitle
Sentence carries out display control, to realize being played simultaneously for current subtitle sentence and current speech sentence.And other subtitle sentences then need to be aobvious at it
Show after being adjusted on demand constantly, could be shown by control.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment.
For convenience of description, describe to be divided into various modules during system above with function or unit describes respectively.Certainly, exist
Implement the function of each unit is realized can in the same or multiple software and or hardware during the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
It is realized by the mode of software plus required general hardware platform.Based on such understanding, the technical solution essence of the application
On the part that the prior art contributes can be embodied in the form of software product in other words, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, it is used including some instructions so that a computer equipment
(can be personal computer, server either network equipment etc.) performs some of each embodiment of the application or embodiment
Method described in part.
Finally, it is to be noted that, herein, the relational terms of such as first, second, third and fourth or the like
It is used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying these
There are any actual relationship or orders between entity or operation.Moreover, term " comprising ", "comprising" or its is any
Other variants are intended to non-exclusive inclusion, so that process, method, article or equipment including a series of elements
Not only include those elements, but also including other elements that are not explicitly listed or further include as this process, side
Method, article or the intrinsic element of equipment.In the absence of more restrictions, limited by sentence "including a ..."
Element, it is not excluded that also there are other identical elements in the process, method, article or apparatus that includes the element.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of information processing method, which is characterized in that described applied to the electronic equipment with multimedia file playing function
Multimedia file corresponds to a subtitle file, and the subtitle file includes the first subtitle time shaft and the N subtitle chronologically arranged
Sentence, the starting that the first subtitle time shaft includes each subtitle sentence show that moment and termination show the moment, and N is natural number;The method
Including:
The voice messaging of played multimedia file is captured, and target voice sentence is obtained in real time when target voice sentence is captured
Corresponding starting playing time;
Based on the starting playing time, the first subtitle time shaft is adjusted, obtains the second subtitle time shaft;
Display control is carried out to subtitle file according to the second subtitle time shaft, to realize that subtitle is believed with multimedia file voice
Breath is played simultaneously;
Wherein, the voice messaging for capturing played multimedia file includes:According to speech audio tracing pattern and non-language
The difference of sound audio curve form identifies target voice from the audio curve of the audio file offer of the multimedia file
The audio curve of sentence, to realize the capture of target voice sentence.
2. according to the method described in claim 1, it is characterized in that, the target voice sentence is first language of multimedia file
Sound sentence;It is then described based on the starting playing time, the first subtitle time shaft is adjusted, obtained for the second subtitle time
Axis includes:
Calculate the first time between the starting playing time of target voice sentence and the starting display moment of first object subtitle sentence
Difference, wherein, the first object subtitle sentence shows moment earliest subtitle sentence for starting on the first subtitle time shaft;
It is poor based on the first time, the moment is shown to the starting of N subtitle sentence on the first subtitle time shaft, terminates the display moment
It is adjusted, obtains the second subtitle time shaft.
3. according to the method described in claim 2, it is characterized in that, described poor based on the first time, during to the first subtitle
The starting of N subtitle sentence shows that moment, termination show that the moment is adjusted on countershaft, and obtaining the second subtitle time shaft is:
The starting of N subtitle sentence on first subtitle time shaft is shown into the moment, terminates and shows the moment, respectively with the first time
Difference carries out summation operation, obtains the second subtitle time shaft.
4. according to the method described in claim 3, it is characterized in that, it is described according to the second subtitle time shaft to subtitle file
Carrying out display control is:
The starting display moment of every subtitle sentence and termination display moment provided according to the second subtitle time shaft, to subtitle
Every subtitle sentence in file carries out display control respectively.
5. according to the method described in claim 1, it is characterized in that, the target voice sentence is currently to start in multimedia file
The voice sentence of broadcasting;It is then described based on the starting playing time, the first subtitle time shaft is adjusted, obtains second
Subtitle time shaft includes:
Calculate the second time between the starting playing time of target voice sentence and the starting display moment of the second target subtitle sentence
Difference, the second target subtitle sentence show moment earliest subtitle not play starting in each subtitle sentence of display in subtitle file
Sentence;
Based on second time difference, starting of the second target subtitle sentence on the first subtitle time shaft is shown the moment and
It terminates and shows that the moment is adjusted, obtain the second subtitle time shaft.
6. according to the method described in claim 5, it is characterized in that, described be based on second time difference, to second mesh
Starting of the marking-up curtain sentence on the first subtitle time shaft, which shows the moment and terminate, shows that the moment is adjusted, when obtaining the second subtitle
Countershaft is:
The starting of the second target subtitle sentence is shown the moment and terminated and shows the moment, is carried out respectively with second time difference
Summation operation obtains the second subtitle time shaft.
7. according to the method described in claim 6, it is characterized in that, it is described according to the second subtitle time shaft to subtitle file
Carrying out display control is:
It is the starting display moment of the second target subtitle sentence and termination display moment provided according to the second subtitle time shaft, right
The second target subtitle sentence carries out display control.
8. a kind of electronic equipment, which is characterized in that there is multimedia file playing function, the multimedia file corresponds to a subtitle
File, the subtitle file, which includes the first subtitle time shaft and the N number of subtitle sentence chronologically arranged, the first subtitle time shaft, to be included
The starting of each subtitle sentence, which shows the moment and terminates, shows the moment, and N is natural number;The electronic equipment includes:
Capture module, for capturing the voice messaging of played multimedia file, and it is real-time when target voice sentence is captured
Obtain the corresponding starting playing time of target voice sentence;
Module is adjusted, for being based on the starting playing time, the first subtitle time shaft is adjusted, obtains the second word
Curtain time shaft;
Control module, for according to the second subtitle time shaft to subtitle file carry out display control, with realize subtitle with it is more
Media file voice messaging is played simultaneously;
Wherein, the voice messaging of the played multimedia file of the capture module capture includes:According to speech audio shaped form
The difference of state and non-speech audio tracing pattern is identified from the audio curve of the audio file offer of the multimedia file
The audio curve of target voice sentence, to realize the capture of target voice sentence.
9. electronic equipment according to claim 8, which is characterized in that the target voice sentence is the first of multimedia file
Voice sentence;Then the adjustment module includes:
First computing unit, when being shown for calculating the starting of the starting playing time of target voice sentence and first object subtitle sentence
First time between quarter is poor, wherein, the first object subtitle sentence shows that the moment is earliest for starting on the first subtitle time shaft
Subtitle sentence;
The first adjustment unit, it is poor for being based on the first time, the starting of N subtitle sentence on the first subtitle time shaft is shown
Moment, termination show that the moment is adjusted, and obtain the second subtitle time shaft.
10. electronic equipment according to claim 9, which is characterized in that the first adjustment unit is:
First and arithmetic element, for the starting of N subtitle sentence on the first subtitle time shaft is shown into the moment, terminate show when
It carves, respectively with the first time poor carry out summation operation, obtains the second subtitle time shaft.
11. electronic equipment according to claim 10, which is characterized in that the control module is:
First control unit, the starting of every subtitle sentence for being provided according to the second subtitle time shaft show moment and end
It only shows the moment, display control is carried out respectively to every subtitle sentence in subtitle file.
12. electronic equipment according to claim 8, which is characterized in that the target voice sentence be multimedia file in when
Before the voice sentence that commences play out;Then the adjustment module includes:
Second computing unit, when being shown for calculating the starting of the starting playing time of target voice sentence and the second target subtitle sentence
The second time difference between quarter, the second target subtitle sentence show not play to originate in each subtitle sentence of display in subtitle file
Show moment earliest subtitle sentence;
Second adjustment unit, for being based on second time difference, to the second target subtitle sentence in the first subtitle time shaft
On starting show the moment and terminate show the moment be adjusted, obtain the second subtitle time shaft.
13. electronic equipment according to claim 12, which is characterized in that the second adjustment unit is:
Second and arithmetic element, show the moment for showing the moment and terminating the starting of the second target subtitle sentence, respectively
Summation operation is carried out with second time difference, obtains the second subtitle time shaft.
14. electronic equipment according to claim 13, which is characterized in that the control module is:
Second control unit, the starting of the second target subtitle sentence for being provided according to the second subtitle time shaft show the moment
And terminate and show the moment, display control is carried out to the second target subtitle sentence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510216845.9A CN104795083B (en) | 2015-04-30 | 2015-04-30 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510216845.9A CN104795083B (en) | 2015-04-30 | 2015-04-30 | A kind of information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104795083A CN104795083A (en) | 2015-07-22 |
CN104795083B true CN104795083B (en) | 2018-06-01 |
Family
ID=53559839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510216845.9A Active CN104795083B (en) | 2015-04-30 | 2015-04-30 | A kind of information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104795083B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100647A (en) * | 2015-07-31 | 2015-11-25 | 深圳市金立通信设备有限公司 | Subtitle correction method and terminal |
CN106792069A (en) * | 2015-11-19 | 2017-05-31 | 北京国双科技有限公司 | Method for broadcasting multimedia file and device |
CN105959772B (en) * | 2015-12-22 | 2019-04-23 | 合一网络技术(北京)有限公司 | Streaming Media and the instant simultaneous display of subtitle, matched processing method, apparatus and system |
CN109413475A (en) * | 2017-05-09 | 2019-03-01 | 北京嘀嘀无限科技发展有限公司 | Method of adjustment, device and the server of subtitle in a kind of video |
CN108259963A (en) * | 2018-03-19 | 2018-07-06 | 成都星环科技有限公司 | A kind of TV ends player |
CN111526414B (en) * | 2020-04-30 | 2022-06-07 | 青岛海信传媒网络技术有限公司 | Subtitle display method and display equipment |
CN116471436A (en) * | 2023-04-12 | 2023-07-21 | 央视国际网络有限公司 | Information processing method and device, storage medium and electronic equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100297206B1 (en) * | 1999-01-08 | 2001-09-26 | 노영훈 | Caption MP3 data format and a player for reproducing the same |
CN101808202B (en) * | 2009-02-18 | 2013-09-04 | 联想(北京)有限公司 | Method, system and computer for realizing sound-and-caption synchronization in video file |
-
2015
- 2015-04-30 CN CN201510216845.9A patent/CN104795083B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104795083A (en) | 2015-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104795083B (en) | A kind of information processing method and electronic equipment | |
CN108780653B (en) | System and method for audio content production, audio sequencing and audio mixing | |
US10037313B2 (en) | Automatic smoothed captioning of non-speech sounds from audio | |
KR101618540B1 (en) | Systems and methods for interactive broadcast content | |
CN106658135B (en) | A kind of audio and video playing method and device | |
CN104333802A (en) | Video playing method and video player | |
US20070223873A1 (en) | System and method for altering playback speed of recorded content | |
US20160071524A1 (en) | Audio Modification for Multimedia Reversal | |
CN106249903B (en) | A kind of playback method and device of virtual reality scenario content | |
CN110769167A (en) | Method for video dubbing based on text-to-speech technology | |
US11729475B2 (en) | System and method for providing descriptive video | |
CN104574478A (en) | Method and device for editing mouth shapes of animation figures | |
US20140178049A1 (en) | Image processing apparatus, image processing method, and program | |
CN103873919B (en) | A kind of information processing method and electronic equipment | |
CN110177298A (en) | A kind of voice-based video speed playback method and system | |
KR20180041189A (en) | Method and device for live character broadcast of a game | |
JP6268131B2 (en) | Subtitle production apparatus and subtitle production method | |
CN101887739A (en) | Method and device for synchronizing media play | |
JP6485977B2 (en) | Subtitle production apparatus and subtitle production method | |
US20200075000A1 (en) | System and method for broadcasting from a group of speakers to a group of listeners | |
US20090257335A1 (en) | Audio signal processing method | |
CN104253943B (en) | Use the video capture method and apparatus of mobile terminal | |
CN107977849A (en) | A kind of method and system based on audio stream real-time intelligent implantation information | |
CN104575125B (en) | Dual-audio repeating method and device | |
CN106448710B (en) | A kind of calibration method and music player devices of music play parameters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |