Summary of the invention
In view of this, the object of the present invention is to provide a kind of set-top box audio playing method and device, to overcome the problems referred to above, simplify the operating process that set-top box audio is play, reduce resource occupation amount, for user utilizes Set Top Box audio plays, facilitate.
For this reason, openly following technical scheme of the present invention:
A kind of set-top box audio player method, comprising:
Receive the audio frequency playing request that user sends by button, wherein, described button is specially any one in set-top box panel button or remote controller key;
Load general-purpose serial bus USB equipment, and USB device described in initialization;
According to predefined broadcasting order, successively the each audio file in described USB device is play.
Preferably, described according to predefined broadcasting order, successively the each audio file in described USB device is play, specifically comprise:
Search all audio files in described USB device, and set up index for described audio file;
Obtain first audio file of described index point, and using the described audio file obtaining as file to be played;
Described file to be played is decoded;
The file of gained after decoding is carried out to audio frequency output, to realize broadcasting;
Whether the file that judges current broadcasting plays end, if the determination result is YES, the order of loop play in order, utilize described index to obtain next audio file, and using described next audio file as new file to be played, afterwards, go to execution step: described file to be played is decoded.
Preferably, described set-top box audio player method also comprises:
Receive the volume adjusting request that user sends by button, wherein, described button is specially any one in set-top box panel button or remote controller key;
Volume when described audio file is play according to described volume adjusting request is carried out corresponding adjusting.
Preferably, described set-top box audio player method also comprises:
Receive the Audio conversion request that user sends by button, wherein, described button is specially any one in set-top box panel button or remote controller key;
The audio file of current broadcasting is switched to the audio file corresponding with described Audio conversion request, and the audio file corresponding with described Audio conversion request play.
A kind of set-top box audio playing device, comprises the first receiver module, pretreatment module and playing module, wherein:
Described the first receiver module, the audio frequency playing request sending by button for receiving user, wherein, described button is specially any one in set-top box panel button or remote controller key;
Described pretreatment module, for loading USB device, and USB device described in initialization;
Described playing module, for according to predefined broadcasting order, plays the each audio file in described USB device successively.
Preferably, described playing module specifically comprises:
Module set up in index, for searching all audio files of described USB device, and sets up index for described audio file;
Acquisition module, for obtaining first audio file of described index point, and using the described audio file obtaining as file to be played;
Decoder module, for decoding to described file to be played;
Audio frequency output module, for carrying out audio frequency output to the file of gained after decoding, to realize broadcasting;
Whether judge module, play end for the file that judges current broadcasting, and in judged result when being, the order of loop play in order, utilizes described index to obtain next audio file, and using described next audio file as new file to be played, afterwards, trigger described decoder module.
Preferably, described set-top box audio playing device also comprises:
The second receiver module, the volume adjusting request sending by button for receiving user, wherein, described button is specially any one in set-top box panel button or remote controller key;
Volume adjusting module, volume when described audio file is play for the described volume adjusting request of foundation is carried out corresponding adjusting.
Preferably, described set-top box audio playing device also comprises:
The 3rd receiver module, the Audio conversion request sending by button for receiving user, wherein, described button is specially any one in set-top box panel button or remote controller key;
Audio conversion module, for the audio file of current broadcasting being switched to the audio file corresponding with described Audio conversion request, and plays the audio file corresponding with described Audio conversion request.
The set-top box audio player method providing due to the embodiment of the present invention, receive the audio frequency playing request that user sends by set-top box panel button or remote controller key, and when receiving user's audio frequency playing request, load USB device, described USB device is carried out to initialization, and after initialization completes, according to predefined broadcasting order, successively the each audio file in USB device is play.Visible the present invention realizes audio frequency broadcasting need be by television screen, when user need to listen the music in Set Top Box USB device, after uncapping machine top box, directly press the related key on Set Top Box or remote controller, afterwards, Set Top Box is carried out sequential loop broadcasting to the audio frequency in USB device automatically.Thereby the present invention has simplified the operating process that set-top box audio is play, and without by television set, has reduced resource occupation amount, provides convenience for user utilizes Set Top Box audio plays.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
The embodiment of the present invention one discloses a kind of set-top box audio player method, refers to Fig. 1, and the method comprises:
S1: receive the audio frequency playing request that user sends by button, wherein, described button is specially any one in set-top box panel button or remote controller key.
Particularly, the function setting that in advance set top box front panel respective keys or remote controller respective keys is carried out to audio frequency broadcasting, after Set Top Box starts, when user presses the button of setting, realized to Set Top Box and sent music order (or request), Set Top Box is received after this order, triggers and carries out subsequent load, initialization USB device, set up the operations such as index, audio frequency output, finally realize audio frequency and play.
S2: load general-purpose serial bus USB equipment, and USB device described in initialization.
Receive after user's audio frequency play command, first Set Top Box carries out the pretreatment operation before a series of audio frequency are play, for example, load and initialization USB device, starts the follow-up audio decoder using during to audio decoder etc.USB device specifically comprises U-disk(U dish) etc. can be connected to the memory device of the USB interface of described Set Top Box.
S3: according to predefined broadcasting order, successively the each audio file in described USB device is play.
As shown in Figure 2, this step S3 specifically comprises:
S31: search all audio files in described USB device, and set up index for described audio file.
S32: obtain first audio file of described index point, and using the described audio file obtaining as file to be played.
S33: described file to be played is decoded.
Wherein, in the present embodiment, specifically use the audio decoder in Set Top Box to realize decoding.
S34: the file of gained after decoding is carried out to audio frequency output, to realize broadcasting.
S35: whether the file that judges current broadcasting plays end, if the determination result is YES, performs step S36.
S36: the order of loop play in order, utilizes described index to obtain next audio file, and using described next audio file as new file to be played, afterwards, goes to execution step S33.
Particularly, in the present embodiment, with sequential loop, play the order broadcasting order of (user's nonintervention broadcasting) by default, when user presses audio frequency broadcasting button default on set top box front panel or remote controller, Set Top Box utilizes above-mentioned steps S31 to S36 realization to carry out sequential loop broadcasting to the each audio file in USB device.Wherein, the broadcasting order of acquiescence is not limited to above sequential loop and plays order, specifically implements when of the present invention, can according to actual demand, to the audio file of acquiescence, play order by those skilled in the art and set.
It should be noted that, the index in the present embodiment possesses the function of playlist.Receive after user's audio frequency play command, Set Top Box is set up index according to the precedence of each audio file in USB device, afterwards, obtain first audio file of this index point as first broadcast file, follow-up remaining each audio file of playing successively, and when last audio file of index point is play end, re-circulate to first audio file until user plays and intervenes audio frequency.
To sum up, the set-top box audio player method providing due to the embodiment of the present invention, receive the audio frequency playing request that user sends by set-top box panel button or remote controller key, and when receiving user's audio frequency playing request, load USB device, described USB device is carried out to initialization, and after initialization completes, according to predefined broadcasting order, successively the each audio file in USB device is play.Visible the present invention realizes audio frequency broadcasting need be by television screen, when user need to listen the music in Set Top Box USB device, after uncapping machine top box, directly press the related key on Set Top Box or remote controller, afterwards, Set Top Box is carried out sequential loop broadcasting to the audio frequency in USB device automatically.Thereby the present invention has simplified the operating process that set-top box audio is play, and without by television set, has reduced resource occupation amount, provides convenience for user utilizes Set Top Box audio plays.
Embodiment bis-
The embodiment of the present invention two continues the set-top box audio player method in embodiment mono-to supplement and perfect, and the another kind of flow process of set-top box audio player method is provided, and it,, except comprising above step S1, S2, S3, also comprises:
Receive the volume adjusting request that user sends by button, wherein, described button is specially any one in set-top box panel button or remote controller key; Volume when described audio file is play according to described volume adjusting request is carried out corresponding adjusting;
Receive the Audio conversion request that user sends by button, wherein, described button is specially any one in set-top box panel button or remote controller key; The audio file of current broadcasting is switched to the audio file corresponding with described Audio conversion request, and the audio file corresponding with described Audio conversion request play.
The intervention functions that the present embodiment two provides user to play audio frequency, particularly, in advance respective keys on set top box front panel or remote controller is carried out the function setting of volume adjusting and Audio conversion, when user need to regulate volume, switching song, by pressing corresponding function button, can realize above-mentioned functions.For example, user is regulated volume, by upper and lower key, is switched the song of current broadcasting etc. by the right and left key of remote controller.
Embodiment tri-
The embodiment of the present invention three discloses a kind of set-top box audio playing device, and it is corresponding with embodiment mono-and the disclosed set-top box audio player method of embodiment bis-.
First, corresponding to the flow process of the disclosed set-top box audio player method of embodiment mono-, a kind of structure of the present embodiment three open set-top box audio playing devices, refers to Fig. 3, and it comprises the first receiver module 100, pretreatment module 200 and playing module 300.
The first receiver module 100, the audio frequency playing request sending by button for receiving user, wherein, described button is specially any one in set-top box panel button or remote controller key.
Pretreatment module 200, for loading USB device, and USB device described in initialization.
Playing module 300, for according to predefined broadcasting order, plays the each audio file in described USB device successively.
Particularly, playing module 300 specifically comprises that index sets up module, acquisition module, decoder module, audio frequency output module and judge module.Wherein, module set up in index, for searching all audio files of described USB device, and sets up index for described audio file; Acquisition module, for obtaining first audio file of described index point, and using the described audio file obtaining as file to be played; Decoder module, for decoding to described file to be played; Audio frequency output module, for carrying out audio frequency output to the file of gained after decoding, to realize broadcasting; Whether judge module, play end for the file that judges current broadcasting, and in judged result when being, the order of loop play in order, utilizes described index to obtain next audio file, and using described next audio file as new file to be played, afterwards, trigger described decoder module.
Corresponding to the flow process of the set-top box audio player method in embodiment bis-, the present embodiment three continues the another kind of structure of open set-top box audio playing device, refer to Fig. 4, it also comprises the second receiver module 400, volume adjusting module 500, the 3rd receiver module 600 and Audio conversion module 700 except comprising the first receiver module 100, pretreatment module 200 and playing module 300.
The second receiver module 400, the volume adjusting request sending by button for receiving user, wherein, described button is specially any one in set-top box panel button or remote controller key.
Volume adjusting module 500, volume when described audio file is play for the described volume adjusting request of foundation is carried out corresponding adjusting.
The 3rd receiver module 600, the Audio conversion request sending by button for receiving user, wherein, described button is specially any one in set-top box panel button or remote controller key.
Audio conversion module 700, for the audio file of current broadcasting being switched to the audio file corresponding with described Audio conversion request, and plays the audio file corresponding with described Audio conversion request.
For the disclosed set-top box audio playing device of the embodiment of the present invention three, because it is corresponding with above embodiment mono-and the disclosed set-top box audio player method of embodiment bis-, so that describes is fairly simple, relevant similarity refers to the explanation of set-top box audio player method part in embodiment mono-and embodiment bis-, no longer describes in detail herein.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
While for convenience of description, describing above device, system, with function, be divided into various modules or unit is described respectively.Certainly, when implementing the application, the function of each module or unit can be realized in same or multiple software and/or hardware.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add essential general hardware platform by software and realizes.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the application or embodiment.
Finally, also it should be noted that, in this article, such as first, second, third and the fourth class relational terms be only used for an entity or operation to separate with another entity or operating space, and not necessarily require or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.