Summary of the invention
Method and terminal that the embodiment of the present invention provides a kind of repeated program to play.Can position repeat playing program fragment quickly and easily, improve user's experience.
A kind of method that the embodiment of the present invention provides repeated program to play, comprising:
In the time program play instruction being detected, obtain the start time point that described program is play;
If described repeated program play signal detected, obtain the dwell time point that described program is play;
The dwell time point that the start time point of playing according to the described program getting and the described program getting are play, determines the time period that described repeated program is play;
The program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.
Wherein, described program comprises audio signal, described repeated program play signal detected if described, and the dwell time point that obtains described program broadcasting comprises:
Audio signal while obtaining described program broadcasting;
Audio signal while broadcasting according to the described program getting, judges whether the spectral amplitude of described audio signal is less than predetermined threshold value;
If the spectral amplitude of described audio signal is less than predetermined threshold value, produce described repeated program play signal;
The described repeated program play signal obtaining according to generation, obtains the dwell time point that described program is play.
Wherein, described repeated program play signal detected if described, the dwell time point that obtains described program broadcasting also comprises:
Obtain the repeat playing signal that control appliance sends;
The repeat playing signal sending according to the described control terminal getting stops described program to be play, and obtains the dwell time point that described program is play.
Wherein, describedly program fragment corresponding to the time period of playing with described definite described repeated program carried out to repeat playing comprise:
Obtain the repeat playing number of times that user arranges;
The repeat playing number of times arranging according to the described user who gets, the program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.
Wherein, described program also comprises vision signal, describedly program fragment corresponding to the time period of playing with described definite described repeated program carried out to repeat playing also comprises:
Obtain the audio signal of the user recording of described program fragment;
The video signal integration of the audio signal of the user recording of described program fragment and described program fragment is become to a new program fragment;
The new program fragment that described integration is obtained carries out repeat playing.
Correspondingly, the terminal that the embodiment of the present invention provides a kind of repeated program to play, comprising:
Very first time acquisition module, in the time program play instruction being detected, obtains the start time point that described program is play;
The second time-obtaining module, if for described repeated program play signal being detected, obtains the dwell time point that described program is play;
Time determination module, for the dwell time point of the start time point of playing according to the described program getting and the described program broadcasting getting, determines the time period that described repeated program is play;
Repeat playing module, for carrying out repeat playing to program fragment corresponding to the time period of playing with described definite described repeated program.
Wherein, described program comprises audio signal, and described the second time-obtaining module comprises:
First signal acquiring unit, the audio signal while broadcasting for obtaining described program;
Amplitude judging unit, audio signal when the described program getting for basis is play, judges whether the spectral amplitude of described audio signal is less than predetermined threshold value;
Repeat playing signal generation unit, if be less than predetermined threshold value for the spectral amplitude of described audio signal, produces described repeated program play signal;
The first dwell time acquiring unit, for the described repeated program play signal obtaining according to generation, obtains the dwell time point that described program is play.
Wherein, described the second time-obtaining module also comprises:
Secondary signal acquiring unit, the repeat playing signal sending for obtaining control appliance;
The second dwell time acquiring unit, stops described program for the repeat playing signal sending according to the described control terminal getting and plays, and obtains the dwell time point that described program is play.
Wherein, described repeat playing module comprises:
Number of times acquiring unit, the repeat playing number of times arranging for obtaining user;
The first repeat playing unit, for the repeat playing number of times arranging according to the described user who gets, the program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.
Wherein, described program also comprises vision signal, and described repeat playing module also comprises:
Audio signal acquiring unit, for obtaining the audio signal of user recording of described program fragment;
Audio-video signal integral unit, for becoming a new program fragment by the video signal integration of the audio signal of the user recording of described program fragment and described program fragment;
The second repeat playing unit, carries out repeat playing for the new program fragment that described integration is obtained.
Implement the embodiment of the present invention, in the time program play instruction being detected, obtain the start time point that described program is play; If described repeated program play signal detected, obtain the dwell time point that described program is play; The dwell time point that the start time point of playing according to the described program getting and the described program getting are play, determines the time period that described repeated program is play; The program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.Can position repeat playing program fragment quickly and easily, improve user's experience.
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 clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, Fig. 1 is the first embodiment flow chart of the method play of a kind of repeated program that the present invention proposes, and the embodiment of the present invention at least comprises as shown in the figure:
S101, in the time program play instruction being detected, obtains the start time point that described program is play.
In specific implementation, user is watching in program process, can send program play instruction as remote controller by control appliance, after terminal receives program play instruction, be switched to this program channel and start broadcast program, the start time point of now can recorded program playing.
S102, if described repeated program play signal detected, obtains the dwell time point that described program is play.
In specific implementation, can start repeat playing function by automatic repeat playing pattern or manual repeat playing pattern, and obtain the dwell time point that described program is play, and user can be switched described two kinds of patterns, and system can be given tacit consent under automatic repeat playing pattern.
Optionally, under automatic repeat playing pattern, audio signal can first obtain described program broadcasting time, program is in playing process, produce audio signal, the described audio signal producing can be converted into the frequency spectrum of audio signal by fast Fourier transform (FFT) algorithm, and corresponding sample frequency can be set, as 44KHZ.Then the audio signal while broadcasting according to the described program getting, judges whether the spectral amplitude of described audio signal is less than predetermined threshold value.If the spectral amplitude of described audio signal is less than predetermined threshold value, judge that this program is in silent state, produce described repeated program play signal, if the spectral amplitude of described audio signal is not less than predetermined threshold value, judge that this program is in sonance, continue broadcast program.The last described repeated program play signal obtaining according to generation, stops playing described program, and obtains the dwell time point that described program is play, and the start time point of simultaneously this time point being play as next program.
Further, automatically repeat playing pattern can better be processed the program that background sound volume is lower, but for music class or there is the program of noisy background music, the discrimination of audio signal is not high, in this case, can adopt manual watching mode.Or
Optionally, manually repeating under watching mode, user can, by control appliance as " repeat playing " button of remote controller, send repeat playing signal to described control terminal.Terminal is obtained the repeat playing signal that control appliance sends; The repeat playing signal sending according to the described control terminal getting stops described program to be play, and obtains the dwell time point that described program is play.
S103, the dwell time point that the start time point of playing according to the described program getting and the described program getting are play, determines the time period that described repeated program is play.
In specific implementation, the dwell time point that the start time point of playing according to the described program getting and the described program getting are play, can accurately locate the time that needs repeat playing program fragment fast.
S104, the program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.
In specific implementation, after program fragment repeat playing corresponding to time period of playing at described and described definite described repeated program completes, the described dwell time point getting using step S102 is as the start time point of another program fragment, continue to play described program, and obtain the start time point of this program fragment, until described repeated program play signal again detected, obtain the dwell time point of this program fragment, this program fragment is analyzed and repeat playing.Because relevant operation is all identical or similar, embodiments of the invention repeat no more.
Optionally, can obtain the repeat playing number of times that user arranges; The repeat playing number of times arranging according to the described user who gets, the program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.
Please refer to Fig. 2, Fig. 2 is the flow chart of another embodiment of the method play of a kind of repeated program that the present invention proposes.The embodiment of the present invention has been described a kind of method of sound contrast, and the embodiment of the present invention at least comprises:
S201, obtains the audio signal of the user recording of described program fragment.
In specific implementation, by automatic repeat playing pattern or manually repeat playing pattern video segment is carried out in the process of repeat playing, user can imitate the audio signal of the program fragment of repeat playing and record, and records the audio signal of the user recording of described program by the sound-recording function of mobile terminal or PAD.Before recording starts, can send program pause instruction to described terminal, after terminal receives pause instruction, suspend the program fragment of current repeat playing, not affect user recording.
Described mobile terminal or PAD can set up network by wireless WIFI with terminal and be connected, after the audio signal of recording the user recording of described program at described mobile terminal or PAD completes, the audio signal of the user recording of the described program of recording is sent to described terminal by mobile terminal or PAD.
S202, becomes a new program fragment by the video signal integration of the audio signal of the user recording of described program fragment and described program fragment.
In specific implementation, remove the original audio signal of described program fragment, the audio signal of the user recording of described program fragment is mixed in the vision signal of described program fragment.
S203, the new program fragment that described integration is obtained carries out repeat playing.After integration obtains new program fragment, can obtain the repeat playing number of times that user arranges; The repeat playing number of times arranging according to the described user who gets, to carrying out repeat playing with described new program fragment.Simultaneously, user can by control appliance as remote controller to as described in terminal send program play instruction, described terminal stops program fragment described in repeat playing, continue to play described program, and obtain the start time point of another program fragment, until described repeated program play signal again detected, obtain the dwell time point of this program fragment, this fragment is analyzed and repeat playing.Because relevant operation is all identical or similar, embodiments of the invention repeat no more.
Please refer to Fig. 3, Fig. 3 is the structural representation of the terminal of a kind of repeated program broadcasting of embodiment of the present invention proposition, the embodiment of the present invention at least comprises as shown in the figure: very first time acquisition module 301, the second time-obtaining module 302, time determination module 303 and repeat playing module 304, wherein:
Very first time acquisition module 301, in the time program play instruction being detected, obtains the start time point that described program is play.
In specific implementation, user is watching in program process, can send program play instruction as remote controller by control appliance, after terminal receives program play instruction, be switched to this program channel and start broadcast program, the start time point of now can recorded program playing.
The second time-obtaining module 302, if for described repeated program play signal being detected, obtains the dwell time point that described program is play.
In specific implementation, can start repeat playing function by automatic repeat playing pattern or manual repeat playing pattern, and obtain the dwell time point that described program is play, and user can be switched described two kinds of patterns, and system can be given tacit consent under automatic repeat playing pattern.
Optionally, under automatic repeat playing pattern, described the second time-obtaining module 302 comprise as shown in Figure 4 can first signal acquiring unit 421, amplitude judging unit 422, repeat playing signal generation unit 423 and the first dwell time acquiring unit 424, wherein:
First signal acquiring unit 421, the audio signal while broadcasting for obtaining described program.Program, in playing process, produces audio signal, the described audio signal producing can be converted into the frequency spectrum of audio signal, and corresponding sample frequency can be set, as 44KHZ by fast Fourier transform (FFT) algorithm.
Amplitude judging unit 422, audio signal when the described program getting for basis is play, judges whether the spectral amplitude of described audio signal is less than predetermined threshold value.If the spectral amplitude of described audio signal is not less than predetermined threshold value, judge that this program is in sonance, continue broadcast program.
Repeat playing signal generation unit 423, if be less than predetermined threshold value for the spectral amplitude of described audio signal, judges that this program is in silent state, produces described repeated program play signal.
The first dwell time acquiring unit 424, for the described repeated program play signal obtaining according to generation, obtains the dwell time point that described program is play, and stops playing described program, and simultaneously using this time point as program is play start time point next time.
Further, automatically repeat playing pattern can better be processed the program that background sound volume is lower, but for music class or there is the program of noisy background music, the discrimination of audio signal is not high, in this case, can adopt manual watching mode.Or
Optionally, under manual repeat playing pattern, described the second time-obtaining module 302 comprises secondary signal acquiring unit 521 and the second dwell time acquiring unit 522 as shown in Figure 5, wherein:
Secondary signal acquiring unit 521, the repeat playing signal sending for obtaining control appliance.
In specific implementation, user can, by control appliance as " repeat playing " button of remote controller, send repeat playing signal to described control terminal.
The second dwell time acquiring unit 522, stops described program for the repeat playing signal sending according to the described control terminal getting and plays, and obtains the dwell time point that described program is play.
Time determination module 303, for the dwell time point of the start time point of playing according to the described program getting and the described program broadcasting getting, determines the time period that described repeated program is play.
In specific implementation, the dwell time point that the start time point of playing according to the described program getting and the described program getting are play, can accurately locate the time that needs repeat playing program fragment fast.
Repeat playing module 304, for carrying out repeat playing to program fragment corresponding to the time period of playing with described definite described repeated program.
In specific implementation, after program fragment repeat playing corresponding to time period of playing at described and described definite described repeated program completes, the described dwell time point getting using the second time-obtaining module 302 is as the start time point of another program fragment, continue to play described program, and obtain the start time point of this program fragment, until described repeated program play signal again detected, obtain the dwell time point of this program fragment, this program fragment is analyzed and repeat playing.Because relevant operation is all identical or similar, embodiments of the invention repeat no more.
Optionally, described repeat playing module 304 also comprises number of times acquiring unit 641 and the first repeat playing unit 642 as shown in Figure 6, wherein:
Number of times acquiring unit 641, the repeat playing number of times arranging for obtaining user.
The first repeat playing unit 642, for the repeat playing number of times arranging according to the described user who gets, the program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.
Further alternative, described repeat playing module 304 also comprises audio signal acquiring unit 741, audio-video signal integral unit 742 and the second repeat playing unit 743 as shown in Figure 7, wherein:
Audio signal acquiring unit 741, for obtaining the audio signal of user recording of described program fragment.
In specific implementation, by automatic repeat playing pattern or manually repeat playing pattern video segment is carried out in the process of repeat playing, user can imitate the audio signal of the program fragment of repeat playing and record, and records the audio signal of the user recording of described program by the sound-recording function of mobile terminal or PAD.Before recording starts, can send program pause instruction to described terminal, after terminal receives pause instruction, suspend the program fragment of current repeat playing, not affect user recording.
Described mobile terminal or PAD can set up network by wireless WIFI with terminal and be connected, after the audio signal of recording the user recording of described program at described mobile terminal or PAD completes, the audio signal of the user recording of the described program of recording is sent to described terminal by mobile terminal or PAD.
Audio-video signal integral unit 742, for becoming a new program fragment by the video signal integration of the audio signal of the user recording of described program fragment and described program fragment.
In specific implementation, remove the original audio signal of described program fragment, the audio signal of the user recording of described program fragment is mixed in the vision signal of described program fragment.
The second repeat playing unit 743, carries out repeat playing for the new program fragment that described integration is obtained.
In specific implementation, after integration obtains new program fragment, can obtain equally the repeat playing number of times that user arranges; The repeat playing number of times arranging according to the described user who gets, to carrying out repeat playing with described new program fragment.Simultaneously, user can by control appliance as remote controller to as described in terminal send program play instruction, described terminal stops program fragment described in repeat playing, continue to play described program, and obtain the start time point of another program fragment, until described repeated program play signal again detected, obtain the dwell time point of this program fragment, this fragment is analyzed and repeat playing.Because relevant operation is all identical or similar, embodiments of the invention repeat no more.
The embodiment of the present invention has proposed method and the terminal that a kind of repeated program is play.In the time program play instruction being detected, obtain the start time point that described program is play; If described repeated program play signal detected, obtain the dwell time point that described program is play; The dwell time point that the start time point of playing according to the described program getting and the described program getting are play, determines the time period that described repeated program is play; The program fragment corresponding to the time period of playing with described definite described repeated program carries out repeat playing.Adopt the embodiment of the present invention, can position repeat playing program fragment quickly and easily, improve user's experience.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
Unit described in the embodiment of the present invention, can pass through universal integrated circuit, for example CPU(Central Processing Unit, central processing unit), or by ASIC(Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)) realize.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.