CN109271532A - A kind of method and device of multimedia file playback - Google Patents

A kind of method and device of multimedia file playback Download PDF

Info

Publication number
CN109271532A
CN109271532A CN201710586217.9A CN201710586217A CN109271532A CN 109271532 A CN109271532 A CN 109271532A CN 201710586217 A CN201710586217 A CN 201710586217A CN 109271532 A CN109271532 A CN 109271532A
Authority
CN
China
Prior art keywords
target
segment
playback
media
text segment
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.)
Pending
Application number
CN201710586217.9A
Other languages
Chinese (zh)
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710657309.1A priority Critical patent/CN109271536A/en
Priority to CN201710586217.9A priority patent/CN109271532A/en
Publication of CN109271532A publication Critical patent/CN109271532A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Abstract

The invention discloses a kind of method and apparatus of multimedia file playback.Media file includes multiple media fragments, carries out language and characters identification to each media fragment, obtains the corresponding text segment of each media fragment.Media file library includes the corresponding relationship of text segment and play time, which is the play time of media fragment belonging to text segment.Target text segment is chosen, the corresponding target play time of target text segment is inquired from media file library, media file is played back according to the target play time.Therefore, playback duration can be saved according to media file library, playback play time of the accurate selection target text segment in media file.

Description

A kind of method and device of multimedia file playback
Technical field
The present invention relates to multimedia technology fields, more particularly to a kind of method and device of multimedia file playback.
Background technique
It is currently, there are the player of diversified multimedia file, for playing audio file or video file.Example Such as: domestic common audio file player has Netease's music, and 1,000 hark, and my cruel music etc.;External common audio File player has Rockbox, Poweramp and Spotify etc..Domestic common video file player has Baidu's shadow Sound, storm video and QQ are audio-visual etc.;External common video file player has Windows Media player, Realplayer and QuickTime etc..
When putting device broadcasting multimedia file using above-mentioned player, if desired multimedia file is played back in particular moment When, progress bar can only be drawn to the position near the particular moment, realization plays back the multimedia file.On but Progress bar, accurately can not be accurately drawn to the particular moment by the scheme for stating multimedia file playback, it is also necessary to which repetition is broadcast Additional multimedia file is put, the accuracy of the specific content of playback of multimedia files is low, wastes time.
Summary of the invention
Present invention solves the technical problem that being to provide a kind of method and device of multimedia file playback, so as to standard Really quickly realize the playback of multimedia file.
For this purpose, the technical solution that the present invention solves technical problem is:
A kind of method of multimedia file playback, pre-establishes media file library, the media file library includes letter plate The corresponding relationship of section and play time, the text segment are to carry out language and characters by the corresponding media fragment of the play time What identification obtained, which comprises
In response to the selection operation to target text segment, the playback request to multimedia file is triggered;
The media file library is inquired, the corresponding target play time of the target text segment is searched;
The multimedia file is played back according to the target play time.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of starting point Ask, it is described according to the target play time to multimedia file carry out playback include:
Obtain the starting playing time in the target play time;
The multimedia file is played back from the starting playing time.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of content Ask, it is described according to the target play time to multimedia file carry out playback include:
It obtains the starting playing time in the target play time and terminates playing time;
The multimedia file is played to the termination playing time from the starting playing time.
Optionally, it is described by the multimedia file from starting playing time be played to terminate playing time include:
It obtains in the multimedia file, from the starting playing time to the target medium piece for terminating playing time Section;
Play the target medium segment.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment belonging to the text segment, the method also includes:
In response to the selection operation to target roles type, the corresponding text segment collection of the target roles type is shown It closes.
A kind of device of multimedia file playback, comprising:
Module is established, for pre-establishing media file library, the media file library includes text segment and play time Corresponding relationship, the text segment is to carry out language and characters identification by the corresponding media fragment of the play time to obtain;
Trigger module triggers the playback request to multimedia file for the selection operation in response to target text segment;
Searching module, for inquiring the media file library, when searching the corresponding target of the target text segment and playing Between;
Playback module, for being played back according to the target play time to the multimedia file.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of starting point It asks, the playback module includes:
First acquisition unit, for obtaining the starting playing time in the target play time;
First playback unit, for being played back from the starting playing time to the multimedia file.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of content It asks, the playback module includes:
Second acquisition unit, for obtaining the starting playing time in the target play time and terminating playing time;
Second playback unit is played for the multimedia file to be played to the termination from the starting playing time Moment.
Optionally, second playback unit includes:
Subelement is obtained to play for obtaining in the multimedia file from the starting playing time to the termination The target medium segment at moment;
Subelement is played, for playing the target medium segment.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment, described device belonging to the text segment further include:
Display module, for showing that the target roles type is corresponding in response to the selection operation to target roles type Text set of segments.
A kind of device of multimedia playback, described device include:
Processor and memory, it is above-mentioned to establish module, trigger module, searching module and playback module etc. as program list Member storage in memory, executes above procedure unit stored in memory by processor to realize corresponding function.
A kind of storage medium, is stored thereon with program, which realizes the multimedia playback when being executed by processor Method.
A kind of method of multimedia file playback, pre-establishes media file library, the media file library includes letter plate The corresponding relationship of section and media fragment, the text segment are to carry out language and characters identification by the media fragment to obtain, institute The method of stating includes:
In response to the selection operation to target text segment, the playback request to multimedia file is triggered;
The media file library is inquired, the corresponding target medium segment of the target text segment is searched;
The multimedia file is played back according to the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of content Request, it is described according to the target medium segment to the multimedia file carry out playback include:
Obtain the corresponding target medium segment of the target text segment;
Play the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes putting in order for media fragment, and the media fragment puts in order, with the media The sequencing of segment play time in the multimedia file is consistent, it is described according to the target medium segment to described more Media file carries out playback
From the media file library, according to putting in order for the media fragment, the target medium segment is obtained, with And the media fragment to put in order after the target medium segment and playback.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes the corresponding play time of media fragment, and the play time includes the media fragment Starting playing time in the multimedia file and terminate playing time, it is described according to the target medium segment to described Multimedia file carries out playback
From the media file library, according to the sequencing of the corresponding play time of the media fragment, described in acquisition The media fragment played after target medium segment and the target medium segment and playback.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment belonging to the text segment, the method also includes:
In response to the selection operation to target roles type, the corresponding text segment collection of the target roles type is shown It closes.
A kind of playback reproducer of multimedia file, comprising:
Module is established, for pre-establishing media file library, the media file library includes text segment and media fragment Corresponding relationship, the text segment be by the media fragment carry out language and characters identification obtain;
Trigger module, in response to the selection operation to target text segment, the playback of multimedia file to be asked in triggering It asks;
Searching module searches the corresponding target medium piece of the target text segment for inquiring the media file library Section;
Playback module, for being played back according to the target medium segment to the multimedia file.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of content Request, the playback module include:
First acquisition unit, for obtaining the corresponding target medium segment of the target text segment;
First broadcast unit, for playing the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes putting in order for media fragment, and the media fragment puts in order, with the media The sequencing of segment play time in the multimedia file is consistent,
The playback module, for according to putting in order for the media fragment, obtaining institute from the media file library State target medium segment and the media fragment to put in order after the target medium segment and playback.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes the corresponding play time of media fragment, and the play time includes the media fragment Starting playing time and termination playing time in the multimedia file,
The playback module is used for from the media file library, according to the corresponding play time of the media fragment Sequencing obtains the media fragment played after the target medium segment and the target medium segment and playback.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment, described device belonging to the text segment further include:
Display module, for showing that the target roles type is corresponding in response to the selection operation to target roles type Text set of segments.
A kind of device of multimedia playback, described device include:
Processor and memory, it is above-mentioned to establish module, trigger module, searching module and playback module etc. as program list Member storage in memory, executes above procedure unit stored in memory by processor to realize corresponding function.
A kind of storage medium, is stored thereon with program, which realizes the multimedia playback when being executed by processor Method.
According to the above-mentioned technical solution, the method have the advantages that:
Media file includes multiple media fragments, carries out language and characters identification to each media fragment, obtains each media The corresponding text segment of segment.Media file library includes the corresponding relationship of text segment and play time, which is The play time of media fragment belonging to text segment.Target text segment is chosen, inquires target text from media file library The corresponding target play time of segment, plays back media file according to the target play time.In a kind of situation, according to this The starting play time of target play time is realized using media fragment belonging to the letter plate section as starting point, to media file Playback;In another case, according to the starting play time of the target play time and terminating play time, realize to the text Media fragment belonging to segment is that content is played back.Therefore, according to media file library, accurately media file can be selected to play back Play time, save playback duration.
Media file includes multiple media fragments, carries out language and characters identification to each media fragment, obtains each media The corresponding text segment of segment.Media file library, which includes that text segment is corresponding with media fragment belonging to the letter plate section, closes System.Target text segment is chosen, the corresponding target medium segment of target text segment is inquired from media file library, according to the mesh Mark media fragment plays back media file.In a kind of situation, directly target medium segment is played back;Another situation Under, using target medium segment as starting point, successively obtain in multimedia file, the media fragment after target medium segment is returned It puts.Therefore, it according to media file library, can accurately select in multimedia file, the media fragment to be played back, when saving playback Between.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is one example flow chart of method of multimedia file provided in an embodiment of the present invention playback;
Fig. 2 is the display interface of text information provided in an embodiment of the present invention;
The display interface of the position Fig. 3 another text information provided in an embodiment of the present invention;
Fig. 4 is another example flow chart of method of multimedia file provided in an embodiment of the present invention playback;
Fig. 5 is the method yet another embodiment flow chart of multimedia file provided in an embodiment of the present invention playback;
Fig. 6 is the structural schematic diagram of multimedia file playback reproducer provided in an embodiment of the present invention;
Fig. 7 is one example flow chart of method of multimedia file provided in an embodiment of the present invention playback;
Fig. 8 is another example flow chart of method of multimedia file provided in an embodiment of the present invention playback;
Fig. 9 is the method yet another embodiment flow chart of multimedia file provided in an embodiment of the present invention playback;
Figure 10 is the another example flow chart of method of multimedia file provided in an embodiment of the present invention playback;
Figure 11 is the structural schematic diagram of the device of multimedia file provided in an embodiment of the present invention playback.
Specific embodiment
In order to provide the implementation of multimedia file playback, the embodiment of the invention provides a kind of playback of multimedia file Method and apparatus, the embodiment of the present invention is illustrated below in conjunction with Figure of description, it should be understood that described herein Embodiment is only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.And in the absence of conflict, in the application Embodiment and embodiment in feature can be combined with each other.
In daily life, it needs to play out multimedia file using multimedia player, and in the mistake of broadcasting Cheng Zhong, user is frequently necessary to specify a playing time in multimedia file, since the playing time, to multimedia text Part is played back.When being played back using existing multimedia player to multimedia file, generally with pull progress bar or The mode of shortcut key is controlled to realize, i.e., progress bar is dragged to the position near specified playing time, is realized to multimedia The playback of file.Multimedia file is played back using this back method, tends not to disposably be exactly adjusted to refer to Fixed playing time, moreover, progress bar is dragged to specified broadcast in order not to miss the content of the required multimedia file played back Put the position near the moment, it is also necessary to which the content for playing back one section of extra multimedia file for not needing playback causes to play back The operation of multimedia file is very complicated, and wastes the time of user.
For playing back the multimedia file of court's trial recording, due to recorded speech or video during court's trial Equal multimedia files convert the multimedia file after recording using the technology of speech recognition, the text after being converted Information.And existing speech recognition technology can not reach absolutely accurate, it is therefore desirable to the multimedia text of recording Part is played back, and realization is corrected the text information that speech recognition obtains.During being corrected to text information, It is frequently necessary to according to multimedia file being corrected word by word and sentence by sentence, at this time, it may be necessary to media a certain in multimedia file Segment carries out playback repeatedly.Based on the playback technology of above-mentioned multimedia file, during being corrected to text information, Operation will be increasingly complex cumbersome, can waste text correction personnel's plenty of time.
And the method for multimedia file provided by the invention playback, text segment is established, and belonging to the letter plate section Media fragment, the corresponding relationship of the play time in the multimedia file.The method played back using this multimedia file is right During the text that speech recognition obtains in court's trial is corrected, it is only necessary to which specified target text segment needs to carry out school Positive text segment correspondingly can be obtained target medium segment belonging to the target text segment, in multimedia file Play time, the multimedia player can be according to the play times, the playback moment of accurate position multimedia file, in turn Accurately realize the playback to multimedia file.It is easy to operate compared with above-mentioned existing playback scheme, it is more not need playback yet The content of remaining multimedia file saves the time of user.
Embodiment of the method
Multimedia file is played back, is generally played back based on media file library.The foundation in media file library Method is as follows: the multimedia files such as obtained voice or video will be recorded and mark off multiple media fragments, it can be in short It is divided, can also be divided as unit of the continuous one section of word of role a certain in media file for unit.Record is each Media fragment, the play time in the multimedia file, the play time include the media fragment starting playing time and Terminate playing time;Next, carrying out speech recognition using the method for speech recognition to the media fragment marked off, identifying Text segment corresponding to each media fragment;Establish pair between text segment and play time based on same media fragment It should be related to, and the corresponding relationship is stored into media file library.
After obtaining media file library, following multimedia back method is provided based on the media file library:
As shown in Figure 1, being the flow chart of multimedia file back method provided in an embodiment of the present invention, including following step It is rapid:
Step 101: in response to the selection operation to target text segment, triggering the playback request to multimedia file.
Resulting text information after display multimedia file conversion, chooses a certain text segment, base in the text information In the selection operation to the target text segment, the playback to multimedia file is triggered, the letter plate section is target text at this time Word slice section.
In one example, as shown in Fig. 2, resulting text after multimedia file conversion shown on user interface Word information, a text segment correspond to a broadcasting button.The corresponding broadcasting button of a text segment is triggered, is realized to this The operation of text segment, the letter plate section are target text segment, and triggering is based on the corresponding text segment of the broadcasting button, institute The playback of the multimedia file of execution.
Such as: clicking text segment, " court debate and court investigation are combined together progress, and it is different whether different parties have The corresponding broadcasting button of view ", " court debate and court investigation are combined together progress to text segment, and whether different parties have Objection " i.e. target text segment, based on text segment, " court debate and court investigation are combined together progress, and each side works as triggering Whether thing people has objection " multimedia file playback.
In another example, as shown in figure 3, it is resulting after multimedia file conversion shown on user interface Text information, multiple text segments are shown as a whole.Can by cursor is moved in text information one In a text segment, to realize the selection operation to the letter plate section, at this point, the letter plate section is as target text segment, touching Hair is based on the corresponding text segment of the broadcasting button, the playback of performed multimedia file.
Such as: cursor is moved to text segment " the small icon function of testing right side ", to realize to text segment The selection operation of " the small icon function of testing right side ", i.e. target text segment are " to test the small icon function on right side Can ", multimedia file playback of the triggering based on text segment " the small icon function of testing right side ".
It is of course also possible to use other methods, carry out selection operation to target text segment, do not do specific limit herein It is fixed.
Step 102: the corresponding target play time of target text segment is searched in inquiry media file library.
Step 103: multimedia file being played back according to target play time.
According to the establishment process in the media file library of upper description it is found that including text segment and broadcasting in media file library Corresponding relationship between time.After the playback request for triggering the multimedia file based on target text segment in a step 101, The corresponding play time of target text segment is obtained from the media file library, when which is played as target Between, which includes starting playing time and termination playing time.
After finding the corresponding play time of target text segment, multimedia is returned based on the target text segment It puts, that is, is based on the corresponding target medium segment of the target text segment, the target play time in the multimedia file, to more Media file is played back.It, being capable of directly and accurately position multimedia text according to the target play time of the target medium segment The playback duration of part realizes the accurate playback to multimedia file.
Moreover, each text segment corresponds to a media fragment in multimedia file, according to target text segment pair The play time answered, i.e. target play time can also search the corresponding media fragment of target text segment as target matchmaker Body segment plays back the target medium segment.
In order to facilitate understanding, now above-mentioned steps are carried out detailed for example: choose and " test the small icon on right side Function " is used as target text segment, searches media file library, searches target text segment and " tests the small icon function on right side Can " corresponding target play time, find the corresponding starting playing time of the target text segment be 5 points 21 seconds, terminate broadcasting Moment be 5 points 25 seconds.In the multimedia file to be played back, 5 points of 21 seconds and 5 points of 25 seconds play position are found, and by media Document alignment plays back multimedia file to 5 points of 21 seconds play position.In addition to this it is possible in media file library In find corresponding to 5 points of 21 seconds and 5 points of 25 seconds media fragments, directly extract the media fragment as target medium segment, it is real Now to the playback of target medium segment.
The method played back using above-mentioned multimedia file, can be quickly found corresponding media fragment according to text segment Target play time, and then playback duration can be fast and accurately oriented in multimedia file, to realize to more matchmakers The time of user is greatly saved in the playback of body file.
After choosing target text segment, the playback request to multimedia file can be triggered, in the present embodiment, introduce with The corresponding media fragment of target text segment is starting point, is played back to the content after the media fragment in multimedia file Specific implementation method.As shown in figure 4, being the corresponding method flow diagram of the embodiment of the present invention.
Step 401: in response to the selection operation to target text segment, the playback request to multimedia file is triggered, it should Playback request is using the corresponding media fragment of target text segment as starting point.
Step 402: the corresponding target play time of target text segment is searched in inquiry media file library, is obtained target and is broadcast Put the starting playing time in the time.
Step 403: multimedia file being played back from starting playing time.
To the selection operation of target text segment, method described in step 101 in specific implementation and embodiment one Similar, content described in reference 101, which is not described herein again.
After selected target text segment, as shown in Figures 2 and 3, show that the Option Box of playback mode, the Option Box provide The option of two kinds of playback modes, one is " playing " from current character segment, i.e., with the corresponding media fragment of target text segment It is played back for starting point;Another kind is " playing current character segment ", is as with the corresponding media fragment of target text segment Content is played back, i.e., only plays back the corresponding media fragment of target text segment.In the present embodiment, select " from current character The playback mode of segment broadcasting ", triggers the playback request to multimedia file, which is with the target text segment pair The media fragment answered is starting point, to the request that in multimedia file, all the elements after the media fragment are played back.
Media file library is searched, according to the corresponding pass between the text segment and play time stored in media file library System, finds the corresponding target play time of target text segment, target play time includes target belonging to target text segment The starting playing time and termination playing time of media fragment, here, due to needing with the corresponding media piece of target text segment Section is starting point, is played back to the multimedia file after the target medium segment, therefore, when playback, it is only necessary to To the corresponding starting playing time of target text segment, so the starting only obtained in target play time here plays Moment.After obtaining the corresponding starting playing time of target text segment, in multimedia file, the starting playing time is found Play position plays back multimedia file since the starting playing time, until multimedia file broadcasting terminates.
In order to facilitate understanding, now the method for the present embodiment is illustrated:
The corresponding text information of court's trial media file that will be played back extracts in court's trial notes content display area, As shown in figure 3, to be played back to the multimedia file after " the small icon function of testing right side " text segment, i.e., will " the small icon function of testing right side " is chosen for target text segment.Cursor of mouse is moved to and " is tested on the right side of In small icon function " text segment, at this point, " the small icon function of testing right side " corresponding background is in be highlighted, it is single Left mouse button is hit, shows the Option Box of playback mode, user clicks " playing from current character segment ", that is, can trigger with the mesh The corresponding media fragment of the mark text segment small icon function of right side " test " is starting point, in multimedia file, the matchmaker The playback request that content after body segment is played back.
When searching text segment " the small icon function of testing right side " corresponding target broadcasting from media file library Between, obtain the target text segment small icon function of right side " test " starting playing time be 5 points 21 seconds, terminate and play Moment be 5 points 25 seconds.Since the playback request of triggering is to play out from current character segment, that is, the playback request triggered be with The corresponding media fragment of target text segment is starting point, and in multimedia file, the content after the media fragment is returned It puts.Therefore, divided 21 seconds according to the corresponding starting playing time 5 of target text segment " the small icon function of testing right side ", 5 points of 21 seconds play position are found in the multimedia file, and 21 seconds, multimedia file is played back since 5 points, is played back Terminate to multimedia file broadcasting.
Media file is played back using method provided in this embodiment, can fast and accurately be played back in needs more Starting playing time is found in media file, has saved the time of user.
In above-described embodiment, describe using the corresponding media fragment of target text segment as starting point, in multimedia file Content after the media fragment is played back, in the present embodiment, after target text segment is chosen in introduction, with target text segment Corresponding media fragment is the specific implementation method that content is played back.As shown in figure 5, being the corresponding method of the embodiment of the present invention Flow chart.
Step 501: in response to the selection operation to target text segment, triggering to the corresponding media piece of target text segment The request of Duan Jinhang playback.
Step 502: the corresponding target play time of the target text segment is searched, from target in inquiry media file library In play time, obtains starting playing time and terminate playing time.
Step 503: the media file being played back according to the starting playing time and termination playing time.
To the selection operation of target text segment, method described in step 101 in specific implementation and embodiment one Similar, content described in reference 101, which is not described herein again.
After selected target text segment, as shown in Figures 2 and 3, show that the Option Box of playback mode, the Option Box provide The option of two kinds of playback modes, one is " playing " from current character segment, i.e., with the corresponding media fragment of target text segment It is played back for starting point;Another kind is " playing current character segment ", is as with the corresponding media fragment of target text segment Content is played back, i.e., only plays back the corresponding media fragment of target text segment.In the present embodiment, " broadcasting ought be above for selection The playback mode of word slice section ", triggers the playback request to multimedia file, which is corresponding to the target text segment Media fragment played back.
The corresponding media fragment of target text segment is played back in order to realize, there are a variety of possible realization sides Formula.
The first implementation, according to the target play time of target text segment, in multimedia file, positioning starting Play position and termination play position.
In media file library, according to the text segment of storage and the corresponding relationship of play time, target text piece is found The corresponding play time of section, as target play time, which includes media piece belonging to target text segment The starting playing time and termination playing time of section, that is, the starting playing time for the target medium segment to be played and termination are broadcast Put the moment.According to the target play time, in multimedia file, the corresponding starting play position of positioning starting playing time, Positioning terminates the corresponding termination play position of playing time, plays since originating play position to the multimedia file, until Playing to termination play position terminates, to realize the playback to the target medium segment.
Second of implementation extracts mesh from multimedia file according to the target play time of target text segment Mark media fragment plays out.
In media file library, according to the text segment of storage and the corresponding relationship of play time, target text piece is found The corresponding play time of section, as target play time, which includes media piece belonging to target text segment The starting playing time and termination playing time of section, that is, the starting playing time for the target medium segment to be played and termination are broadcast Put the moment.According to the target play time, from multimedia file, extracts starting playing time and terminate between playing time As target medium segment, the target medium segment obtained to extraction plays back media fragment.
In above two mode, it is all based on the corresponding pass that text segment and play time are only established in media file library System positions the corresponding target medium segment of the target play time to need from multimedia file, to realize to target The playback of media fragment.
In order to facilitate understanding, now the method for the present embodiment is illustrated:
The corresponding text information of court's trial media file that will be played back extracts in court's trial notes content display area, Target text segment is selected according to the implementation method in previous embodiment, with " the small icon function of testing right side " As target text segment, " the small icon function of testing right side " target text segment is carried out by single left button mouse click Selection is clicked " playing current character segment " button, that is, be can trigger corresponding to target text segment in the Option Box of pop-up The playback request that media fragment is played back.
System receives and includes the playback request of " the small icon function of testing right side ", and identifies that the playback is asked The playback request to be played back to the corresponding media fragment of target text segment is sought, in media file library, according to preservation Corresponding relationship between file fragment and play time determines that target text segment " the small icon function of testing right side " is right The play time answered, as target play time, which includes that target text segment " is tested small on the right side of The starting playing time 5 of icon function " is divided 21 seconds, and is terminated playing time 5 and divided 25 seconds, in multimedia file, finds 5 point 21 Second and 5 points of 25 seconds playing times, the starting play position of multimedia file was navigated to 5 points at 21 seconds, since 5 points 21 seconds It plays, play position will be terminated navigate to 5 points and locate for 25 seconds, broadcasting terminates to 5 points for 25 seconds, that is, realizes to target text segment The playback of " the small icon function of testing right side " corresponding target medium segment.
It can also be broadcast according to the play time of target text segment " the small icon function of testing right side " as target The time is put, from the multimedia file, extracts 5 points of 21 seconds to 5 points 25 seconds media fragments as target medium segment, to the mesh Mark media fragment is played back.
Multimedia file is played back using method provided in this embodiment, can quick and precisely be found corresponding to target The target play time of the target medium segment of text segment, and then realize the broadcasting to the target medium segment.It is easy to operate, Save the time.
In addition, in above three example provided by the present application, when establishing media file library, letter plate can also be established Corresponding relationship between section and character types records marked off media fragment that is, when dividing to multimedia file Corresponding character types, and the media fragment is being subjected to speech recognition, after obtaining text segment, it is corresponding to establish the media fragment Character types and text segment between corresponding relationship, and be stored in media file library.Same character types will be corresponded to Text segment stored.When selecting a certain character types as target roles type, correspondingly, the target angle will be shown The corresponding text set of segments of color type.
For example, the corresponding character types of media fragment are judges, then after the media fragment is converted into text segment, the text The corresponding character types of segment are also judge.It, will text corresponding to display judge when selecting judge for target roles type Set of segments.
In this way, when searching target text segment, can the character types according to belonging to the target text segment, it is fast to check quickly The target text segment is found, the speed for searching target text segment is accelerated.It, can be with when being especially corrected to court's trial text It quickly navigates to and needs corrected target text segment, further increase the speed of text information correction.
Installation practice
As shown in fig. 6, for a kind of structural schematic diagram of the device of multimedia file playback provided in an embodiment of the present invention, it should Device includes:
Module 601 is established, for pre-establishing media file library, when the media file library includes text segment and plays Between corresponding relationship, the text segment is to carry out language and characters identification by the corresponding media fragment of the play time to obtain 's.
Trigger module 602, for the selection operation in response to target text segment, the playback of multimedia file is asked in triggering It asks.
Searching module 603 is searched the corresponding target of the target text segment and is played for inquiring the media file library Time.
Playback module 604, for being played back according to the target play time to the multimedia file.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of starting point It asks, the playback module includes:
First acquisition unit, for obtaining the starting playing time in the target play time.
First playback unit, for being played back from the starting playing time to the multimedia file.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of content It asks, the playback module includes:
Second acquisition unit, for obtaining the starting playing time in the target play time and terminating playing time.
Second playback unit is played for the multimedia file to be played to the termination from the starting playing time Moment.
Optionally, second playback unit includes:
Subelement is obtained to play for obtaining in the multimedia file from the starting playing time to the termination The target medium segment at moment.
Subelement is played, for playing the target medium segment.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment, described device belonging to the text segment further include:
Display module, for showing that the target roles type is corresponding in response to the selection operation to target roles type Text set of segments.
The present embodiment device shown in fig. 6 is and device corresponding to method described in embodiment of the method, specific implementation side Method is similar, and with reference to the description in embodiment of the method, which is not described herein again.
The device of multimedia file playback includes processor and memory, shown in fig. 6 to establish module, trigger mode Block, searching module and playback module etc. store in memory as program unit, are stored in memory by processor execution In above procedure unit realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, the playback of multimedia file is realized by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The method of the existing multimedia file playback.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The method of the playback of multimedia described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
Media file library is pre-established, the media file library includes the corresponding relationship of text segment and play time, institute Stating text segment is to carry out language and characters identification by the corresponding media fragment of the play time to obtain;
In response to the selection operation to target text segment, the playback request to multimedia file is triggered;
The media file library is inquired, the corresponding target play time of the target text segment is searched;
The multimedia file is played back according to the target play time.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of starting point Ask, it is described according to the target play time to multimedia file carry out playback include:
Obtain the starting playing time in the target play time;
The multimedia file is played back from the starting playing time.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of content Ask, it is described according to the target play time to multimedia file carry out playback include:
It obtains the starting playing time in the target play time and terminates playing time;
The multimedia file is played to the termination playing time from the starting playing time.
Optionally, it is described by the multimedia file from starting playing time be played to terminate playing time include:
It obtains in the multimedia file, from the starting playing time to the target medium piece for terminating playing time Section;
Play the target medium segment.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment belonging to the text segment, the method also includes:
In response to the selection operation to target roles type, the corresponding text segment collection of the target roles type is shown It closes.Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
Media file library is pre-established, the media file library includes the corresponding relationship of text segment and play time, institute Stating text segment is to carry out language and characters identification by the corresponding media fragment of the play time to obtain;
In response to the selection operation to target text segment, the playback request to multimedia file is triggered;
The media file library is inquired, the corresponding target play time of the target text segment is searched;
The multimedia file is played back according to the target play time.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of starting point Ask, it is described according to the target play time to multimedia file carry out playback include:
Obtain the starting playing time in the target play time;
The multimedia file is played back from the starting playing time.
Optionally, the playback request is asked using media fragment belonging to the target text segment as the playback of content Ask, it is described according to the target play time to multimedia file carry out playback include:
It obtains the starting playing time in the target play time and terminates playing time;
The multimedia file is played to the termination playing time from the starting playing time.
Optionally, it is described by the multimedia file from starting playing time be played to terminate playing time include:
It obtains in the multimedia file, from the starting playing time to the target medium piece for terminating playing time Section;
Play the target medium segment.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment belonging to the text segment, the method also includes:
In response to the selection operation to target roles type, the corresponding text segment collection of the target roles type is shown It closes.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.
Abstract: the invention discloses a kind of multimedia file back method and devices.Media file includes multiple media pieces Section carries out language and characters identification to each media fragment, obtains the corresponding text segment of each media fragment.Media file library packet Include the corresponding relationship of media fragment belonging to text segment and the letter plate section.Target text segment is chosen, from media file library The corresponding target medium segment of middle inquiry target text segment, plays back media file according to the target medium segment.One In the case of kind, directly target medium segment is played back;In another case, successively being obtained using target medium segment as starting point It takes in multimedia file, the media fragment after target medium segment is played back.Therefore, according to media file library, Ke Yijing Really in selection multimedia file, the media fragment to be played back saves playback duration.
In daily life, it needs to play out multimedia file using multimedia player, and in the mistake of broadcasting Cheng Zhong, user is frequently necessary to specify a playing time in multimedia file, since the playing time, to multimedia text Part is played back.When being played back using existing multimedia player to multimedia file, generally with pull progress bar or The mode of shortcut key is controlled to realize, i.e., progress bar is dragged to the position near specified playing time, is realized to multimedia The playback of file.Multimedia file is played back using this back method, tends not to disposably be exactly adjusted to refer to Fixed playing time, moreover, progress bar is dragged to specified broadcast in order not to miss the content of the required multimedia file played back Put the position near the moment, it is also necessary to which the content for playing back one section of extra multimedia file for not needing playback causes to play back The operation of multimedia file is very complicated, and wastes the time of user.
For playing back the multimedia file of court's trial recording, due to recorded speech or video during court's trial Equal multimedia files convert the multimedia file after recording using the technology of speech recognition, the text after being converted Information.And existing speech recognition technology can not reach absolutely accurate, it is therefore desirable to the multimedia text of recording Part is played back, and realization is corrected the text information that speech recognition obtains.During being corrected to text information, It is frequently necessary to according to multimedia file being corrected word by word and sentence by sentence, at this time, it may be necessary to media a certain in multimedia file Segment carries out playback repeatedly.Based on the playback technology of above-mentioned multimedia file, during being corrected to text information, Operation will be increasingly complex cumbersome, can waste text correction personnel's plenty of time.
And the method for multimedia file provided by the invention playback, text segment is established, and belonging to the letter plate section Corresponding relationship between media fragment.The method played back using this multimedia file, speech recognition obtains in court's trial During text is corrected, it is only necessary to specified target text segment needs corrected text segment, correspondingly, It can be obtained the corresponding target medium segment of the target text segment, multimedia player can be directly according to the target medium piece Section, plays back multimedia file.Compared with the playback scheme of the above-mentioned prior art, multimedia file provided by the invention is returned Method is put, can directly and accurately find the corresponding target medium segment of target text segment, and according to the target medium segment, Multimedia file is played back, it is easy to operate, without playing back the content of extra multimedia file, save user when Between.
Embodiment of the method
Multimedia file is played back, is generally played back based on media file library.The foundation in media file library Method is as follows: the multimedia files such as obtained voice or video will be recorded and mark off multiple media fragments, it can be in short It is divided, can also be divided as unit of the continuous one section of word of role a certain in media file for unit.Then, it utilizes The method of speech recognition carries out speech recognition to the media fragment marked off, identifies the text corresponding to each media fragment Segment.The corresponding relationship between text segment and media fragment is established, and the corresponding relationship is stored into media file library.
After obtaining media file library, following multimedia back method is provided based on the media file library:
As shown in fig. 7, being the flow chart of multimedia file back method provided in an embodiment of the present invention, including following step It is rapid:
Step 701: in response to the selection operation to target text segment, triggering the playback request to multimedia file.
Resulting text information after display multimedia file conversion, chooses a certain text segment, base in the text information In the selection operation to the target text segment, the playback to multimedia file is triggered, at this point, the letter plate section is target text Word slice section.
In one example, as shown in Fig. 2, resulting text is believed after showing multimedia file conversion on user interface Breath, a text segment correspond to a broadcasting button.The corresponding broadcasting button of a text segment is triggered, is realized to the text The selection operation of segment, the letter plate section are to be chosen as target text segment, and triggering is based on the corresponding text of the broadcasting button Segment executes the playback to multimedia file.
Such as: clicking text segment, " court debate and court investigation are combined together progress, and it is different whether different parties have The corresponding broadcasting button of view ", " court debate and court investigation are combined together progress to text segment, and whether different parties have Objection " is chosen as target text segment, triggering based on text segment " court debate and court investigation are combined together progress, Whether different parties have objection " multimedia file playback.
In another example, as shown in figure 3, it is resulting after multimedia file conversion shown on user interface Text information, multiple text segments are shown as a whole.Can by cursor is moved in text information one In a text segment, to realize the selection operation to the letter plate section, at this point, the letter plate section is as target text segment, touching Hair is based on the corresponding text segment of the broadcasting button, executes the playback to multimedia file.
Such as: cursor is moved to text segment " the small icon function of testing right side ", to realize to text segment The selection operation of " the small icon function of testing right side ", i.e. target text segment are " to test the small icon function on right side Can ", multimedia file playback of the triggering based on text segment " the small icon function of testing right side ".
It is of course also possible to use other methods, carry out selection operation to target text segment, do not do specific limit herein It is fixed.
Step 702: inquiring the media file library, search the corresponding target medium segment of the target text segment.
Step 703: the multimedia file being played back according to the target medium segment.
According to the establishment process in above-mentioned media file library it is found that including text segment and media fragment in media file library Between corresponding relationship.In step 701, after the playback request for triggering the multimedia file based on target text segment, from The corresponding media fragment of target text segment is searched in the media file library, using the media fragment as target medium segment.
After finding the corresponding target medium segment of target text segment, based on the target text segment to multimedia file It is played back, that is, is based on the corresponding target medium segment of the target text segment, multimedia file is played back.According to being touched The playback request to multimedia file of hair can choose the only corresponding target medium segment of playback target text segment, into Playback of the row to multimedia file;Also it can choose using target medium segment as starting point, it is more after playing back the target medium segment A media fragment, to realize the playback to multimedia file.
In order to facilitate understanding, now above-mentioned steps are carried out detailed for example:
" the small icon function of testing right side " is chosen as target text segment, in media file library, according to matchmaker Corresponding relationship between the text segment saved in body library and media fragment is searched, and the target text segment is found " the small icon function of testing right side " corresponding target medium segment.The playback of multimedia file is asked according to what is triggered It asks, multimedia player can be used, it is corresponding directly to play target text segment " the small icon function of testing right side " Target medium segment realizes the playback to multimedia file;Also multimedia player can be used, play target text segment Multiple media fragments after " the small icon function of testing right side " corresponding target medium segment, and then realize to more matchmakers The playback of body file.
The method played back using above-mentioned multimedia file, can be quickly found corresponding media piece according to text segment Section, in turn, plays back multimedia file based on the media fragment found according to the playback request triggered.It greatlys save Time of user.
After selection target text segment, the playback request to multimedia file can be triggered, in the present embodiment, introduces choosing After middle target text segment, trigger using the corresponding target medium segment of target text segment as the playback request of content, to more matchmakers The specific implementation method that body file is played back.As shown in figure 8, being the corresponding method flow diagram of the embodiment of the present invention.
Step 801: in response to the selection operation to target text segment, triggering with the corresponding target matchmaker of target text segment Body segment is the playback request of content.
Step 802: inquiring the media file library, search the corresponding target medium segment of the target text segment.
Step 803: obtaining the corresponding target medium segment of the target text segment, play the target medium piece Section.
To the selection operation of target text segment, method described in step 701 in specific implementation and embodiment one Similar, content described in reference 701, which is not described herein again.
After selected target text segment, as shown in Figures 2 and 3, show that the Option Box of playback mode, the Option Box provide The option of two kinds of playback modes, one is " playing " from current character segment, i.e., with the corresponding target medium of target text segment Segment is starting point, is played back to multimedia file;Another kind is " playing current character segment ", as with target text segment Corresponding target medium segment is content, plays back to multimedia file, i.e., only plays back the corresponding mesh of target text segment Mark media fragment.In the present embodiment, the playback mode of selection " playing current character segment " triggers the playback to multimedia file Request, the playback request are using the corresponding target medium segment of target text segment as the playback request of content.
Media file library is searched, according to the corresponding pass between the text segment stored in media file library and media fragment System finds the selected corresponding target medium segment of target text segment.Since the playback request triggered is with target text The corresponding target medium segment of segment is the playback request of content, i.e., carries out to the corresponding target medium segment of target text segment Playback, therefore, after getting the corresponding target medium segment of target text segment, multimedia player directly plays back the target Media fragment can be realized using the corresponding target medium segment of target text segment as content, play back to multimedia file.
In order to facilitate understanding, now the method for the present embodiment is illustrated:
The corresponding text information of court's trial media file that will be played back extracts in court's trial notes content display area, As shown in figure 3, to be played back to " the small icon function of testing right side " the corresponding media fragment of text segment, i.e., will " the small icon function of testing right side " is chosen for target text segment.Cursor of mouse is moved to and " is tested on the right side of In small icon function " text segment, at this point, " the small icon function of testing right side " corresponding background is in be highlighted, it is single Left mouse button is hit, shows the Option Box of playback mode, user clicks " playing current character segment ", that is, can trigger with the target The corresponding target medium segment of text segment " the small icon function of testing right side " is content, is returned to multimedia file The playback request put plays back the corresponding target medium piece of target text segment " the small icon function of testing right side " Section.
In media file library, according to media file library save text segment and media fragment between corresponding relationship, Search the corresponding target medium segment of target text segment " the small icon function of testing right side ".By the playback triggered Request is played back to the corresponding target medium segment of target text segment " the small icon function of testing right side ", because This can directly pass through multimedia player after getting target medium segment, play target text segment " one lower right of test The corresponding target medium segment of the small icon function of side " realizes the playback to the multimedia file.
Multimedia file is played back using method provided in this embodiment, can be quickly found corresponding to target text The target medium segment of word slice section, and then directly play the target medium segment.It is easy to operate, save the time.
In above-described embodiment, describe using the corresponding target medium segment of target text segment as content, to multimedia text Part is played back.In the present embodiment, introduce using the corresponding target medium segment of target text segment as starting point, to multimedia file In the specific implementation method that is played back of content after the target medium segment.As shown in figure 9, corresponding for the embodiment of the present invention Method flow diagram.
Step 901: in response to the selection operation to target text segment, triggering with the corresponding target matchmaker of target text segment Body segment is the playback request of starting point.
Step 902: from the media file library, according to putting in order for the media fragment, obtaining the target matchmaker Body segment and the media fragment to put in order after the target medium segment and playback.
Based on the method for building up in media file library shown in Fig. 7, in the present embodiment, in established media file library, also Store putting in order for media fragment.Concrete methods of realizing is as follows:
When establishing media file library, the multimedia files such as obtained voice or video will be recorded and mark off multiple media Segment can be divided as unit of a word, can also be as unit of the continuous one section of word of role a certain in media file It is divided.The media file fragments marked off are arranged by the sequencing of play time, i.e., play time is preceding Putting in order for media fragment is also forward, and the posterior media fragment of play time puts in order also rearward, and by media fragment Put in order and be stored in media file library.It is of course also possible in media file library, it is suitable according to the arrangement of media fragment Sequence further sets gradually arrangement serial number for media fragment, and the corresponding relationship for arranging serial number and media fragment is stored to media In library.
In order to facilitate understanding, now the method for building up in media file library is carried out detailed for example:
Broadcasting of the corresponding media fragment of text segment " the small icon function of testing right side " in multimedia file Time is 1 second to 4 seconds, and play time of the corresponding media fragment of text segment " too small " in multimedia file is 4 seconds To 5 seconds, play time of the corresponding media fragment of text segment " perhaps, what in the event of that " in multimedia file It is 5 seconds to 8 seconds, according to play time of the above-mentioned media fragment in multimedia file, each media fragment is subjected to first heel row Sequence.The corresponding media fragment of text segment " the small icon function of testing right side " is as the first media fragment, text segment For " too small " corresponding media fragment as the second media fragment, text segment " perhaps, what in the event of that " is right The media fragment answered is as third media fragment, according to the first media fragment, the second media fragment and third media fragment Sequence is arranged.And so on, resulting media fragment is successively ranked up according to the method described above, obtained arrangement is suitable Sequence is stored into media file library.
Certainly, for convenience, can also putting in order according to media fragment, be each media fragment according to the suitable of arrangement The corresponding arrangement serial number of sequence setting, the as corresponding media fragment setting of text segment " the small icon function of testing right side " Serial number 1 is that serial number 2 is arranged in text segment " too small " corresponding media fragment, be text segment " perhaps, in the event of That what " serial number 3 is arranged in corresponding media fragment, and so on, and the corresponding relationship for arranging serial number and media fragment is deposited Storage is into media file library.
In practical applications, media fragment is ranked up, and saves the putting in order to media file library of media fragment Operation, can carry out, can also be carried out after speech recognition media fragment, herein not before speech recognition media fragment Do any restriction.
The search operation of selection operation and target medium segment for target text segment, specific implementation and reality It is similar with the method described in step 702 to apply step 701 in example one, the content with reference to described in 701 and 702 is no longer superfluous here It states.
After selected target text segment, as shown in Figures 2 and 3, show that the Option Box of playback mode, the Option Box provide The option of two kinds of playback modes, one is " playing " from current character segment, i.e., with the corresponding media fragment of target text segment It is played back for starting point;Another kind is " playing current character segment ", is as with the corresponding media fragment of target text segment Content is played back, i.e., only plays back the corresponding media fragment of target text segment.In the present embodiment, select " from current character The playback mode of segment broadcasting ", triggers the playback request to multimedia file, which is with the target text segment pair The target medium segment answered is starting point, and in multimedia file, all the elements after the target medium segment are played back.
In order to realize using the corresponding target medium segment of the target text segment as starting point, in multimedia file, to this All the elements after target medium segment and the target medium segment are played back, and there are a variety of possible implementations.
The first implementation obtains target medium according to putting in order for the media fragment stored in media file library Segment, and the media fragment after target medium segment that puts in order;Get above-mentioned target medium segment, and arrangement Sequence is after the media fragment after target medium segment, according still further to putting in order for each media fragment, successively to target matchmaker Body segment, and the media fragment to put in order after target medium segment play out.
Second of implementation, according to putting in order for the media fragment stored in media file library, with target medium piece Section be starting point, every time only obtain a media fragment, after being finished to the media fragment, then obtain another media fragment into Row plays.For example, acquisition is adjacent with the target medium segment, and is arranged in the target after finishing to target medium segment Media fragment M1 after media fragment;After being finished to media fragment M1, then obtain it is adjacent with media fragment M1, and Media fragment M2 after being arranged in media fragment M1;After being finished to media fragment M2, then obtain and the media fragment M2 is adjacent, and is arranged in the media fragment M3 after media fragment M2, and so on, to being arranged in after target medium segment Multiple media fragments successively play out, and stop playing up to user triggers, or be arranged in target medium segment and own later Media fragment finish.
In order to facilitate understanding, now the method for the present embodiment is illustrated:
The corresponding text information of court's trial media file that will be played back extracts in court's trial notes content display area, Target text segment is selected according to the implementation method in previous embodiment, with " the small icon function of testing right side " As target text segment, " the small icon function of testing right side " target text segment is carried out by single left button mouse click Selection is clicked " playing from current character segment " button, that is, be can trigger with the target text segment pair in the Option Box of pop-up The target medium segment answered is starting point, in multimedia file, what all the elements after the target medium segment were played back Playback request.
System receives and includes the playback request of " the small icon function of testing right side ", and identifies that the playback is asked It asks to be played back to the content after target medium segment using the corresponding target medium segment of target text segment as starting point Playback request, according to the corresponding relationship saved between text segment and media fragment, obtains target text in media file library The corresponding target medium segment of segment " the small icon function of testing right side ".Next, according to being saved in media file library Media fragment put in order, successively obtain the corresponding media of target text segment " the small icon function of testing right side " Media fragment after segment first obtains text segment " too small " corresponding media fragment, then obtain text segment " or Perhaps, in the event of that " corresponding media fragment, until having obtained all media fragments.And the target that will acquire The corresponding target medium segment of text segment " the small icon function of testing right side ", text segment " too small " are corresponding The corresponding media fragment of media fragment and text segment " perhaps, what in the event of that ", and all letter plates later The corresponding media fragment of section correspondingly puts in order according to what is stored in media file library, plays in order target text segment " the small icon function of testing right side " corresponding target medium segment, the corresponding media piece of text segment " too small " Section, the corresponding media fragment of text segment " perhaps, what in the event of that " and all text segments are corresponding later Media fragment, realization are with the corresponding target medium segment of target text segment " the small icon function of testing right side " Point plays back all media fragments later in multimedia file.
It can also be with target text segment " the small icon function of testing right side " for starting point, to target text piece After the corresponding target medium segment of section " the small icon function of testing right side " finishes, saved according in media file library Media fragment put in order, obtain target matchmaker corresponding with target text segment " testing the small icon function on the right side of " Body segment is adjacent, and is arranged in the media fragment after the target medium segment, i.e. acquisition text segment " too small " is right The media fragment answered;After being finished to the corresponding media fragment of text segment " too small ", then obtain with text segment " too It is small " corresponding media fragment is adjacent, and is arranged in the media fragment after the media fragment, that is, obtain text segment " perhaps, In the event of that " corresponding media fragment, matchmaker corresponding to text segment " perhaps, what in the event of that " Body segment plays out, and so on, to target text segment " the small icon function of testing right side ", and it is arranged in mesh Multiple media fragments after the corresponding target medium segment of mark text segment " the small icon function of testing right side ", successively It plays out, stops playing until user triggers, or all media fragments being arranged in after target medium segment play Finish.
Multimedia file is played back using method provided in this embodiment, can quick and precisely find target text piece The corresponding target medium segment of section, and put in order according to the media fragment in media file library, after target medium segment Media fragment successively plays out, to realize to multimedia playback.The time of user is greatly saved.
In the present embodiment, the method for building up based on different media file libraries is introduced corresponding with target text segment Target medium segment is starting point, the specific embodiment party played back to the content after the target medium segment in multimedia file Method.It as shown in Figure 10, is the corresponding method flow diagram of the embodiment of the present invention.
Step 1001: in response to the selection operation to target text segment, triggering with the corresponding target of target text segment Media fragment is the playback request of starting point.
Step 1002: from the media file library, according to the sequencing of the corresponding play time of the media fragment, Obtain the media fragment played after the target medium segment and the target medium segment and playback.
Based on the method for building up in media file library described in embodiment one, in the present embodiment, in established media text In part library, the corresponding relationship of media fragment and play time is also stored.Concrete methods of realizing is as follows:
When establishing media file library, the multimedia files such as obtained voice or video will be recorded and mark off multiple media Segment, records play time of each media fragment in multimedia file, which includes the media fragment in more matchmakers Starting playing time and termination playing time in body file, and the corresponding relationship of media fragment and play time is stored in matchmaker In body library.
In order to facilitate understanding, now the method for building up in media file library is carried out detailed for example:
Broadcasting of the corresponding media fragment of text segment " the small icon function of testing right side " in multimedia file Time is 1 second to 4 seconds, i.e., the starting playing time of the media fragment is 1 second, and terminating playing time is 4 seconds;Text segment is " too It is small " play time of corresponding media fragment in multimedia file is 4 seconds to 5 seconds, i.e. the starting of the media fragment is broadcast Put is 4 seconds constantly, and terminating playing time is 5 seconds;The corresponding media fragment of text segment " perhaps, what in the event of that " Play time in multimedia file is 5 seconds to 8 seconds, i.e., the starting playing time of the media fragment is 5 seconds, when terminating broadcasting Carve is 8 seconds.According to the method described above, play time of the media fragment in multimedia file is obtained, play time includes that starting is broadcast It puts the moment and terminates playing time, and the corresponding relationship of media fragment and play time is stored into media file library.
In practical applications, the corresponding play time of preservation media fragment, can be in speech recognition matchmaker to media file library It is carried out before body segment, can also be carried out after speech recognition media fragment, not do any restriction herein.
The search operation of selection operation and target medium segment for target text segment, specific implementation and reality It is similar with the method described in step 702 to apply step 701 in example one, the content with reference to described in 701 and 702 is no longer superfluous here It states.
After selected target text segment, as shown in Figures 2 and 3, show that the Option Box of playback mode, the Option Box provide The option of two kinds of playback modes, one is " playing " from current character segment, i.e., with the corresponding media fragment of target text segment It is played back for starting point;Another kind is " playing current character segment ", is as with the corresponding media fragment of target text segment Content is played back, i.e., only plays back the corresponding media fragment of target text segment.In the present embodiment, select " from current character The playback mode of segment broadcasting ", triggers the playback request to multimedia file, which is with the target text segment pair The target medium segment answered is starting point, in multimedia file, what all the elements after the target medium segment were played back Request.
Similar with embodiment three, the present embodiment is with the corresponding target medium segment of the target text segment in order to realize Starting point plays back all the elements after the target medium segment and the target medium segment in multimedia file, There is also a variety of possible implementations.
The first implementation in media file library, further obtains target matchmaker after getting target medium segment Play time of the body segment in multimedia file.According to the corresponding play time of the media fragment stored in media file library, Obtain all media fragments of the play time after the corresponding play time of target medium segment.It is deposited according in media file library The play time of each media fragment of storage, to the target medium segment and play time got in target medium segment Media fragment later is successively played out according to play time sequencing.
Second of implementation, using target medium segment as starting point, according to the corresponding play time of media fragment, acquisition is broadcast The adjacent media fragment of time play time corresponding with target text segment is put, which is played out, just to this In the playback progress of the media fragment of broadcasting, the difference terminated between playing time corresponding with the media fragment is less than a certain When preset threshold, the adjacent next media fragment of play time corresponding with the media fragment is obtained, and to next media Segment is buffered, and when media fragment being played on is played to the termination playing time of the segment, is directly played next Media fragment.According to the method described above, a media fragment is only obtained every time, after the media fragment finishes, is directly played Next media fragment, until the closing playback that all media fragments after target medium segment finished or received user refers to It enables.
For example, work as the playback progress of target medium segment, the difference between the termination playing time of target medium segment, When less than above-mentioned preset threshold, according to the corresponding play time of target medium segment, in media file library, play time is searched The adjacent media fragment N1 of play time corresponding with target medium segment, i.e., when being played according to the termination of target medium segment It carves, in media file library, finds starting playing time media fragment identical with the termination playing time of target medium segment N1, and media fragment N1 is buffered;To the end of target medium segment plays, directly broadcasting media fragment N1;Correspondingly, to The playback progress of media fragment N1, when termination playing time corresponding with media fragment N1 is less than above-mentioned preset threshold, then According to the method described above, the adjacent media fragment N2 of play time play time corresponding with media fragment N1 is obtained, and to matchmaker Body segment N2 is buffered, after media fragment N1 is finished, directly broadcasting media fragment N2, and so on, when to playing Between all media fragments after the corresponding play time of target medium segment successively play out, stop until user triggers All media fragments of broadcasting or play time after the corresponding play time of target medium segment finish.
In order to facilitate understanding, now the method for the present embodiment is illustrated:
The corresponding text information of court's trial media file that will be played back extracts in court's trial notes content display area, Target text segment is selected according to the implementation method in previous embodiment, with " the small icon function of testing right side " As target text segment, " the small icon function of testing right side " target text segment is carried out by single left button mouse click Selection is clicked " playing from current character segment " button, that is, be can trigger with the target text segment pair in the Option Box of pop-up The target medium segment answered is starting point, in multimedia file, what all the elements after the target medium segment were played back Playback request.
System receives and includes the playback request of " the small icon function of testing right side ", and identifies that the playback is asked It asks to be played back to the content after target medium segment using the corresponding target medium segment of target text segment as starting point Playback request, according to the corresponding relationship saved between text segment and media fragment, finds target text in media file library The corresponding target medium segment of segment " the small icon function of testing right side ".Next, being saved according in media file library Play time of the media fragment in multimedia file, i.e. starting playing time and end of the media fragment in multimedia file Only playing time obtains the play time of target text segment " the small icon function of testing right side ", gets target text The play time of word slice section is 1 second to 4 seconds, i.e. the starting of target text segment " the small icon function of testing right side " plays Moment is 1 second, and terminating playing time is 4 seconds.
According to the play time saved in media file library, target medium segment and play time are obtained in target matchmaker All media fragments after termination playing time 4 seconds of body segment obtain the media fragment that play time is 4 seconds to 5 seconds, broadcast Putting the time is the media fragment of 5 seconds to 8 seconds media fragments and other play times after 4 seconds, that is, gets target text The corresponding target medium segment of word slice section " the small icon function of testing right side ", the corresponding matchmaker of text segment " too small " Body segment, the media fragments such as corresponding media fragment of text segment " perhaps, what in the event of that ".Playing target It is first 4 seconds to 5 seconds to play time after the corresponding target medium segment of text segment " the small icon function of testing right side " Media fragment play out, i.e., first play text segment " too small " corresponding media fragment, be 5 seconds to play time To 8 seconds media fragments, i.e., the corresponding media fragment of text segment " perhaps, what in the event of that " was played again, according to Play time successively plays out the media fragment got.
It can also be with when target text segment " the small icon function of testing right side " corresponding target medium segment is broadcast Difference between degree of putting into, and termination playing time 4 seconds of the target medium segment, when being less than a certain preset threshold, in media In library, the adjacent media fragment of play time play time corresponding with target medium segment is searched, that is, searches starting and broadcasts The media fragment constantly for 4 seconds is put, the play time for finding the corresponding media fragment of text segment " too small " is 4 seconds to 5 Second, the corresponding media fragment of text segment " too small " is buffered;To the end of target medium segment plays, directly play The corresponding media fragment of text segment " too small ";Correspondingly, to the corresponding media fragment of text segment " too small " Difference between playback progress, and termination playing time 5 seconds of the media fragment when being less than above-mentioned preset threshold, then is obtained and is broadcast Time and the adjacent media fragment of text segment " too small " corresponding media fragment are put, that is, searching starting playing time is 5 Second media fragment, the play time for finding the corresponding media fragment of text segment " perhaps, what in the event of that " is 5 Second by 8 seconds, the corresponding media fragment of text segment " perhaps, what in the event of that " is buffered, and in letter plate After the corresponding media fragment of section " too small " finishes, directly broadcasting text segment is " perhaps, assorted in the event of that " corresponding media fragment;And so on, media fragment of the play time after 4 seconds is successively played out, until user Triggering stops all media fragments of broadcasting or play time after 4 seconds and finishes.
In addition, in aforementioned four example provided by the present application, when establishing media file library, letter plate can also be established Corresponding relationship between section and character types records marked off media fragment that is, when dividing to multimedia file Corresponding character types, and the media fragment is being subjected to speech recognition, after obtaining text segment, it is corresponding to establish the media fragment Character types and text segment between corresponding relationship, and be stored in media file library.Same character types will be corresponded to Text segment stored.When selecting a certain character types as target roles type, correspondingly, the target angle will be shown The corresponding text set of segments of color type.
For example, the corresponding character types of media fragment are judges, then after the media fragment is converted into text segment, the text The corresponding character types of segment are also judge.It, will text corresponding to display judge when selecting judge for target roles type Set of segments.
Multimedia file is played back using method provided in this embodiment, can quick and precisely find target text piece The corresponding target medium segment of section, and put in order according to the media fragment in media file library, after target medium segment Media fragment successively plays out, to realize to multimedia playback.The time of user is greatly saved.
Installation practice
It as shown in figure 11, is a kind of structural schematic diagram of the device of multimedia file playback provided in an embodiment of the present invention, The device includes:
Module 1101 is established, for pre-establishing media file library, the media file library includes text segment and media The corresponding relationship of segment, the text segment are to carry out language and characters identification by the media fragment to obtain.
Trigger module 1102, in response to the selection operation to target text segment, multimedia file to be returned in triggering Put request.
Searching module 1103 searches the corresponding target matchmaker of the target text segment for inquiring the media file library Body segment.
Playback module 1104, for being played back according to the target medium segment to the multimedia file.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of content Request, the playback module include:
First acquisition unit, for obtaining the corresponding target medium segment of the target text segment.
First broadcast unit, for playing the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes putting in order for media fragment, and the media fragment puts in order, with the media The sequencing of segment play time in the multimedia file is consistent.
The playback module, for according to putting in order for the media fragment, obtaining institute from the media file library State target medium segment and the media fragment to put in order after the target medium segment and playback.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes the corresponding play time of media fragment, and the play time includes the media fragment Starting playing time and termination playing time in the multimedia file.
The playback module is used for from the media file library, according to the corresponding play time of the media fragment Sequencing obtains the media fragment played after the target medium segment and the target medium segment and playback.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment, described device belonging to the text segment further include:
Display module, for showing that the target roles type is corresponding in response to the selection operation to target roles type Text set of segments.
Device shown in the present embodiment Figure 11 is and device corresponding to method described in embodiment of the method, specific implementation side Method is similar, and with reference to the description in embodiment of the method, which is not described herein again.
The device of the multimedia file playback includes processor and memory, and module, trigger mode are established shown in Figure 11 Block, searching module and playback module etc. store in memory as program unit, are stored in memory by processor execution In above procedure unit realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, the playback of multimedia file is realized by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The method of the existing multimedia file playback.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The method of the playback of multimedia file described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
Media file library is pre-established, the media file library includes the corresponding relationship of text segment and media fragment, institute Stating text segment is to carry out language and characters identification by the media fragment to obtain;
In response to the selection operation to target text segment, the playback request to multimedia file is triggered;
The media file library is inquired, the corresponding target medium segment of the target text segment is searched;
The multimedia file is played back according to the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of content Request, it is described according to the target medium segment to the multimedia file carry out playback include:
Obtain the corresponding target medium segment of the target text segment;
Play the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes putting in order for media fragment, and the media fragment puts in order, with the media The sequencing of segment play time in the multimedia file is consistent, it is described according to the target medium segment to described more Media file carries out playback
From the media file library, according to putting in order for the media fragment, the target medium segment is obtained, with And the media fragment to put in order after the target medium segment and playback.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes the corresponding play time of media fragment, and the play time includes the media fragment Starting playing time in the multimedia file and terminate playing time, it is described according to the target medium segment to described Multimedia file carries out playback
From the media file library, according to the sequencing of the corresponding play time of the media fragment, described in acquisition The media fragment played after target medium segment and the target medium segment and playback.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment belonging to the text segment, the method also includes:
In response to the selection operation to target roles type, the corresponding text segment collection of the target roles type is shown It closes.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
Media file library is pre-established, the media file library includes the corresponding relationship of text segment and media fragment, institute Stating text segment is to carry out language and characters identification by the media fragment to obtain;
In response to the selection operation to target text segment, the playback request to multimedia file is triggered;
The media file library is inquired, the corresponding target medium segment of the target text segment is searched;
The multimedia file is played back according to the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of content Request, it is described according to the target medium segment to the multimedia file carry out playback include:
Obtain the corresponding target medium segment of the target text segment;
Play the target medium segment.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes putting in order for media fragment, and the media fragment puts in order, with the media The sequencing of segment play time in the multimedia file is consistent, it is described according to the target medium segment to described more Media file carries out playback
From the media file library, according to putting in order for the media fragment, the target medium segment is obtained, with And the media fragment to put in order after the target medium segment and playback.
Optionally, the playback request is using the corresponding target medium segment of the target text segment as the playback of starting point Request, the media file library further includes the corresponding play time of media fragment, and the play time includes the media fragment Starting playing time in the multimedia file and terminate playing time, it is described according to the target medium segment to described Multimedia file carries out playback
From the media file library, according to the sequencing of the corresponding play time of the media fragment, described in acquisition The media fragment played after target medium segment and the target medium segment and playback.
Optionally, the media file library further includes the corresponding relationship of character types Yu the text segment, the role Type is the corresponding character types of media fragment belonging to the text segment, the method also includes:
In response to the selection operation to target roles type, the corresponding text segment collection of the target roles type is shown It closes.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of method of multimedia file playback, which is characterized in that pre-establish media file library, the media file library packet The corresponding relationship of text segment and play time is included, the text segment is carried out by the corresponding media fragment of the play time Language and characters identification obtains, which comprises
In response to the selection operation to target text segment, the playback request to multimedia file is triggered;
The media file library is inquired, the corresponding target play time of the target text segment is searched;
The multimedia file is played back according to the target play time.
2. the method according to claim 1, wherein the playback request is belonging to the target text segment Media fragment be starting point playback request, it is described according to the target play time to multimedia file carry out playback include:
Obtain the starting playing time in the target play time;
The multimedia file is played back from the starting playing time.
3. the method according to claim 1, wherein the playback request is belonging to the target text segment Media fragment be content playback request, it is described according to the target play time to multimedia file carry out playback include:
It obtains the starting playing time in the target play time and terminates playing time;
The multimedia file is played to the termination playing time from the starting playing time.
4. according to the method described in claim 3, it is characterized in that, described broadcast the multimedia file from starting playing time Being put into termination playing time includes:
It obtains in the multimedia file, from the starting playing time to the target medium segment for terminating playing time;
Play the target medium segment.
5. method according to any of claims 1-4, which is characterized in that the media file library further includes role class The corresponding relationship of type and the text segment, the character types are the corresponding roles of media fragment belonging to the text segment Type, the method also includes:
In response to the selection operation to target roles type, the corresponding text set of segments of the target roles type is shown.
6. a kind of device of multimedia file playback characterized by comprising
Module is established, for pre-establishing media file library, the media file library includes pair of text segment and play time It should be related to, the text segment is to carry out language and characters identification by the corresponding media fragment of the play time to obtain;
Trigger module triggers the playback request to multimedia file for the selection operation in response to target text segment;
Searching module searches the corresponding target play time of the target text segment for inquiring the media file library;
Playback module, for being played back according to the target play time to the multimedia file.
7. device according to claim 6, which is characterized in that the playback request is belonging to the target text segment Media fragment be starting point playback request, the playback module includes:
First acquisition unit, for obtaining the starting playing time in the target play time;
First playback unit, for being played back from the starting playing time to the multimedia file.
8. device according to claim 6, which is characterized in that the playback request is belonging to the target text segment Media fragment be content playback request, the playback module includes:
Second acquisition unit, for obtaining the starting playing time in the target play time and terminating playing time;
Second playback unit, when being played for the multimedia file to be played to the termination from the starting playing time It carves.
9. a kind of device of multimedia playback, which is characterized in that described device includes:
Processor and memory, above-mentioned module, trigger module, searching module and playback module etc. established are deposited as program unit Storage in memory, executes above procedure unit stored in memory by processor to realize corresponding function.
10. a kind of storage medium, is stored thereon with program, which realizes the side of the multimedia playback when being executed by processor Method.
CN201710586217.9A 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback Pending CN109271532A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710657309.1A CN109271536A (en) 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback
CN201710586217.9A CN109271532A (en) 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710586217.9A CN109271532A (en) 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201710657309.1A Division CN109271536A (en) 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback

Publications (1)

Publication Number Publication Date
CN109271532A true CN109271532A (en) 2019-01-25

Family

ID=65148013

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710657309.1A Pending CN109271536A (en) 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback
CN201710586217.9A Pending CN109271532A (en) 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201710657309.1A Pending CN109271536A (en) 2017-07-18 2017-07-18 A kind of method and device of multimedia file playback

Country Status (1)

Country Link
CN (2) CN109271536A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078070A (en) * 2019-11-29 2020-04-28 深圳市咨聊科技有限公司 PPT video barrage play control method, device, terminal and medium
CN111078078A (en) * 2019-11-29 2020-04-28 深圳市咨聊科技有限公司 Video playing control method, device, terminal and computer readable storage medium
CN114339308A (en) * 2022-01-04 2022-04-12 腾讯音乐娱乐科技(深圳)有限公司 Video stream loading method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377914A (en) * 2011-09-22 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Terminal and multimedia file management method
CN103414948A (en) * 2013-08-01 2013-11-27 王强 Method and device for playing video
CN104301771A (en) * 2013-07-15 2015-01-21 中兴通讯股份有限公司 Method and device for adjusting playing progress of video file
CN105007533A (en) * 2015-07-28 2015-10-28 米科互动教育科技(北京)有限公司 Live course playback method, device and system
US20170171623A1 (en) * 2015-12-09 2017-06-15 Rovi Guides, Inc. Methods and systems for customizing a media asset with user selections

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491450A (en) * 2013-09-25 2014-01-01 深圳市金立通信设备有限公司 Setting method of playback fragment of media stream and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377914A (en) * 2011-09-22 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Terminal and multimedia file management method
CN104301771A (en) * 2013-07-15 2015-01-21 中兴通讯股份有限公司 Method and device for adjusting playing progress of video file
CN103414948A (en) * 2013-08-01 2013-11-27 王强 Method and device for playing video
CN105007533A (en) * 2015-07-28 2015-10-28 米科互动教育科技(北京)有限公司 Live course playback method, device and system
US20170171623A1 (en) * 2015-12-09 2017-06-15 Rovi Guides, Inc. Methods and systems for customizing a media asset with user selections

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078070A (en) * 2019-11-29 2020-04-28 深圳市咨聊科技有限公司 PPT video barrage play control method, device, terminal and medium
CN111078078A (en) * 2019-11-29 2020-04-28 深圳市咨聊科技有限公司 Video playing control method, device, terminal and computer readable storage medium
CN114339308A (en) * 2022-01-04 2022-04-12 腾讯音乐娱乐科技(深圳)有限公司 Video stream loading method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109271536A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
US10818320B2 (en) Looping audio-visual file generation based on audio and video analysis
US9691379B1 (en) Selecting from multiple content sources
EP2685450B1 (en) Device and method for recognizing content using audio signals
US8886635B2 (en) Apparatus and method for recognizing content using audio signal
CN105657535A (en) Audio recognition method and device
US9613605B2 (en) Method, device and system for automatically adjusting a duration of a song
JP2019501466A (en) Method and system for search engine selection and optimization
CN102708135B (en) Automatic configuration special edition also manages equipment and the method for the surface plot picture of special edition
US10885107B2 (en) Music recommendation method and apparatus
CN107613400A (en) A kind of implementation method and device of voice barrage
CN105488135B (en) Live content classification method and device
CN104811812A (en) Audio and video play progress control method, apparatus and system
CN103491450A (en) Setting method of playback fragment of media stream and terminal
CN109271532A (en) A kind of method and device of multimedia file playback
CN103201732A (en) Pivot command for playlist
CN106649400A (en) Method, device and system for recommending multimedia object, terminal and server
CN107872685A (en) A kind of player method of multi-medium data, device and computer installation
CN104599692A (en) Recording method and device and recording content searching method and device
CN105335414A (en) Music recommendation method, device and terminal
CN104750839A (en) Data recommendation method, terminal and server
EP4192021A1 (en) Audio data processing method and apparatus, and device and storage medium
CN105845158A (en) Information processing method and client
CN109471955A (en) The localization method of video clip calculates equipment and storage medium
CN101324897A (en) Method and apparatus for looking up lyric
CN105868400A (en) Recorded sound information processing method and recorded sound information processing device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125