CN104462276A - Audio playing method and device for desktop widgets - Google Patents

Audio playing method and device for desktop widgets Download PDF

Info

Publication number
CN104462276A
CN104462276A CN201410693067.8A CN201410693067A CN104462276A CN 104462276 A CN104462276 A CN 104462276A CN 201410693067 A CN201410693067 A CN 201410693067A CN 104462276 A CN104462276 A CN 104462276A
Authority
CN
China
Prior art keywords
audio
frequency information
frequency
server
preset interface
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.)
Granted
Application number
CN201410693067.8A
Other languages
Chinese (zh)
Other versions
CN104462276B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201410693067.8A priority Critical patent/CN104462276B/en
Publication of CN104462276A publication Critical patent/CN104462276A/en
Application granted granted Critical
Publication of CN104462276B publication Critical patent/CN104462276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses an audio playing method and device for desktop widgets, and belongs to the technical field of computers. The method includes the steps that when it is detected that the desktop widgets are started, a first preset interface provided by an audio client terminal is called, and an audio information request is transmitted to an audio server; when an audio information list returned by the audio server is received, any audio information in the audio information list is displayed on an interface of the desktop widgets; when playing operation of the currently-displayed audio information is detected, according to audio identification of the currently-displayed audio information, a second preset interface provided by the audio client terminal is called, corresponding audio data streams are obtained, and the second preset interface is used for obtaining the audio data streams; when the audio data streams returned by the audio server are received, corresponding audios are played. By means of the audio playing method and device, the audio data streams are obtained through the interfaces to play the audios. When the audios are played, the audio playing operation cost and the audio playing time cost are saved. In this way, the audio playing operation efficiency is higher.

Description

A kind of audio frequency playing method for desktop widget and device
Technical field
The present invention relates to field of computer technology, particularly a kind of audio frequency playing method for desktop widget and device.
Background technology
Along with the fast development of computer technology, the user of player plays audio frequency is used to get more and more.Such as, user can provided with player, browses the audio list loaded in player, therefrom screens the audio frequency liked and play.Wherein, after audio frequency is downloaded to this locality, the auxiliary function micro-(Widget) by player is play local audio, user can be facilitated to control audio frequency broadcasting by Widget.
Realizing in process of the present invention, inventor finds that said method at least exists following problem:
Due to when audio plays, need first to install music player, the auxiliary function Widget re-using player plays audio frequency, makes the process more complicated of audio plays.In addition, because Widget can only play the local audio frequency downloaded, the broadcasting scene of application is more single.Therefore, the dirigibility of audio plays is poor.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of audio frequency playing method for desktop widget and device.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, provide a kind of audio frequency playing method for desktop widget, the method comprises:
When detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by described audio server according to described audio-frequency information request, return audio-frequency information list, described audio-frequency information list at least comprises audio frequency title and audio identification, and described first preset interface is for obtaining audio-frequency information;
When receiving the audio-frequency information list that described audio server returns, desktop widget interface shows the arbitrary audio-frequency information in described audio-frequency information list;
When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of described current display, call the second preset interface that described audio client provides, obtain corresponding audio data stream, described second preset interface is for obtaining audio data stream;
When receiving the audio data stream that described audio server returns, play corresponding audio frequency.
In conjunction with first aspect, in the first possible implementation of first aspect, described desktop widget interface comprises Audio conversion option,
Correspondingly, the described arbitrary audio-frequency information shown on desktop widget interface in described audio-frequency information list, comprising:
When detect to described song handoff options choose operation time, the arbitrary audio-frequency information beyond the audio-frequency information obtaining described current display from described audio-frequency information list shows.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, described when receiving the audio data stream that described audio server returns, after playing corresponding audio frequency, also comprise:
When the play operation to similar audio being detected, call the 3rd preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, return the audio-frequency information similar to current audio plays, described 3rd preset interface is for obtaining the audio data stream similar to current audio plays.
In conjunction with first aspect, in the third possible implementation of first aspect, described when receiving the audio data stream that described audio server returns, after playing corresponding audio frequency, also comprise:
When detecting the collection operation to current audio plays, call the 4th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, the audio frequency of current broadcasting is added to audio collection list, and described 4th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
In conjunction with first aspect, in the 4th kind of possible implementation of first aspect, described when receiving the audio data stream that described audio server returns, after playing corresponding audio frequency, also comprise:
If the audio frequency of current broadcasting is the audio frequency in audio collection list, and detect operation is removed to current audio plays, call the 5th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, removed from audio collection list by the audio frequency of current broadcasting, described 5th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
In conjunction with first aspect, in the 5th kind of possible implementation of first aspect, described when receiving the audio data stream that described audio server returns, before playing corresponding audio frequency, also comprise:
Call the 6th preset interface that described audio client provides, the behavioral data of user's audio plays is sent to described audio server, described behavioral data at least comprises the frequency that user switches audio frequency, the audio-frequency information of the audio-frequency information that user removes and user's collection, by described audio server according to described behavioral data, determine the audio frequency recommended, return the audio-frequency information of recommendation, described 6th preset interface is used for the behavioral data sending user's audio plays to described audio server.
According to the second aspect of disclosure embodiment, provide a kind of audio playing apparatus for desktop widget, this device comprises:
First sending module, for when detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by described audio server according to described audio-frequency information request, return audio-frequency information list, described audio-frequency information list at least comprises audio frequency title and audio identification, and described first preset interface is for obtaining audio-frequency information;
Display module, for when receiving the audio-frequency information list that described audio server returns, desktop widget interface shows the arbitrary audio-frequency information in described audio-frequency information list;
Acquisition module, for when the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of described current display, call the second preset interface that described audio client provides, obtain corresponding audio data stream, described second preset interface is for obtaining audio data stream;
Playing module, for when receiving the audio data stream that described audio server returns, plays corresponding audio frequency.
In conjunction with second aspect, in the first possible implementation of second aspect, described desktop widget interface comprises Audio conversion option,
Correspondingly, described display module, for when detect to described song handoff options choose operation time, the arbitrary audio-frequency information beyond the audio-frequency information obtaining described current display from described audio-frequency information list shows.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, this device also comprises:
Second sending module, for when the play operation to similar audio being detected, call the 3rd preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, return the audio-frequency information similar to current audio plays, described 3rd preset interface is for obtaining the audio data stream similar to current audio plays.
In conjunction with second aspect, in the third possible implementation of second aspect, this device also comprises:
3rd sending module, for when detecting the collection operation to current audio plays, call the 4th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, the audio frequency of current broadcasting is added to audio collection list, and described 4th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
In conjunction with second aspect, in the 4th kind of possible implementation of second aspect, this device also comprises:
4th sending module, for being the audio frequency in audio collection list at the audio frequency of current broadcasting, and detect to current audio plays remove operation time, call the 5th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, removed from audio collection list by the audio frequency of current broadcasting, described 5th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
In conjunction with second aspect, in the 5th kind of possible implementation of second aspect, this device also comprises:
5th sending module, for calling the 6th preset interface that described audio client provides, the behavioral data of user's audio plays is sent to described audio server, described behavioral data at least comprises the audio-frequency information of user switches the frequency of audio frequency, user removes audio-frequency information and user's collection, by described audio server according to described behavioral data, determine the audio frequency recommended, return the audio-frequency information of recommendation, described 6th preset interface is used for the behavioral data sending user's audio plays to described audio server.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By calling the first preset interface that audio client provides, send audio-frequency information request to audio server.When receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, when receiving the audio data stream that audio server returns, play corresponding audio frequency.Due to when audio plays, do not need user from line search and download audio frequency, thus making user can play the audio frequency of online real-time update easily, saving running cost and the time cost of audio plays.Therefore, the flow process of audio plays is comparatively simple, and operating efficiency is higher.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of audio frequency playing method process flow diagram for desktop widget according to an exemplary embodiment.
Fig. 2 is a kind of audio frequency playing method process flow diagram for desktop widget according to an exemplary embodiment.
Fig. 3 is the interface schematic diagram of a kind of desktop widget according to an exemplary embodiment.
Fig. 4 is the structural representation of a kind of audio playing apparatus for desktop widget according to an exemplary embodiment.
Fig. 5 is the structural representation of a kind of audio playing apparatus for desktop widget according to an exemplary embodiment.
Fig. 6 is the structural representation of a kind of audio playing apparatus for desktop widget according to an exemplary embodiment.
Fig. 7 is the structural representation of a kind of audio playing apparatus for desktop widget according to an exemplary embodiment.
Fig. 8 is the structural representation of a kind of audio playing apparatus for desktop widget according to an exemplary embodiment.
Fig. 9 is the block diagram of a kind of terminal according to an exemplary embodiment.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiments provide a kind of audio frequency playing method for desktop widget, see Fig. 1, the method flow that the present embodiment provides comprises:
101, when detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by audio server according to audio-frequency information request, return audio-frequency information list, audio-frequency information list at least comprises audio frequency title and audio identification, and the first preset interface is for obtaining audio-frequency information.
Wherein, audio client can be arbitrary client providing audio service, and the present embodiment does not do concrete restriction to the form of audio client.Audio server provides data, services for this audio client, can for storing the server of all kinds audio resource, and the content that the present embodiment does not store audio server does concrete restriction.By the preset interface that audio client provides, between desktop widget and audio server, can data interaction be carried out, thus realize playing audio frequency.
102, when receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.
103, when the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, the second preset interface is for obtaining audio data stream.
104, when receiving the audio data stream that audio server returns, corresponding audio frequency is play.
The method that the embodiment of the present invention provides, by calling the first preset interface that audio client provides, sends audio-frequency information request to audio server.When receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, when receiving the audio data stream that audio server returns, play corresponding audio frequency.Due to when audio plays, do not need user from line search and download audio frequency, thus making user can play the audio frequency of online real-time update easily, saving running cost and the time cost of audio plays.Therefore, the flow process of audio plays is comparatively simple, and operating efficiency is higher.
As a kind of embodiment, desktop widget interface comprises Audio conversion option, correspondingly, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list, comprising:
When detect to Audio conversion option choose operation time, the arbitrary audio-frequency information beyond the audio-frequency information obtaining current display from audio-frequency information list shows.
As a kind of embodiment, when receiving the audio data stream that audio server returns, after playing corresponding audio frequency, also comprise:
When the play operation to similar audio being detected, call the 3rd preset interface that audio client provides, the audio-frequency information of current broadcasting is sent to audio server, by the audio-frequency information of audio server according to current broadcasting, return the audio-frequency information similar to current audio plays, the 3rd preset interface is for obtaining the audio data stream similar to current audio plays.
As a kind of embodiment, when receiving the audio data stream that audio server returns, after playing corresponding audio frequency, also comprise:
When detecting the collection operation to current audio plays, call the 4th preset interface that audio client provides, the audio-frequency information of current broadcasting is sent to audio server, by the audio-frequency information of audio server according to current broadcasting, the audio frequency of current broadcasting is added to audio collection list, and the 4th preset interface is used for the audio-frequency information sending current broadcasting to audio server.
As a kind of embodiment, when receiving the audio data stream that audio server returns, after playing corresponding audio frequency, also comprise:
If the audio frequency of current broadcasting is the audio frequency in audio collection list, and detect operation is removed to current audio plays, call the 5th preset interface that audio client provides, the audio-frequency information of current broadcasting is sent to audio server, by the audio-frequency information of audio server according to current broadcasting, removed from audio collection list by the audio frequency of current broadcasting, the 5th preset interface is used for the audio-frequency information sending current broadcasting to audio server.
As a kind of embodiment, when receiving the audio data stream that audio server returns, before playing corresponding audio frequency, also comprise:
Call the 6th preset interface that audio client provides, the behavioral data of user's audio plays is sent to audio server, behavioral data at least comprises the frequency that user switches audio frequency, the audio-frequency information of the audio-frequency information that user removes and user's collection, by audio server according to behavioral data, determine the audio frequency recommended, return the audio-frequency information of recommendation, the 6th preset interface is used for the behavioral data sending user's audio plays to audio server.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Embodiments provide a kind of audio frequency playing method for desktop widget, see Fig. 2, in conjunction with the content in above-described embodiment, take executive agent as terminal be example, be illustrated the method that the present embodiment provides, the method flow that the present embodiment provides comprises:
201, when detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by audio server according to audio-frequency information request, return audio-frequency information list, audio-frequency information list at least comprises audio frequency title and audio identification, and the first preset interface is for obtaining audio-frequency information.
May be configured with multiple preset interface of audio client in this desktop widget, by calling preset interface, under the prerequisite without the need to starting audio client, realizing some functions of original audio client.In addition, audio frequency can be song, sound bite and talking book etc., and the present embodiment does not do concrete restriction to content corresponding to audio frequency and form.
When detecting that desktop widget starts, the first preset interface that audio client provides can be called, sending audio-frequency information request to audio server.Audio-frequency information list, after receiving audio-frequency information request, according to the list of audio-frequency information request determination audio-frequency information, thus can be back to terminal by audio server.Wherein, can comprise audio frequency title and audio identification in audio-frequency information list, the present embodiment does not do concrete restriction to the content in audio-frequency information list.Such as, take audio frequency as song be example.Audio-frequency information list can be the song information list of the types such as popular list, classification scheme, regularly special topic, editor's operation and personalized recommendation.Wherein, audio server can carry out real-time update to song information list, thus ensure to comprise up-to-date song in song information list, achieve hot music real-time update, the misery that song looks for song is searched except removing from, just can hear up-to-date popular song at any time, that is to say, can user search be avoided and download the loaded down with trivial details flow process of latest songs.By the first preset interface, terminal can obtain the audio-frequency information in audio-frequency information list, and the present embodiment does not do concrete restriction to this yet.
It should be noted that, because the audio types of each user's preferences may not be identical, therefore, when sending audio-frequency information request to audio server, can carry user profile corresponding to audio client in audio-frequency information request, thus server is after receiving the audio-frequency information request comprising user profile, can according to user profile, return corresponding audio-frequency information list, the present embodiment does not do concrete restriction to this.Such as, take user profile as the user account number that user uses audio client corresponding be example.Wherein, desktop widget can associate with user account in advance.When detecting that desktop widget starts, the audio-frequency information request of carrying user account can be sent to audio server, thus audio server according to the user account in audio-frequency information request, can determine the history broadcast information of this user.According to the history broadcast information of this user, determine the audio frequency that this user may like, and then return corresponding audio-frequency information list.
In addition, due to by the first preset interface, can the data that return of reception server, thus when using desktop widget audio plays, except playing local audio frequency, the data that can also return according to server, play corresponding audio frequency.Therefore, the desktop widget that the present embodiment provides can be applied to more plays scene.
202, when receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.
The present embodiment does not do concrete restriction to the mode of the arbitrary audio-frequency information shown on desktop widget interface in audio-frequency information list, includes but not limited to: from audio-frequency information list, select an audio-frequency information; Desktop widget interface shows the audio frequency title in this audio-frequency information.
Such as, as shown in Figure 3, the central authorities at desktop widget interface shown in Fig. 3 the title of this audio frequency can be shown.
It should be noted that, in audio-frequency information except comprising audio frequency title and audio identification, can also comprise out of Memory, the present embodiment does not do concrete restriction to the content comprised in audio-frequency information.Such as, take audio frequency as song be example.In song information except comprising song title, song duration and singer informations corresponding to song can also be comprised.Correspondingly, when desktop widget interface shows audio-frequency information, except display audio frequency title, can also show the out of Memory in audio-frequency information, the present embodiment does not do concrete restriction to this.Such as, take audio frequency as song, comprise singer's head portrait with the singer informations that song is corresponding and singer's name is called example.Broadcast button in the desktop widget interface shown in Fig. 3 can show singer's head portrait corresponding to song and singer's title, and can in information such as other local display song durations at interface.
In addition, because user is when using desktop widget audio plays, may need to switch the audio frequency of current broadcasting.Therefore, can also comprise Audio conversion option in desktop widget interface, to make user switch audio frequency, the present embodiment does not do concrete restriction to this.Such as, as shown in Figure 3, the handoff options switching to an audio frequency and the handoff options switching to next audio frequency can be comprised in desktop widget interface.Conveniently user switches audio frequency, terminal inner also can arrange gyroscope, pass through gyroscope, terminal can detect the action that terminal is rocked at family, thus according to the rocking action detected, by the Audio conversion of current broadcasting to another audio frequency, the present embodiment does not do concrete restriction to this.
Correspondingly, about the mode of the arbitrary audio-frequency information shown on desktop widget interface in audio-frequency information list, the present embodiment does not do concrete restriction to this, include but not limited to: when detect to Audio conversion option choose operation time, the arbitrary audio-frequency information beyond the audio-frequency information obtaining current display from audio-frequency information list shows.
By showing audio-frequency information, user can be allowed to know, and current broadcasting is any audio frequency, thus facilitates user to carry out subsequent operation.Such as, take audio frequency as song be example.User, by the song information of display, understands the title of current played songs.When user is according to song title, when confirming self not like this song, can switch to next song.
203, when the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, the second preset interface is for obtaining audio data stream.
Can comprise Play Control button in desktop widget interface, this Play Control button is used for controlling the broadcasting of audio frequency and time-out, and user plays audio frequency by clicking Play Control button, and the present embodiment does not do concrete restriction to this.Wherein, terminal obtains audio data stream by the second preset interface, and the present embodiment does not do concrete restriction to this.Terminal, by the second preset interface, can obtain audio data stream from audio server, thus makes the application scenarios comparatively horn of plenty of broadcasting.
Such as, for the audio frequency play for song.As shown in Figure 3, when the broadcast button that user clicks in Fig. 3 being detected, can send to audio server the request obtaining song data stream.Wherein, the song identity of the song information of current display can be carried in the request that terminal sends to audio server.Audio server upon receiving a request, can be determined corresponding song files, thus return song data stream corresponding to this song files to terminal according to the song identity in request.Terminal, can the song data stream that returns of audio reception server by calling the second preset interface of audio client.
204, when receiving the audio data stream that audio server returns, corresponding audio frequency is play.
The present embodiment is not to when receiving the audio data stream that audio server returns, and the mode playing corresponding audio frequency does concrete restriction, includes but not limited to: decode to the audio data stream received, and according to decoded result, plays corresponding audio frequency.
Due in above-mentioned steps 201 in this step 204, user is by carrying out play operation to the audio-frequency information of current display, can play audio frequency, thus avoid user in the past when audio plays, need first search and download audio frequency, again to the process that the audio frequency downloaded is play, and then shorten the operating process of user's audio plays, make the process hommization more of audio plays.
It should be noted that, due to after receiving the audio data stream that audio server returns, usually can store in local temporary files, to facilitate broadcasting.In order to save storage space, when an audio frequency finishes, and switch to next audio frequency, a upper voice data finished can be deleted from temporary file, the present embodiment does not do concrete restriction to this.
In order to make the properer user's request of audio frequency returned, terminal also can call the 6th preset interface that audio client provides, the behavioral data of user's audio plays is sent to audio server, by audio server according to behavioral data, determine the audio frequency recommended, return the audio-frequency information of recommendation, the present embodiment does not do concrete restriction to this.Wherein, the behavioral data of user's audio plays at least comprises the audio-frequency information that user switches the frequency of audio frequency, audio-frequency information that user removes and user's collection, and the present embodiment does not do concrete restriction to the content comprised in behavioral data.Terminal sends the behavioral data of user's audio plays to audio server by the 6th preset interface, the present embodiment does not do concrete restriction to this yet.
Certainly, except sent the behavioral data of user audio plays by terminal to server except, the behavioral data of user can also be collected voluntarily by server, correspondingly with user ID to preserve.Server carries out data analysis to behavioral data, according to analysis result, obtains the interested audio types of user, thus determines the audio frequency of recommendation, and return the audio-frequency information of recommendation, the present embodiment does not do concrete restriction to this.Wherein, the user account number that user ID can use audio client corresponding for user, the present embodiment does not do concrete restriction to this yet.
In addition, the contents such as style, artist's type and audio frequency keyword that the interested audio types of user can be partial to according to user are determined, the present embodiment does not do concrete restriction to this.Interest index may be used for weighing user to the fancy grade of certain audio types, and this user can calculate according to the behavioral data of user the interest index of different audio types.Such as, terminal according to audio plays included in behavioral data and can collect audio frequency, calculates the interest index of user under often kind of audio types.
Such as, take audio frequency as song be example.If according to the behavioral data of user's played songs, determine that the song interest index of user to a certain style is lower, then can recommend the song of other style beyond this style to user.Such as, if switch the frequency of song according to user, the song information of the song information that user removes and user's collection, determine that the song interest index of user to rock and roll style is lower, then show that user may be not too interested in the song of rock and roll style, thus the song of other style beyond rock and roll style can be recommended to user.
Or, if according to the behavioral data of user's played songs, determine that the song interest index of user to a certain singer is lower, show that user may be not too interested in the song of this singer, then can recommend the song of other singer beyond this singer to user.
Otherwise, if user often collects the song of a certain style or a certain singer, then can determine that the song interest index of user to this style or this singer is higher, then can recommend the song of this style or this singer to user.Such as, if determine, the interest index of user to country song is higher, then can recommend the song of country genre to user.Or if determine, the interest index of user to the song of singer A is higher, then can recommend the song of singer A to user.
Audio server, after determining the audio frequency recommended, can return the audio-frequency information of recommendation to terminal.Terminal, after receiving the recommendation of audio information that audio server returns, can show the audio-frequency information of recommendation on desktop widget interface.When the play operation to the audio-frequency information recommended being detected, according to the audio identification of recommendation of audio information, calling the second preset interface that audio client provides, obtaining corresponding audio data stream.When receiving the audio data stream that audio server returns, play the audio frequency recommended.By the behavioral data according to user's audio plays, user can be allowed to play the audio frequency self liked easily, thus avoid user when audio plays, by first inputting keyword search audio frequency, select again to need the audio frequency play to carry out the loaded down with trivial details playing flow such as playing, improve the experience of user's audio plays.Further, server or terminal can carry out constantly utilizing the behavioral data upgraded in audio frequency playing process user, determine the interested music type of user, to carry out audio frequency recommendation, along with user listens to increasing of frequency, also the music demand of user individual can be agreed with more and more accurately, can more accurately for user recommends.In addition, because user may need the similar audio listening to current audio plays.Therefore, conveniently user listens to similar audio, can also comprise similar audio play options in desktop widget interface, and the present embodiment does not do concrete restriction to this.Based on foregoing, after this step is finished, the present embodiment additionally provides a kind of method play similar audio, and concrete grammar process refers to subsequent step.
205, when the play operation to similar audio being detected, call the 3rd preset interface that audio client provides, the audio-frequency information of current broadcasting is sent to audio server, by the audio-frequency information of audio server according to current broadcasting, return the audio-frequency information similar to current audio plays, the 3rd preset interface is for obtaining the audio data stream similar to current audio plays.
Wherein, user is by clicking the similar audio play options in desktop widget interface, and play the similar audio of current audio plays, the present embodiment does not do concrete restriction to this.When the play operation to similar audio being detected, calling the 3rd preset interface that audio client provides, sending the audio-frequency information of current broadcasting to audio server.After audio server receives the audio-frequency information of current broadcasting, according to the audio-frequency information of current broadcasting and similarity algorithm, similar audio can be selected from the audio database of audio server.
Such as, take audio frequency as song be example.Audio server is after the song information receiving current broadcasting, and according to song information and the similarity algorithm of current broadcasting, calculating this song has the possibility of 80% similar to song A, and calculating this song has the possibility of 20% similar to song B.Wherein, similarity can comprise style similarity, lyrics similarity etc., and the present embodiment does not do concrete restriction to this.By carrying out similarity analysis to song tracks, the style similarity between song can be determined.By carrying out similarity analysis to song lyrics text, the similarity between song lyrics can be determined.For often kind of similarity arranges weight, superpose after often kind of similarity is multiplied by weight, thus possibility similar between song can be calculated.Because this song has the possibility of 80% similar to song A, thus song A can be selected from the song database of audio server, as the song similar to this song.
Audio server is after returning the audio-frequency information similar to current audio plays to terminal, and terminal can the audio-frequency information similar to current audio plays that return of audio reception server, and desktop widget interface shows this similar audio information.When the play operation to this similar audio information being detected, according to the audio identification of this similar audio information, calling the 3rd preset interface that audio client provides, obtaining corresponding audio data stream.When receiving the audio data stream that audio server returns, play the audio frequency recommended.
By playing the similar audio frequency of present video, user can be allowed to listen to similar audio frequency easily, thus avoid when user hear one self like audio frequency time, if desired listen similar audio frequency, go again to search and the process downloaded, and then improve the experience of user's audio plays.
It should be noted that, because user may also need the audio frequency to liking to collect, playing to facilitate next time.Therefore, the present embodiment additionally provides a kind of method of collecting audio frequency, the method includes but not limited to: when detecting the collection operation to current audio plays, calling the 4th preset interface that audio client provides, sending the audio-frequency information of current broadcasting to audio server.The audio frequency of current broadcasting, after the audio-frequency information receiving current broadcasting, according to the audio-frequency information of current broadcasting, can be added to audio collection list by audio server.Wherein, can comprise the option for collecting audio frequency in desktop widget interface, user is by clicking the option of this collection audio frequency, and can collect the audio frequency of current broadcasting, the present embodiment does not do concrete restriction to this.Terminal sends the audio-frequency information of current broadcasting to audio server by the 4th preset interface, the present embodiment does not do concrete restriction to this yet.
It should be noted that, because different user may correspond to different audio collection lists, audio server side can be preserved the audio collection list of each user.Correspondingly, after terminal detects the collection operation to current audio plays, when sending the audio-frequency information of current broadcasting to audio server, user profile corresponding to audio client can be sent to server simultaneously, thus audio server is after the audio-frequency information receiving current broadcasting, can according to the audio-frequency information of current broadcasting, the audio frequency of current broadcasting is added to the audio collection list that this user profile is corresponding, the present embodiment does not do concrete restriction to this.
Such as, take audio frequency as song, user profile corresponding to audio client is user account number is example.As shown in Figure 3, when user likes the song of current broadcasting, user is by clicking the option of puting into collection in Fig. 3.When terminal detect user click this put into collection option time, the 4th preset interface that audio client provides can be called, the song information of current broadcasting is sent to audio server, as song title or song identity etc., and send user account number corresponding to audio client to audio server simultaneously.Audio server is after the audio-frequency information receiving current broadcasting and user account number, can according to the audio-frequency information of current broadcasting, the audio frequency of current broadcasting is added to the audio collection list that this user account number is corresponding, as the audio frequency title of current broadcasting being added to audio collection list corresponding to this user account number.
Be added to audio collection list by audio frequency user collected, the follow-up audio frequency listening to self collection of user can be facilitated, avoid user to go again to search, thus improve Consumer's Experience.
Correspondingly, because user may also need the audio frequency to having puted into collection to remove.Therefore, the present embodiment additionally provides a kind of method removing collection audio frequency, the method includes but not limited to: if the audio frequency of current broadcasting is the audio frequency in audio collection list, and detect operation is removed to current audio plays, call the 5th preset interface that audio client provides, send the audio-frequency information of current broadcasting to audio server.The audio frequency of current broadcasting, after the audio-frequency information receiving current broadcasting, according to the audio-frequency information of current broadcasting, removes by audio server from audio collection list.Wherein, can comprise the option for removing collection audio frequency in desktop widget interface, user is by clicking the option that this removes collection audio frequency, and the audio frequency of current broadcasting can be removed from audio collection list, the present embodiment does not do concrete restriction to this.Terminal sends the audio-frequency information of current broadcasting to audio server by the 5th preset interface, the present embodiment does not do concrete restriction to this yet.
It should be noted that, because whether user needs the audio frequency knowing current broadcasting to put into collection.Therefore, when playing audio frequency, this audio frequency can be inquired about from server whether in audio collection list.If the audio frequency of current broadcasting is in audio collection list, then show in desktop widget interface for representing that present video has added the mark of audio collection list.If the audio frequency of current broadcasting is not in audio collection list, then can show in desktop widget interface for representing that present video does not add the mark of audio collection list, the present embodiment does not do concrete restriction to this.
In addition, because different user may correspond to different audio collection lists, audio server side can be preserved the audio collection list of each user.Correspondingly, terminal detect to current audio plays remove operation after, when sending the audio-frequency information of current broadcasting to audio server, user profile corresponding to audio client can be sent to server simultaneously, thus audio server is after the audio-frequency information receiving current broadcasting, can according to the audio-frequency information of current broadcasting, removed from audio collection list corresponding to this user profile by the audio frequency of current broadcasting, the present embodiment does not do concrete restriction to this.
Such as, take audio frequency as song, user profile corresponding to audio client is user account number is example.As shown in Figure 3, when user wants the song of current broadcasting to remove from song collection list, user removes the option of collection song in Fig. 3 by clicking.When terminal detect user click this remove collection song choices time, the 5th preset interface that audio client provides can be called, the song information of current broadcasting is sent to audio server, as song title or song identity etc., and send user account number corresponding to audio client to audio server simultaneously.Audio server is after the song information receiving current broadcasting and user account number, can according to the song information of current broadcasting, the song of current broadcasting is removed from song collection list corresponding to this user account number, as the song title of current broadcasting and song identity removed from song collection list corresponding to this user account number.
In addition, because user may also need to play collecting audio frequency.Therefore, the present embodiment additionally provides a kind of method play collection audio frequency, the method includes but not limited to: when detect to collection audio frequency play operation time, call the 7th preset interface that audio client provides, the request of collection audio-frequency information is sent to audio server, by audio server according to the request of collection audio-frequency information, return audio collection list; When receiving the audio collection list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio collection list; When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, calling the 8th preset interface that audio client provides, obtaining corresponding audio data stream; When receiving the audio data stream that audio server returns, play corresponding audio frequency.Wherein, at least comprise audio frequency title and audio identification in audio collection list, the present embodiment does not do concrete restriction to this.The audio-frequency information that terminal returns by the 7th preset interface acquisition audio server, the audio data stream returned by the 8th preset interface acquisition audio server, the present embodiment does not do concrete restriction to this.
It should be noted that, because different user may correspond to different audio collection lists, audio server side can be preserved the audio collection list of each user.Correspondingly, after terminal detects the operation of play collection audio frequency, when sending collection audio-frequency information request to audio server, user profile corresponding to audio client can be sent to server simultaneously, thus audio server is receiving after audio server transmission collection audio-frequency information request and user profile, according to user profile, can determine the audio collection list of this user, and the audio collection list of this user is returned, the present embodiment does not do concrete restriction to this.
The method that the embodiment of the present invention provides, by calling the first preset interface that audio client provides, sends audio-frequency information request to audio server.When receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, when receiving the audio data stream that audio server returns, play corresponding audio frequency.Due to when audio plays, do not need user from line search and download audio frequency, thus making user can play the audio frequency of online real-time update easily, saving running cost and the time cost of audio plays.Therefore, the flow process of audio plays is comparatively simple, and operating efficiency is higher.
Embodiments provide a kind of audio playing apparatus for desktop widget, the audio frequency playing method for desktop widget that this device provides for performing above-described embodiment.See Fig. 4, this device comprises:
First sending module 401, for when detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by audio server according to audio-frequency information request, return audio-frequency information list, audio-frequency information list at least comprises audio frequency title and audio identification, and the first preset interface is for obtaining audio-frequency information;
Display module 402, for when receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list;
Acquisition module 403, for when the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, the second preset interface is for obtaining audio data stream;
Playing module 404, for when receiving the audio data stream that audio server returns, plays corresponding audio frequency.
As a kind of embodiment, desktop widget interface comprises Audio conversion option,
Correspondingly, display module 402, for when detect to song handoff options choose operation time, the arbitrary audio-frequency information beyond the audio-frequency information obtaining current display from audio-frequency information list shows.
As a kind of embodiment, see Fig. 5, this device also comprises:
Second sending module 405, for when the play operation to similar audio being detected, call the 3rd preset interface that audio client provides, the audio-frequency information of current broadcasting is sent to audio server, by the audio-frequency information of audio server according to current broadcasting, return the audio-frequency information similar to current audio plays, the 3rd preset interface is for obtaining the audio data stream similar to current audio plays;
As a kind of embodiment, see Fig. 6, this device also comprises:
3rd sending module 406, for when detecting the collection operation to current audio plays, call the 4th preset interface that audio client provides, the audio-frequency information of current broadcasting is sent to audio server, by the audio-frequency information of audio server according to current broadcasting, the audio frequency of current broadcasting is added to audio collection list, and the 4th preset interface is used for the audio-frequency information sending current broadcasting to audio server
As a kind of embodiment, see Fig. 7, this device also comprises:
4th sending module 407, for being the audio frequency in audio collection list at the audio frequency of current broadcasting, and detect to current audio plays remove operation time, call the 5th preset interface that audio client provides, the audio-frequency information of current broadcasting is sent to audio server, by the audio-frequency information of audio server according to current broadcasting, removed by the audio frequency of current broadcasting from audio collection list, the 5th preset interface is used for the audio-frequency information sending current broadcasting to audio server.
As a kind of embodiment, see Fig. 8, this device also comprises:
5th sending module 408, for calling the 6th preset interface that audio client provides, the behavioral data of user's audio plays is sent to audio server, behavioral data at least comprises the audio-frequency information of user switches the frequency of audio frequency, user removes audio-frequency information and user's collection, by audio server according to behavioral data, determine the audio frequency recommended, return the audio-frequency information of recommendation, the 6th preset interface is used for the behavioral data sending user's audio plays to audio server.
The device that the embodiment of the present invention provides, by calling the first preset interface that audio client provides, sends audio-frequency information request to audio server.When receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, when receiving the audio data stream that audio server returns, play corresponding audio frequency.Due to when audio plays, do not need user from line search and download audio frequency, thus making user can play the audio frequency of online real-time update easily, saving running cost and the time cost of audio plays.Therefore, the flow process of audio plays is comparatively simple, and operating efficiency is higher.
Fig. 9 is the block diagram of a kind of terminal 900 according to an exemplary embodiment.Such as, terminal 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, terminal 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 909, audio-frequency assembly 910, I/O (Input/Output, I/O) interface 912, sensor module 914, and communications component 916.
The integrated operation of the usual control terminal 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing components 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 909 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of terminal 900.The example of these data comprises for any application program of operation in terminal 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM (Static Random AccessMemory, static RAM), EEPROM (Electrically-Erasable ProgrammableRead-Only Memory, Electrically Erasable Read Only Memory), EPROM (ErasableProgrammable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), ROM (Read-OnlyMemory, ROM (read-only memory)), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 906 is terminal 900 provide electric power.Power supply module 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 900 and be associated.
Multimedia groupware 909 is included in the screen providing an output interface between terminal 900 and user.In certain embodiments, screen can comprise LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 909 comprises a front-facing camera and/or post-positioned pick-up head.When terminal 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a MIC (Microphone, microphone), and when terminal 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for terminal 900.Such as, sensor module 914 can detect the opening/closing state of terminal 900, the relative positioning of assembly, such as assembly is display and the keypad of terminal 900, the position of all right sense terminals 900 of sensor module 914 or terminal 900 1 assemblies changes, the presence or absence that user contacts with terminal 900, the temperature variation of terminal 900 orientation or acceleration/deceleration and terminal 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS (Complementary Metal OxideSemiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupled Device, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between terminal 900 and other equipment.Terminal 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communications component 916 also comprises NFC (Near Field Communication, near-field communication) module, to promote junction service.Such as, can based on RFID (Radio Frequency Identification in NFC module, radio-frequency (RF) identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (Ultra Wideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, terminal 900 can by one or more ASIC (Application SpecificIntegrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, digital signal processor), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device (PLD)), FPGA) (Field ProgrammableGate Array, field programmable gate array), controller, microcontroller, microprocessor or other electronic components realize, for performing a kind of audio frequency playing method for desktop widget that any embodiment in the embodiment corresponding to above-mentioned Fig. 1 or Fig. 2 provides.
The terminal that the embodiment of the present invention provides, by calling the first preset interface that audio client provides, sends audio-frequency information request to audio server.When receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, when receiving the audio data stream that audio server returns, play corresponding audio frequency.Due to when audio plays, do not need user from line search and download audio frequency, thus making user can play the audio frequency of online real-time update easily, saving running cost and the time cost of audio plays.Therefore, the flow process of audio plays is comparatively simple, and operating efficiency is higher.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of terminal 900.Such as, non-transitory computer-readable recording medium can be ROM, RAM (RandomAccess Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of terminal, make terminal can perform a kind of audio frequency playing method for desktop widget, method comprises:
When detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by described audio server according to described audio-frequency information request, return audio-frequency information list, described audio-frequency information list at least comprises audio frequency title and audio identification, and described first preset interface is for obtaining audio-frequency information;
When receiving the audio-frequency information list that described audio server returns, desktop widget interface shows the arbitrary audio-frequency information in described audio-frequency information list;
When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of described current display, call the second preset interface that described audio client provides, obtain corresponding audio data stream, described second preset interface is for obtaining audio data stream;
When receiving the audio data stream that described audio server returns, play corresponding audio frequency.
The computer-readable recording medium that the embodiment of the present invention provides, by calling the first preset interface that audio client provides, sends audio-frequency information request to audio server.When receiving the audio-frequency information list that audio server returns, desktop widget interface shows the arbitrary audio-frequency information in audio-frequency information list.When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of current display, call the second preset interface that audio client provides, obtain corresponding audio data stream, when receiving the audio data stream that audio server returns, play corresponding audio frequency.Due to when audio plays, do not need user from line search and download audio frequency, thus making user can play the audio frequency of online real-time update easily, saving running cost and the time cost of audio plays.Therefore, the flow process of audio plays is comparatively simple, and operating efficiency is higher.
It should be noted that: the audio playing apparatus for desktop widget that above-described embodiment provides is when audio plays, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the audio playing apparatus for desktop widget that above-described embodiment provides belongs to same design with the audio frequency playing method embodiment for desktop widget, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. for an audio frequency playing method for desktop widget, it is characterized in that, described method comprises:
When detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by described audio server according to described audio-frequency information request, return audio-frequency information list, described audio-frequency information list at least comprises audio frequency title and audio identification, and described first preset interface is for obtaining audio-frequency information;
When receiving the audio-frequency information list that described audio server returns, desktop widget interface shows the arbitrary audio-frequency information in described audio-frequency information list;
When the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of described current display, call the second preset interface that described audio client provides, obtain corresponding audio data stream, described second preset interface is for obtaining audio data stream;
When receiving the audio data stream that described audio server returns, play corresponding audio frequency.
2. method according to claim 1, is characterized in that, described desktop widget interface comprises Audio conversion option,
Correspondingly, the described arbitrary audio-frequency information shown on desktop widget interface in described audio-frequency information list, comprising:
When detect to described song handoff options choose operation time, the arbitrary audio-frequency information beyond the audio-frequency information obtaining described current display from described audio-frequency information list shows.
3. method according to claim 1, is characterized in that, described when receiving the audio data stream that described audio server returns, and after playing corresponding audio frequency, also comprises:
When the play operation to similar audio being detected, call the 3rd preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, return the audio-frequency information similar to current audio plays, described 3rd preset interface is for obtaining the audio data stream similar to current audio plays.
4. method according to claim 1, is characterized in that, described when receiving the audio data stream that described audio server returns, and after playing corresponding audio frequency, also comprises:
When detecting the collection operation to current audio plays, call the 4th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, the audio frequency of current broadcasting is added to audio collection list, and described 4th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
5. method according to claim 1, is characterized in that, described when receiving the audio data stream that described audio server returns, and after playing corresponding audio frequency, also comprises:
If the audio frequency of current broadcasting is the audio frequency in audio collection list, and detect operation is removed to current audio plays, call the 5th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, removed from audio collection list by the audio frequency of current broadcasting, described 5th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
6. method according to claim 1, is characterized in that, described when receiving the audio data stream that described audio server returns, and before playing corresponding audio frequency, also comprises:
Call the 6th preset interface that described audio client provides, the behavioral data of user's audio plays is sent to described audio server, described behavioral data at least comprises the audio-frequency information of user switches the frequency of audio frequency, user removes audio-frequency information and user's collection, by described audio server according to described behavioral data, determine the audio frequency recommended, return the audio-frequency information of recommendation, described 6th preset interface is used for the behavioral data sending user's audio plays to described audio server.
7. for an audio playing apparatus for desktop widget, it is characterized in that, described device comprises:
First sending module, for when detecting that desktop widget starts, call the first preset interface that audio client provides, audio-frequency information request is sent to audio server, by described audio server according to described audio-frequency information request, return audio-frequency information list, described audio-frequency information list at least comprises audio frequency title and audio identification, and described first preset interface is for obtaining audio-frequency information;
Display module, for when receiving the audio-frequency information list that described audio server returns, desktop widget interface shows the arbitrary audio-frequency information in described audio-frequency information list;
Acquisition module, for when the play operation to the audio-frequency information of current display being detected, according to the audio identification of the audio-frequency information of described current display, call the second preset interface that described audio client provides, obtain corresponding audio data stream, described second preset interface is for obtaining audio data stream;
Playing module, for when receiving the audio data stream that described audio server returns, plays corresponding audio frequency.
8. device according to claim 7, is characterized in that, described desktop widget interface comprises Audio conversion option,
Correspondingly, described display module, for when detect to described song handoff options choose operation time, the arbitrary audio-frequency information beyond the audio-frequency information obtaining described current display from described audio-frequency information list shows.
9. device according to claim 7, is characterized in that, described device also comprises:
Second sending module, for when the play operation to similar audio being detected, call the 3rd preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, return the audio-frequency information similar to current audio plays, described 3rd preset interface is for obtaining the audio data stream similar to current audio plays.
10. device according to claim 7, is characterized in that, described device also comprises:
3rd sending module, for when detecting the collection operation to current audio plays, call the 4th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, the audio frequency of current broadcasting is added to audio collection list, and described 4th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
11. devices according to claim 7, is characterized in that, described device also comprises:
4th sending module, for being the audio frequency in audio collection list at the audio frequency of current broadcasting, and detect to current audio plays remove operation time, call the 5th preset interface that described audio client provides, the audio-frequency information of current broadcasting is sent to described audio server, by the audio-frequency information of described audio server according to current broadcasting, removed from audio collection list by the audio frequency of current broadcasting, described 5th preset interface is used for the audio-frequency information sending current broadcasting to described audio server.
12. devices according to claim 7, is characterized in that, described device also comprises:
5th sending module, for calling the 6th preset interface that described audio client provides, the behavioral data of user's audio plays is sent to described audio server, described behavioral data at least comprises the audio-frequency information of user switches the frequency of audio frequency, user removes audio-frequency information and user's collection, by described audio server according to described behavioral data, determine the audio frequency recommended, return the audio-frequency information of recommendation, described 6th preset interface is used for the behavioral data sending user's audio plays to described audio server.
CN201410693067.8A 2014-11-25 2014-11-25 A kind of audio frequency playing method and device for desktop widget Active CN104462276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410693067.8A CN104462276B (en) 2014-11-25 2014-11-25 A kind of audio frequency playing method and device for desktop widget

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410693067.8A CN104462276B (en) 2014-11-25 2014-11-25 A kind of audio frequency playing method and device for desktop widget

Publications (2)

Publication Number Publication Date
CN104462276A true CN104462276A (en) 2015-03-25
CN104462276B CN104462276B (en) 2019-01-25

Family

ID=52908312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410693067.8A Active CN104462276B (en) 2014-11-25 2014-11-25 A kind of audio frequency playing method and device for desktop widget

Country Status (1)

Country Link
CN (1) CN104462276B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870799A (en) * 2017-11-22 2018-04-03 北京安云世纪科技有限公司 Utilize the method, apparatus and terminal of widget control audio player
CN108038244A (en) * 2017-12-28 2018-05-15 北京达佳互联信息技术有限公司 Utilize the method, apparatus and mobile terminal of widget displaying works front cover
CN110266883A (en) * 2019-06-20 2019-09-20 广州酷狗计算机科技有限公司 Song downloads collecting method, device, terminal device and storage medium
CN112965776A (en) * 2021-03-11 2021-06-15 广州酷狗计算机科技有限公司 Display method and device of screen saver picture, terminal and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819805A (en) * 2010-01-28 2010-09-01 深圳市戴文科技有限公司 Method and device for playing audio frequency and mobile terminal
US20110239140A1 (en) * 2004-06-25 2011-09-29 Chaudhri Imran A Desktop Widgets for Presentation in a Layer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239140A1 (en) * 2004-06-25 2011-09-29 Chaudhri Imran A Desktop Widgets for Presentation in a Layer
CN101819805A (en) * 2010-01-28 2010-09-01 深圳市戴文科技有限公司 Method and device for playing audio frequency and mobile terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
云脉音乐窗口小部件: "云脉音乐窗口小部件V2.16", 《HTTP://APP.CNMO.COM/ANDROID/145239》 *
柯元旦等: "《Android程序设计》", 1 July 2010 *
虾米音乐: "虾米音乐V4.2.0", 《HTTP://APP.CNMO.COM/ANDROID/1032/HISTORY.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870799A (en) * 2017-11-22 2018-04-03 北京安云世纪科技有限公司 Utilize the method, apparatus and terminal of widget control audio player
CN108038244A (en) * 2017-12-28 2018-05-15 北京达佳互联信息技术有限公司 Utilize the method, apparatus and mobile terminal of widget displaying works front cover
CN110266883A (en) * 2019-06-20 2019-09-20 广州酷狗计算机科技有限公司 Song downloads collecting method, device, terminal device and storage medium
CN112965776A (en) * 2021-03-11 2021-06-15 广州酷狗计算机科技有限公司 Display method and device of screen saver picture, terminal and computer readable storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104166689B (en) The rendering method and device of e-book
CN105487863A (en) Interface setting method and device based on scene
CN104793739A (en) Play control method and device
CN105338409A (en) Network video pre-loading method and device
CN104216632A (en) Method and device for displaying application icons
CN104281432A (en) Method and device for regulating sound effect
CN104933170A (en) Information exhibition method and device
CN104869574A (en) Wireless network connection method and apparatus
CN105550272A (en) Song recommending method and device
CN105069050A (en) Search response method, apparatus and system
CN105159524A (en) Interface display method and apparatus
CN105635254A (en) Method and device for downloading multimedia resource
CN104461348A (en) Method and device for selecting information
CN105335414A (en) Music recommendation method, device and terminal
CN106776068A (en) Display methods, device and equipment that candidate applies
CN104462296A (en) File managing method and device and terminal
CN106484856A (en) Audio frequency playing method and device
CN104462276A (en) Audio playing method and device for desktop widgets
CN105242837A (en) Application page acquisition method and terminal
CN105468281A (en) Setup interface display method and device
CN104636064A (en) Gesture generating method and device
KR101336622B1 (en) System for providing presence infromation audio data, apparatus and method thereof
CN104503762A (en) Device and method for identifying electronic accessory
CN104486295A (en) Audio playing method and device
CN108121720A (en) A kind of resource recommendation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant