[go: up one dir, main page]

CN105740393A - Method and device for playing music - Google Patents

Method and device for playing music Download PDF

Info

Publication number
CN105740393A
CN105740393A CN201610057483.8A CN201610057483A CN105740393A CN 105740393 A CN105740393 A CN 105740393A CN 201610057483 A CN201610057483 A CN 201610057483A CN 105740393 A CN105740393 A CN 105740393A
Authority
CN
China
Prior art keywords
audio
song
audio file
playback equipment
information
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
CN201610057483.8A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610057483.8A priority Critical patent/CN105740393A/en
Publication of CN105740393A publication Critical patent/CN105740393A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • G06F16/639Presentation of query results using playlists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

A song playing method and device are provided, so that playing equipment can play audio files with the highest audio quality of songs. The technical scheme comprises the following steps: the method comprises the steps that playing equipment obtains information of songs to be played; searching for audio files of the songs from a plurality of song storage terminals that are accessible; and selecting the audio file with the highest audio quality from the searched audio files as the audio file to be played.

Description

一种歌曲播放方法及装置Method and device for playing music

技术领域technical field

本发明涉及播放设备技术领域,具体涉及一种歌曲播放方法及装置。The invention relates to the technical field of playing equipment, in particular to a song playing method and device.

背景技术Background technique

现有技术中,播放设备例如MP3、移动终端、平板电脑等,在播放歌曲时,播放的是用户预先下载好的该歌曲,或者,已确定好来源的歌曲。然而,一首歌曲可能对应有多种多样的音频文件,这些音频文件可能采用不同的音频采样频率和/或音频采样位数,具有不同的音频质量。当用户想要收听音频质量更高的歌曲时,需要手动在本地或局域网或互联网中去寻找对应的音频文件。In the prior art, playing devices such as MP3, mobile terminal, tablet computer, etc., when playing a song, what is played is the song downloaded by the user in advance, or the song whose source has been determined. However, a song may correspond to various audio files, and these audio files may adopt different audio sampling frequencies and/or audio sampling bits, and have different audio quality. When the user wants to listen to a song with higher audio quality, he needs to manually search for the corresponding audio file in the local area network or the Internet.

发明内容Contents of the invention

本发明实施例提供一种歌曲播放方法及装置,以使播放设备能够主动播放音频质量最高的歌曲音频文件。Embodiments of the present invention provide a song playing method and device, so that a playing device can actively play a song audio file with the highest audio quality.

为解决上述技术问题及达到上述有益效果,本发明提供一种歌曲播放方法,包括:播放设备获取待播放的歌曲的信息;从能够访问的多个歌曲存储端搜索所述歌曲的音频文件;从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件。In order to solve the above-mentioned technical problems and achieve the above-mentioned beneficial effects, the present invention provides a method for playing a song, comprising: the playback device obtains the information of the song to be played; searches for the audio file of the song from a plurality of accessible song storage terminals; The audio file with the highest audio quality is selected from the multiple audio files searched as the audio file to be played.

本发明还提供一种歌曲播放装置,用于播放设备,所述装置包括:获取模块,用于使播放设备获取待播放的歌曲的信息;搜索模块,用于从能够访问的多个歌曲存储端搜索所述歌曲的音频文件;选择模块,用于从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件。The present invention also provides a song playing device, which is used for playing equipment, and the device includes: an acquisition module, used for making the playing equipment acquire the information of the song to be played; The audio file of the song is searched; the selection module is used to select the audio file with the highest audio quality from the searched multiple audio files as the audio file to be played.

相对现有技术,本发明采用播放设备从能够访问的多个歌曲存储端搜索所述歌曲的音频文件;从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件进行播放的技术方案,取得了以下技术效果:Compared with the prior art, the present invention uses a playback device to search for the audio file of the song from a plurality of song storage terminals that can be accessed; select the audio file with the highest audio quality from the searched multiple audio files, as the audio file that needs to be played The technical solution for playing has achieved the following technical effects:

相对于现有技术,针对选择的某首歌曲,播放设备不再是直接播放固定位置的该歌曲,而是尽最大努力从多个歌曲存储端中搜索歌曲的多个音频文件,播放其中音频质量最高的音频文件,从而改善播放效果,提高收听体验。Compared with the prior art, for a selected song, the playback device no longer directly plays the song at a fixed location, but tries its best to search multiple audio files of the song from multiple song storage terminals, and play the audio quality of the song. The highest audio files, resulting in improved playback and an enhanced listening experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例技术方案,下面将对实施例和现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that are required in the description of the embodiments and prior art. Obviously, the accompanying drawings in the following description are only some implementations of the present invention For example, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例提供的歌曲播放方法的流程示意图;Fig. 1 is a schematic flow chart of a song playing method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种歌曲播放装置的结构示意图;Fig. 2 is a schematic structural diagram of a song playing device provided by an embodiment of the present invention;

图3是本发明实施例提供的另一歌曲播放装置的结构示意图;Fig. 3 is a schematic structural diagram of another song playing device provided by an embodiment of the present invention;

图4是本发明实施例提供的播放设备的结构示意图。Fig. 4 is a schematic structural diagram of a playback device provided by an embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供一种歌曲播放方法,以使播放设备能够播放音频质量最高的歌曲音频文件。本发明实施例还提供相应的装置。An embodiment of the present invention provides a method for playing a song, so that a playback device can play a song audio file with the highest audio quality. The embodiment of the present invention also provides a corresponding device.

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

随着网络技术的发展,音乐的来源已多样化。播放设备不仅可以播放其本机内部如硬盘存储的歌曲,也可以播放连接到它的外部存储设备如U盘和移动硬盘等上的歌曲。当播放设备具备网络功能后,它还可以播放局域网内其它设备上存储的歌曲,如NAS(NetworkAttachedStorage,网络附属存储)设备,或NFS(NetworkFileSystem,网络文件系统)或Samba等网络文件系统,还可以播放互联网上的流媒体音乐,如当前流行的QQ音乐、网易云音乐等。With the development of network technology, the sources of music have been diversified. The playback device can not only play the songs stored in its own internal storage such as the hard disk, but also play the songs connected to its external storage devices such as U disk and mobile hard disk. When the playback device has a network function, it can also play songs stored on other devices in the LAN, such as NAS (NetworkAttachedStorage, network attached storage) equipment, or network file systems such as NFS (NetworkFileSystem, network file system) or Samba. Play streaming music on the Internet, such as the current popular QQ Music, NetEase Cloud Music, etc.

用户可以使用控制终端,连接到具备网络功能的播放设备,选择将播放设备本机或所接外部存储器上的歌曲、或局域网内其它设备上的歌曲、或互联网上的歌曲,添加到播放设备的播放列表中,播放设备依次播放其播放列表中的歌曲。所述控制终端通常是安装了控制软件的智能设备,如智能手机。如上所述,播放设备的播放列表中的歌曲,可能会有多种来源,如本机的、局域网的、或存放在互联网服务器上的。The user can use the control terminal to connect to the playback device with network function, and choose to add the songs on the local or connected external memory of the playback device, or songs on other devices in the local area network, or songs on the Internet, to the playback device. In the playlist, the playback device plays the songs in its playlist in sequence. The control terminal is usually an intelligent device installed with control software, such as a smart phone. As mentioned above, the songs in the playlist of the playback device may have multiple sources, such as local, local area network, or stored on the Internet server.

一首歌曲的音质,通常由其音频数据的采样频率和采样位数决定。比如常见的音频采样频率有44.1KHz、48KHz、96KHz、192KHz等,通常频率越高,声音的质量越好。采样位数有8位、16位、24位,通常采样位数越大,解析度就越高,回放的声音就越真实。The sound quality of a song is usually determined by the sampling frequency and number of sampling bits of its audio data. For example, common audio sampling frequencies are 44.1KHz, 48KHz, 96KHz, 192KHz, etc. Usually, the higher the frequency, the better the sound quality. There are 8 bits, 16 bits, and 24 bits of sampling bits. Usually, the larger the sampling bits, the higher the resolution and the more realistic the playback sound.

正因为播放设备可获得歌曲的途径多样化,歌曲名、演唱者、专辑等信息相同的同一首歌曲,可以分别从多个途径获得。比如,同样是周杰伦演唱的《青花瓷》,可能分别可以从局域网的NAS设备,以及多个网络音频服务器如QQ音乐和百度音乐等获得。各种途径获得的同一首歌曲的音频文件,其采样频率和采样位数可能有所不同,某些途径获得的音频质量相对比较高,而有些途径获得的音频质量相对比较差。Just because playback devices can obtain songs in various ways, the same song with the same information such as song name, singer, album, etc. can be obtained from multiple ways. For example, "Blue and White Porcelain" also sung by Jay Chou may be obtained from NAS devices in the local area network and multiple network audio servers such as QQ Music and Baidu Music. The audio files of the same song obtained through various channels may have different sampling frequency and number of bits. The audio quality obtained through some channels is relatively high, while the audio quality obtained through some channels is relatively poor.

用户通常是使用控制终端浏览某个歌曲存储端,搜索需要的歌曲,然后添加到播放设备的播放列表播放。Users usually use the control terminal to browse a certain song storage terminal, search for the desired song, and then add it to the playlist of the playback device to play.

本发明实施例提供一种歌曲播放技术方案,以使播放设备能够主动为用户搜索多个歌曲存储端,自行为用户播放音频最高质量的音频文件,以简化用户的浏览和选择操作,为用户带来优质的音乐收听体验。The embodiment of the present invention provides a song playback technical solution, so that the playback device can actively search for multiple song storage terminals for the user, and play the audio file with the highest audio quality for the user, so as to simplify the user's browsing and selection operations, and bring users Come for a high-quality music listening experience.

下面通过具体实施例,分别进行详细的说明。In the following, specific examples will be used to describe in detail respectively.

实施例一、Embodiment one,

请参考图1,本发明实施例提供的一种歌曲播放方法,可包括:Please refer to Fig. 1, a kind of song playing method that the embodiment of the present invention provides, may comprise:

110、播放设备获取待播放的歌曲的信息;110. The playback device obtains the information of the song to be played;

120、从能够访问的多个歌曲存储端搜索所述歌曲的音频文件;120. Search for the audio file of the song from multiple accessible song storage terminals;

130、从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件。130. Select an audio file with the highest audio quality from the multiple searched audio files as the audio file to be played.

可选的,步骤110之前,还可以包括:Optionally, before step 110, it may also include:

100、播放设备搜索和记录能够访问的多个歌曲存储端。100. The playback device searches and records multiple accessible song storage terminals.

利用该技术方案,播放设备可以从多个歌曲存储端中搜索歌曲的多个音频文件,播放其中音频质量最高的音频文件,从而改善播放效果,提高收听体验。With this technical solution, the playback device can search multiple audio files of a song from multiple song storage terminals, and play the audio file with the highest audio quality among them, thereby improving the playback effect and listening experience.

下面,对上述各个步骤进一步详细说明:Below, the above steps are further described in detail:

100、播放设备搜索和记录能够访问的多个歌曲存储端。100. The playback device searches and records multiple accessible song storage terminals.

所述多个歌曲存储端可以包括但不限于以下几种:所述播放设备内部存储器的歌曲目录位置,所述播放设备外接存储设备的歌曲目录位置,局域网内可访问的歌曲存储目录,以及互联网上可连接访问的音乐服务器。The plurality of song storage terminals may include but not limited to the following: the song directory location of the internal memory of the playback device, the song directory location of the external storage device connected to the playback device, the song storage directory accessible in the local area network, and the Internet. Music servers that can be connected to on the Internet.

110、播放设备获取待播放的歌曲的信息。110. The playback device acquires information about the song to be played.

所述播放设备可以被用户直接控制,或者通过控制终端控制。一些实施例中,用户可以在控制终端上浏览某个歌曲存储端,选择需要收听的歌曲,以添加到播放设备的播放列表。具体的,控制终端可以将用户选择的歌曲的信息发送给播放设备,歌曲的信息主要包括歌曲名称及其ID3信息,比如演唱者、专辑、发行时间等,还可以包括歌曲存放的位置或者说存放的地址。The playback device can be directly controlled by the user, or controlled through a control terminal. In some embodiments, the user can browse a certain song storage terminal on the control terminal, select a song to be listened to, and add it to the playlist of the playback device. Specifically, the control terminal can send the information of the song selected by the user to the playback device. The information of the song mainly includes the name of the song and its ID3 information, such as the singer, album, release time, etc., and can also include the location where the song is stored or stored. the address of.

所述播放设备可以接收控制终端发送的、用户在所述控制终端上选择的歌曲的信息,所述歌曲的信息包括歌曲的名称和ID3信息;然后,播放设备可以将接收到的所述歌曲的信息添加到所述播放设备本地的播放列表中;播放列表中记录每首歌曲的名称和ID3信息,所述播放设备可以从本地的播放列表中获取待播放的歌曲的信息。The playback device can receive the information of the song that the user selects on the control terminal sent by the control terminal, the information of the song includes the title and ID3 information of the song; then, the playback device can use the received song information The information is added to the local playlist of the playback device; the name and ID3 information of each song are recorded in the playlist, and the playback device can obtain the information of the song to be played from the local playlist.

120、从能够访问的多个歌曲存储端搜索所述歌曲的音频文件。120. Search for the audio file of the song from multiple accessible song storage terminals.

播放设备对播放列表中待播放的歌曲,在播放前,可以根据歌曲的名称以及所能够获得的ID3信息,在播放设备记录的能够访问的多个歌曲存储端中,搜索该歌曲的音频文件。需要说明的是,有些歌曲的文件并不保持有所有的ID3信息,部分缺失或全部缺失的情况都有可能存在。The playback device can search for the audio file of the song in a plurality of accessible song storage terminals recorded by the playback device according to the title of the song and the obtained ID3 information before playing the song to be played in the playlist. It should be noted that the files of some songs do not keep all the ID3 information, and some or all of the information may be missing.

130、从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件。130. Select an audio file with the highest audio quality from the multiple searched audio files as the audio file to be played.

除了用户在控制终端浏览的歌曲存储端,如果在其它歌曲存储端也搜索到相同的歌曲,则播放设备可以从多个歌曲存储端获取搜索到的该歌曲的多个音频文件的音频采样频率和/或音频采样位数,然后,播放设备可以通过比较所述多个歌曲存储端所提供的同一首歌曲的多个音频文件的音频采样频率和/或音频采样位,选择得到该歌曲的音频质量最高的音频文件,并且,可以从其歌曲存储端下载到播放设备,或者记录所述选择的音频文件在歌曲存储端的地址。In addition to the song storage end that the user browses at the control terminal, if the same song is also searched at other song storage ends, the playback device can obtain the audio sampling frequency and /or audio sampling bit number, then, the playback device can select to obtain the audio quality of the song by comparing the audio sampling frequency and/or audio sampling bit of a plurality of audio files of the same song provided by the plurality of song storage terminals The highest audio file, and can be downloaded to the playback device from its song storage end, or record the address of the selected audio file at the song storage end.

音频质量的评判标准,可以只考虑单个指标,比如只比较音频采样频率或音频采样位数,也可以考虑两个指标,例如一种简单的办法是考虑音频采样频率乘以音频采样位,确定指标高的歌曲其音频质量高。Judging criteria for audio quality can only consider a single indicator, such as comparing only the audio sampling frequency or the number of audio sampling bits, or two indicators. For example, a simple method is to consider the audio sampling frequency multiplied by the audio sampling bit to determine the indicator High songs have high audio quality.

于是,一些实施例中,可以通过比较所述多个音频文件的音频采样频率和/或音频采样位数,选择出音频采样频率最高的音频文件,或者音频采样位数最大的音频文件,或者音频采样频率和音频采样位数的乘积最大的音频文件,作为音频质量最高的音频文件。Therefore, in some embodiments, the audio file with the highest audio sampling frequency, or the audio file with the largest audio sampling number, or the audio The audio file with the largest product of the sampling frequency and the number of audio sampling bits is regarded as the audio file with the highest audio quality.

需要说明的是,为了避免搜索歌曲和比较歌曲音频质量的操作对播放的不良影响,播放设备可以提前对播放列表中的歌曲进行上述搜索和比较,将结果记录到播放列表中每首歌曲的信息中。这里所说的结果可以是指歌曲存放在存储端的地址,也就是上述搜索和比较得到的最高音频质量的歌曲存放在存储端的地址。It should be noted that, in order to avoid adverse effects on playback caused by the operation of searching for songs and comparing the audio quality of songs, the playback device can perform the above-mentioned search and comparison on the songs in the playlist in advance, and record the results in the information of each song in the playlist middle. The result mentioned here may refer to the address where the song is stored in the storage end, that is, the address where the song with the highest audio quality obtained by the above search and comparison is stored in the storage end.

下面举例说明:The following example illustrates:

假设用户在控制终端上浏览局域网内的NAS服务器上的歌曲,选择了周杰伦演唱的《青花瓷》添加到播放设备的播放列表。播放设备接收到控制终端添加的上述歌曲后,在其可以访问的QQ音乐、百度音乐、虾米音乐等多个音乐服务器上搜索上述周杰伦演唱的《青花瓷》,获取它们存储的同一首歌的音频采样频率和音频采样位,发现QQ音乐服务器上存储的这首歌曲的音频文件的音频质量最高。播放设备可以在播放列表中,更改歌曲《青花瓷》的存放位置,指向QQ音乐服务器。当播放设备播放到《青花瓷》这首歌曲时,将从QQ音乐服务器下载播放,而不是当前用户选择的局域网NAS服务器。可见,播放设备可以自动为用户在多个歌曲存储端中,选择同一首歌曲的音频质量最高的音频文件进行播放,从而可以获得最佳听音体验。Assume that the user browses the songs on the NAS server in the local area network on the control terminal, selects "Blue and White Porcelain" sung by Jay Chou and adds it to the playlist of the playback device. After the playback device receives the above-mentioned song added by the control terminal, it searches for the above-mentioned "Blue and White Porcelain" sung by Jay Chou on multiple music servers such as QQ Music, Baidu Music, and Xiami Music that it can access, and obtains the audio samples of the same song stored in them Frequency and audio sampling bits, and found that the audio file of this song stored on the QQ Music server has the highest audio quality. The playback device can change the storage location of the song "Blue and White Porcelain" in the playlist to point to the QQ music server. When the playback device plays the song "Blue and White Porcelain", it will download and play from the QQ music server instead of the local area network NAS server selected by the current user. It can be seen that the playback device can automatically select the audio file with the highest audio quality of the same song for the user to play in multiple song storage terminals, so as to obtain the best listening experience.

可以理解,本发明实施例上述方案例如可以在播放设备具体实施。It can be understood that the above solutions of the embodiments of the present invention may be specifically implemented in, for example, a playback device.

由上可见,在本发明的一些可行的实施方式中,采用播放设备从能够访问的多个歌曲存储端搜索所述歌曲的音频文件;从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件进行播放的技术方案,取得了以下技术效果:As can be seen from the above, in some feasible implementation manners of the present invention, the audio file of the song is searched from a plurality of song storage terminals that can be accessed by using a playback device; file, as a technical solution for playing audio files that need to be played, the following technical effects have been achieved:

相对于现有技术,针对选择的某首歌曲,播放设备不再是直接播放固定位置的该歌曲,而是尽最大努力从多个歌曲存储端中搜索歌曲的多个音频文件,播放其中音频质量最高的音频文件,从而改善播放效果,提高收听体验。Compared with the prior art, for a selected song, the playback device no longer directly plays the song at a fixed location, but tries its best to search multiple audio files of the song from multiple song storage terminals, and play the audio quality of the song. The highest audio files, resulting in improved playback and an enhanced listening experience.

为了更好的实施本发明实施例的上述方案,下面还提供用于配合实施上述方案的相关装置。In order to better implement the above solutions of the embodiments of the present invention, related devices for coordinating the implementation of the above solutions are also provided below.

实施例二、Embodiment two,

请参考图2,本发明实施例提供歌曲播放装置300,用于播放设备,所述装置300可包括:Please refer to Fig. 2, the embodiment of the present invention provides song playing apparatus 300, is used for playing equipment, and described apparatus 300 can comprise:

获取模块210,用于使播放设备获取待播放的歌曲的信息;Obtaining module 210, is used for making playback device obtain the information of the song to be played;

搜索模块220,用于从能够访问的多个歌曲存储端搜索所述歌曲的音频文件;A search module 220, configured to search for the audio file of the song from multiple song storage terminals that can be accessed;

选择模块230,用于从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件。The selection module 230 is configured to select the audio file with the highest audio quality from the searched multiple audio files as the audio file to be played.

在一些实施例中,所述搜索模块220,还用于使所述播放设备搜索和记录能够访问的多个歌曲存储端,所述多个歌曲存储端包括所述播放设备内部存储器的歌曲目录位置,所述播放设备外接存储设备的歌曲目录位置,局域网内可访问的歌曲存储目录,以及互联网上可连接访问的音乐服务器。In some embodiments, the search module 220 is also used to enable the playback device to search and record multiple song storage terminals that can be accessed, and the multiple song storage terminals include the song directory location of the internal memory of the playback device , the location of the song directory of the external storage device connected to the playback device, the accessible song storage directory in the local area network, and the music server that can be connected and accessed on the Internet.

请参考图3,在一些实施例中,所述获取模块210包括:Please refer to FIG. 3, in some embodiments, the acquisition module 210 includes:

接收单元2101,用于使所述播放设备接收控制终端发送的、用户在所述控制终端上选择的歌曲的信息,所述歌曲的信息包括歌曲的名称和ID3信息;The receiving unit 2101 is configured to enable the playback device to receive the information of the song sent by the control terminal and selected by the user on the control terminal, the information of the song includes the name of the song and ID3 information;

添加单元2102,用于将接收到的所述歌曲的信息添加到所述播放设备的播放列表中;Adding unit 2102, configured to add the received information of the song to the playlist of the playback device;

获取单元2103,用于使所述播放设备从本地的播放列表中获取待播放的歌曲的信息。The obtaining unit 2103 is configured to enable the playing device to obtain the information of the song to be played from a local playlist.

请参考图3,在一些实施例中,所述选择模块230包括:Please refer to FIG. 3, in some embodiments, the selection module 230 includes:

获取单元2301,用于从所述多个歌曲存储端获取搜索到的多个音频文件各自的音频采样频率和/或音频采样位数;An acquisition unit 2301, configured to acquire the respective audio sampling frequencies and/or audio sampling digits of the searched multiple audio files from the plurality of song storage terminals;

选择单元2302,用于通过比较所述多个音频文件的音频采样频率和/或音频采样位数,选择音频质量最高的音频文件;A selection unit 2302, configured to select the audio file with the highest audio quality by comparing the audio sampling frequencies and/or audio sampling bits of the plurality of audio files;

处理单元2303,用于将选择的音频文件下载到所述播放设备,或者,记录所述选择的音频文件在歌曲存储端的地址。The processing unit 2303 is configured to download the selected audio file to the playback device, or record the address of the selected audio file in the song storage terminal.

在一些实施例中,所述选择单元2302,具体用于:通过比较所述多个音频文件的音频采样频率和/或音频采样位数,选择出音频采样频率最高的音频文件,或者音频采样位数最大的音频文件,或者音频采样频率和音频采样位数的乘积最大的音频文件,作为音频质量最高的音频文件。In some embodiments, the selection unit 2302 is specifically configured to: select the audio file with the highest audio sampling frequency or audio sampling bit by comparing the audio sampling frequency and/or audio sampling bit number of the multiple audio files The audio file with the largest number, or the audio file with the largest product of audio sampling frequency and audio sampling bits, is regarded as the audio file with the highest audio quality.

可以理解,本发明实施例的歌曲播放装置300的各个功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述方法实施例中的相关描述,此处不再赘述。It can be understood that the functions of each functional module of the song playing device 300 in the embodiment of the present invention can be specifically realized according to the method in the above-mentioned method embodiment, and its specific implementation process can refer to the relevant description in the above-mentioned method embodiment, and will not be repeated here. .

由上可见,在本发明的一些可行的实施方式中,采用播放设备从能够访问的多个歌曲存储端搜索所述歌曲的音频文件;从搜索到的多个音频文件中选择音频质量最高的音频文件,作为需要播放的音频文件进行播放的技术方案,取得了以下技术效果:As can be seen from the above, in some feasible implementation manners of the present invention, the audio file of the song is searched from a plurality of song storage terminals that can be accessed by using a playback device; file, as a technical solution for playing audio files that need to be played, the following technical effects have been achieved:

相对于现有技术,针对选择的某首歌曲,播放设备不再是直接播放固定位置的该歌曲,而是尽最大努力从多个歌曲存储端中搜索歌曲的多个音频文件,播放其中音频质量最高的音频文件,从而改善播放效果,提高收听体验。Compared with the prior art, for a selected song, the playback device no longer directly plays the song at a fixed location, but tries its best to search multiple audio files of the song from multiple song storage terminals, and play the audio quality of the song. The highest audio files, resulting in improved playback and an enhanced listening experience.

请参考图4,本发明实施例还提供一种播放设备400,该播放设备400可包括:Please refer to FIG. 4, the embodiment of the present invention also provides a playback device 400, the playback device 400 may include:

一个或多个处理器401;存储器402;以及一个或多个程序403,其中所述一个或多个程序被存储在所述存储器402中并被配置为被所述一个或多个处理器401执行,所述一个或多个程序403包括用于执行如上文方法实施例所述的歌曲播放方法的指令。其中,所述处理器401与存储器402可通过总线404连接。当所述播放设备400运行时,所述处理器401执行所述存储器402存储的所述程序403,以使所述播放设备400执行如上文方法实施例所述的歌曲播放方法。One or more processors 401; memory 402; and one or more programs 403, wherein the one or more programs are stored in the memory 402 and configured to be executed by the one or more processors 401 , the one or more programs 403 include instructions for executing the method for playing a song as described in the method embodiment above. Wherein, the processor 401 and the memory 402 may be connected through a bus 404 . When the playing device 400 is running, the processor 401 executes the program 403 stored in the memory 402, so that the playing device 400 executes the song playing method as described in the method embodiment above.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because Certain steps may be performed in other orders or simultaneously in accordance with the present invention. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: ROM, RAM, disk or CD, etc.

以上对本发明实施例所提供的歌曲播放方法及装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The song playing method and device provided by the embodiment of the present invention have been introduced in detail above. The principles and implementation methods of the present invention have been explained by using specific examples in this paper. The description of the above embodiments is only used to help understand the method of the present invention. and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. limits.

Claims (10)

1. a playback of songs method, it is characterised in that including:
Playback equipment obtains the information of song to be played;
The audio file of described song is searched for from the multiple songs storage end being able to access that;
The audio file that audio quality is the highest is selected, as the audio file needing broadcasting from the multiple audio files searched.
2. method according to claim 1, it is characterised in that also include before the information of the song that the acquisition of described playback equipment is to be played:
Multiple songs storage end that the search of described playback equipment and record are able to access that, the plurality of song storage end includes the song catalog position of described playback equipment internal storage, the song catalog position of described playback equipment external storage equipment, addressable song storage catalogue in LAN, and can the music servers of connected reference on the Internet.
3. method according to claim 1, it is characterised in that described playback equipment obtains the information of song to be played and includes:
Described playback equipment receives the information controlling song that terminal sends, that user selects in described control terminal, and the information of described song includes title and the ID3 information of song;
The information of the described song received is added in the playlist that described playback equipment is local;
Described playback equipment obtains the information of song to be played from local playlist.
4. according to described method arbitrary in claims 1 to 3, it is characterised in that the described audio file that selection audio quality is the highest from the multiple audio files searched includes:
Store end from the plurality of song and obtain the respective audio sampling frequency of multiple audio files and/or audio sample figure place that search;
By the audio sampling frequency of relatively the plurality of audio file and/or audio sample figure place, select the audio file that audio quality is the highest;
By the downloaded of selection to described playback equipment, or, the audio file recording described selection stores the address of end in song.
5. method according to claim 4, it is characterised in that the described audio sampling frequency by relatively the plurality of audio file and/or audio sample figure place, the audio file selecting audio quality the highest includes:
By the audio sampling frequency of relatively the plurality of audio file and/or audio sample figure place, select the audio file that audio sampling frequency is the highest, or the audio file that audio sample figure place is maximum, or the audio file that the product of audio sampling frequency and audio sample figure place is maximum, as the audio file that audio quality is the highest.
6. a playback of songs device, it is characterised in that for playback equipment, described device includes:
Acquisition module, for making playback equipment obtain the information of song to be played;
Search module, for searching for the audio file of described song from the multiple songs storage end being able to access that;
Select module, for selecting the audio file that audio quality is the highest from the multiple audio files searched, as the audio file needing broadcasting.
7. device according to claim 6, it is characterised in that
Described search module, it is additionally operable to the multiple songs storage end making the search of described playback equipment and record be able to access that, the plurality of song storage end includes the song catalog position of described playback equipment internal storage, the song catalog position of described playback equipment external storage equipment, addressable song storage catalogue in LAN, and can the music servers of connected reference on the Internet.
8. device according to claim 6, it is characterised in that described acquisition module includes:
Receiving unit, the information controlling song that terminal sends, that user selects in described control terminal for making described playback equipment receive, the information of described song includes title and the ID3 information of song;
Adding device, for adding to the information of the described song received in the playlist that described playback equipment is local;
Acquiring unit, for making described playback equipment obtain the information of song to be played from local playlist.
9. according to described device arbitrary in claim 6 to 8, it is characterised in that described selection module includes:
Acquiring unit, obtains, for storing end from the plurality of song, the respective audio sampling frequency of multiple audio files and/or audio sample figure place that search;
Select unit, for audio sampling frequency and/or audio sample figure place by comparing the plurality of audio file, select the audio file that audio quality is the highest;
Processing unit, for the downloaded that will select to described playback equipment, or, record the audio file of the described selection address at song storage end.
10. device according to claim 9, it is characterised in that
Described selection unit, specifically for: by the audio sampling frequency of relatively the plurality of audio file and/or audio sample figure place, select the audio file that audio sampling frequency is the highest, or the audio file that audio sample figure place is maximum, or the audio file that the product of audio sampling frequency and audio sample figure place is maximum, as the audio file that audio quality is the highest.
CN201610057483.8A 2016-01-27 2016-01-27 Method and device for playing music Pending CN105740393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610057483.8A CN105740393A (en) 2016-01-27 2016-01-27 Method and device for playing music

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610057483.8A CN105740393A (en) 2016-01-27 2016-01-27 Method and device for playing music

Publications (1)

Publication Number Publication Date
CN105740393A true CN105740393A (en) 2016-07-06

Family

ID=56246693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610057483.8A Pending CN105740393A (en) 2016-01-27 2016-01-27 Method and device for playing music

Country Status (1)

Country Link
CN (1) CN105740393A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106297839A (en) * 2016-09-30 2017-01-04 四川九洲电器集团有限责任公司 A kind of audio-frequence player device
CN106454399A (en) * 2016-11-30 2017-02-22 努比亚技术有限公司 Volume control method and system, and equipment
CN106484833A (en) * 2016-09-30 2017-03-08 四川九洲电器集团有限责任公司 A kind of source of sound screening technique and electronic equipment
CN106648523A (en) * 2016-09-30 2017-05-10 四川九洲电器集团有限责任公司 Sound source screening method and electronic equipment
CN108563691A (en) * 2018-03-16 2018-09-21 珠海市魅族科技有限公司 Content delivery method and device, computer installation and computer readable storage medium
CN109344284A (en) * 2018-09-12 2019-02-15 广州酷狗计算机科技有限公司 Playback method, device, equipment and the storage medium of song files
CN110310673A (en) * 2018-03-27 2019-10-08 厦门歌乐电子企业有限公司 A kind of music player and method for playing music
CN110637340A (en) * 2018-06-21 2019-12-31 深圳市大疆创新科技有限公司 Speaker control method and device for drone

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554095A (en) * 2001-09-10 2004-12-08 汤姆森特许公司 Method and apparatus for creating an indexed playlist in a digital audio data player
WO2010146066A1 (en) * 2009-06-19 2010-12-23 Thomson Licensing Method for selecting versions of a document from a plurality of versions received after a search, and related receiver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554095A (en) * 2001-09-10 2004-12-08 汤姆森特许公司 Method and apparatus for creating an indexed playlist in a digital audio data player
WO2010146066A1 (en) * 2009-06-19 2010-12-23 Thomson Licensing Method for selecting versions of a document from a plurality of versions received after a search, and related receiver
CN102460434A (en) * 2009-06-19 2012-05-16 汤姆森特许公司 Method for selecting a file version from a plurality of versions received after a search and associated receiver

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SUPER119: "什么是音频视频比特率,采样率,讲的很不错", 《HTTPS://WWW.CNBLOGS.COM/SUPER119/ARCHIVE/2011/01/03/1924448.HTML》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106297839A (en) * 2016-09-30 2017-01-04 四川九洲电器集团有限责任公司 A kind of audio-frequence player device
CN106484833A (en) * 2016-09-30 2017-03-08 四川九洲电器集团有限责任公司 A kind of source of sound screening technique and electronic equipment
CN106648523A (en) * 2016-09-30 2017-05-10 四川九洲电器集团有限责任公司 Sound source screening method and electronic equipment
CN106454399A (en) * 2016-11-30 2017-02-22 努比亚技术有限公司 Volume control method and system, and equipment
CN108563691A (en) * 2018-03-16 2018-09-21 珠海市魅族科技有限公司 Content delivery method and device, computer installation and computer readable storage medium
CN110310673A (en) * 2018-03-27 2019-10-08 厦门歌乐电子企业有限公司 A kind of music player and method for playing music
CN110310673B (en) * 2018-03-27 2022-03-22 厦门歌乐电子企业有限公司 Music player and music playing method
CN110637340A (en) * 2018-06-21 2019-12-31 深圳市大疆创新科技有限公司 Speaker control method and device for drone
CN109344284A (en) * 2018-09-12 2019-02-15 广州酷狗计算机科技有限公司 Playback method, device, equipment and the storage medium of song files
CN109344284B (en) * 2018-09-12 2020-11-03 广州酷狗计算机科技有限公司 Song file playing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105740393A (en) Method and device for playing music
CN105009118B (en) Customized content consumption interface
US9342539B2 (en) Database manager and method and computer program for managing a database
CN101071616B (en) Information processing system, terminal device, information processing method and program
US20170060520A1 (en) Systems and methods for dynamically editable social media
CN106095595B (en) Information sharing method and terminal between a kind of application program
EP3143769A1 (en) Intelligent auto-caching of media
CN107729578A (en) A kind of music recommends method and device
US20250045325A1 (en) Music discovery
CN107241511A (en) A music playing method, device, storage medium and terminal
CN105824895A (en) KTV song selection method and system
US8195639B2 (en) Information processing apparatus, music distribution system, music distribution method and computer program
KR101713988B1 (en) Method and apparatus for providing content sending metadata extracted from content
CN105760436B (en) Audio data processing method and device
CN104794156B (en) File sharing method and device
CN106411975B (en) A data output method, device and computer readable storage medium
US20110125297A1 (en) Method for setting up a list of audio files
CN107577740A (en) Method and device for determining next playing content
EP2722777A2 (en) Method and apparatus for managing a catalog of media content
CN106303668B (en) Method, device and terminal for processing multimedia playback information
US20070078847A1 (en) System and method for generating a play-list
WO2017219481A1 (en) Playlist sorting method and device
Gilman Personal Music Players
WO2013182853A1 (en) Audio system and audio system operating method
JP2009020571A (en) Musical piece retrieval device, musical piece retrieval method, and musical piece retrieval program

Legal Events

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

Application publication date: 20160706

RJ01 Rejection of invention patent application after publication