CN104462276B - A kind of audio frequency playing method and device for desktop widget - Google Patents

A kind of audio frequency playing method and device for desktop widget Download PDF

Info

Publication number
CN104462276B
CN104462276B CN201410693067.8A CN201410693067A CN104462276B CN 104462276 B CN104462276 B CN 104462276B CN 201410693067 A CN201410693067 A CN 201410693067A CN 104462276 B CN104462276 B CN 104462276B
Authority
CN
China
Prior art keywords
audio
frequency information
server
currently playing
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.)
Active
Application number
CN201410693067.8A
Other languages
Chinese (zh)
Other versions
CN104462276A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of audio frequency playing methods and device for desktop widget, belong to field of computer technology.Method includes: the first preset interface for calling audio client to provide when detecting desktop widget starting, sends audio-frequency information request to audio server;When receiving the audio-frequency information list of audio server return, any audio-frequency information in audio-frequency information list is shown on desktop widget interface;When detecting the play operation to the audio-frequency information currently shown, according to the audio identification of the audio-frequency information currently shown, the second preset interface for calling audio client to provide obtains corresponding voice data stream, and the second preset interface is for obtaining voice data stream;When receiving the voice data stream of audio server return, corresponding audio is played.The present invention obtains voice data stream by interface to play audio.The operating cost and time cost of audio are played due to saving when playing audio.Therefore, the operating efficiency for playing audio is higher.

Description

A kind of audio frequency playing method and device for desktop widget
Technical field
The present invention relates to field of computer technology, in particular to a kind of audio frequency playing method and dress for desktop widget It sets.
Background technique
With the fast development of computer technology, the user using player plays audio is more and more.For example, user can With provided with player, the audio list loaded in player is browsed, the audio liked therefrom is screened and plays out.Wherein, work as sound After frequency is downloaded to local, local audio can be played out by the auxiliary function widget (Widget) of player, be passed through Widget can facilitate user to control audio broadcasting.
In the implementation of the present invention, inventor find the above method the prior art has at least the following problems:
Due to needing first to install music player when playing audio, Widget pairs of auxiliary function of player is reused Audio plays out, so that the process for playing audio is more complicated.In addition, since Widget can only play the sound being locally-downloaded Frequently, the broadcasting scene of application is relatively simple.Therefore, the flexibility for playing audio is poor.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of audio broadcasting sides for desktop widget Method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of audio frequency playing method for desktop widget, the party are provided Method includes:
When detecting desktop widget starting, the first preset interface for calling audio client to provide, to audio server Audio-frequency information request is sent, is requested by the audio server according to the audio-frequency information, audio-frequency information list, the sound are returned Frequency information list includes at least audio title and audio identification, and first preset interface is for obtaining audio-frequency information;
When receiving the audio-frequency information list that the audio server returns, the sound is shown on desktop widget interface Any audio-frequency information in frequency information list;
When detecting the play operation to the audio-frequency information currently shown, according to the audio-frequency information currently shown Audio identification, the second preset interface for calling the audio client to provide obtain corresponding voice data stream, and described second is pre- If interface is for obtaining voice data stream;
When receiving the voice data stream that the audio server returns, corresponding audio is played.
With reference to first aspect, in the first possible implementation of the first aspect, the desktop widget interface Zhong Bao Audio conversion option is included,
Correspondingly, any audio-frequency information shown on desktop widget interface in the audio-frequency information list, comprising:
When detecting to the song handoff options when choosing operation, work as described in acquisition from the audio-frequency information list Any audio-frequency information other than the audio-frequency information of preceding display is shown.
With reference to first aspect, in the second possible implementation of the first aspect, described to receive the audio When the voice data stream that server returns, after playing corresponding audio, further includes:
When detecting the play operation to similar audio, the third preset interface for calling the audio client to provide, Currently playing audio-frequency information is sent to the audio server, is believed by the audio server according to currently playing audio Breath returns to audio-frequency information similar with currently playing audio, and the third preset interface is for obtaining and currently playing audio phase As voice data stream.
With reference to first aspect, in a third possible implementation of the first aspect, described to receive the audio When the voice data stream that server returns, after playing corresponding audio, further includes:
When detection operates the collection of currently playing audio, calls the 4th of the audio client offer to preset and connect Mouthful, currently playing audio-frequency information is sent to the audio server, by the audio server according to currently playing audio Currently playing audio is added to audio collection list information, and the 4th preset interface is used for the audio server Send currently playing audio-frequency information.
With reference to first aspect, in a fourth possible implementation of the first aspect, described to receive the audio When the voice data stream that server returns, after playing corresponding audio, further includes:
If currently playing audio is the audio in audio collection list, and detects that the removal to currently playing audio is grasped Make, the 5th preset interface for calling the audio client to provide, currently playing audio letter is sent to the audio server Breath, by the audio server according to currently playing audio-frequency information, currently playing audio is moved from audio collection list It removes, the 5th preset interface is for sending currently playing audio-frequency information to the audio server.
With reference to first aspect, in the fifth possible implementation of the first aspect, described to receive the audio When the voice data stream that server returns, before playing corresponding audio, further includes:
The 6th preset interface for calling the audio client to provide sends user to the audio server and plays audio Behavioral data, the behavioral data include at least user switch audio frequency, user remove audio-frequency information and user receive The audio-frequency information of hiding determines the audio recommended by the audio server according to the behavioral data, returns to the audio letter of recommendation Breath, the 6th preset interface are used to send the behavioral data that user plays audio to the audio server.
According to the second aspect of an embodiment of the present disclosure, a kind of audio playing apparatus for desktop widget, the dress are provided It sets and includes:
First sending module, first for when detecting desktop widget starting, calling audio client to provide presets Interface sends audio-frequency information request to audio server, is requested by the audio server according to the audio-frequency information, return to sound Frequency information list, the audio-frequency information list include at least audio title and audio identification, and first preset interface is for obtaining Take audio-frequency information;
Display module, for when receiving the audio-frequency information list that the audio server returns, in desktop widget circle Any audio-frequency information in the audio-frequency information list is shown on face;
Module is obtained, for currently being shown according to described when detecting the play operation to the audio-frequency information currently shown The audio identification of the audio-frequency information shown, the second preset interface for calling the audio client to provide, obtains corresponding audio number According to stream, second preset interface is for obtaining voice data stream;
Playing module, for playing corresponding audio when receiving the voice data stream that the audio server returns.
In conjunction with second aspect, in the first possible implementation of the second aspect, the desktop widget interface Zhong Bao Audio conversion option is included,
Correspondingly, the display module, for when detecting to the song handoff options when choosing operation, from described Any audio-frequency information other than the audio-frequency information currently shown is obtained in audio-frequency information list to be shown.
In conjunction with second aspect, in a second possible implementation of the second aspect, the device further include:
Second sending module, for calling the audio client to mention when detecting the play operation to similar audio The third preset interface of confession, currently playing audio-frequency information is sent to the audio server, by the audio server according to Currently playing audio-frequency information returns to audio-frequency information similar with currently playing audio, and the third preset interface is for obtaining Voice data stream similar with currently playing audio.
In conjunction with second aspect, in the third possible implementation of the second aspect, the device further include:
Third sending module, for calling the audio client when detection operates the collection of currently playing audio The 4th preset interface provided, currently playing audio-frequency information is sent to the audio server, by the audio server root According to currently playing audio-frequency information, currently playing audio is added to audio collection list, the 4th preset interface is used for Currently playing audio-frequency information is sent to the audio server.
In conjunction with second aspect, in the fourth possible implementation of the second aspect, the device further include:
4th sending module for being the audio in audio collection list in currently playing audio, and is detected to working as When the preceding removal operation for playing audio, the 5th preset interface for calling the audio client to provide, to the audio server Currently playing audio-frequency information is sent, by the audio server according to currently playing audio-frequency information, by currently playing sound Frequency is removed from audio collection list, and the 5th preset interface is for sending currently playing audio to the audio server Information.
In conjunction with second aspect, in a fifth possible implementation of the second aspect, the device further include:
5th sending module, the 6th preset interface for calling the audio client to provide, to the audio service Device sends the behavioral data that user plays audio, and the behavioral data includes at least user and switches the frequency of audio, user's removal Audio-frequency information and the audio-frequency information of user's collection determine the sound recommended by the audio server according to the behavioral data Frequently, the audio-frequency information of recommendation is returned to, the 6th preset interface, which is used to send user to the audio server, plays audio Behavioral data.
Technical solution provided in an embodiment of the present invention has the benefit that
By the first preset interface for calling audio client to provide, audio-frequency information request is sent to audio server.When When receiving the audio-frequency information list of audio server return, any in audio-frequency information list is shown on desktop widget interface Audio-frequency information.When detecting the play operation to the audio-frequency information currently shown, according to the sound of the audio-frequency information currently shown Frequency marking is known, and the second preset interface for calling audio client to provide obtains corresponding voice data stream, when receiving audio service When the voice data stream that device returns, corresponding audio is played.Due to not needing user and voluntarily searching for and download when playing audio Audio, so that user can easily play the audio of online real-time update, the operating cost for saving broadcasting audio is timely Between cost.Therefore, the process for playing audio is relatively simple, and operating efficiency is higher.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of audio frequency playing method flow chart for desktop widget shown according to an exemplary embodiment.
Fig. 2 is a kind of audio frequency playing method flow chart for desktop widget shown according to an exemplary embodiment.
Fig. 3 is a kind of interface schematic diagram of desktop widget shown according to an exemplary embodiment.
Fig. 4 is a kind of structural representation of audio playing apparatus for desktop widget shown according to an exemplary embodiment Figure.
Fig. 5 is a kind of structural representation of audio playing apparatus for desktop widget shown according to an exemplary embodiment Figure.
Fig. 6 is a kind of structural representation of audio playing apparatus for desktop widget shown according to an exemplary embodiment Figure.
Fig. 7 is a kind of structural representation of audio playing apparatus for desktop widget shown according to an exemplary embodiment Figure.
Fig. 8 is a kind of structural representation of audio playing apparatus for desktop widget shown according to an exemplary embodiment Figure.
Fig. 9 is a kind of block diagram of terminal shown according to an exemplary embodiment.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of audio frequency playing method for desktop widget, referring to Fig. 1, the present embodiment provides Method flow include:
101, when detecting desktop widget starting, the first preset interface for calling audio client to provide takes to audio Business device sends audio-frequency information request, is requested by audio server according to audio-frequency information, returns to audio-frequency information list, audio-frequency information column Table includes at least audio title and audio identification, and the first preset interface is for obtaining audio-frequency information.
Wherein, audio client can provide the client of audio service to be any, and the present embodiment is not to audio client Form make specific limit.Audio server provides data service for the audio client, can be storage various types audio The server of resource, the present embodiment do not make specific limit to the content of audio server storage.It is provided by audio client Preset interface can carry out data interaction between desktop widget and audio server, play out to realize to audio.
102, when receiving the audio-frequency information list of audio server return, show that audio is believed on desktop widget interface Cease any audio-frequency information in list.
103, when detecting the play operation to the audio-frequency information currently shown, according to the audio-frequency information currently shown Audio identification, the second preset interface for calling audio client to provide obtain corresponding voice data stream, and the second preset interface is used In acquisition voice data stream.
104, when receiving the voice data stream of audio server return, corresponding audio is played.
Method provided in an embodiment of the present invention is taken by the first preset interface for calling audio client to provide to audio Business device sends audio-frequency information request.When receiving the audio-frequency information list of audio server return, on desktop widget interface Show any audio-frequency information in audio-frequency information list.When detecting the play operation to the audio-frequency information currently shown, root According to the audio identification of the audio-frequency information currently shown, the second preset interface for calling audio client to provide obtains corresponding sound Frequency data stream plays corresponding audio when receiving the voice data stream of audio server return.Due to playing audio When, it does not need user and voluntarily searches for and download audio, so that user can easily play the audio of online real-time update, section The operating cost and time cost for playing audio are saved.Therefore, the process for playing audio is relatively simple, and operating efficiency is higher.
It include Audio conversion option in desktop widget interface, correspondingly, in desktop widget circle as a kind of alternative embodiment Any audio-frequency information in audio-frequency information list is shown on face, comprising:
When detecting to Audio conversion option when choosing operation, the audio currently shown is obtained from audio-frequency information list Any audio-frequency information other than information is shown.
Corresponding sound is played when receiving the voice data stream of audio server return as a kind of alternative embodiment After frequency, further includes:
When detecting the play operation to similar audio, the third preset interface for calling audio client to provide, Xiang Yin Frequency server sends currently playing audio-frequency information, by audio server according to currently playing audio-frequency information, returns and current The similar audio-frequency information of audio is played, third preset interface is for obtaining voice data stream similar with currently playing audio.
Corresponding sound is played when receiving the voice data stream of audio server return as a kind of alternative embodiment After frequency, further includes:
When detection operates the collection of currently playing audio, the 4th preset interface for calling audio client to provide, to Audio server sends currently playing audio-frequency information, by audio server according to currently playing audio-frequency information, will currently broadcast The audio put is added to audio collection list, and the 4th preset interface is used to send currently playing audio letter to audio server Breath.
Corresponding sound is played when receiving the voice data stream of audio server return as a kind of alternative embodiment After frequency, further includes:
If currently playing audio is the audio in audio collection list, and detects that the removal to currently playing audio is grasped Make, the 5th preset interface for calling audio client to provide sends currently playing audio-frequency information to audio server, by audio Server is removed from audio collection list according to currently playing audio-frequency information, by currently playing audio, and the 5th default connects Mouth is for sending currently playing audio-frequency information to audio server.
Corresponding sound is played when receiving the voice data stream of audio server return as a kind of alternative embodiment Before frequency, further includes:
The 6th preset interface for calling audio client to provide sends the behavior number that user plays audio to audio server According to, behavioral data includes at least the frequency that user switches audio, the audio-frequency information of audio-frequency information and user's collection that user removes, By audio server according to behavioral data, determine the audio recommended, return to the audio-frequency information of recommendation, the 6th preset interface be used for Audio server sends the behavioral data that user plays audio.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
The embodiment of the invention provides a kind of audio frequency playing methods for desktop widget, referring to fig. 2, in conjunction with above-mentioned implementation Content in example is illustrated method provided in this embodiment so that executing subject is terminal as an example, the present embodiment provides Method flow include:
201, when detecting desktop widget starting, the first preset interface for calling audio client to provide takes to audio Business device sends audio-frequency information request, is requested by audio server according to audio-frequency information, returns to audio-frequency information list, audio-frequency information column Table includes at least audio title and audio identification, and the first preset interface is for obtaining audio-frequency information.
The multiple preset interfaces that may be configured with audio client in the desktop widget are being not necessarily to by calling preset interface Under the premise of starting audio client, some functions of original audio client are realized.In addition, audio can be song, voice Segment and talking book etc., the present embodiment do not make specific limit to the corresponding content of audio and format.
When detecting desktop widget starting, the first preset interface that audio client can be called to provide, to audio service Device sends audio-frequency information request.Audio server can request to determine sound according to audio-frequency information after receiving audio-frequency information request Frequency information list, so that audio-frequency information list is back to terminal.It wherein, may include audio title and sound in audio-frequency information list Frequency marking is known, and the present embodiment does not make specific limit to the content in audio-frequency information list.For example, by taking audio is song as an example.Audio Information list can be the song information of the types such as popular list, classification scheme, periodically thematic, editor's operation and personalized recommendation List.Wherein, audio server can carry out real-time update to song information list, to guarantee in song information list comprising most New song realizes hot music real-time update, in addition to removing the pain searched song and look for song from, so that it may hear newest prevalence at any time Song that is to say, be avoided that user searches for and downloads the cumbersome process of latest songs.By the first preset interface, terminal can be obtained The audio-frequency information in audio-frequency information list is taken, the present embodiment is also not especially limited this.
It should be noted that the audio types due to each user's preferences may not be identical, to audio server When sending audio-frequency information request, the corresponding user information of audio client can be carried in audio-frequency information request, so that server exists After receiving the audio-frequency information request comprising user information, corresponding audio-frequency information list, this reality can be returned to according to user information It applies example and this is not especially limited.For example, by taking user information uses the corresponding user account number of audio client for user as an example.Its In, desktop widget can be associated with user account in advance.When detecting desktop widget starting, can be sent to audio server Carry user account audio-frequency information request, thus audio server can be requested according to audio-frequency information in user account, determine The history broadcast information of the user.According to the history broadcast information of the user, the audio that the user may like is determined, in turn Return to corresponding audio-frequency information list.
In addition, the data of server return can be received due to by the first preset interface, thus using desktop widget When playing audio, other than playing local audio, moreover it is possible to according to the data that server returns, play corresponding audio.Therefore, Desktop widget provided in this embodiment can be applied to more play scene.
202, when receiving the audio-frequency information list of audio server return, show that audio is believed on desktop widget interface Cease any audio-frequency information in list.
The present embodiment is not made the mode of any audio-frequency information shown in audio-frequency information list on desktop widget interface It is specific to limit, including but not limited to: an audio-frequency information is selected from audio-frequency information list;Display should on desktop widget interface Audio title in audio-frequency information.
For example, as shown in figure 3, the center at desktop widget interface that can be shown in Fig. 3 shows the title of the audio.
It should be noted that can also include other letters in audio-frequency information other than comprising audio title and audio identification Breath, the present embodiment do not make specific limit to the content for including in audio-frequency information.For example, by taking audio is song as an example.Song information In other than comprising song title, can also include song duration and the corresponding singer informations of song.Correspondingly, micro- in desktop When showing audio-frequency information on part interface, other than showing audio title, the other information in audio-frequency information can also be carried out It has been shown that, the present embodiment are not especially limited this.For example, including singer with the corresponding singer informations of song using audio as song For head portrait and singer's title.The corresponding singer of song can be shown on broadcast button in desktop widget interface shown in Fig. 3 Head portrait and singer's title, and can be in information such as other place display song durations at interface.
In addition, since user is when playing audio using desktop widget, it may be desirable to be carried out to currently playing audio Switching.It therefore, can also include Audio conversion option in desktop widget interface, so that user switches over audio, this implementation Example is not especially limited this.For example, as shown in figure 3, may include the switching for switching to an audio in desktop widget interface Option and the handoff options for switching to next audio.Audio is switched in order to facilitate user, terminal inner is also settable Gyroscope, by gyroscope, the movement that terminal can rock terminal to family is detected, thus dynamic according to rocking for detecting Make, by currently playing Audio conversion to another audio, the present embodiment is not especially limited this.
Correspondingly, the mode about any audio-frequency information shown on desktop widget interface in audio-frequency information list, this Embodiment is not especially limited this, including but not limited to: when detecting to Audio conversion option when choosing operation, from audio Any audio-frequency information other than the audio-frequency information currently shown is obtained in information list to be shown.
By showing to audio-frequency information, user can be allowed to know what audio is currently played is, thus convenient User carries out subsequent operation.For example, by taking audio is song as an example.User can be understood currently playing by the song information of display The title of song.When user is according to song title, confirms when itself not liking this song song, can switch to next song.
203, when detecting the play operation to the audio-frequency information currently shown, according to the audio-frequency information currently shown Audio identification, the second preset interface for calling audio client to provide obtain corresponding voice data stream, and the second preset interface is used In acquisition voice data stream.
It may include broadcasting control button in desktop widget interface, the broadcasting control button is for the broadcasting to audio and temporarily Stop being controlled, user can play out audio by click play control button, and the present embodiment does not limit this specifically It is fixed.Wherein, terminal can obtain voice data stream by the second preset interface, and the present embodiment is not especially limited this.Terminal is logical The second preset interface is crossed, voice data stream can be obtained from audio server, so that the application scenarios played are compared with horn of plenty.
For example, by taking the audio of broadcasting is song as an example.As shown in figure 3, when detecting that user clicks the broadcast button in Fig. 3 When, the request for obtaining song data stream can be sent to audio server.It wherein, can in the request that terminal is sent to audio server Carry the song identity of the song information currently shown.Audio server upon receiving a request, can be according to the song in request Mark determines corresponding song files, to return to the corresponding song data stream of the song files to terminal.Terminal passes through calling Second preset interface of audio client can receive the song data stream that audio server returns.
204, when receiving the voice data stream of audio server return, corresponding audio is played.
The present embodiment to when receiving the voice data stream of audio server return, does not play the mode of corresponding audio Make specific restriction, including but not limited to: being decoded to the voice data stream received, according to decoding result, play corresponding Audio.
Since in above-mentioned steps 201, into this step 204, user is by playing out behaviour to the audio-frequency information currently shown Make, audio can be played out, so as to avoid user in the past when playing audio, need to first search and download audio, then is right The process that the audio of downloading plays out, and then the operating process that user plays audio is shortened, so that playing the process of audio It is more humanized.
It should be noted that due to after the voice data stream for receiving audio server return, it will usually face locally When file in store, with facilitate play.In order to save memory space, when an audio finishes, and next sound is switched to Frequently, a upper audio data finished can be deleted from temporary file, the present embodiment is not especially limited this.
In order to make the properer user demand of audio returned, terminal can also call the 6th of audio client offer to preset Interface sends the behavioral data that user plays audio to audio server, by audio server according to behavioral data, determines and recommends Audio, return to the audio-frequency information of recommendation, the present embodiment is not especially limited this.Wherein, user plays the behavior number of audio Switch the frequency of audio, the audio-frequency information that user removes and the audio-frequency information that user collects, the present embodiment according to user is included at least Specific limit is not made to the content for including in behavioral data.Terminal can send user to audio server by the 6th preset interface The behavioral data of audio is played, the present embodiment is also not especially limited this.
It certainly, can also be by server other than sending the behavioral data that user plays audio by terminal to server The behavioral data of user is voluntarily collected, it is corresponding with user identifier to save.Server to behavioral data carry out data analysis, according to point Analysis is as a result, obtain the interested audio types of user, so that it is determined that the audio recommended, returns to the audio-frequency information of recommendation, this implementation Example is not especially limited this.Wherein, user identifier can use the corresponding user account number of audio client, this implementation for user Example is also not especially limited this.
In addition, the interested audio types of user can be crucial according to the style, artist's type and audio that user is biased to The contents such as word determine that the present embodiment is not especially limited this.Interest index can be used for measuring user to certain audio types Fancy grade, which can calculate the interest index of different audio types according to the behavioral data of user.For example, Terminal according to included played audio in behavioral data and can collect audio, to the interest of user under every kind of audio types Index is calculated.
For example, by taking audio is song as an example.If playing the behavioral data of song according to user, determine user to a certain style Song interest index it is lower, then can recommend the song of other styles other than the style to user.For example, if being switched according to user The frequency of song, the song information of song information and user's collection that user removes, determines that user is emerging to the song of rock and roll style Interesting index is lower, then show user may song to rock and roll style it is less interested, so as to recommend rock and roll style to user The song of other styles in addition.
Alternatively, if playing the behavioral data of song according to user, determine user to the song interest index of a certain singer compared with It is low, show user may song to the singer it is less interested, then can recommend the song of other singers other than the singer to user It is bent.
Conversely, if user often collects the song of a certain style or a certain singer, can determine user to the style or The song interest index of the singer is higher, then can recommend the style or the song of the singer to user.Such as, however, it is determined that user couple The interest index of country song is higher, then can recommend the song of country genre to user.Or, however, it is determined that user is to singer A's The interest index of song is higher, then can recommend the song of singer A to user.
Audio server can return to the audio-frequency information recommended to terminal after determining the audio recommended.Terminal is receiving After the recommendation of audio information that audio server returns, the audio-frequency information of recommendation can be shown on desktop widget interface.When detecting When to the play operation of the audio-frequency information of recommendation, according to the audio identification of recommendation of audio information, audio client is called to provide Second preset interface obtains corresponding voice data stream.When receiving the voice data stream of audio server return, broadcasting is pushed away The audio recommended.By the behavioral data according to user's broadcasting audio, user can be allowed easily to play the audio itself liked, from And user is avoided when playing audio, by first inputting keyword search audio, reselection needs the audio played to be broadcast It the cumbersome playing flow such as puts, improves the experience that user plays audio.Further, server or terminal can user into Constantly the interested music type of user is determined, to carry out audio using the behavioral data updated in row audio playing process Recommend, as user listens to increasing for frequency, also increasingly can accurately agree with the music demand of user individual, it can be more quasi- True is that user recommends.In addition, since user may need to listen to the similar audio of currently playing audio.Therefore, in order to Facilitate user to listen to similar audio, can also include similar audio play options in desktop widget interface, the present embodiment to this not Make specific limit.It is based on the above, after this step is finished, the present embodiment additionally provides a kind of pair of similar audio The method played out, specific method process are detailed in subsequent step.
205, when detecting the play operation to similar audio, the third preset interface for calling audio client to provide, Currently playing audio-frequency information is sent to audio server, by audio server according to currently playing audio-frequency information, return with The similar audio-frequency information of currently playing audio, third preset interface is for obtaining audio data similar with currently playing audio Stream.
Wherein, user can be by clicking the similar audio play options in desktop widget interface, to currently playing audio Similar audio play out, the present embodiment is not especially limited this.When detecting the play operation to similar audio, adjust The third preset interface provided with audio client, currently playing audio-frequency information is sent to audio server.Audio server It, can be according to currently playing audio-frequency information and similarity algorithm, from audio server after receiving currently playing audio-frequency information Audio database in select similar audio.
For example, by taking audio is song as an example.Audio server is after receiving currently playing song information, according to current The song information and similarity algorithm of broadcasting, calculating the song has 80% a possibility that similar to song A, calculates the song There is 20% a possibility that similar to song B.Wherein, similarity may include style similarity, lyrics similarity etc., the present embodiment This is not especially limited.By carrying out similarity analysis to song tracks, the style similarity between song can determine.Pass through Similarity analysis is carried out to song lyrics text, can determine the similarity between song lyrics.For every kind of similarity, weight is set, By every kind of similarity multiplied by being overlapped after weight, so as to calculate a possibility that similar between song.Due to the song Have that 80% a possibility that is similar to song A, so as to select song A from the song database of audio server, as with this The similar song of song.
For audio server after returning to audio-frequency information similar with currently playing audio to terminal, terminal can receive audio clothes The audio-frequency information similar with currently playing audio that business device returns, shows the similar audio information on desktop widget interface.When When detecting the play operation to the similar audio information, according to the audio identification of the similar audio information, audio clients are called The third preset interface provided is provided, corresponding voice data stream is obtained.When the voice data stream for receiving audio server return When, play the audio of recommendation.
By the similar audio of broadcasting present video, user can be allowed to conveniently listen to similar audio, so as to avoid When user hears an audio itself liked, similar audio is if desired listened, then removes the process searched and downloaded, Jin Erti High user plays the experience of audio.
It should be noted that since user may also need to collect the audio liked, to facilitate next broadcasting.Cause This, the present embodiment additionally provides a kind of method for collecting audio, and this method includes but is not limited to: when detection is to currently playing audio Collection operation when, call audio client provide the 4th preset interface, currently playing audio is sent to audio server Information.Audio server will can currently be broadcast after receiving currently playing audio-frequency information according to currently playing audio-frequency information The audio put is added to audio collection list.It wherein, may include option for collecting audio, Yong Hutong in desktop widget interface The option for clicking the collection audio is crossed, currently playing audio can be collected, the present embodiment is not especially limited this.Eventually End can send currently playing audio-frequency information by the 4th preset interface to audio server, and the present embodiment is not made this specifically yet It limits.
It should be noted that audio server side can be right since different user can correspond to different audio collection lists The audio collection list of each user saves.Correspondingly, after terminal detects the operation of the collection to currently playing audio, When sending currently playing audio-frequency information to audio server, the corresponding user's letter of audio client can be sent to server simultaneously Breath, so that audio server is after receiving currently playing audio-frequency information, it can be according to currently playing audio-frequency information, it will be current Audio collection list corresponding to the user information is added in the audio of broadcasting, and the present embodiment is not especially limited this.
For example, the corresponding user information of audio client is for user account number using audio as song.As shown in figure 3, working as When user likes currently playing song, user can be by clicking the option of puting into collection in Fig. 3.When terminal detects user's point Hit this put into collection option when, can call audio client provide the 4th preset interface, to audio server transmission currently broadcast The song information put, such as song title or song identity, and it is corresponding to audio server transmission audio client simultaneously User account number.Audio server, can be according to currently playing sound after receiving currently playing audio-frequency information and user account number Audio collection list corresponding to the user account number is added in currently playing audio by frequency information, such as can be by currently playing sound Audio collection list corresponding to the user account number is added in frequency title.
It is added by the audio for collecting user to audio collection list, can facilitate user is subsequent to listen to what itself was collected Audio avoids user from going to search again, to improve user experience.
It may also need to remove the audio puted into collection accordingly, due to user.Therefore, the present embodiment also mentions A kind of method for removing collection audio is supplied, this method includes but is not limited to: if currently playing audio is audio collection list In audio, and detect the removal to currently playing audio operate, call audio client provide the 5th preset interface, to Audio server sends currently playing audio-frequency information.Audio server after receiving currently playing audio-frequency information, according to Currently playing audio-frequency information removes currently playing audio from audio collection list.It wherein, can in desktop widget interface Comprising the option for removing collection audio, user collects the option of audio by clicking the removal, can be by currently playing sound Frequency is removed from audio collection list, and the present embodiment is not especially limited this.Terminal can be by the 5th preset interface to audio Server sends currently playing audio-frequency information, and the present embodiment is also not especially limited this.
It should be noted that since user needs to know whether currently playing audio has puted into collection.Therefore, to sound Frequency is when playing out, can be from inquiring the audio in server whether in audio collection list.If currently playing audio is in sound In frequency the favorites list, then show in desktop widget interface for indicating that the mark of audio collection list has been added in present video. If currently playing audio not in audio collection list, can be shown in desktop widget interface for indicating present video not The mark of audio collection list is added, the present embodiment is not especially limited this.
In addition, audio server side can be to each user since different user can correspond to different audio collection lists Audio collection list saved.Correspondingly, it after terminal detects the operation of the removal to currently playing audio, is taken to audio When business device sends currently playing audio-frequency information, the corresponding user information of audio client can be sent to server simultaneously, thus Audio server, can be according to currently playing audio-frequency information after receiving currently playing audio-frequency information, will be currently playing Audio is removed from the corresponding audio collection list of the user information, and the present embodiment is not especially limited this.
For example, the corresponding user information of audio client is for user account number using audio as song.As shown in figure 3, working as When user wants to remove currently playing song from song collection list, user can remove collection song by clicking in Fig. 3 Bent option.When terminal detects that user clicks removal collection song choices, the 5th that audio client provides can be called Preset interface sends currently playing song information, such as song title or song identity to audio server, and simultaneously to Audio server sends the corresponding user account number of audio client.Audio server receive currently playing song information and After user account number, currently playing song can be received from the corresponding song of the user account number according to currently playing song information It is removed in hiding list, it such as can be by currently playing song title and song identity from the corresponding song collection list of the user account number Middle removal.
In addition, since user may also need to play out to having collected audio.Therefore, the present embodiment additionally provides a kind of right The method that plays out of collection audio, this method includes but is not limited to: when detecting the operation played out to collection audio, The 7th preset interface for calling audio client to provide sends collection audio-frequency information request to audio server, by audio service Device returns to audio collection list according to collection audio-frequency information request;When the audio collection list for receiving audio server return When, any audio-frequency information in audio collection list is shown on desktop widget interface;When detecting to the audio currently shown When the play operation of information, according to the audio identification of the audio-frequency information currently shown, call the 8th of audio client offer pre- If interface, corresponding voice data stream is obtained;When receiving the voice data stream of audio server return, corresponding sound is played Frequently.Wherein, audio title and audio identification are included at least in audio collection list, the present embodiment is not especially limited this.Eventually End can obtain the audio-frequency information that audio server returns by the 7th preset interface, obtain audio service by the 8th preset interface The voice data stream that device returns, the present embodiment are not especially limited this.
It should be noted that audio server side can be right since different user can correspond to different audio collection lists The audio collection list of each user saves.Correspondingly, after terminal detects the operation played out to collection audio, When sending collection audio-frequency information request to audio server, the corresponding user's letter of audio client can be sent to server simultaneously Breath, so that audio server is receiving after audio server transmission collection audio-frequency information request and user information, it can basis User information, determines the audio collection list of the user, and the audio collection list of the user is returned, the present embodiment to this not Make specific limit.
Method provided in an embodiment of the present invention is taken by the first preset interface for calling audio client to provide to audio Business device sends audio-frequency information request.When receiving the audio-frequency information list of audio server return, on desktop widget interface Show any audio-frequency information in audio-frequency information list.When detecting the play operation to the audio-frequency information currently shown, root According to the audio identification of the audio-frequency information currently shown, the second preset interface for calling audio client to provide obtains corresponding sound Frequency data stream plays corresponding audio when receiving the voice data stream of audio server return.Due to playing audio When, it does not need user and voluntarily searches for and download audio, so that user can easily play the audio of online real-time update, section The operating cost and time cost for playing audio are saved.Therefore, the process for playing audio is relatively simple, and operating efficiency is higher.
The embodiment of the invention provides a kind of audio playing apparatus for desktop widget, the device is for executing above-mentioned reality The audio frequency playing method for desktop widget of example offer is provided.Referring to fig. 4, which includes:
First sending module 401, for calling the first of audio client offer pre- when detecting desktop widget starting If interface, audio-frequency information request is sent to audio server, is requested by audio server according to audio-frequency information, returns to audio-frequency information List, audio-frequency information list include at least audio title and audio identification, and the first preset interface is for obtaining audio-frequency information;
Display module 402, for when receive audio server return audio-frequency information list when, at desktop widget interface Any audio-frequency information in upper display audio-frequency information list;
Module 403 is obtained, for being shown according to current when detecting the play operation to the audio-frequency information currently shown Audio-frequency information audio identification, the second preset interface for calling audio client to provide obtains corresponding voice data stream, the Two preset interfaces are for obtaining voice data stream;
Playing module 404, for playing corresponding audio when receiving the voice data stream of audio server return.
It include Audio conversion option in desktop widget interface as a kind of alternative embodiment,
Correspondingly, display module 402, for when detecting to song handoff options when choosing operation, from audio-frequency information Any audio-frequency information other than the audio-frequency information currently shown is obtained in list to be shown.
As a kind of alternative embodiment, referring to Fig. 5, the device further include:
Second sending module 405, for calling audio client to provide when detecting the play operation to similar audio Third preset interface, currently playing audio-frequency information is sent to audio server, by audio server according to currently playing Audio-frequency information returns to audio-frequency information similar with currently playing audio, and third preset interface is for obtaining and currently playing audio Similar voice data stream;
As a kind of alternative embodiment, referring to Fig. 6, the device further include:
Third sending module 406, for calling audio client to mention when detection operates the collection of currently playing audio The 4th preset interface supplied, currently playing audio-frequency information is sent to audio server, by audio server according to currently playing Audio-frequency information, currently playing audio is added to audio collection list, the 4th preset interface is used to send out to audio server Send currently playing audio-frequency information
As a kind of alternative embodiment, referring to Fig. 7, the device further include:
4th sending module 407 for being the audio in audio collection list in currently playing audio, and detects pair When the removal operation of currently playing audio, the 5th preset interface for calling audio client to provide is worked as to audio server transmission The audio-frequency information of preceding broadcasting receives currently playing audio from audio by audio server according to currently playing audio-frequency information It is removed in hiding list, the 5th preset interface is for sending currently playing audio-frequency information to audio server.
As a kind of alternative embodiment, referring to Fig. 8, the device further include:
5th sending module 408, the 6th preset interface for calling audio client to provide, sends to audio server User plays the behavioral data of audio, and behavioral data includes at least the audio-frequency information that user switches the frequency of audio, user removes And the audio-frequency information of user's collection determines the audio recommended by audio server according to behavioral data, returns to the audio letter of recommendation Breath, the 6th preset interface are used to send the behavioral data that user plays audio to audio server.
Device provided in an embodiment of the present invention is taken by the first preset interface for calling audio client to provide to audio Business device sends audio-frequency information request.When receiving the audio-frequency information list of audio server return, on desktop widget interface Show any audio-frequency information in audio-frequency information list.When detecting the play operation to the audio-frequency information currently shown, root According to the audio identification of the audio-frequency information currently shown, the second preset interface for calling audio client to provide obtains corresponding sound Frequency data stream plays corresponding audio when receiving the voice data stream of audio server return.Due to playing audio When, it does not need user and voluntarily searches for and download audio, so that user can easily play the audio of online real-time update, section The operating cost and time cost for playing audio are saved.Therefore, the process for playing audio is relatively simple, and operating efficiency is higher.
Fig. 9 is a kind of block diagram of terminal 900 shown according to an exemplary embodiment.For example, terminal 900 can be movement Phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment, Personal digital assistant etc..
Referring to Fig. 9, terminal 900 may include following one or more components: processing component 902, memory 904, power supply Component 906, multimedia component 908, audio component 910, I/O (Input/Output, input/output) interface 912, sensor group Part 914 and communication component 916.
The integrated operation of the usual controlling terminal 900 of processing component 902, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 920 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in terminal 900.These data are shown Example includes the instruction of any application or method for operating in terminal 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as SRAM (Static Random Access Memory, static random access memory), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 906 provides electric power for the various assemblies of terminal 900.Power supply module 906 may include power management system System, one or more power supplys and other with for terminal 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between terminal 900 and user.In some realities It applies in example, screen may include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touching Touch panel).If screen includes touch panel, screen may be implemented as touch screen, to receive input signal from the user. Touch panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.Touch sensor The boundary of a touch or slide action can be not only sensed, but also detects duration relevant to touch or slide and pressure Power.In some embodiments, multimedia component 908 includes a front camera and/or rear camera.At terminal 900 In operation mode, such as in a shooting mode or a video mode, front camera and/or rear camera can receive external more matchmakers Volume data.Each front camera and rear camera can be a fixed optical lens system or have focal length and optics Zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a MIC (Microphone, microphone), when terminal 900 is in operation mode, such as call mode, recording mode, and voice recognition mode When, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 904 Or it is sent via communication component 916.In some embodiments, audio component 910 further includes a loudspeaker, for exporting audio Signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for terminal 900 is commented Estimate.For example, sensor module 914 can detecte the state that opens/closes of terminal 900, the relative positioning of component, such as component For the display and keypad of terminal 900, sensor module 914 can also detect the position of 900 1 components of terminal 900 or terminal Set change, the existence or non-existence that user contacts with terminal 900, the temperature in 900 orientation of terminal or acceleration/deceleration and terminal 900 Variation.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 914 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, complementary metal oxide) or CCD (Charge-coupled Device, charge coupled cell) image biography Sensor, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between terminal 900 and other equipment.Terminal 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, communication component 916 further includes NFC (Near Field Communication, near-field communication) Module, to promote short range communication.For example, NFC module can based on RFID (Radio Frequency Identification, Radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, terminal 900 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at digital signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device), FPGA) (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, for executing corresponding to above-mentioned Fig. 1 or Fig. 2 A kind of audio frequency playing method for desktop widget provided by any embodiment in embodiment.
Terminal provided in an embodiment of the present invention is taken by the first preset interface for calling audio client to provide to audio Business device sends audio-frequency information request.When receiving the audio-frequency information list of audio server return, on desktop widget interface Show any audio-frequency information in audio-frequency information list.When detecting the play operation to the audio-frequency information currently shown, root According to the audio identification of the audio-frequency information currently shown, the second preset interface for calling audio client to provide obtains corresponding sound Frequency data stream plays corresponding audio when receiving the voice data stream of audio server return.Due to playing audio When, it does not need user and voluntarily searches for and download audio, so that user can easily play the audio of online real-time update, section The operating cost and time cost for playing audio are saved.Therefore, the process for playing audio is relatively simple, and operating efficiency is higher.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of terminal 900 to complete the above method.For example, Non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage are set It is standby etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is executed by the processor of terminal When, it enables the terminal to execute a kind of audio frequency playing method for desktop widget, method includes:
When detecting desktop widget starting, the first preset interface for calling audio client to provide, to audio server Audio-frequency information request is sent, is requested by the audio server according to the audio-frequency information, audio-frequency information list, the sound are returned Frequency information list includes at least audio title and audio identification, and first preset interface is for obtaining audio-frequency information;
When receiving the audio-frequency information list that the audio server returns, the sound is shown on desktop widget interface Any audio-frequency information in frequency information list;
When detecting the play operation to the audio-frequency information currently shown, according to the audio-frequency information currently shown Audio identification, the second preset interface for calling the audio client to provide obtain corresponding voice data stream, and described second is pre- If interface is for obtaining voice data stream;
When receiving the voice data stream that the audio server returns, corresponding audio is played.
Computer readable storage medium provided in an embodiment of the present invention is preset by call audio client to provide first Interface sends audio-frequency information request to audio server.When receiving the audio-frequency information list of audio server return, in table Any audio-frequency information in audio-frequency information list is shown on the widget interface of face.When detecting broadcasting to the audio-frequency information currently shown When putting operation, according to the audio identification of the audio-frequency information currently shown, the second preset interface for calling audio client to provide is obtained Corresponding voice data stream is taken, when receiving the voice data stream of audio server return, plays corresponding audio.Due to When playing audio, does not need user and voluntarily search for and download audio, so that user can easily play online real-time update Audio, save play audio operating cost and time cost.Therefore, the process for playing audio is relatively simple, operation effect Rate is higher.
It should be understood that the audio playing apparatus provided by the above embodiment for desktop widget is when playing audio, Only the example of the division of the above functional modules, it in practical application, can according to need and by above-mentioned function distribution It is completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, it is described above to complete All or part of function.In addition, the audio playing apparatus provided by the above embodiment for desktop widget with for desktop it is micro- The audio frequency playing method embodiment of part belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of audio frequency playing method for desktop widget, which is characterized in that the described method includes:
When detecting desktop widget starting, without starting audio client, call the first of the audio client offer pre- If interface, audio-frequency information request is sent to audio server, is requested, is returned according to the audio-frequency information by the audio server Audio-frequency information list, the audio-frequency information list include at least audio title and audio identification, and first preset interface is used for Audio-frequency information is obtained, multiple preset interfaces of the audio client are configured in the desktop widget, the desktop widget is logical It crosses between the preset interface and the audio server that the audio client provides and carries out data interaction;
When receiving the audio-frequency information list that the audio server returns, the audio letter is shown on desktop widget interface Cease any audio-frequency information in list;
When detecting the play operation to the audio-frequency information currently shown, according to the audio of the audio-frequency information currently shown Mark, the second preset interface for calling the audio client to provide obtain corresponding voice data stream, and described second default connects Mouth is for obtaining voice data stream;
When receiving the voice data stream that the audio server returns, corresponding audio is played.
2. the method according to claim 1, wherein in the desktop widget interface include Audio conversion option,
Correspondingly, any audio-frequency information shown on desktop widget interface in the audio-frequency information list, comprising:
When detecting to song handoff options when choosing operation, obtains and described currently show from the audio-frequency information list Any audio-frequency information other than audio-frequency information is shown.
3. the method according to claim 1, wherein described when the audio for receiving the audio server return When data flow, after playing corresponding audio, further includes:
When detecting the play operation to similar audio, the third preset interface for calling the audio client to provide, to institute It states audio server and sends currently playing audio-frequency information, by the audio server according to currently playing audio-frequency information, return Audio-frequency information similar with currently playing audio is returned, the third preset interface is for obtaining sound similar with currently playing audio Frequency data stream.
4. the method according to claim 1, wherein described when the audio for receiving the audio server return When data flow, after playing corresponding audio, further includes:
When detection operates the collection of currently playing audio, the 4th preset interface for calling the audio client to provide, to The audio server sends currently playing audio-frequency information, by the audio server according to currently playing audio-frequency information, Currently playing audio is added to audio collection list, the 4th preset interface is used to work as to audio server transmission The audio-frequency information of preceding broadcasting.
5. the method according to claim 1, wherein described when the audio for receiving the audio server return When data flow, after playing corresponding audio, further includes:
If currently playing audio is the audio in audio collection list, and detects that the removal to currently playing audio operates, The 5th preset interface for calling the audio client to provide, currently playing audio-frequency information is sent to the audio server, By the audio server according to currently playing audio-frequency information, currently playing audio is removed from audio collection list, 5th preset interface is for sending currently playing audio-frequency information to the audio server.
6. the method according to claim 1, wherein described when the audio for receiving the audio server return When data flow, before playing corresponding audio, further includes:
The 6th preset interface for calling the audio client to provide sends the row that user plays audio to the audio server For data, the behavioral data includes at least user and switches the frequency of audio, the audio-frequency information that user removes and user's collection Audio-frequency information determines the audio recommended, returns to the audio-frequency information of recommendation by the audio server according to the behavioral data, 6th preset interface is used to send the behavioral data that user plays audio to the audio server.
7. a kind of audio playing apparatus for desktop widget, which is characterized in that described device includes:
First sending module, for without starting audio client, calling the audio visitor when detecting desktop widget starting The first preset interface that family end provides sends audio-frequency information request to audio server, as the audio server according to Audio-frequency information request returns to audio-frequency information list, and the audio-frequency information list includes at least audio title and audio identification, described First preset interface is for obtaining audio-frequency information, and multiple preset configured with the audio client connects in the desktop widget Mouthful, the desktop widget is by carrying out data friendship between the audio client preset interface provided and the audio server Mutually;
Display module, for when receiving the audio-frequency information list that the audio server returns, on desktop widget interface Show any audio-frequency information in the audio-frequency information list;
It obtains module, for when detecting the play operation to the audio-frequency information currently shown, is currently shown according to described The audio identification of audio-frequency information, the second preset interface for calling the audio client to provide, obtains corresponding voice data stream, Second preset interface is for obtaining voice data stream;
Playing module, for playing corresponding audio when receiving the voice data stream that the audio server returns.
8. device according to claim 7, which is characterized in that it include Audio conversion option in the desktop widget interface,
Correspondingly, the display module, for when detecting to song handoff options when choosing operation, from the audio-frequency information Any audio-frequency information other than the audio-frequency information currently shown is obtained in list to be shown.
9. device according to claim 7, which is characterized in that described device further include:
Second sending module, for when detecting the play operation to similar audio, calling the audio client to provide Third preset interface sends currently playing audio-frequency information to the audio server, by the audio server according to current The audio-frequency information of broadcasting returns to audio-frequency information similar with currently playing audio, and the third preset interface is for obtaining and working as The similar voice data stream of preceding broadcasting audio.
10. device according to claim 7, which is characterized in that described device further include:
Third sending module, for calling the audio client to provide when detection operates the collection of currently playing audio The 4th preset interface, currently playing audio-frequency information is sent to the audio server, by the audio server according to working as Currently playing audio is added to audio collection list the audio-frequency information of preceding broadcasting, and the 4th preset interface is used for institute It states audio server and sends currently playing audio-frequency information.
11. device according to claim 7, which is characterized in that described device further include:
4th sending module for being the audio in audio collection list in currently playing audio, and is detected to currently broadcasting When the removal operation of playback frequency, the 5th preset interface for calling the audio client to provide is sent to the audio server Currently playing audio-frequency information, by the audio server according to currently playing audio-frequency information, by currently playing audio from It is removed in audio collection list, the 5th preset interface is used to send currently playing audio letter to the audio server Breath.
12. device according to claim 7, which is characterized in that described device further include:
5th sending module, the 6th preset interface for calling the audio client to provide, sends out to the audio server The behavioral data for sending user to play audio, the behavioral data include at least the sound that user switches the frequency of audio, user removes Frequency information and the audio-frequency information of user's collection determine the audio recommended, return by the audio server according to the behavioral data The audio-frequency information recommended is pushed back, the 6th preset interface is used to send the behavior number that user plays audio to the audio server According to.
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 CN104462276A (en) 2015-03-25
CN104462276B true 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)

Families Citing this family (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
CN108038244B (en) * 2017-12-28 2020-02-21 北京达佳互联信息技术有限公司 Method and device for displaying cover of work by utilizing widget and mobile terminal
CN110266883B (en) * 2019-06-20 2021-01-12 广州酷狗计算机科技有限公司 Song downloading and collecting method and device, terminal equipment 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 (1)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7490295B2 (en) * 2004-06-25 2009-02-10 Apple Inc. Layer for accessing user interface elements

Patent Citations (1)

* 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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
云脉音乐窗口小部件V2.16;云脉音乐窗口小部件;《http://app.cnmo.com/android/145239》;20120828;全文
虾米音乐V4.2.0;虾米音乐;《http://app.cnmo.com/android/1032/history.html》;20141020;全文

Also Published As

Publication number Publication date
CN104462276A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN103403705B (en) Loading a mobile computing device with media files
US8015261B2 (en) Information processing apparatus with first and second sending/receiving units
CN111050203B (en) Video processing method and device, video processing equipment and storage medium
CN103218387B (en) Method and apparatus for the integrated management content in portable terminal
CN104133852B (en) Web access method, device, server and terminal
CN104793739A (en) Play control method and device
CN105335414B (en) Music recommendation method and device and terminal
JP2016533075A (en) Information acquisition method, apparatus, program, and recording medium
US20090100093A1 (en) Apparatus, system, method and computer program product for previewing media files
CN105183513A (en) Application recommendation method and apparatus
CN104090921B (en) Method for broadcasting multimedia file, device, terminal and server
CN104462276B (en) A kind of audio frequency playing method and device for desktop widget
CN105550251A (en) Picture play method and device
CN103823870B (en) Information processing method and electronic equipment
CN105095427A (en) Search recommendation method and device
CN105843853A (en) Clearing method and apparatus for intelligent device
WO2015102877A1 (en) Method and system for playback of audio content using wireless mobile device
CN106897937A (en) A kind of method and apparatus for showing social sharing information
CN107193606A (en) Using distribution method and device
CN106776068A (en) Display methods, device and equipment that candidate applies
CN106550252A (en) The method for pushing of information, device and equipment
CN105335198A (en) Font addition method and device
CN105447149A (en) Interaction method, apparatus and electronic device for network searching
CN106777016A (en) The method and device of information recommendation is carried out based on instant messaging
CN109241441A (en) Content recommendation method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant