[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101197690A - Method and device for acquiring audio files - Google Patents

Method and device for acquiring audio files Download PDF

Info

Publication number
CN101197690A
CN101197690A CNA2007103016355A CN200710301635A CN101197690A CN 101197690 A CN101197690 A CN 101197690A CN A2007103016355 A CNA2007103016355 A CN A2007103016355A CN 200710301635 A CN200710301635 A CN 200710301635A CN 101197690 A CN101197690 A CN 101197690A
Authority
CN
China
Prior art keywords
audio file
download
user
audition
message
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.)
Pending
Application number
CNA2007103016355A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNA2007103016355A priority Critical patent/CN101197690A/en
Publication of CN101197690A publication Critical patent/CN101197690A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The embodiment of the invention discloses a method of acquiring audio file, which comprises that: an operation request of the needed audio file which is sent by users is received; if the operation request is to audition the needed audio file, the low-quality audio file of the needed audio file is provided for the users; if the operation request is to download the needed audio file, the high-quality audio file of the needed audio file is provided for the users. The embodiment of the invention also discloses a device for acquiring the audio file which comprises a receiving module, a processing module, an audition module and a download module. The method and the device are used to ensure that the user can audition the audio file smoothly; at the same time, when the user needs to download the audio file, the user can download the high-quality audio file, thereby improving the quality of the downloaded audio file and the experience degree of the user.

Description

A kind of method and device that obtains audio file
Technical field
The present invention relates to file and obtain technology, refer in particular to a kind of method and device that obtains audio file.
Background technology
Along with rapid development of network technology, increasing website can provide the audition for the songs function for the user, but when the user hears the song of liking by the audition function, in the time of need downloading the song of liking, general website is used two kinds of methods as described below usually, allows the user to adopt HTTP(Hypertext Transport Protocol) to download:
1), provide the download network address of associated song to the user, the user can use the left button of mouse to click above-mentioned network address, directly opens player (for example, Windows Media Player) and plays;
2), provide the download network address of associated song to the user, the user can use the above-mentioned network address of clicking by right key of mouse, in the menu that ejects, carries out the download of song by selecting " Save Target As ".
In the method for two kinds of above-mentioned download of songss, there is following problem:
1), when the user carries out audition for the songs, because use player (for example, Windows Media Player) is play-overed the song on the address correlation, with the resource of serious consumption systems;
2) when the user need download associated song, because the file downloading mode of " Save Target As " that browser IE acquiescence provides is not supported technology such as breakpoint transmission, therefore use the reliability of this file downloading mode lower, cause the download of songs failure easily;
3) song downloaded when downloading of the song heard when audition of user is same audio file, does not realize differentiated service, and when carrying out audition, required data quantity transmitted is big, has influenced the smoothness sense the when user carries out audition.
Summary of the invention
In view of this, the main purpose of the embodiment of the invention is to provide a kind of method and device that obtains audio file, thereby guarantees user's audition audio file glibly, and downloads high-quality audio file.
For achieving the above object, the technical scheme in the embodiment of the invention is achieved in that
A kind of method of obtaining audio file, this method comprises:
Receive the operation requests that the user sent to required audio file; If the described operation requests described required audio file that is audition then provides the low-quality audio file of described required audio file for described user; If described operation requests is for downloading described required audio file, then provide the high quality audio file of described required audio file for described user.
A kind of device that obtains audio file also is provided in the embodiment of the invention, and this device comprises: receiver module, processing module, audition module and download module;
Described receiver module is used for the received operation requests to required audio file that the user sent is sent to described processing module;
Described processing module is used for when received operation requests is the described required audio file of audition, sends the audition instruction to described audition module; When received operation requests when downloading described required audio file, send download instruction to described download module;
Described audition module is used for providing for described user according to described audition instruction the low-quality audio file of described required audio file;
Described download module is used for providing for described user according to described download instruction the high quality audio file of described required audio file.
In summary, provide a kind of method and device that obtains audio file in the embodiments of the invention.Owing in the method that the embodiment of the invention provided, introduced the differentiated service of audition and download, thereby when the user carries out audition, downloaded inferior audio file, thereby guaranteed user's audition audio file glibly; Simultaneously, when the user needs download audio files, can make user's download arrive high-quality audio file, thereby improve the quality of the audio file that the user downloaded, improve user's Experience Degree.
Description of drawings
Fig. 1 listens the flow chart of the method for audio file for embodiment of the invention pilot scale.
Fig. 2 is the flow chart of the method for download audio files in the embodiment of the invention.
Fig. 3 is for obtaining the structure chart of the device of audio file in the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
A kind of method of obtaining audio file is provided in the embodiments of the invention, this method mainly realizes smooth audition effect by the differentiated service that audition and download are provided, and the user who downloads for needs provides high-quality audio file (for example, song, melody etc.).Described differentiated service is: when the user carried out audition, what the user received was inferior audio file, and the downloading mode that adopts HTTP to combine with point-to-point (P2P) guarantees the audition smoothness; And when the user needs download audio files, to download for the user provides high-quality audio file, also can when user's download, carry out track record simultaneously, and support HTTP breakpoint transmission technology, thereby guarantee that the user can download to high-quality audio file downloading task.Above-mentioned inferior audio file is that bit rate is lower than 128 kbps (kbps), and data volume is smaller, the fairly simple coarse audio file of sound; Above-mentioned high-quality audio file is that bit rate is higher than 256kbps, and data volume is bigger, the fuller abundant audio file of sound.
Therefore, in an embodiment of the present invention, the user can select this user's interest audio file by player or relevant music site.For example, the user can select earlier this audio file to be carried out audition, if satisfied to the result of audition, when needing to download this audio file, this audio file is downloaded again; Perhaps, the user also can be without audition, and this audio file is directly downloaded.When the user selects the audition audio file, can use the method for the audition audio file that the embodiment of the invention provides to carry out audition; When the user selected to download certain audio file, the method for the download audio files that can use in the embodiment of the invention to be provided was downloaded.Below, will be introduced respectively the method for above-mentioned audition audio file and the method for download audio files.
Fig. 1 listens the flow chart of the method for audio file for embodiment of the invention pilot scale.As shown in Figure 1, embodiment of the invention pilot scale listens the method for audio file to comprise step as described below:
Step 101 receives the operation requests that required audio file is carried out audition that the user sends by player or related web site.
Step 102, according to received aforesaid operations request, the use certificate server verifies that to described user's identity if by checking, then execution in step 103; Otherwise, return the information that authentication is failed, process ends to described user.
Step 103, streaming media server are searched the information of the audio file of the required audition of described user, if streaming media server finds the information of the audio file of required audition, then execution in step 104; Otherwise streaming media server returns the non-existent information of audio file, process ends to the user.
Step 104, the data message of the low-quality audio file of the required audio file of consumer positioning in low-quality audio file data storehouse (for example, relevant information such as file size, file type, download address).
Step 105 is returned the download message (for example, file size, file type, HTTP download address or be used for seed that P2P downloads etc.) of the low-quality audio file of the required audio file of user to the user according to above-mentioned data message.
Step 106, the client at user place is carried out relevant treatment according to above-mentioned download message.Described relevant treatment comprises: be the low-quality audio file of the audio file of the required audition of this user's download, and for the user plays low-quality audio file after the download, carry out audition.
In this step, the low-quality audio file of the client at user place can use that HTTP, P2P or HTTP combine with P2P etc. downloading mode the downloads audio file of required audition.
Because in the method for above-mentioned audition audio file, can use HTTP download and P2P to download the low-quality audio file that the mode that combines is downloaded the audio file of required audition, therefore can be the audio file of the required audition of user's download and play with the fastest speed, thereby guarantee the smoothness sense of user when carrying out audition.
After user's audition finished, when downloading the audio file of institute's audition if desired, perhaps the user did not pass through audition, and when needing directly certain audio file of download, also can provide a kind of method of download audio files in embodiments of the present invention.
Fig. 2 is the flow chart of the method for download audio files in the embodiment of the invention.As shown in Figure 2, the method for download audio files comprises step as described below in the embodiment of the invention:
Step 201 receives the operation requests that the user downloads by the audio file to required of player or related web site transmission.
Step 202, according to received aforesaid operations request, the use certificate server is verified described user's identity, judges whether the user has the authority of downloading above-mentioned audio file; If by checking, then execution in step 203; Otherwise, return the information that authentication is failed, process ends to the user.
Step 203, streaming media server B judges whether the user can download the high quality audio file of the audio file of described required download, if can, then execution in step 204; Otherwise streaming media server B returns the message (for example, temporarily not providing the information of downloading this audio file etc. as yet) of failed download, process ends to the user.
In this step, the above-mentioned high quality audio file of judging whether the user can download the audio file of required download can include but not limited to the content of the following aspects:
1) the high quality audio file of judging the audio file of required download whether exist, whether complete;
2) whether the high quality audio file of judging the audio file of required download exists the problem of downloading copyright;
3) judge whether described user has the authority of the high quality audio file of downloading this audio file;
4) judge whether the download service of high quality audio file of audio file of required download is ready.
Step 204, the data message of streaming media server B required audio file of consumer positioning in the high quality audio document data bank (for example, relevant information such as file size, file type, download address).
Step 205 is returned the download message (for example, file size, file type, HTTP download address or be used for seed that P2P downloads etc.) of the required audio file of user to the user according to above-mentioned data message.
Step 206, the client at user place is carried out relevant treatment according to above-mentioned download message.Described relevant treatment comprises: be the high quality audio file of the audio file of the required download of this user's download.
In this step, the client at user place can be according to received download message, and downloading mode such as use that HTTP, P2P or HTTP combine with P2P is downloaded the high quality audio file of the audio file of required audition.In addition, also can be when downloading, the downloading task of the client at this user place is carried out track record, and support HTTP breakpoint transmission technology, thereby guarantee to arrive high-quality audio file for user's download.
Fig. 3 is for obtaining the structure chart of the device of audio file in the embodiment of the invention.As shown in Figure 3, the device that obtains audio file in the embodiment of the invention comprises: receiver module, processing module, audition module and download module.
Receiver module is used for the received operation requests to required audio file that the user sent is sent to described processing module;
Processing module is used for when received operation requests is the described required audio file of audition, sends the audition instruction to described audition module; When received operation requests when downloading described required audio file, send download instruction to described download module;
Described audition module is used for providing for described user according to described audition instruction the low-quality audio file of described required audio file;
Described download module is used for providing for described user according to described download instruction the high quality audio file of described required audio file.
Wherein, above-mentioned processing module also comprises: authentication unit and processing unit.
Authentication unit is used for when received operation requests is the described required audio file of audition, and described user is carried out the audition checking, when described user verifies by audition, sends the audition checking to described processing unit and passes through message; Also be used for when received operation requests when downloading described required audio file, described user is downloaded checking, when described user when downloading checking, send to described processing unit and to download checking and pass through message;
Processing unit is used for according to received audition checking by message, to described audition module transmission audition instruction; By message, send download instruction according to received download checking to described download module.
In addition, above-mentioned audition module also comprises: query unit, acquiring unit and output unit.
Query unit is used for searching according to received audition instruction the fileinfo of described required audio file, when finding the fileinfo of described required audio file, described fileinfo is sent to described acquiring unit;
Acquiring unit, be used for obtaining the data message of the low-quality audio file of described required audio file according to described fileinfo, obtain the download message of described low-quality audio file according to described data message, described download message is sent to described output unit;
Output unit is used to export received download message.
In addition, above-mentioned download module also comprises: judging unit, acquiring unit and output unit;
Judging unit, be used for judging that according to received download instruction can described user download the high quality audio file of described required audio file, when described user can download the high quality audio file of required audio file, obtain instruction to described acquiring unit transmission;
Acquiring unit, be used for obtaining the data message that the high quality audio file of described required audio file is obtained in instruction according to described, obtain the download message of described high quality audio file according to described data message, described download message is sent to described output unit;
Output unit is used to export received download message.
Method among the application of the invention embodiment and device make the user can download inferior audio file when carrying out audition, thereby guarantee user's audition audio file glibly; Simultaneously, when the user needs download audio files, can make user's download arrive high-quality audio file, thereby improve the quality of the audio file that the user downloaded, improve user's Experience Degree.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. a method of obtaining audio file is characterized in that, this method comprises:
Receive the operation requests that the user sent to required audio file; If the described operation requests described required audio file that is audition then provides the low-quality audio file of described required audio file for described user; If described operation requests is for downloading described required audio file, then provide the high quality audio file of described required audio file for described user.
2. method according to claim 1 is characterized in that, describedly specifically comprises for described user provides the low-quality audio file of described required audio file:
When finding the information of described required audio file, from low-quality audio file data storehouse, obtain the data message of the low-quality audio file of described required audio file; To the download message that described user returns described low-quality audio file, make described user download described low-quality audio file according to described data message according to described download message.
3. method according to claim 2 is characterized in that, also comprises before the described information that finds described required audio file:
Described user is verified, when described user passes through checking, the information of searching the required audio file of described user.
4. method according to claim 3 is characterized in that, when described user the time does not also comprise by checking:
Return the information of authentication failed to described user, finish to obtain the flow process of audio file.
5. method according to claim 3 is characterized in that, described information of searching the required audio file of described user also comprises afterwards:
When not finding the information of required audio file, return the non-existent information of this audio file to the user, finish to obtain the flow process of audio file.
6. method according to claim 1 is characterized in that, describedly specifically comprises for described user provides the high-quality audio file of described required audio file:
When described user can download the high quality audio file of required audio file, in the high quality audio document data bank, obtain the data message of the high quality audio file of described required audio file; To the download message that described user returns described high quality audio file, make described user download described high-quality audio file according to described data message according to described download message.
7. method according to claim 6 is characterized in that, described user also comprises before downloading the high quality audio file of described required audio file:
Described user is verified, when described user by when checking, judge that can described user download the high quality audio file of described required audio file.
8. method according to claim 7 is characterized in that, when described user the time does not also comprise by checking:
Return the information of authentication failed to described user, finish to obtain the flow process of audio file.
9. method according to claim 6 is characterized in that, can the described user of described judgement also comprise after downloading the high quality audio file of described required audio file:
When described user can not download the high quality audio file of described required audio file, return the information of failed download to described user, finish to obtain the flow process of audio file.
10. a device that obtains audio file is characterized in that, this device comprises: receiver module, processing module, audition module and download module;
Described receiver module is used for the received operation requests to required audio file that the user sent is sent to described processing module;
Described processing module is used for when received operation requests is the described required audio file of audition, sends the audition instruction to described audition module; When received operation requests when downloading described required audio file, send download instruction to described download module;
Described audition module is used for providing for described user according to described audition instruction the low-quality audio file of described required audio file;
Described download module is used for providing for described user according to described download instruction the high quality audio file of described required audio file.
11. device according to claim 10 is characterized in that, described processing module comprises: authentication unit and processing unit;
Described authentication unit is used for when received operation requests is the described required audio file of audition, and described user is carried out the audition checking, when described user verifies by audition, sends the audition checking to described processing unit and passes through message; Also be used for when received operation requests when downloading described required audio file, described user is downloaded checking, when described user when downloading checking, send to described processing unit and to download checking and pass through message;
Described processing unit is used for according to received audition checking by message, to described audition module transmission audition instruction; By message, send download instruction according to received download checking to described download module.
12. device according to claim 10 is characterized in that, described audition module comprises: query unit, acquiring unit and output unit;
Described query unit is used for searching according to received audition instruction the fileinfo of described required audio file, when finding the fileinfo of described required audio file, described fileinfo is sent to described acquiring unit;
Described acquiring unit, be used for obtaining the data message of the low-quality audio file of described required audio file according to described fileinfo, obtain the download message of described low-quality audio file according to described data message, described download message is sent to described output unit;
Described output unit is used to export received download message.
13. device according to claim 10 is characterized in that, described download module comprises: judging unit, acquiring unit and output unit;
Described judging unit, be used for judging that according to received download instruction can described user download the high quality audio file of described required audio file, when described user can download the high quality audio file of required audio file, obtain instruction to described acquiring unit transmission;
Described acquiring unit, be used for obtaining the data message that the high quality audio file of described required audio file is obtained in instruction according to described, obtain the download message of described high quality audio file according to described data message, described download message is sent to described output unit;
Described output unit is used to export received download message.
CNA2007103016355A 2007-12-27 2007-12-27 Method and device for acquiring audio files Pending CN101197690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007103016355A CN101197690A (en) 2007-12-27 2007-12-27 Method and device for acquiring audio files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007103016355A CN101197690A (en) 2007-12-27 2007-12-27 Method and device for acquiring audio files

Publications (1)

Publication Number Publication Date
CN101197690A true CN101197690A (en) 2008-06-11

Family

ID=39547857

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007103016355A Pending CN101197690A (en) 2007-12-27 2007-12-27 Method and device for acquiring audio files

Country Status (1)

Country Link
CN (1) CN101197690A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119975A (en) * 2015-07-21 2015-12-02 陈丹 Resource downloading method and resource downloading system
CN106372461A (en) * 2016-08-31 2017-02-01 电子科技大学 Method for protecting online trial-listening music file copyright
CN111552454A (en) * 2020-04-29 2020-08-18 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119975A (en) * 2015-07-21 2015-12-02 陈丹 Resource downloading method and resource downloading system
CN106372461A (en) * 2016-08-31 2017-02-01 电子科技大学 Method for protecting online trial-listening music file copyright
CN106372461B (en) * 2016-08-31 2019-01-18 电子科技大学 A kind of method of Online Music audition file copy right protection
CN111552454A (en) * 2020-04-29 2020-08-18 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and storage medium
CN111552454B (en) * 2020-04-29 2023-10-27 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
US20210360200A1 (en) Rule constraining stream assembly at client-side media player
US7693992B2 (en) Technique for providing access to data
US7921221B2 (en) Method and apparatus for obtaining digital objects in a communication network
CN101505317B (en) Streaming media interruption and resumption system
US20180233119A1 (en) System and method for a networked virtual musical instrument
US7340526B2 (en) Automated content source validation for streaming data
US9454342B2 (en) Generating a playlist based on a data generation attribute
US11785076B2 (en) Retrieval and playout of media content
CN101179474A (en) Download method, system and device
JP2011130018A (en) Content distribution system, content distribution apparatus, content playback terminal and content distribution method
CN102014081A (en) Method, device and system for playing song segment in instant communication system
US11989224B2 (en) Retrieving and playing out media content for a personalized playlist including a content placeholder
US20200351320A1 (en) Retrieval and Playout of Media Content
US20150255055A1 (en) Personalized News Program
CN103826139A (en) CDN system, watching server and streaming media data transmission method
CN101197690A (en) Method and device for acquiring audio files
CN102984227B (en) Music sharing method and music sharing service end system
US20170118274A1 (en) Distribution network providing customized content at delivery
US7827300B2 (en) Method for free internet streaming of music
US7886068B1 (en) Management of streaming media playlists
CN101917328B (en) Method for locally storing and searching streaming media and network player
US20160255132A1 (en) Distributing content items to users
EP3614332B1 (en) Dynamic playout of audible punctuation in connection with playout of playlist content
US20130132074A1 (en) Method and system for reproducing and distributing sound source of electronic terminal
KR102194021B1 (en) Peer-to-peer content delivery network, method, and manager

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080611