CN107463644B - A kind of music recommendation method and mobile terminal - Google Patents
A kind of music recommendation method and mobile terminal Download PDFInfo
- Publication number
- CN107463644B CN107463644B CN201710597072.2A CN201710597072A CN107463644B CN 107463644 B CN107463644 B CN 107463644B CN 201710597072 A CN201710597072 A CN 201710597072A CN 107463644 B CN107463644 B CN 107463644B
- Authority
- CN
- China
- Prior art keywords
- music
- menu
- recommended
- location
- mobile terminal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000004913 activation Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000699666 Mus <mouse, genus> Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/635—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/68—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/686—Retrieval 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Library & Information Science (AREA)
- Telephone Function (AREA)
Abstract
本发明提供了一种音乐推荐方法及移动终端,其中,所述方法包括:若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;获取与所述位置时间信息相匹配的推荐音乐菜单;若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。从而解决了不能根据个体用户的具体使用习惯以及状态、位置、时间信息进行音乐推荐的问题。
The present invention provides a music recommendation method and a mobile terminal, wherein the method includes: if a start operation of a music application on a mobile terminal is detected, acquiring location and time information of the mobile terminal, where the location and time information includes a location information and time information; obtain the recommended music menu matching the location and time information; if obtaining the recommended music menu is successful, display the recommended music menu; if obtaining the recommended music menu fails, according to the The location and time information of the terminal and the music attribute information during music playing establish a recommended music menu. Thus, the problem of not being able to recommend music according to individual user's specific usage habits, as well as state, location, and time information is solved.
Description
技术领域technical field
本发明涉及移动终端技术领域,尤其涉及一种音乐推荐方法及移动终端。The present invention relates to the technical field of mobile terminals, and in particular, to a music recommendation method and a mobile terminal.
背景技术Background technique
随着移动终端技术的迅速发展,越来越多的用户通过互联网或移动互联网在线收听或下载音乐。用户在点歌时,需要提供音乐的相关信息,例如音乐的名称、作者等,然后服务器返回符合搜索条件的音乐列表供用户选择。此外,用户可能会喜欢某一类的音乐,因此需要将音乐主动推荐给用户。With the rapid development of mobile terminal technology, more and more users listen to or download music online through the Internet or mobile Internet. When a user requests a song, he needs to provide relevant information about the music, such as the name and author of the music, and then the server returns a list of music that meets the search conditions for the user to select. In addition, users may like a certain type of music, so music needs to be actively recommended to users.
现有的音乐推荐方法仅仅通过音乐相关信息(例如专辑名称、作者、类型等)来进行推荐。Existing music recommendation methods only make recommendations based on music-related information (eg, album title, author, genre, etc.).
然而,现有的这种音乐推荐方法由于仅参考音乐相关信息来进行推荐,并不根据用户当前的状态,收听音乐的位置和时间以及习惯进行推荐,往往并不能满足用户对于推荐功能的期望。However, the existing music recommendation methods only refer to music-related information for recommendation, and do not recommend according to the user's current state, the location and time of listening to music, and habits, and often fail to meet the user's expectations for the recommendation function.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种音乐推荐方法及移动终端,以解决现有技术中不能根据个体用户的具体使用习惯以及状态、位置、时间信息进行音乐推荐的问题。Embodiments of the present invention provide a music recommendation method and a mobile terminal, so as to solve the problem in the prior art that music recommendation cannot be performed according to individual user's specific usage habits, status, location, and time information.
第一方面,本发明实施例提供了一种音乐推荐方法,应用于移动终端,该方法包括:In a first aspect, an embodiment of the present invention provides a music recommendation method, which is applied to a mobile terminal, and the method includes:
若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;If the startup operation of the music application on the mobile terminal is detected, the location and time information of the mobile terminal is acquired, and the location and time information includes location information and time information;
获取与所述位置时间信息相匹配的推荐音乐菜单;obtaining a recommended music menu matching the location and time information;
若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;If obtaining the recommended music menu is successful, displaying the recommended music menu;
若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。If the acquisition of the recommended music menu fails, the recommended music menu is established according to the location and time information of the mobile terminal and the music attribute information during music playing.
第二方面,本发明实施例还提供了一种移动终端,包括:In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
位置时间获取模块,用于若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;a location and time acquisition module, configured to acquire location and time information of the mobile terminal if an activation operation of the music application on the mobile terminal is detected, where the location and time information includes location information and time information;
推荐音乐菜单获取模块,用于获取与所述位置时间信息相匹配的推荐音乐菜单;A recommended music menu acquisition module, used to acquire a recommended music menu matching the location and time information;
推荐音乐菜单展示模块,用于若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;A recommended music menu display module, configured to display the recommended music menu if the recommended music menu is obtained successfully;
推荐音乐菜单建立模块,用于若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。The recommended music menu establishment module is configured to establish the recommended music menu according to the location time information of the mobile terminal and the music attribute information during music playing if the acquisition of the recommended music menu fails.
这样,本发明实施例中,通过检测到移动终端上音乐应用的启动操作,获取所述移动终端的位置时间信息;获取与所述位置时间信息相匹配的推荐音乐菜单;展示所述推荐音乐菜单,能够快捷而准确的根据用户的具体需求实现音乐推荐,增强了用户的使用体验。In this way, in this embodiment of the present invention, by detecting the startup operation of the music application on the mobile terminal, the location and time information of the mobile terminal is acquired; the recommended music menu matching the location and time information is acquired; and the recommended music menu is displayed. , can quickly and accurately implement music recommendation according to the specific needs of users, and enhance the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1示出了本发明实施例一中的一种音乐推荐方法的流程图;1 shows a flowchart of a music recommendation method in Embodiment 1 of the present invention;
图2示出了本发明实施例二中的一种音乐推荐方法的流程图;2 shows a flowchart of a music recommendation method in Embodiment 2 of the present invention;
图3示出了根据本发明实施例三中的一种移动终端的结构框图;3 shows a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention;
图4示出了根据本发明实施例三中的一种移动终端的结构框图;4 shows a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention;
图5示出了根据本发明实施例四中的一种移动终端的结构框图;5 shows a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention;
图6示出了根据本发明实施例五的一种移动终端的结构示意图。FIG. 6 shows a schematic structural diagram of a mobile terminal according to Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.
实施例一Example 1
参照图1,示出了本发明实施例一的一种音乐推荐方法的流程图,具体可以包括如下步骤:Referring to FIG. 1, a flowchart of a music recommendation method according to Embodiment 1 of the present invention is shown, which may specifically include the following steps:
步骤110,若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;
本发明实施例中,以安卓为例,音乐播放器是否开启通常是由音乐播放器中service(com.android.music.MediaPlaybackService)以广播的形式发出来的,所以通过监听上述服务中的参数,即可得知当前移动终端上是否有音乐播放器开启,如果确定音乐播放器开启,则获取当前移动终端的位置和时间信息,具体的,通过LocationManager类提供的方法来获取经纬度,在通过经纬度确定移动终端具体的位置,通过Calendar类来获取系统当前的时间信息。In the embodiment of the present invention, taking Android as an example, whether the music player is turned on is usually sent by the service (com.android.music.MediaPlaybackService) in the music player in the form of broadcast, so by monitoring the parameters in the above service, You can know whether there is a music player turned on on the current mobile terminal. If it is determined that the music player is turned on, the location and time information of the current mobile terminal are obtained. Specifically, the latitude and longitude are obtained through the method provided by the LocationManager class. The specific location of the mobile terminal is obtained through the Calendar class to obtain the current time information of the system.
在实际应用中,获取位置和时间信息的方法根据不同系统不同,并不限于上述描述,本发明实施例对此不加以限制。In practical applications, the method for acquiring the location and time information varies according to different systems, and is not limited to the above description, which is not limited in this embodiment of the present invention.
步骤120,获取与所述位置时间信息相匹配的推荐音乐菜单,成功则执行步骤130,否则执行步骤140。Step 120: Obtain a recommended music menu matching the location and time information, if successful,
本发明实施例中,在用户使用音乐播放器时,用户在一位置和时间段中播放的音乐,会以位置和时间信息为标签进行保存,当用户打开音乐播放器获取当前时间和位置信息后,就搜索与之匹配的音乐播放列表,推荐给用户。具体的,以安卓为例,可以通过getContentResolver()方法定义Context类中,使用ContentProvider获取当前音乐播放器对应的播放列表,当然,获取音乐播放列表的方法不限于上述描述,本发明实施例对此不加以限制。In the embodiment of the present invention, when the user uses the music player, the music played by the user in a location and time period will be saved with the location and time information as tags. When the user opens the music player to obtain the current time and location information , it searches for matching music playlists and recommends them to users. Specifically, taking Android as an example, the Context class can be defined by the getContentResolver() method, and ContentProvider can be used to obtain the playlist corresponding to the current music player. Of course, the method of obtaining the music playlist is not limited to the above description, and this embodiment of the present invention Unrestricted.
步骤130,若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单。Step 130: If the recommended music menu is successfully acquired, the recommended music menu is displayed.
本发明实施例中,当通过上述描述的方法获取音乐播放列表后,即可以将文件信息显示在listView中,并展示在当前音乐播放器的使用界面上,用户可以通过选择其中某一音乐进行播放,或者设置为自动循环播放当前列表,对此本发明实施例不加以限制。In the embodiment of the present invention, after the music playlist is obtained by the method described above, the file information can be displayed in the listView, and displayed on the user interface of the current music player, and the user can select one of the music to play , or set to automatically play the current list in a loop, which is not limited in this embodiment of the present invention.
步骤140,若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。Step 140: If the acquisition of the recommended music menu fails, a recommended music menu is established according to the location and time information of the mobile terminal and the music attribute information during music playing.
本发明实施例中,当用户使用音乐播放器时,当用户手动添加一播放菜单并进行保存时,系统自动为该音乐列表添加一个位置时间标签,标示该音乐列表的位置时间信息,当然,用户还可以手动为该音乐列表添加其他特征标签,例如当前的心情标签,并直到停止播放该列表中音乐之前都可以进行音乐的添加和删除。In the embodiment of the present invention, when the user uses a music player, when the user manually adds a play menu and saves it, the system automatically adds a location and time label to the music list to indicate the location and time information of the music list. Of course, the user You can also manually add other characteristic tags to the music list, such as the current mood tag, and add and delete music until you stop playing the music in the list.
在实际应用中,还可以设置在具体的时间段内自动检测播放音乐,并且添加到移动终端的音乐播放列表,也可以由用户自己设置播放列表,并且在一段时间内同一个地理位置可以设置多个音乐播放列表,对此本发明实施例不加以限制。In practical applications, it can also be set to automatically detect and play music in a specific time period and add it to the music playlist of the mobile terminal, or the user can set the playlist by himself, and the same geographic location can be set to multiple times within a period of time. a music playlist, which is not limited in this embodiment of the present invention.
在本发明实施例中,通过若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;获取与所述位置时间信息相匹配的推荐音乐菜单;若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单,具备了根据个性化设置为用户推荐音乐的有益效果,增强了用户对于音乐播放器的使用体验。In this embodiment of the present invention, if a startup operation of a music application on a mobile terminal is detected, the location and time information of the mobile terminal is acquired, where the location and time information includes location information and time information; Matching recommended music menu; if obtaining the recommended music menu is successful, display the recommended music menu; if obtaining the recommended music menu fails, according to the location and time information of the mobile terminal and the music attribute when the music is playing The information establishes a recommended music menu, which has the beneficial effect of recommending music for the user according to the personalized settings, and enhances the user's experience of using the music player.
实施例二Embodiment 2
参照图2,示出了本发明实施例二的一种音乐推荐方法的流程图,具体可以包括如下步骤:Referring to FIG. 2, a flowchart of a music recommendation method according to Embodiment 2 of the present invention is shown, which may specifically include the following steps:
步骤210,若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;
此步骤与步骤110相同,在此不再详述。This step is the same as
步骤220,获取与所述位置时间信息相匹配的推荐音乐菜单;
此步骤与步骤120相同,在此不再详述。This step is the same as
步骤230,若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;
此步骤与步骤130相同,在此不再详述。This step is the same as
步骤240,根据用户在所述推荐音乐菜单上的编辑操作,对所述推荐音乐菜单进行更新。Step 240: Update the recommended music menu according to the user's editing operation on the recommended music menu.
本发明实施例中,若获取所述推荐音乐菜单成功,则在展示的音乐菜单中用户可以通过进一步的操作对音乐菜单进行更新,例如添加和删除菜单中的音乐,并且如果在对应当前时间和地点存在多个推荐音乐菜单,那么用户可以根据选择操作确定当前需要播放的音乐菜单,并且根据用户的选择次数的多少对多个推荐音乐菜单进行推荐排序,以方便用户下次的选择。In this embodiment of the present invention, if obtaining the recommended music menu is successful, the user can update the music menu through further operations in the displayed music menu, such as adding and deleting music in the menu, and if the music menu is corresponding to the current time and If there are multiple recommended music menus in a location, the user can determine the music menu that needs to be played currently according to the selection operation, and recommend and sort the multiple recommended music menus according to the number of times the user selects, so as to facilitate the user's next selection.
步骤250,若获取所述推荐音乐菜单失败,则获取所述移动终端位置信息时间信息对应的用户状态名称。Step 250: If obtaining the recommended music menu fails, obtain the user state name corresponding to the location information and time information of the mobile terminal.
本发明实施例中,当用户打开音乐播放器,在获取移动终端的地理位置后,可以主动的对当前用户状态进行标注,例如,在工作日(用户工作日的判定可以依据闹钟的数据进行分析和确定)6:00到10:00这段时间里,如果用户的GPS定位是在家里,则当前的用户状态为“起床时段”,而如果用户在17:00到24:00这段时间里,如果用户的GPS定位是在上班途中,那么就将当前状态定义为“奋斗的途中”,当用户进行第一次设置标记后,以后在相同时间段和地理位置,即可获取该用户状态名称。当然,对于用户设置状态标记也可以由系统提供选项供用户选择,具体方式本发明实施例不加以限制。In this embodiment of the present invention, when the user turns on the music player and obtains the geographic location of the mobile terminal, he or she can actively mark the current user status. and OK) during the period from 6:00 to 10:00, if the user's GPS location is at home, the current user status is "wake up time", and if the user is in the period from 17:00 to 24:00 , if the user's GPS positioning is on the way to work, then the current state is defined as "on the way to struggle". After the user sets the mark for the first time, the user's state name can be obtained in the same time period and geographical location in the future. . Certainly, for the user to set the status flag, the system may also provide options for the user to select, and the specific manner is not limited in this embodiment of the present invention.
步骤260,获取所述位置时间信息对应的音乐播放列表中的各音乐播放总时长。Step 260: Acquire the total playing time of each music in the music playlist corresponding to the location and time information.
本发明实施例中,进一步的,通过统计音乐播放列表中各音乐的播放信息,获取例如各音乐播放时长和在一段时间内音乐播放的总时长,并根据其比例进行筛选和排序,具体的,通过安卓中的音乐播放器的检测函数,MediaMetadataRetriever()中的duration参数的返回值,获取当前音乐的播放时长,并通过安卓系统中的时间检测函数importjava.sql.Timestamp,在音乐播放开始和结束时获取时间戳信息,获得音乐的播放总时长。In the embodiment of the present invention, further, by counting the playing information of each music in the music playlist, for example, the playing time of each music and the total playing time of the music in a period of time are obtained, and screening and sorting are performed according to the ratio. Specifically, Through the detection function of the music player in Android, the return value of the duration parameter in MediaMetadataRetriever(), the playback duration of the current music is obtained, and the time detection function importjava.sql.Timestamp in the Android system is used to start and end music playback. Time stamp information is obtained, and the total playing time of the music is obtained.
步骤270,将播放总时长超过第一预设阈值的音乐添加到推荐音乐菜单,并以所述用户状态名称命名所述推荐音乐菜单。Step 270: Add the music whose total playing time exceeds the first preset threshold to the recommended music menu, and name the recommended music menu with the user state name.
本发明实施例中,若经过检测音乐列表中的各音乐播放时长超过预设时间,那么就将该音乐添加到当前的音乐播放列表中,并以当前的用户状态命名该音乐播放列表,例如,6:00到10:00这段时间里,如果用户的GPS定位是在家里,则推荐的默认歌单名为“起床歌单”,17:00到24:00这段时间里,如果用户的GPS定位是在上班途中,则可推荐的默认歌单名为“奋斗路上的歌单”。In the embodiment of the present invention, if the playing time of each music in the music list exceeds the preset time after detection, the music is added to the current music playlist, and the music playlist is named after the current user status, for example, During the period from 6:00 to 10:00, if the user's GPS location is at home, the recommended default playlist is named "Get Up Playlist". During the period from 17:00 to 24:00, if the user's If the GPS positioning is on the way to work, the recommended default playlist is called "Songlist on the Road to Struggle".
在实际应用中,当然也可以通过用户主动添加的方式生成歌单,或者将各播放歌曲的播放时长与状态时间段内音乐播放总时长的比例,决定添加哪些音乐到当前的状态歌单,例如,音乐A在17:00到24:00这段时间里播放总时长为1个小时,17:00到24:00这段时间里这段时间中的所有音乐播放总时长为3小时,那么音乐A占到播放总时长的三分之一,则将音乐A添加到当前状态歌单中,当然,比例的阈值可由用户随时更改,对此本发明实施例不加以限制。In practical applications, of course, the playlist can also be generated by the user's active addition, or the ratio of the playing time of each playing song to the total playing time of the music in the state time period is used to decide which music to add to the current state playlist, for example , the total playing time of music A during the period from 17:00 to 24:00 is 1 hour, and the total playing time of all music during the period from 17:00 to 24:00 is 3 hours, then the music If A accounts for one third of the total playing time, music A is added to the current state playlist. Of course, the threshold of the ratio can be changed by the user at any time, which is not limited by the embodiment of the present invention.
优选的,在本发明另一实施例中,还包括:Preferably, in another embodiment of the present invention, it also includes:
步骤250A,若获取所述推荐音乐菜单失败,则在一确定的位置和第一预设时间段内获取音乐播放列表中的各音乐歌手名称;Step 250A, if the acquisition of the recommended music menu fails, acquire the names of the music singers in the music playlist within a determined location and a first preset time period;
本发明实施例中,进一步的,通过统计音乐播放列表中各音乐的播放信息,获取例如各音乐的演唱者名称,以安卓为例,通过函数import android.media.AudioManager.OnAudioFocusChangeListener;获取正在播放的音乐信息,其中包括音乐演唱者的名称。In the embodiment of the present invention, further, by counting the playing information of each music in the music playlist, for example, the name of the singer of each music is obtained, taking Android as an example, through the function import android.media.AudioManager.OnAudioFocusChangeListener; Music information, which includes the name of the music artist.
步骤250B,将所述歌手名称出现次数超过第二预设阈值的音乐添加到推荐音乐菜单,并以所述歌手名称命名所述推荐音乐菜单。Step 250B: Add music whose appearance times of the singer's name exceeds a second preset threshold to the recommended music menu, and name the recommended music menu with the singer's name.
本发明实施例中,当在一固定时间段内的同一位置,或者区间位置中获取音乐播放者的名称超过第二预设阈值,例如,歌手周杰伦在周一早晨的地点A至地点B之间的上班途中,出现的次数超过5次,那么就将在这一时间段和地点段内所有播放过的该歌手音乐添加到推荐音乐菜单中,并以“周杰伦的歌”,命名这个音乐菜单。In this embodiment of the present invention, when the name of the music player obtained at the same location within a fixed time period or in an interval location exceeds the second preset threshold, for example, singer Jay Chou is at the location between location A and location B on Monday morning. On the way to work, if the number of occurrences exceeds 5, then all the music of the singer played in this time period and place will be added to the recommended music menu, and the music menu will be named "Jay Chou's song".
优选的,在本发明另一实施例中,还包括:Preferably, in another embodiment of the present invention, it also includes:
步骤250a,若获取所述推荐音乐菜单失败,则在一确定的位置和第二预设时间段内获取音乐播放列表中的各音乐的风格标签;Step 250a, if obtaining the recommended music menu fails, obtain the style label of each music in the music playlist within a determined position and a second preset time period;
本发明实施例中,当在一固定时间段内的同一位置,或者区间位置中获取各播放音乐的风格标签名称,通常情况下,音乐信息中都会带有风格标签,例如“流行乐”,“古典乐”,“爵士乐”等,其中,通过函数import android.media.AudioManager.OnAudioFocusChangeListener;获取正在播放的音乐信息,其中包括音乐的风格标签。In the embodiment of the present invention, when the style tag name of each playing music is obtained at the same position within a fixed time period, or in an interval position, under normal circumstances, the music information will have style tags, such as "pop music", " Classical music", "jazz music", etc., among which, through the function import android.media.AudioManager.OnAudioFocusChangeListener; get the music information being played, including the style tag of the music.
步骤250b,将所述风格标签出现次数超过第三预设阈值的音乐添加到推荐音乐菜单,并以所述风格标签名称命名所述推荐音乐菜单。Step 250b: Add music whose appearance times of the style tag exceed a third preset threshold to the recommended music menu, and name the recommended music menu with the name of the style tag.
本发明实施例中,若在一固定时间段内的同一位置,或者区间位置中获取的各播放音乐的具备相同的风格标签,并且数目超过第三预设阈值,例如,在周一早晨的地点A至地点B之间的上班途中,“流行乐”出现的次数超过5次,那么就将在这一时间段和地点段内所有播放过的“流行乐”添加到推荐音乐菜单中,并以“流行乐”,命名这个音乐菜单。当然,在实际应用中,若在一时间段内,播放的“流行乐”有五首,而总播放音乐数目为十首,如果第三预设阈值为百分比,且为百分之三十,那么在此期间播放的“流行乐”将会添加到推荐音乐播放列表中,对此本发明实施例不加以限制。In this embodiment of the present invention, if the same location within a fixed period of time or in the interval location has the same style tag and the number exceeds the third preset threshold, for example, in location A on Monday morning On the way to work between location B, if "pop music" appears more than 5 times, then all the "pop music" played in this time period and location will be added to the recommended music menu, and the "pop music" will be added to the recommended music menu with " Pop", name this music menu. Of course, in practical applications, if there are five "pop music" played in a period of time, and the total number of played music is ten, if the third preset threshold is a percentage, and it is 30%, Then the "pop music" played during this period will be added to the recommended music playlist, which is not limited by the embodiment of the present invention.
在本发明实施例中,通过若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;获取与所述位置时间信息相匹配的推荐音乐菜单;若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单,并可进一步的编辑更新该菜单,若获取所述推荐音乐菜单失败,则获取所述移动终端位置信息时间信息对应的用户状态名称;获取所述位置时间信息对应的音乐播放列表中的各音乐播放总时长;将播放总时长超过第一预设阈值的音乐添加到推荐音乐菜单,并以所述用户状态名称命名所述推荐音乐菜单,并展示所述推荐音乐菜单,可以根据当前移动终端的位置和时间信息,为个性化设置音乐推荐列表,增强了用户对于音乐播放器的使用体验。In this embodiment of the present invention, if a startup operation of a music application on a mobile terminal is detected, the location and time information of the mobile terminal is acquired, where the location and time information includes location information and time information; The matching recommended music menu; if the recommended music menu is obtained successfully, the recommended music menu is displayed, and the menu can be further edited and updated; if the recommended music menu is failed to be obtained, the location information of the mobile terminal is obtained The user state name corresponding to the time information; obtain the total playing time of each music in the music playlist corresponding to the location and time information; add the music whose total playing time exceeds the first preset threshold to the recommended music menu, and use the user The state name names the recommended music menu, and displays the recommended music menu. According to the current location and time information of the mobile terminal, a music recommendation list can be personalized, which enhances the user's experience of using the music player.
实施例三Embodiment 3
参照图3,示出了本发明实施例三的一种移动终端的结构框图。Referring to FIG. 3 , a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention is shown.
所述移动终端300包括:位置时间获取模块301,用于若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;The
推荐音乐菜单获取模块302,用于获取与所述位置时间信息相匹配的推荐音乐菜单;A recommended music
推荐音乐菜单展示模块303,用于若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;A recommended music
推荐音乐菜单建立模块304,用于若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。The recommended music
参照图4,下面分别详细介绍所述移动终端300各模块的功能以及各模块之间的交互关系。Referring to FIG. 4 , the functions of each module of the
位置时间获取模块301,用于若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;A location and
推荐音乐菜单获取模块302,用于获取与所述位置时间信息相匹配的推荐音乐菜单;A recommended music
推荐音乐菜单展示模块303,用于若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单。The recommended music
推荐音乐菜单更新模块305,用于根据用户在所述推荐音乐菜单上的编辑操作,对所述推荐音乐菜单进行更新。The recommended music
推荐音乐菜单建立模块304,用于若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。The recommended music
优选的,推荐音乐菜单建立模块304,具体包括:Preferably, the recommended music
用户状态名称获取子模块3041,用于获取所述移动终端位置信息时间信息对应的用户状态名称;The user state name acquisition sub-module 3041 is used to acquire the user state name corresponding to the location information time information of the mobile terminal;
音乐播放总时长获取子模块3042,用于获取所述位置时间信息对应的音乐播放列表中的各音乐播放总时长;The
状态推荐音乐菜单添加子模块3043,用于将播放总时长超过第一预设阈值的音乐添加到推荐音乐菜单,并以所述用户状态名称命名所述推荐音乐菜单。The state-recommended music menu adding sub-module 3043 is configured to add music whose total playing time exceeds the first preset threshold to the recommended music menu, and name the recommended music menu with the user state name.
优选的,在本发明另一实施例中,推荐音乐菜单建立模块304,还包括:Preferably, in another embodiment of the present invention, the recommended music
音乐歌手名称获取子模块,用于在一确定的位置和第一预设时间段内获取音乐播放列表中的各音乐歌手名称;Music singer name acquisition submodule, used for obtaining the names of each music singer in the music playlist within a determined position and a first preset time period;
歌手推荐音乐菜单添加子模块,用于将所述歌手名称出现次数超过第二预设阈值的音乐添加到推荐音乐菜单,并以所述歌手名称命名所述推荐音乐菜单。The singer-recommended music menu adding sub-module is configured to add music whose appearance times of the singer's name exceeds a second preset threshold to the recommended music menu, and name the recommended music menu with the singer's name.
优选的,在本发明另一实施例中,推荐音乐菜单建立模块304,还包括:Preferably, in another embodiment of the present invention, the recommended music
风格标签获取子模块,用于在一确定的位置和第二预设时间段内获取音乐播放列表中的各音乐的风格标签;a style tag obtaining submodule, used for obtaining style tags of each music in the music playlist within a certain position and a second preset time period;
风格推荐音乐菜单添加子模块,用于将所述风格标签出现次数超过第三预设阈值的音乐添加到推荐音乐菜单,并以所述风格标签名称命名所述推荐音乐菜单。A sub-module for adding a style recommended music menu is used to add music whose appearance times of the style tag exceed a third preset threshold to the recommended music menu, and name the recommended music menu with the name of the style tag.
在本发明实施例中,通过根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单,并在音乐应用启动后,通过获取的移动终端的位置时间信息后,进一步的获取与该位置时间信息相匹配的推荐音乐菜单,并展示所述推荐音乐菜单,可以根据当前移动终端的位置和时间信息,为用户展示出相应的音乐推荐列表,具备了根据个性化设置为用户推荐音乐的有益效果,增强了用户对于音乐播放器的使用体验。In the embodiment of the present invention, a recommended music menu is established according to the location and time information of the mobile terminal and the music attribute information during music playing, and after the music application is started, after the location and time information of the mobile terminal is obtained, further Obtain the recommended music menu that matches the location and time information, and display the recommended music menu. According to the current location and time information of the mobile terminal, the corresponding music recommendation list can be displayed for the user, and the user can be set according to the personalized setting. The beneficial effect of recommending music enhances the user's experience of using the music player.
实施例四Embodiment 4
参照图5,示出了本发明实施例四中一种移动终端的结构框图。Referring to FIG. 5 , a structural block diagram of a mobile terminal in Embodiment 4 of the present invention is shown.
图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503以及拍照组件506。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。The
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Among them, the
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some embodiments,
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。The
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;获取与所述位置时间信息相匹配的推荐音乐菜单;若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。In this embodiment of the present invention, by calling the program or instruction stored in the
可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD) ), a Field-Programmable Gate Array (FPGA), a general-purpose processor, a controller, a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.
对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present invention. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
可选地,处理器501当根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单时,还用于:获取所述移动终端位置信息时间信息对应的用户状态名称;获取所述位置时间信息对应的音乐播放列表中的各音乐播放总时长;将播放总时长超过第一预设阈值的音乐添加到推荐音乐菜单,并以所述用户状态名称命名所述推荐音乐菜单。Optionally, when the
可选地,处理器501当根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单时,还用于:在一确定的位置和第一预设时间段内获取音乐播放列表中的各音乐歌手名称;将所述歌手名称出现次数超过第二预设阈值的音乐添加到推荐音乐菜单,并以所述歌手名称命名所述推荐音乐菜单。Optionally, when the
可选地,处理器501当根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单时,还用于:在一确定的位置和第二预设时间段内获取音乐播放列表中的各音乐的风格标签;将所述风格标签出现次数超过第三预设阈值的音乐添加到推荐音乐菜单,并以所述风格标签名称命名所述推荐音乐菜单。Optionally, when the
可选地,处理器501当在所述若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单之后,还用于:根据用户在所述推荐音乐菜单上的编辑操作,对所述推荐音乐菜单进行更新。Optionally, after displaying the recommended music menu if the recommended music menu is successfully acquired, the
可见,在本发明实施例中,通过根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单,并在音乐应用启动后,通过获取的移动终端的位置时间信息后,进一步的获取与该位置时间信息相匹配的推荐音乐菜单,并展示所述推荐音乐菜单,可以根据当前移动终端的位置和时间信息,为用户展示出相应的音乐推荐列表,具备了根据个性化设置为用户推荐音乐的有益效果,增强了用户对于音乐播放器的使用体验。It can be seen that, in this embodiment of the present invention, a recommended music menu is established according to the location and time information of the mobile terminal and the music attribute information during music playback, and after the music application is started, after the location and time information of the mobile terminal is obtained, Further obtain the recommended music menu that matches the location and time information, and display the recommended music menu. According to the current location and time information of the mobile terminal, a corresponding music recommendation list can be displayed for the user. The beneficial effect of recommending music for the user enhances the user's experience of using the music player.
实施例五Embodiment 5
图6示出了本发明实施例五的移动终端的结构示意图。FIG. 6 shows a schematic structural diagram of a mobile terminal according to Embodiment 5 of the present invention.
本发明实施例的移动终端可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图6中的移动终端包括射频(RadioFrequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(WirelessFidelity)模块680、电源690。The mobile terminal in FIG. 6 includes a radio frequency (RF)
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板641。The
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch screen includes the application program interface display area and the commonly used controls display area. The arrangement of the application program interface display area and the common control display area is not limited, and may be an arrangement that can distinguish the two display areas, such as up-down arrangement, left-right arrangement, or the like. The application program interface display area can be used to display the interface of the application program. Each interface may contain at least one application icon and/or interface elements such as widget desktop controls. The application program interface display area can also be an empty interface that does not contain any content. The commonly used control display area is used to display controls with high usage rate, such as setting buttons, interface numbers, scroll bars, phonebook icons and other application icons.
其中处理器660是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器660可包括一个或多个处理单元。The
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于若检测到移动终端上音乐应用的启动操作,则获取所述移动终端的位置时间信息,所述位置时间信息包括位置信息和时间信息;获取与所述位置时间信息相匹配的推荐音乐菜单;若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单;若获取所述推荐音乐菜单失败,则根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单。In this embodiment of the present invention, by calling and storing the software program and/or module in the
可选地,处理器660当根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单时,还用于:获取所述移动终端位置信息时间信息对应的用户状态名称;获取所述位置时间信息对应的音乐播放列表中的各音乐播放总时长;将播放总时长超过第一预设阈值的音乐添加到推荐音乐菜单,并以所述用户状态名称命名所述推荐音乐菜单。Optionally, when the
可选地,处理器660当根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单时,还用于:在一确定的位置和第一预设时间段内获取音乐播放列表中的各音乐歌手名称;将所述歌手名称出现次数超过第二预设阈值的音乐添加到推荐音乐菜单,并以所述歌手名称命名所述推荐音乐菜单。Optionally, when the
可选地,处理器660当根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单时,还用于:在一确定的位置和第二预设时间段内获取音乐播放列表中的各音乐的风格标签;将所述风格标签出现次数超过第三预设阈值的音乐添加到推荐音乐菜单,并以所述风格标签名称命名所述推荐音乐菜单。Optionally, when establishing a recommended music menu according to the location time information of the mobile terminal and the music attribute information during music playing, the
可选地,处理器660当在所述若获取所述推荐音乐菜单成功,则展示所述推荐音乐菜单之后,还用于:根据用户在所述推荐音乐菜单上的编辑操作,对所述推荐音乐菜单进行更新。Optionally, after displaying the recommended music menu if the recommended music menu is successfully acquired, the
可见,在本发明实施例中,通过根据所述移动终端的位置时间信息和音乐播放时的音乐属性信息建立推荐音乐菜单,并在音乐应用启动后,通过获取的移动终端的位置时间信息后,进一步的获取与该位置时间信息相匹配的推荐音乐菜单,并展示所述推荐音乐菜单,可以根据当前移动终端的位置和时间信息,为用户展示出相应的音乐推荐列表,具备了根据个性化设置为用户推荐音乐的有益效果,增强了用户对于音乐播放器的使用体验。It can be seen that, in this embodiment of the present invention, a recommended music menu is established according to the location and time information of the mobile terminal and the music attribute information during music playback, and after the music application is started, after the location and time information of the mobile terminal is obtained, Further obtain the recommended music menu that matches the location and time information, and display the recommended music menu. According to the current location and time information of the mobile terminal, a corresponding music recommendation list can be displayed for the user. The beneficial effect of recommending music for the user enhances the user's experience of using the music player.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的拍摄设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the photographing apparatus according to the embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.
本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710597072.2A CN107463644B (en) | 2017-07-20 | 2017-07-20 | A kind of music recommendation method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710597072.2A CN107463644B (en) | 2017-07-20 | 2017-07-20 | A kind of music recommendation method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107463644A CN107463644A (en) | 2017-12-12 |
CN107463644B true CN107463644B (en) | 2020-09-22 |
Family
ID=60546187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710597072.2A Active CN107463644B (en) | 2017-07-20 | 2017-07-20 | A kind of music recommendation method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463644B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804538A (en) * | 2018-05-06 | 2018-11-13 | 深圳市保千里电子有限公司 | Music based on the period recommends method |
CN113836324B (en) * | 2020-06-08 | 2024-05-14 | 上海幻电信息科技有限公司 | Information recommendation method, electronic equipment and server |
CN112269896B (en) * | 2020-10-20 | 2025-01-14 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device and equipment for recommending media data |
CN112966087B (en) * | 2021-03-15 | 2023-10-13 | 中国美术学院 | Intelligent question-answering system and method for inspiration materials |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9154912B2 (en) * | 2009-10-16 | 2015-10-06 | At&T Mobility Ii Llc | Devices and methods for selectively filtering message content |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070096812A (en) * | 2006-03-27 | 2007-10-02 | 소니 가부시끼 가이샤 | Content list display method, content list display device, content selection processing method and content selection processing device |
US8060525B2 (en) * | 2007-12-21 | 2011-11-15 | Napo Enterprises, Llc | Method and system for generating media recommendations in a distributed environment based on tagging play history information with location information |
US9454604B2 (en) * | 2013-03-15 | 2016-09-27 | Futurewei Technologies, Inc. | Motion-based music recommendation for mobile devices |
CN103218438B (en) * | 2013-04-18 | 2016-04-20 | 广东欧珀移动通信有限公司 | Method and the mobile terminal of Online Music recommended in broadcasting record based on mobile terminal |
CN104994408A (en) * | 2015-06-25 | 2015-10-21 | 青岛海信电器股份有限公司 | Intelligent television program recommendation method, device and intelligent television |
CN105872790A (en) * | 2015-12-02 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Method and system for recommending audio/video program |
CN106302678A (en) * | 2016-08-08 | 2017-01-04 | 北京谱思科技有限公司 | A kind of music recommends method and device |
-
2017
- 2017-07-20 CN CN201710597072.2A patent/CN107463644B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9154912B2 (en) * | 2009-10-16 | 2015-10-06 | At&T Mobility Ii Llc | Devices and methods for selectively filtering message content |
Non-Patent Citations (1)
Title |
---|
基于关联规则与奇异值分解的音乐推荐系统;徐淮杰,等;《电子设计工程》;20130131;第21卷(第1期);第17-19页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107463644A (en) | 2017-12-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106372110B (en) | Application program recommendation method and mobile terminal | |
CN107357574B (en) | An operating method and mobile terminal | |
CN107463644B (en) | A kind of music recommendation method and mobile terminal | |
CN106155743A (en) | The control method of a kind of application program installation and mobile terminal | |
CN107784071B (en) | A message push method, device and mobile terminal | |
CN106446180B (en) | Song identification method and mobile terminal | |
CN106446048B (en) | A song recommendation method and mobile terminal | |
CN106993097B (en) | Music playing method and mobile terminal | |
CN107221347B (en) | Audio playing method and terminal | |
CN107193878B (en) | A kind of automatic naming method of song list and mobile terminal | |
CN106959901B (en) | A kind of multipath replicates method of attaching and mobile terminal | |
US10055088B1 (en) | User interface with media content prediction | |
KR20130104178A (en) | Method and apparatus for tagging contents in portable terminal | |
CN107203624A (en) | The single generation method of one kind song and mobile terminal | |
CN107562404A (en) | A kind of audio frequency playing method, mobile terminal and computer-readable recording medium | |
CN106354520A (en) | Interface background switching method and mobile terminal | |
CN106293705A (en) | A kind of collecting method and mobile terminal | |
US10235017B2 (en) | Integrated media user interface | |
CN104461308A (en) | Method and device for adding items to target area | |
KR20150023037A (en) | Music player, automatic skin replacing method and system therefor, and computer storage medium | |
CN107026986B (en) | A kind of processing method and mobile terminal of video background music | |
CN106649548A (en) | Alarm clock ringing method and terminal | |
US20120117197A1 (en) | Content auto-discovery | |
CN107577734B (en) | Method and mobile terminal for collecting songs | |
CN106816163A (en) | A kind of music processing method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |