CN103632691B - A kind of media file playing method and electronic equipment - Google Patents

A kind of media file playing method and electronic equipment Download PDF

Info

Publication number
CN103632691B
CN103632691B CN201210299788.1A CN201210299788A CN103632691B CN 103632691 B CN103632691 B CN 103632691B CN 201210299788 A CN201210299788 A CN 201210299788A CN 103632691 B CN103632691 B CN 103632691B
Authority
CN
China
Prior art keywords
media file
information
file
judged result
played
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210299788.1A
Other languages
Chinese (zh)
Other versions
CN103632691A (en
Inventor
张超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210299788.1A priority Critical patent/CN103632691B/en
Publication of CN103632691A publication Critical patent/CN103632691A/en
Application granted granted Critical
Publication of CN103632691B publication Critical patent/CN103632691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of media file playing method and electronic equipment.Methods described is applied to playback of media files device, including:The content information for the media file played is obtained, the content information includes at least one of audio-frequency information, text information, image information of the media file;According to the content information, judge whether the media file meets default pause condition, obtain the first judged result;When first judged result represents that the media file meets default pause condition, the media file is played in pause.Using the method or electronic equipment of the present invention, the automatic pause of playback of media files can be realized according to the content of media file, it is to avoid to the frequent manually operated of electronic equipment, extend the life-span of electronic equipment, simplify user's operation.

Description

A kind of media file playing method and electronic equipment
Technical field
The present invention relates to control field, more particularly to a kind of media file playing method and electronic equipment.
Background technology
At present electronic equipment, generally all has the function of playing media file.So-called media file, can be video text Part or audio file.
In practical application, user using electronic equipment when playing media file, it is sometimes desirable to according in media file Hold and carry out certain action.For example, being cooked according to the content study in video file.When the personage in video file has performed certain After action, user is also required to perform identical action.Because user is in the study stage, so it performs moving in video file Time needed for making is longer.For example, some personage lectured in the video file of cooking process says " agaric is soaked 30 minutes " Afterwards, the picture of video file would generally be switched to next step at once.And user is within the time of a word, it is difficult to complete by Agaric is immersed in the action in water, and the action for eventually resulting in user does not catch up with action in video file.
When this occurs, current media file can only be suspended by manual control electronics in the prior art Play, wait user to complete after corresponding operation, then manual control electronics continue to play the media file.Therefore, it is existing Media file playing method in technology is, it is necessary to repeatedly manually operated to electronic equipment execution, and increase is accordingly pressed to electronic equipment The abrasion of key range, also brings very big inconvenience to user.
The content of the invention
, can be according in media file it is an object of the invention to provide a kind of media file playing method and electronic equipment Hold the automatic pause for realizing playback of media files, it is to avoid to the frequent manually operated of electronic equipment, extend the life-span of electronic equipment, Simplify user's operation.
To achieve the above object, the invention provides following scheme:
A kind of media file playing method, applied to playback of media files device, methods described includes:
The content information for the media file played is obtained, the audio that the content information includes the media file is believed At least one of breath, text information, image information;
According to the content information, judge whether the media file meets default pause condition, obtain the first judgement knot Really;
When first judged result represents that the media file meets default pause condition, the media are played in pause File.
Optionally, the media file is video file or audio file;
The content information for obtaining the media file played includes:Obtain the video file that is currently played or The audio-frequency information of audio file, is parsed to audio-frequency information, extracts voice messaging therein;
It is described to judge whether the media file meets default pause condition according to the content information, obtain first and sentence Disconnected result includes:Semantic analysis is carried out to voice messaging, judges whether there is time length information in voice messaging;If so, then Obtain representing the first judged result that the media file meets default pause condition, otherwise, obtain representing the media file It is unsatisfactory for the first judged result of default pause condition.
Optionally, the media file is video file;
The content information for obtaining the media file played includes:The video file that acquisition is currently played Caption information;
It is described to judge whether the media file meets default pause condition according to the content information, obtain first and sentence Disconnected result is:Semantic analysis is carried out to caption information, judges whether there is time length information in caption information;If so, then To the first judged result for representing the default pause condition of media file satisfaction, otherwise, obtain representing the media file not Meet the first judged result of default pause condition.
Optionally, the playback of media files device has image acquisition units, when the media file is video file When,
The content information for obtaining the media file played includes:The video file that acquisition is currently played Image information, therefrom extracts action message;
It is described to judge whether the media file meets default pause condition according to the content information, obtain first and sentence Disconnected result includes:The action message of user is gathered by described image collecting unit;Judge the user action message whether Match with the action message extracted from video file, if it does not match, obtaining representing that the media file is met default First judged result of pause condition, if it does, then obtaining representing that the media file is unsatisfactory for the of default pause condition One judged result.
Optionally, methods described also includes:Before media file is played, it is normal mode or study mould to set play mode Formula;
Further comprise before the content information for obtaining the media file played:Judge broadcasting for the media file Mode playback, when play mode is mode of learning, obtains the content information for the media file played;When play mode is just During norm formula, the media file is directly played.
Optionally, methods described also includes:
When the media file is in pause broadcast state, judges whether to meet and play trigger condition, obtain second and sentence Disconnected result;
When second judged result, which represents to meet, plays trigger condition, continue to play the media file.
Optionally, it is described to judge whether to meet broadcasting trigger condition, including:
Judge whether the pause reproduction time of the media file meets setting time;
Wherein, the setting time is obtained according to the content information of the media file.
Optionally, when the media file is video file, and playback of media files device is when having image acquisition units, It is described to judge whether to meet broadcasting trigger condition, including:
Judging the action message of the user, whether the action message with being extracted from video file matches, and obtains the 3rd Judged result;
It is described to continue to play the video file, including:
When the 3rd judged result represents the action message of the user and the action letter occurred in the video file When manner of breathing is matched, continue to play the video file.
A kind of electronic equipment, the electronic equipment also includes:
Media file content information acquiring unit, the content information for obtaining the media file played is described interior Holding information includes at least one of audio-frequency information, text information, image information of the media file;
First judging unit, for according to the content information, judging whether the media file meets default pause bar Part, obtains the first judged result;
Suspend playing control unit, for representing that the media file meets default pause bar when first judged result During part, the media file is played in pause.
Optionally, the media file is video file or audio file;
The media file content information acquiring unit includes:
Voice messaging obtains subelement, the audio letter for obtaining the video file being currently played or audio file Breath, parses to audio-frequency information, extracts voice messaging therein;
First judging unit includes:
Sometimes whether the first semantic analysis subelement, for carrying out semantic analysis to voice messaging, judge in voice messaging Between length information;If so, then obtain representing the first judged result that the media file meets default pause condition, otherwise, Obtain representing the first judged result that the media file is unsatisfactory for default pause condition.
Optionally, the media file is video file;
The media file content information acquiring unit includes:
Caption information obtains subelement, the caption information for obtaining the video file being currently played;
First judging unit includes:
Sometimes whether the second semantic analysis subelement, for carrying out semantic analysis to caption information, judge in caption information Between length information;If so, then obtain representing the first judged result that the media file meets default pause condition, otherwise, Obtain representing the first judged result that the media file is unsatisfactory for default pause condition.
Optionally, the playback of media files device has image acquisition units, and the media file is video file,
The media file content information acquiring unit includes:
Image information acquisition unit, the image information for obtaining the video file being currently played, is therefrom extracted Action message;
First judging unit includes:
User action information collecting unit, the action message for gathering user by described image collecting unit;
Action message judgment sub-unit, for judging the action message of the user whether with extracting from video file Action message matches, if it does not match, obtaining representing that the media file meets the first of default pause condition and judges knot Really, if it does, then obtaining representing the first judged result that the media file is unsatisfactory for default pause condition.
Optionally, in addition to:
Play mode setting unit, for before media file is played, setting play mode to be normal mode or study mould Formula;
Play mode judging unit, for before the content information for the media file played is obtained, judging the matchmaker The play mode of body file, when play mode is mode of learning, obtains the content information for the media file played;When broadcasting When mode playback is normal mode, the media file is directly played.
Optionally, in addition to:
Second judging unit, for when the media file is in pause broadcast state, judging whether to meet to play and touching Clockwork spring part, obtains the second judged result;
Play and recover control unit, for when second judged result represents to meet and plays trigger condition, continuing to broadcast Put the media file.
Optionally, second judging unit includes:
Suspend reproduction time judgment sub-unit, for judging whether the pause reproduction time of the media file meets setting Time;
Wherein, the setting time is obtained according to the content information of the media file.
Optionally, when the media file is video file, and playback of media files device has image acquisition units, institute Stating the second judging unit includes:
3rd judgment sub-unit, for judge the user action message whether with the action extracted from video file Information match, obtains the 3rd judged result;
The recovery control unit of playing includes:
Play and recover control subelement, for represented when the 3rd judged result action message of the user with it is described When the action message occurred in video file matches, continue to play the video file.
The specific embodiment provided according to the present invention, the invention discloses following technique effect:
The media file playing method and electronic equipment of the present invention, is believed by the content for obtaining the media file played Breath, judges whether the media file meets default pause condition, and then suspend according to judged result according to the content information The broadcasting of the media file, can realize the automatic pause of playback of media files, it is to avoid to electricity according to the content of media file In frequent manually operated, the life-span of extension electronic equipment of sub- equipment, simplify user's operation.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of the media file playing method embodiment 1 of the present invention;
Fig. 2 is the flow chart of the media file playing method embodiment 2 of the present invention;
Fig. 3 is the flow chart of the media file playing method embodiment 3 of the present invention;
Fig. 4 is the flow chart of the media file playing method embodiment 4 of the present invention;
Fig. 5 is the structure chart of the electronic equipment embodiment 1 of the present invention;
Fig. 6 is the structure chart of the electronic equipment embodiment 2 of the present invention;
Fig. 7 is the structure chart of the electronic equipment embodiment 3 of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
The media file playing method of the present invention, applied to playback of media files device.The media file can be sound Frequency file or video file.The playback of media files device, can be tablet personal computer, notebook computer, MP4, MP3, smart mobile phone etc..
Fig. 1 is the flow chart of the media file playing method embodiment 1 of the present invention.As shown in figure 1, methods described includes:
Step 101:The content information for the media file played is obtained, the content information includes the media file Audio-frequency information, text information, at least one of image information;
Specifically, the content information of the media file refers to representing the audio-frequency information or word letter of time span information Cease or represent the image information of certain action.For example, the personage in some video file says:" agaric soaks 30 points Clock ".Now, the audio-frequency information " 30 minutes " for representing time span information has been occurred as soon as in the video file.On the other hand, institute The text information that can also occur representing time span information in video file is stated, i.e., can also be occurred on captions " 30 minutes " Text information.For another example, when the personage in the video file makes wash vegetables action, occur that expression wash vegetables is moved in the video file The image information of work.
The content information of the media file can be obtained using following manner.
For audio-frequency information, the audio-frequency information of the media file can be adopted by the playout software of media file Collection, then the audio-frequency information is identified using speech recognition technology.
For image information, the video information accessed by the playout software of media file can be directly invoked.
For text information, in the document content information that can be got from the playout software of media file, word will be used as The information that curtain is shown is separated.Particularly, some video files have single subtitle file.At this moment, it is possible to straight Connect and obtain text information from the subtitle file.
Step 102:According to the content information, judge whether the media file meets default pause condition, obtain One judged result;
For audio-frequency information, it can be determined that whether there is the voice for representing time span information in the audio-frequency information.Such as Fruit judged result is yes, then the time stopped just represented according to the voice plays the media file, and time out can be with It is identical with the time that the voice is represented.
When being controlled using image information to the broadcasting of media file, in addition it is also necessary to reference to media file beholder it is dynamic Make information, will specifically be discussed in detail in the following embodiments.
For text information, the text information got can be analyzed using semantics recognition technology, judge described Whether there is the word for representing time span information in text information.If it is judged that being yes, then just according to the word The time stopped that information is represented plays the media file, and time out can be identical with the time of the textual representation.
Step 103:When first judged result represents that the media file meets default pause condition, automatic pause Play the media file.That is, when first judged result represents that the media file meets default pause condition, produce One pause instruction;And the pause instruction is responded, stop the broadcasting of the media file.
Time out can be identical with the time that voice or text information are represented.
The media file playing method of the present embodiment, by obtaining the content information for the media file played, according to The content information judges whether the media file meets default pause condition, and then suspends the media according to judged result The broadcasting of file, can realize the automatic pause of playback of media files, it is to avoid to electronic equipment according to the content of media file It is frequently manually operated, extend the life-span of electronic equipment, simplify user's operation.
Media file playing method in one embodiment of the present of invention further comprises:When the first judged result table When showing that the media file meets default pause condition, respond the pause instruction with stop the media file broadcasting it is same Shi Qidong is used for the timer (timing unit) for recording time out;When the record that the timer (timing unit) is recorded Between meet and carry out analyzing when obtaining the time out from the content information of the media file, produce play instruction;Foundation The play instruction continues to play controlling the media file at the pause.
Media file playing method in an alternative embodiment of the invention further comprises:When first judged result When representing that the media file meets default pause condition, respond the pause instruction to stop the broadcasting of the media file Start collecting unit simultaneously, the collecting unit is used for the operation for gathering user, to apply the media file playing method Electronic equipment judge whether the operation of the user needs with analyzing obtained user from the content information of the media file Operation to be performed information is consistent;When the operation of the user from the content information of the media file with analyzing what is obtained User needs to start the timer (timing unit) for the record time out when operation information performed is consistent;Work as institute Stating the record time that timer (timing unit) recorded meets and is analyzed from the content information of the media file During the time out, play instruction is produced;The media file is controlled since at the pause according to the play instruction Continue to play.Use habit, the interactive mode that the embodiment more meets user compared with a upper embodiment are more natural.In other words The electronic equipment for exactly applying this method is more intelligent.A upper embodiment is to directly initiate meter when meeting default pause condition When device (timing unit) calculate the time.And the present embodiment is that another condition is introduced when meeting default pause condition, The condition is to judge that the user whether user is really performed obtained by being analyzed in the content information of media file needs what is performed Operation information.For example, illustrating such as " agaric is soaked 30 minutes " in media file, when electronic equipment judges that user performs Just start timer when agaric is put into water and carry out timing (time out is 30 minutes).
Fig. 2 is the flow chart of the embodiment 2 of the media file playing method of the present invention.In the present embodiment, with video file In text information exemplified by illustrate.As shown in Fig. 2 methods described includes:
Step 201:Obtain the text information in video file;
In this step, it is primarily referred to as obtaining the caption information in video file.
The video file combined for caption information and video information, can be obtained from the playout software of media file In the document content information got, it will be separated as the information that captions are shown.
For the video file with single subtitle file, word letter can be obtained directly from the subtitle file Breath.
Step 202:Judge the word for representing time span information whether is occurred in that in the text information, obtain first and sentence Disconnected result;
In this step, the word for occurring representing time span information can be judged whether using semantic analysis technology.Represent The word of time span information can be 1 minute, 10 seconds, half an hour etc..These represent that the word of time span information leads to Often there is the structure of " number+time measure word ".It therefore, it can obtain each word in caption information using semantic analysis software, The word got is matched with the word in default number class dictionary, if the word got and the word in number class dictionary The match is successful, then the word after the number is matched with the word in time quantum part of speech dictionary, if the match is successful again, sentenced The word for representing time span information is occurred in that in the fixed text information.
In practical application, the word that may not be each expression time span information is required for pause to play media file.For The control to playback of media files is more accurately realized, can increase the Stringency of judgement.For example, " number can will be met This condition of word+time measure word " upgrades to " verb+number+time measure word ".First judge whether the word for verb class occur, If there is then judging whether the word for number class occur again, if there is then judging whether the text of time of occurrence measure word class again Word, if above-mentioned three judged results are to be, judges to occur in that the text for representing time span information in the text information Word.Because such as " agaric is soaked 30 minutes ", " slow fire is stewed ten minutes " etc. needs to suspend the phrase that video file is played In, generally all there is the feature structure of " verb+number+time measure word ".
Step 203:Time span information is represented when first judged result represents to occur in that in the text information During word, the media file is played in pause;
Time out can be identical with the time of the textual representation.
In the present embodiment, it can also include:
Step 204:Judge whether the pause reproduction time of the video file meets setting time, obtain the second judgement knot Really;
Wherein, the setting time is obtained according to the content information of the media file.Can be by the present embodiment The time of the textual representation is used as setting time.
Step 205:When second judged result represents that the pause reproduction time of the video file meets setting time When, continue to play the media file.
Fig. 3 is the flow chart of the embodiment 3 of the media file playing method of the present invention.In the present embodiment, with media file In audio-frequency information exemplified by illustrate.As shown in figure 3, methods described includes:
Step 301:Obtain the audio-frequency information in media file;
The audio-frequency information of the media file can be acquired by the playout software of media file.For with multiple The media file of track, can determine the track where voice by audio analysis techniques, the track where an acquisition voice Audio-frequency information.
Step 302:Judge the sound for representing time span information whether is occurred in that in the audio-frequency information, obtain first and sentence Disconnected result;
In this step, sound (the i.e. sound for occurring representing time span information can be judged whether using speech recognition technology Frequency information).The sound for representing time span information can be 1 minute, 10 seconds, half an hour etc..These represent time span The sound of information generally has the structure of " number+time measure word ".It therefore, it can obtain audio-frequency information using speech recognition software In each word, the word got is matched with the word in default number class dictionary, if the word and number that get The match is successful for word in class dictionary, then matched the word after the number with the word in time quantum part of speech dictionary, if again The match is successful, then judge to occur in that the sound for representing time span information in the audio-frequency information.
In practical application, the word that may not be each expression time span information is required for pause to play media file.For The control to playback of media files is more accurately realized, can increase the Stringency of judgement.For example, " number can will be met This condition of word+time measure word " upgrades to " verb+number+time measure word ".First judge whether the sound for verb class occur, If there is then judging whether the sound for number class occur again, if there is then judging whether the sound of time of occurrence measure word class again Sound, if above-mentioned three judged results are to be, judges to occur in that the sound for representing time span information in the audio-frequency information Sound.Because such as " agaric is soaked 30 minutes ", " slow fire is stewed ten minutes " etc. needs to suspend the phrase of playback of media files In, generally all there is the feature structure of " verb+number+time measure word ".
Step 303:Time span information is represented when first judged result represents to occur in that in the audio-frequency information During sound, the media file is played in pause;
Time out can be identical with the time that the sound is represented.
In the present embodiment, it can also include:
Step 304:Judge whether the pause reproduction time of the media file meets setting time, obtain the second judgement knot Really;
Wherein, the setting time is obtained according to the content information of the media file.Can be by the present embodiment The time that the sound is represented is as setting time.
Step 305:When second judged result represents that the pause reproduction time of the media file meets setting time When, continue to play the media file.
Fig. 4 is the flow chart of the embodiment 4 of the media file playing method of the present invention.In the present embodiment, with video file In image information exemplified by illustrate.It is pointed out that except utilizing the image information in video file in the present embodiment, Broadcasting of the other information to video file is can be combined with to be controlled.As shown in figure 4, methods described includes:
Step 401:Obtain the image information in video file and the action message of user;
Specifically, the image information obtained in video file regarding of can directly invoking that playback of media files software gets Frequency information.
Following two modes can at least be included by obtaining the action message of user.
A kind of mode can be by the action message that camera obtains user.
Another way is the combination by multiple sensors, monitors the physical state letter of object corresponding with action message Breath, according to the physical state information, perceives the action message of user.For example, multiple take the photograph can be set on the table top in kitchen Picture head, pressure sensor, wherein, the table top in the kitchen is that (electronic equipment is using the present invention to an electronic equipment kept flat The electronic equipment of the broadcasting media file method of embodiment) first surface, the multiple camera is arranged on the electronics and sets First surface that is standby interior and constituting the electronic equipment, i.e. the array of multiple cameras constitutes the electronic equipment First surface.The pressure sensor can be corresponded with the array of multiple cameras, can also be only in specific region The integrated pressure sensor.Further described electronic equipment can also be shown in first surface, its display unit battle array The array of row and the multiple camera is corresponded.The mutual not shadow of the display of collection and display unit so as to ensure camera Ring.Specifically, each camera can collect the object information that corresponding region is placed above table top.Hold salt bottle and Different bar codes can be had by holding the bottle of vinegar.Above-mentioned bar code information is collected by camera, and then can be recognized The content information gone out in the vessel placed on table top.The weight for the vessel placed on table top can be sensed by pressure sensor Measure information.The action that user does is " 10 grams of salt are added in pot ".At this point it is possible to identify the device being forced off the table by camera What the bar code of ware was represented is salt, and the weight for the vessel for containing salt for putting back to table top is then induced by pressure sensor and is reduced 10 grams, it is possible to judge " 10 grams of salt are added in pot ".So that the electronic equipment determines that the user performs accordingly Action.
Step 402:Judging the action message of the user, whether the action message with being extracted from video file matches, Obtain the first judged result;
Specifically, if it does not match, obtaining representing that the media file meets the first of default pause condition and judges knot Really, if it does, then obtaining representing the first judged result that the media file is unsatisfactory for default pause condition.
For the mode of the action message of the first acquisition user, image analysis technology can be used, video file is analyzed In the action message of user that is collected with camera of image information whether match.For the action letter of second of acquisition user The mode of breath, can be analyzed using image analysis technology the action that represent of image information in video file whether with multiple sensings The action message for the user that the system senses of device composition are arrived is identical, and then judges that the image information in video file is adopted with camera Whether the action message of the user collected matches.
Step 403:When first judged result represents the action message of the user and is extracted from video file When action message is not matched that, the media file is played in pause;In other words, user has not been completed in video file and taught Making step, so electronic equipment needs to suspend the broadcasting of media file to wait user to complete the dynamic of correlation in practical operation Work/operation etc., to ensure that user can really learn to teach content in video file.
In the present embodiment, it can also include:
Step 404:Continue to judge whether the action message of the user is believed with the action extracted from video file Manner of breathing is matched, and obtains the 3rd judged result;
Step 405:When the 3rd judged result represents the action message of the user with occurring in the video file Action message when matching, continue to play the video file.
Above-mentioned two step can be realized after user completes the action in video, continue to play the video text having timed out Part.
It should also be noted that, in the present embodiment, methods described can also include:Before media file is played, set Play mode is normal mode or mode of learning;
Further comprise before the content information for obtaining the media file played:Judge broadcasting for the media file Mode playback, when play mode is mode of learning, obtains the content information for the media file played;When play mode is just During norm formula, the media file is directly played.
Wherein, the setting on normal mode or mode of learning, can be automatic by way of obtaining user action information Realize.
For example, the first way of the action message for obtaining user by camera, can judge the user Action message and after the action message extracted from video file matches, can further determine that user is carrying out media Action in file, mode of learning is set to by the play mode of media file;If the action message of the user with from regarding The action message extracted in frequency file is mismatched, then the play mode of media file is set into normal mode.
For the combination by multiple sensors, the physical state information of object corresponding with action message is monitored, according to The physical state information, perceives the second way of the action message of user, it would however also be possible to employ image analysis technology analysis is regarded The action that image information in frequency file is represented really with multiple sensor groups into the action message of user that arrives of system senses After identical, the play mode of media file is set to mode of learning;If the action message of the user with from video file The action message of middle extraction is mismatched, then the play mode of media file is set into normal mode.
The invention also discloses a kind of electronic equipment.The electronic equipment can be tablet personal computer, notebook computer, mobile phone Etc..
Fig. 5 is the structure chart of the electronic equipment embodiment 1 of the present invention.As shown in figure 5, the electronic equipment includes:
Media file content information acquiring unit 501, the content information for obtaining the media file played is described Content information includes at least one of audio-frequency information, text information, image information of the media file;
First judging unit 502, for according to the content information, judging whether the media file meets default pause Condition, obtains the first judged result;
Suspend playing control unit 503, for being preset temporarily when first judged result represents that the media file is met When stopping condition, the media file is played in pause.
The electronic equipment of the present embodiment, by obtaining the content information for the media file played, according to the content Information judges whether the media file meets default pause condition, and then suspends broadcasting for the media file according to judged result Put, the automatic pause of playback of media files can be realized according to the content of media file, it is to avoid to the frequent manual of electronic equipment Operation, extends the life-span of electronic equipment, simplifies user's operation.
Fig. 6 is the structure chart of the electronic equipment embodiment 2 of the present invention.As shown in fig. 6, the electronic equipment includes:
Voice messaging obtains subelement 601, the audio for obtaining the video file being currently played or audio file Information, is parsed to audio-frequency information, extracts voice messaging therein;
The voice messaging, which obtains subelement 601, can be contained in the media file content information acquiring unit 501.
First semantic analysis subelement 602, for carrying out semantic analysis to voice messaging, judges whether have in voice messaging Time span information;If so, then obtain representing the first judged result that the media file meets default pause condition, it is no Then, obtain representing the first judged result that the media file is unsatisfactory for default pause condition.
The first semantic analysis subelement 602 can be contained in first judging unit 502.
Suspend playing control unit 503, for being preset temporarily when first judged result represents that the media file is met When stopping condition, the media file is played in pause.
In the present embodiment, it can also include:
Second judging unit 603, for when the media file is in pause broadcast state, judging whether to meet and playing Trigger condition, obtains the second judged result;
Wherein, the setting time is obtained according to the content information of the media file.Can be by the present embodiment The time of the textual representation is used as setting time.
Play and recover control unit 604, for when second judged result represents to meet and plays trigger condition, continuing Play the media file.
Fig. 7 is the structure chart of the electronic equipment embodiment 3 of the present invention.As shown in fig. 7, the electronic equipment includes:
Image information acquisition unit 701, the image information for obtaining the video file being currently played, is therefrom extracted Go out action message;
Described image information acquisition unit 701 can be contained in the media file content information acquiring unit 501.
User action information collecting unit 702, the action message for gathering user by described image collecting unit;
Action message judgment sub-unit 703, for judging the action message of the user whether with being carried from video file The action message taken matches, if it does not match, obtaining representing that the media file meets the first of default pause condition and sentenced Disconnected result, if it does, then obtaining representing the first judged result that the media file is unsatisfactory for default pause condition.
The user action information collecting unit 702 and action message judgment sub-unit 703 can be contained in described first Judging unit 502.
Suspend playing control unit 503, for being preset temporarily when first judged result represents that the media file is met When stopping condition, the media file is played in pause.
In the present embodiment, it can also include:
3rd judgment sub-unit 704, for judging the action message of the user whether with extracting from video file Action message matches, and obtains the 3rd judged result;
Play and recover control subelement 705, for represented when the 3rd judged result action message of the user with When the action message occurred in the video file matches, continue to play the video file.
It should also be noted that, in the present embodiment, the electronic equipment can also include:
Play mode setting unit, for before media file is played, setting play mode to be normal mode or study mould Formula;
Play mode judging unit, for before the content information for the media file played is obtained, judging the matchmaker The play mode of body file, when play mode is mode of learning, obtains the content information for the media file played;When broadcasting When mode playback is normal mode, the media file is directly played.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there is other identical element in the process including the key element, method, article or equipment.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required hardware platform to realize, naturally it is also possible to all implemented by hardware, but in many cases before Person is more preferably embodiment.Understood based on such, whole that technical scheme contributes to background technology or Person part can be embodied in the form of software product, and the computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions are to cause a computer equipment (can be personal computer, service Device, or the network equipment etc.) perform method described in some parts of each embodiment of the invention or embodiment.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other Between the difference of embodiment, each embodiment identical similar portion mutually referring to.For electronics disclosed in embodiment For equipment, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method portion Defend oneself bright.
Specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said The bright method and its core concept for being only intended to help to understand the present invention;Simultaneously for those of ordinary skill in the art, foundation The thought of the present invention, will change in specific embodiments and applications.In summary, this specification content is not It is interpreted as limitation of the present invention.

Claims (16)

1. a kind of media file playing method, it is characterised in that applied to playback of media files device, methods described includes:
The content information for the media file that acquisition is being played, audio-frequency information of the content information including the media file, At least one of text information, image information;The content information of the media file refers to representing time span information Audio-frequency information or text information, or represent the image information of certain action;
According to the content information, judge whether the media file meets default pause condition, obtain the first judged result;
When first judged result represents that the media file meets default pause condition, the media text is played in pause Part.
2. according to the method described in claim 1, it is characterised in that the media file is video file or audio file;
The content information for obtaining the media file played includes:Obtain the video file being currently played or audio The audio-frequency information of file, is parsed to audio-frequency information, extracts voice messaging therein;
It is described to judge whether the media file meets default pause condition according to the content information, obtain the first judgement knot Fruit includes:Semantic analysis is carried out to voice messaging, judges whether there is time length information in voice messaging;If so, then obtaining Represent that the media file meets the first judged result of default pause condition, otherwise, obtain representing that the media file is discontented with First judged result of the default pause condition of foot.
3. according to the method described in claim 1, it is characterised in that the media file is video file;
The content information for obtaining the media file played includes:Obtain the captions for the video file being currently played Information;
It is described to judge whether the media file meets default pause condition according to the content information, obtain the first judgement knot It is really:Semantic analysis is carried out to caption information, judges whether there is time length information in caption information;If so, then obtaining table Show that the media file meets the first judged result of default pause condition, otherwise, obtain representing that the media file is unsatisfactory for First judged result of default pause condition.
4. according to the method described in claim 1, it is characterised in that the playback of media files device has IMAQ list Member, when the media file is video file,
The content information for obtaining the media file played includes:Obtain the image for the video file being currently played Information, therefrom extracts action message;
It is described to judge whether the media file meets default pause condition according to the content information, obtain the first judgement knot Fruit includes:The action message of user is gathered by described image collecting unit;Judge the user action message whether with from The action message extracted in video file matches, if it does not match, obtaining representing that the media file meets default pause First judged result of condition, if it does, then obtaining representing that the media file is unsatisfactory for the first of default pause condition and sentenced Disconnected result.
5. according to the method described in claim 1, it is characterised in that methods described also includes:Before media file is played, set Play mode is normal mode or mode of learning;
Further comprise before the content information for obtaining the media file played:Judge the broadcasting mould of the media file Formula, when play mode is mode of learning, obtains the content information for the media file played;When play mode is normal mode During formula, the media file is directly played.
6. the method according to claim any one of 1-5, it is characterised in that methods described also includes:
When the media file is in pause broadcast state, judges whether to meet and play trigger condition, obtain the second judgement knot Really;
When second judged result, which represents to meet, plays trigger condition, continue to play the media file.
7. method according to claim 6, it is characterised in that described to judge whether to meet broadcasting trigger condition, including:
Judge whether the pause reproduction time of the media file meets setting time;
Wherein, the setting time is obtained according to the content information of the media file.
8. method according to claim 6, it is characterised in that when the media file is video file, and media file It is described to judge whether to meet broadcasting trigger condition when playing device has image acquisition units, including:
The action message of user is gathered by described image collecting unit;
Judging the action message of the user, whether the action message with being extracted from video file matches, and obtains the 3rd judgement As a result;
It is described to continue to play the video file, including:
When the 3rd judged result represents the action message of the user and the action message phase occurred in the video file During matching, continue to play the video file.
9. a kind of electronic equipment, it is characterised in that the electronic equipment also includes:
Media file content information acquiring unit, the content information for obtaining the media file played, the content letter Breath includes at least one of audio-frequency information, text information, image information of the media file;The content of the media file Information refers to representing the audio-frequency information or text information of time span information, or represents the image information of certain action;
First judging unit, for according to the content information, judging whether the media file meets default pause condition, is obtained To the first judged result;
Suspend playing control unit, for representing that the media file meets default pause condition when first judged result When, the media file is played in pause.
10. electronic equipment according to claim 9, it is characterised in that the media file is video file or audio text Part;
The media file content information acquiring unit includes:
Voice messaging obtains subelement, the audio-frequency information for obtaining the video file being currently played or audio file, right Audio-frequency information is parsed, and extracts voice messaging therein;
First judging unit includes:
First semantic analysis subelement, for carrying out semantic analysis to voice messaging, judges whether have the time long in voice messaging Spend information;If so, then obtaining representing the first judged result that the media file meets default pause condition, otherwise, obtain Represent that the media file is unsatisfactory for the first judged result of default pause condition.
11. electronic equipment according to claim 9, it is characterised in that the media file is video file;
The media file content information acquiring unit includes:
Caption information obtains subelement, the caption information for obtaining the video file being currently played;
First judging unit includes:
Second semantic analysis subelement, for carrying out semantic analysis to caption information, judges whether have the time long in caption information Spend information;If so, then obtaining representing the first judged result that the media file meets default pause condition, otherwise, obtain Represent that the media file is unsatisfactory for the first judged result of default pause condition.
12. electronic equipment according to claim 9, it is characterised in that there is the playback of media files device image to adopt Collect unit, the media file is video file,
The media file content information acquiring unit includes:
Image information acquisition unit, the image information for obtaining the video file being currently played, therefrom extracts action Information;
First judging unit includes:
User action information collecting unit, the action message for gathering user by described image collecting unit;
Action message judgment sub-unit, for judge the user action message whether with the action extracted from video file Information match, if it does not match, obtaining representing the first judged result that the media file meets default pause condition, such as Fruit matches, then obtains representing the first judged result that the media file is unsatisfactory for default pause condition.
13. electronic equipment according to claim 9, it is characterised in that also include:
Play mode setting unit, for before media file is played, setting play mode to be normal mode or mode of learning;
Play mode judging unit, for before the content information for the media file played is obtained, judging media text The play mode of part, when play mode is mode of learning, obtains the content information for the media file played;When broadcasting mould When formula is normal mode, the media file is directly played.
14. the electronic equipment according to claim any one of 9-13, it is characterised in that also include:
Second judging unit, for when the media file is in pause broadcast state, judging whether to meet and playing triggering bar Part, obtains the second judged result;
Play and recover control unit, for when second judged result represents to meet and plays trigger condition, continuing to play institute State media file.
15. electronic equipment according to claim 14, it is characterised in that second judging unit includes:
Suspend reproduction time judgment sub-unit, during for judging whether the pause reproduction time of the media file meets setting Between;
Wherein, the setting time is obtained according to the content information of the media file.
16. electronic equipment according to claim 14, it is characterised in that when the media file is video file, and matchmaker Body file playing device has image acquisition units, and second judging unit includes:
Second user action message collecting unit, the action message for gathering user by described image collecting unit;
3rd judgment sub-unit, for judge the user action message whether with the action message extracted from video file Match, obtain the 3rd judged result;
The recovery control unit of playing includes:
Play and recover control subelement, action message and the video for representing the user when the 3rd judged result When the action message occurred in file matches, continue to play the video file.
CN201210299788.1A 2012-08-21 2012-08-21 A kind of media file playing method and electronic equipment Active CN103632691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210299788.1A CN103632691B (en) 2012-08-21 2012-08-21 A kind of media file playing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210299788.1A CN103632691B (en) 2012-08-21 2012-08-21 A kind of media file playing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103632691A CN103632691A (en) 2014-03-12
CN103632691B true CN103632691B (en) 2017-07-25

Family

ID=50213661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210299788.1A Active CN103632691B (en) 2012-08-21 2012-08-21 A kind of media file playing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103632691B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851422A (en) * 2017-03-29 2017-06-13 苏州百智通信息技术有限公司 A kind of video playback automatic pause processing method and system
CN108024144B (en) * 2017-11-28 2020-07-10 网宿科技股份有限公司 Video playing method, terminal and computer readable storage medium
CN109754288B (en) * 2019-01-10 2023-10-24 深圳市沃特沃德股份有限公司 Advertisement page playing method and device, storage medium and computer equipment
CN111508474B (en) * 2019-08-08 2021-04-06 马上消费金融股份有限公司 Voice interruption method, electronic equipment and storage device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101490762A (en) * 2006-07-12 2009-07-22 皇家飞利浦电子股份有限公司 A device and a method for playing audio-video content

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566353B2 (en) * 2008-06-03 2013-10-22 Google Inc. Web-based system for collaborative generation of interactive videos
KR101473035B1 (en) * 2009-06-19 2014-12-16 한국전자통신연구원 Object-based audio system, object-based audio providing method and object-based audio play system using preset

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101490762A (en) * 2006-07-12 2009-07-22 皇家飞利浦电子股份有限公司 A device and a method for playing audio-video content

Also Published As

Publication number Publication date
CN103632691A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN105657535B (en) A kind of audio identification methods and device
CN103632691B (en) A kind of media file playing method and electronic equipment
CN106504754B (en) A kind of real-time method for generating captions according to audio output
CN109448460A (en) One kind reciting detection method and user equipment
US20180293236A1 (en) Fast identification method and household intelligent robot
CN102665132B (en) Automatic smart television control method and television equipment
CN108924608A (en) A kind of householder method and smart machine of video teaching
CN106971723A (en) Method of speech processing and device, the device for speech processes
CN107463247A (en) A kind of method, apparatus and terminal of text reading processing
CN103914147B (en) Eye control video interactive method and system
CN107613400A (en) A kind of implementation method and device of voice barrage
CN107864410B (en) Multimedia data processing method and device, electronic equipment and storage medium
WO2002011446A3 (en) Transcript triggers for video enhancement
CN107948672A (en) Preserve the method and system and server, Wearable of video data
CN104317392B (en) A kind of information control method and electronic equipment
CN104699676B (en) Information search method and system based on speech recognition
CN108961887A (en) A kind of phonetic search control method and private tutor's equipment
CN109087225A (en) A kind of learning control method and private tutor's equipment based on private tutor's equipment
CN109215679A (en) Dialogue method and device based on user emotion
CN105848005A (en) Video subtitle display method and video subtitle display device
CN109033448B (en) Learning guidance method and family education equipment
CN104615252B (en) Control method, control device, wearable electronic equipment and electronic equipment
CN107516517A (en) Control method based on speech recognition
CN105727572B (en) A kind of self-learning method and self study device based on speech recognition of toy
CN104679755A (en) Voice frequency searching method, voice frequency searching device and terminal

Legal Events

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