[go: up one dir, main page]

CN104835516A - Music playing method and apparatus, and intelligent terminal - Google Patents

Music playing method and apparatus, and intelligent terminal Download PDF

Info

Publication number
CN104835516A
CN104835516A CN201510225248.2A CN201510225248A CN104835516A CN 104835516 A CN104835516 A CN 104835516A CN 201510225248 A CN201510225248 A CN 201510225248A CN 104835516 A CN104835516 A CN 104835516A
Authority
CN
China
Prior art keywords
song
interval
value
weight
determining
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
CN201510225248.2A
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510225248.2A priority Critical patent/CN104835516A/en
Publication of CN104835516A publication Critical patent/CN104835516A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The disclosure relates to a music playing method and apparatus, and an intelligent terminal. The method comprises determining a corresponding value interval to each song in an alternative song library based on user preferences; determining and taking an interval of the corresponding value interval to each song as a selection interval, and randomly generating a random value for song selection in the selection interval; and detecting a value interval matching the random value, determining the value interval as a target interval, and playing corresponding songs to the target interval. The disclosure achieves random music playing satisfying the user preferences.

Description

Music playing method and device and intelligent terminal
Technical Field
The present disclosure relates to terminal technologies, and in particular, to a music playing method and apparatus, and an intelligent terminal.
Background
With the continuous development of society, people have more and more demand for intelligent terminals, and besides performing ordinary voice and short message functions, the intelligent terminals also need to enjoy various services such as browsing webpages and listening to music from the terminals. For example, the music playing function of the smart phone may support random playing, i.e., the user does not manually select a specific song, but the music playing system in the smart phone automatically randomly selects a song to play to the user.
Disclosure of Invention
The present disclosure provides a music playing method and apparatus, and an intelligent terminal, so as to implement random music playing meeting user preferences.
According to a first aspect of embodiments of the present disclosure, there is provided a music playing method, the method including:
determining a value interval corresponding to each song in the alternative song library based on the user preference;
determining an interval of a value interval corresponding to each song and using the interval as a selection interval, and randomly generating a random value for selecting the song in the selection interval;
and detecting a value interval matched with the random value, determining the value interval as a target interval, and playing the song corresponding to the target interval.
In one example, the determining a value range corresponding to each song in the alternative song library based on the user preference includes: acquiring the first time of completely playing each song, and setting the weight corresponding to each song to be increased along with the increase of the first time; and determining a value interval corresponding to each song based on the real-time weight of each song. When the number of times of the songs are completely played is increased, the weight is correspondingly increased, and the distribution of the value intervals of the songs can reflect the favorite of the user on the songs.
In one example, the determining a value range corresponding to each song in the alternative song library based on the user preference includes: acquiring a second time of each song during playing, wherein the second time is used for representing the time of the song being cut to the next song in the playing sequence during playing, and the weight corresponding to each song is set to be reduced along with the increase of the second time; and determining a value interval corresponding to each song based on the real-time weight of each song. The method enables the distribution of the value intervals of the songs to reflect the dislikes of the user on the songs, and the user can cut the songs only when the user dislikes the songs.
In one example, if the second number reaches a preset number, the weight corresponding to the song is cleared or set to zero. This approach may effectively assist the user in not playing a disliked song.
In one example, if the song is cut to the previous song in the playing sequence while the song is being played, the weight of the song is not changed, and the weight corresponding to the previous song is increased. The method can more accurately judge the preference of the user to the songs, and the distribution of the value intervals corresponding to the songs more conforms to the preference of the user to the songs.
According to a second aspect of the embodiments of the present disclosure, there is provided a music playing apparatus, the apparatus including:
the interval determination module is used for determining a value interval corresponding to each song in the alternative song library based on the preference of the user;
a random selection module, configured to determine an interval of a value interval corresponding to each song and use the interval as a selection interval, and randomly generate a random value for selecting a song in the selection interval;
and the music playing module is used for detecting the value interval matched with the random value, determining the value interval as a target interval and playing the song corresponding to the target interval.
In one example, the interval determination module includes:
the first weight setting unit is used for acquiring the first times of completely playing each song, and setting the weight corresponding to each song to be increased along with the increase of the first times;
and the first interval determining unit is used for determining a value interval corresponding to each song based on the real-time weight of each song.
In one example, the interval determination module includes:
the second weight setting unit is used for acquiring a second frequency of each song during playing, the second frequency is used for indicating the frequency of the song being cut to the next song in the playing sequence during playing, and the weight corresponding to each song is set to be reduced along with the increase of the second frequency;
and the second interval determining unit is used for determining the value interval corresponding to each song based on the real-time weight of each song.
In an example, the second weight setting unit is further configured to clear the weight corresponding to the song or set the weight corresponding to the song to zero when the second number reaches a preset number.
In an example, the second weight setting unit is further configured to, when the song is cut to a previous song in the playing order while the song is playing, set the weight of the song to be unchanged and the weight corresponding to the previous song to be increased.
According to a third aspect of the embodiments of the present disclosure, there is provided an intelligent terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: determining a value interval corresponding to each song in the alternative song library based on the user preference; determining an interval of a value interval corresponding to each song and using the interval as a selection interval, and randomly generating a random value for selecting the song in the selection interval; and detecting a value interval matched with the random value, determining the value interval as a target interval, and playing the song corresponding to the target interval.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the value intervals of the songs are determined based on the user preferences, so that the intervals corresponding to the songs preferred by different users are different, and the matching probability of the random value and the value interval is also different, so that the songs are selected to be played according to the different user preferences and different probabilities, and the random music playing meeting the user preferences can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of music playing according to an exemplary embodiment;
FIG. 2 is a diagram illustrating matching of random values to value ranges in accordance with an exemplary embodiment;
FIG. 3 is a diagram illustrating a change in value intervals in accordance with an exemplary embodiment;
fig. 4 is a block diagram illustrating a music playing device according to an exemplary embodiment;
fig. 5 is a block diagram illustrating another music playing device according to an exemplary embodiment;
fig. 6 is a block diagram illustrating still another music playing device according to an exemplary embodiment;
fig. 7 is a block diagram illustrating an intelligent terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The music playing method disclosed by the invention can be used for random music playing in the intelligent terminal, for example, the method can be adopted when the intelligent mobile phone plays songs randomly.
Fig. 1 is a flowchart illustrating a music playing method according to an exemplary embodiment, where the method may be performed by a music playing device in charge of music playing in an intelligent terminal, and the music playing device may be, for example, a music player, and the method may include:
101. determining a value interval corresponding to each song in the alternative song library based on the user preference;
102. determining an interval of a value interval corresponding to each song and using the interval as a selection interval, and randomly generating a random value for selecting the song in the selection interval;
103. and detecting a value interval matched with the random value, determining the value interval as a target interval, and playing the song corresponding to the target interval.
The following describes the flow of the music playing method with reference to fig. 2: in step 101, the music playing device may determine a corresponding value interval for each song in the alternative song library, where an example of the value interval may be as shown in fig. 2, for example, the value interval corresponding to song a is "0 to 0.3", the value interval corresponding to song B is "0.3 to 0.5", and the value interval is represented in a form of a numerical segment, but may be represented in other forms in specific implementation, which is not limited thereto.
The value interval of the above example is determined for each song, which may be determined based on user preferences; for example, if the user likes song a, a larger value interval is determined for song a, for example, the value interval "0 to 0.3" includes three small segments (the range length of each small segment is 0.1), and the user does not like song B relatively, so the value interval "0.3 to 0.5" allocated for song B includes two small segments, which is smaller than the value interval of song a. Therefore, in the principle of determining the value interval based on the user preference, the size of the value interval may be set to be in direct proportion to the preference of the user for the song, and the more the user likes the song, the larger the value interval determined for the song is.
After determining the corresponding value interval for each song in the alternative song library, the music playing device will generate a random number for song selection in 102. The random number may be generated by a random number generator, such as shown in fig. 2, which may randomly assign a value to x by a rand function, for example, with the value of x ranging from 0 to 1, such as 0.7. It should be noted that, when the random value is generated in this step, the random value may be generated in the range of the sum of the intervals of the value intervals corresponding to the songs. Still taking fig. 2 as an example, if only three songs, namely song a, song B, and song C, are in the song selection library of the device, corresponding value intervals have been determined for the three songs in fig. 2, respectively, and the sum of the interval of the three songs is 0 to 1.0, the random number generator will randomly generate a random number value within the range of 0 to 1.0, and if the sum of the interval of the songs in the song selection library is 0 to 2.0, the random number value will be generated within the range of 0 to 2.0. The above-mentioned section sum may be referred to as a selection section, and a random numerical value is generated in the selection section.
In step 103, the music playing apparatus may detect a value section matching the generated random value, where "matching" refers to which value section the random value falls in to match the value section. Referring to the example of fig. 2, taking three songs as an example, the value interval corresponding to song a is "0 to 0.3", the value interval corresponding to song B is "0.3 to 0.5", and the value interval corresponding to song C is "0.5 to 1.0", it is obvious that the random number 0.7 generated by the random number generator is exactly located in the value interval of "0.5 to 1.0", and in a specific implementation, it can be determined that 0.7 is located in the range section by comparing the values of "0.5 <0.7< 1.0". The value interval matched with the random numerical value can be called a target interval, and the song corresponding to the target interval is played; for example, as the random value 0.7 matches the value interval corresponding to the song C, the music playing device can play the song C.
For another example, the random number generator in the example of fig. 2 generates another random number 0.1, and the same principle can be obtained, where the value of 0.1 matches the value interval "0-0.3" corresponding to song a, and the interval is the target interval, and then the music playing device plays song a. In addition, as can be seen from fig. 2, the coverage ranges of the value intervals corresponding to different songs are different, the value interval "0.5-1.0" of song C covers five small segments, the value interval of song a covers three small segments, and the value interval of song B covers two small segments (ten small segments between 0 and 1.0 are equidistant, i.e., equal-length segments). The larger the coverage of the value-taking interval is, the larger the probability of being matched by the random value is, for example, the larger the range of the song C is, the relatively larger the probability of being matched by the random value is, that is, in the random play mode illustrated in fig. 2, the probability of random play of each song is different.
In the embodiment of the disclosure, different songs in the alternative song library correspond to different value intervals, and can be determined according to different songs having different user preferences; for example, if the user likes song C in particular, the coverage of the value interval corresponding to song C is larger, whereas if the user does not like song B too much, the coverage of the value interval corresponding to song B is smaller. Therefore, the music playing of the present disclosure realizes the corresponding adjustment of the probability of the selected song to be played according to the preference of the user to the song, and the intelligent random song selection according with the preference of the user is realized.
As will be described in the following by way of example, how to determine the value interval corresponding to the song according to the preference of the user for the song, and the operation of determining the value interval corresponding to the song may be performed before the flow illustrated in fig. 1.
The preference of the user to the song can be judged by the operation of the user when listening to the song. For example, if a user has listened to a song in its entirety and played it multiple times in its entirety, it is an indication that the user may like the song; if the user cuts a song while listening to the song without the end of the playback (e.g., switches to the previous or next song), this indicates that the user may dislike the song. The music playing device can set the value interval corresponding to the song.
In one example, the music playing device may record the number of times the song was played in its entirety, which may be referred to as a first number (this "first" is used to distinguish from the number of subsequent occurrences, in actual practice, different numbers may be distinguished with different identifications). For example, the music playing apparatus may monitor which song starts playing and finishes playing completely, and if the song finishes playing completely, record the name of the song and the number of times of playing completely; for example, "Song C, 1 time" is recorded. If a song is played by the user multiple times in its entirety, the times are accumulated accordingly, for example, to "Song C, 5 times".
In the embodiment of the present disclosure, the music playing apparatus may convert the first number into a weight corresponding to a song, for example, after a song is completely played for the first time, a basic weight value q may be generated for the song, for example, the q value may be 1; when the user plays the song again, the weighting of the song is obtained by multiplying the number of plays on the basis of q. For example, after the first complete playback of song C, the weight of song C is 1(q), and after the second complete playback, the weight of song C is 1(q) × 2 ═ 2, that is, the song weight may be n × q. It can be seen that as the first number increases, the corresponding weight of the song also increases.
In addition, the user of the smart terminal may not start the smart play mode within a period of time (the mode corresponds to the music play method according to the present disclosure), then the music play device may record the number of times of the period of time, for example, the first number of times, and after the user starts the smart play mode (for example, the user selects an option of starting the smart play mode in the smart phone), it is equivalent to that the music play device receives a mode start instruction, and then the storage module may obtain the recorded first number of times, and perform weight conversion.
After obtaining the weight corresponding to the song, the music playing device may further set a value interval corresponding to the song according to the real-time weight of each song, where the value interval corresponds to the weight of the song, and the higher the weight is, the larger the coverage of the value interval is. For example, still referring to the example of fig. 2, assuming that the weight of song a is 3, the weight of song B is 2, and the weight of song C is 5, three small segments are allocated to song a from each small segment in fig. 2, the value interval of song a is "0 to 0.3", two small segments are allocated to song B, the value interval of song B is "0.3 to 0.5", five small segments are allocated to song C, and the value interval of song C is "0.5 to 1.0". It can be seen that the lower the weight, the fewer the correspondingly allocated segments, and the smaller the coverage of the value range.
It should be noted that, when the value interval corresponding to the song is determined, the order of allocating the small segments to the song may be flexibly set, for example, five small segments may be allocated to song C first, the value interval of song C is "0 to 0.5", then two small segments (small segments "0.5 to 0.6" and small segments "0.6 to 0.7") are allocated to song B, the value interval of song B is "0.5 to 0.7", and finally three small segments are allocated to song a, and the value interval of song C is "0.7 to 1.0". The change of the sequence does not affect the probability of randomly selecting the songs, because the larger the value-taking interval is, the larger the coverage is, the higher the probability of matching the value-taking interval is, which is irrelevant to the position of the value-taking interval.
In addition, in the above-mentioned situation, for example, when the user cuts off the time and turns on the smart play mode again, the music playing device will obtain the updated statistics of the number of times, and update the weight corresponding to the song and the distribution of the value-taking interval accordingly, for example, the weight of the song C is 5, and the updated weight is 7, then the number of the small segments distributed to the song C will be increased by two, and the corresponding value-taking interval range will also change.
It should be noted that the number of small segments pre-stored by the music playing device for allocating to each song is sufficient, for example, as illustrated in fig. 3, it is assumed that there are 100 small segments, each of which has a range of 0.01, and the initial weight of song a is 3, three small segments are allocated, the value interval is "0 to 0.03", the weight of song B is 2, and the corresponding value interval is "0.03 to 0.05". When the number of times that the user completely listens to the song A after the partition time is increased twice and the weight is changed to 5, the number of the small sections allocated to the song A is increased by two, the value range is changed to 0-0.05, and the value range of the corresponding song B is changed to 0.05-0.07. In this case, the random value may be 0.02, and if the value interval of song a is matched, song a is played; or may be 0.025 and also match song a.
In another example, the music playing apparatus may further record a second number of times when the song is played, where the second number of times may be used to indicate a number of times when the song is played to be switched to a next song in the playing sequence, for example, songs in the alternative song library may have a default playing sequence when played, and are sequentially played in the sequence, and if the song is played to one of the songs, and the song is switched to the next song without being played, the second number corresponding to the song is incremented by one.
The music playing device also sets the weight corresponding to the song according to the second time number, and the weight corresponding to the song is set to be reduced along with the increase of the second time number, namely, the song is cut to the next song during playing, which indicates that the user may not like the song, so the weight of the song is reduced. For example, the basic weight value of a song may be set to q, when the song is cut for the first time, the weight of the song becomes q/2, and when the user cuts the song for n times, the weight of the song is q/(n + 1). The above is only an example of a conversion manner from the times to the weights, and other conversion formulas can be used in practical implementation as long as the relationship between the weights and the changes of the times can be embodied, for example, the weights are decreased when the second times are increased.
In addition, if the song is cut to the previous song in the playing sequence when the song is played, the user may like the previous song, not hear enough yet, and does not dislike the current song, so the weight of the song to be cut may be set to be unchanged, and the weight corresponding to the previous song may be increased, for example, increased by one. In the manner, even if the song is switched, whether the song is switched to the previous song or the next song is distinguished, different preferences of the user are represented according to different switching directions, different setting modes are adopted for the weight of the current song of the song switching, and the preferences of the user are reflected more accurately.
The music playing device also sets the value intervals of the songs to be corresponding to the weights, and the lower the weights, the smaller the coverage of the value intervals is. For example, if a song is cut twice, the corresponding weight is 1/3, 1/3 small segments are allocated to the song, and if the example of fig. 2 is combined, a value interval of "0-1/30" (one small segment is 1/10) may be allocated to the song. It can be understood that the smaller the value interval, the smaller the probability of matching, so that the probability of randomly playing a song that is disliked by the user can be reduced.
In yet another example, the music playing method of the present disclosure may also automatically skip disliked songs for the user, i.e., no longer play songs determined to be disliked by the user. For example, when the music playing device obtains the second number of times that a song is cut to the next song, whether the second number of times reaches the preset number of times can be further judged, if the second number of times reaches the preset number of times, namely the user cuts the song for multiple times, the user can default that the user does not like the song, the weight corresponding to the song is not set, and therefore the value interval corresponding to the song is not set, and the song is not played any more. For example, when the preset number of times is 5, if the second number of times is greater than or equal to 5 (or may be set to be greater than 5), the music playing apparatus will not play the song any more, in a specific implementation, for example, when the second number of times reaches the preset number of times, the weight corresponding to the song is removed or the weight of the song is set to zero, so if the weight of the song is zero or does not exist, a value interval corresponding to the weight is not allocated to the song any more, and if the song does not have a value interval (which is equivalent to the value interval being zero), the random value will not fall in the interval, the interval will not become the target interval, and the corresponding song will not be selected, so that the song will not be played any more.
According to the music playing method, operation of the user in listening to the music, such as operation of playing the song completely or cutting the song, is detected, preference of the user to the song is judged automatically, corresponding weight is generated according to the preference, probability that the songs with different preferences are played randomly is different according to the weight, the more favorite song is played, the higher the weight value is, the higher the played probability is, the less favorite song is, the lower the weight value is, the lower the played possibility is, and intelligent music playing conforming to preference of the user is realized.
As shown in fig. 4, a music playing device of the present disclosure for executing the above music playing method is illustrated, the structure of the device is briefly described, and the specific working principle can be combined with the method embodiment. As shown in fig. 4, the music playing apparatus may include: an interval determination module 41, a random selection module 42, and a music play module 43. Wherein,
an interval determining module 41, configured to determine, based on the preference of the user, a value interval corresponding to each song in the alternative song library;
a random selection module 42, configured to determine an interval of a value interval corresponding to each song and use the interval as a selection interval, and randomly generate a random value for selecting a song in the selection interval;
and the music playing module 43 is configured to detect a value interval matched with the random value, determine that the value interval is a target interval, and play a song corresponding to the target interval.
As an example of fig. 5, the section determining module 41 of the music playing apparatus may include: a first weight setting unit 411 and a first section determining unit 412; wherein,
the first weight setting unit 411 is configured to obtain a first number of times that each song is completely played, and set a weight corresponding to each song to increase with an increase in the first number of times;
a first interval determining unit 412, configured to determine, based on the real-time weight of each song, a value interval corresponding to each song.
In another example, as shown in fig. 6, the interval determination module 41 may further include: a second weight setting unit 413 and a second section determination unit 414; wherein,
a second weight setting unit 413, configured to obtain a second number of times that each song is played, where the second number of times is used to indicate a number of times that the song is cut to a next song in the playing sequence when being played, and as the second number of times increases, the weight corresponding to each song is set to decrease;
a second interval determining unit 414, configured to determine, based on the real-time weight of each song, a value interval corresponding to each song.
Further, the second weight setting unit 413 is further configured to clear the weight corresponding to the song or set the weight corresponding to the song to zero when the second number reaches a preset number of times.
Further, the second weight setting unit 413 is further configured to, when the song is switched to a previous song in the playing order during playing of the song, set the weight of the song to be unchanged and the weight corresponding to the previous song to be increased.
It should be noted that, the first weight setting unit 411 and the first section determining unit 412 shown in fig. 5, or the second weight setting unit 413 and the second section determining unit 414 shown in fig. 6 may have one set in the section determining module, or may have both sets.
Fig. 7 is a block diagram illustrating an intelligent terminal 600 according to an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, the apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 602 may include one or more processors 620 to execute instructions to perform the methods described above: determining a value interval corresponding to each song in the alternative song library based on the user preference; determining an interval of a value interval corresponding to each song and using the interval as a selection interval, and randomly generating a random value for selecting the song in the selection interval; and detecting a value interval matched with the random value, determining the value interval as a target interval, and playing the song corresponding to the target interval. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 606 provides power to the various components of device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (11)

1. A music playing method, comprising:
determining a value interval corresponding to each song in the alternative song library based on the user preference;
determining an interval of a value interval corresponding to each song and using the interval as a selection interval, and randomly generating a random value for selecting the song in the selection interval;
and detecting a value interval matched with the random value, determining the value interval as a target interval, and playing the song corresponding to the target interval.
2. The method of claim 1, wherein determining a value range corresponding to each song in the alternative song library based on the user preference comprises:
acquiring the first time of completely playing each song, and setting the weight corresponding to each song to be increased along with the increase of the first time;
and determining a value interval corresponding to each song based on the real-time weight of each song.
3. The method of claim 1, wherein determining a value range corresponding to each song in the alternative song library based on the user preference comprises:
acquiring a second time of each song during playing, wherein the second time is used for representing the time of the song being cut to the next song in the playing sequence during playing, and the weight corresponding to each song is set to be reduced along with the increase of the second time;
and determining a value interval corresponding to each song based on the real-time weight of each song.
4. The method of claim 3, further comprising:
and if the second time reaches the preset times, clearing the weight corresponding to the song or setting the weight corresponding to the song to be zero.
5. The method of claim 3, further comprising:
and if the song is cut to the previous song in the playing sequence when the song is played, the weight of the song is not changed, and the weight corresponding to the previous song is increased.
6. A music playing apparatus, comprising:
the interval determination module is used for determining a value interval corresponding to each song in the alternative song library based on the preference of the user;
a random selection module, configured to determine an interval of a value interval corresponding to each song and use the interval as a selection interval, and randomly generate a random value for selecting a song in the selection interval;
and the music playing module is used for detecting the value interval matched with the random value, determining the value interval as a target interval and playing the song corresponding to the target interval.
7. The apparatus of claim 6, wherein the interval determining module comprises:
the first weight setting unit is used for acquiring the first times of completely playing each song, and setting the weight corresponding to each song to be increased along with the increase of the first times;
and the first interval determining unit is used for determining a value interval corresponding to each song based on the real-time weight of each song.
8. The apparatus of claim 6, wherein the interval determining module comprises:
the second weight setting unit is used for acquiring a second frequency of each song during playing, the second frequency is used for indicating the frequency of the song being cut to the next song in the playing sequence during playing, and the weight corresponding to each song is set to be reduced along with the increase of the second frequency;
and the second interval determining unit is used for determining the value interval corresponding to each song based on the real-time weight of each song.
9. The apparatus of claim 8,
the second weight setting unit is further configured to clear the weight corresponding to the song or set the weight corresponding to the song to zero when the second number reaches a preset number.
10. The apparatus of claim 8,
the second weight setting unit is further configured to set the weight of the song to be unchanged and the weight corresponding to the previous song to be increased when the song is switched to the previous song in the playing sequence during playing of the song.
11. An intelligent terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: determining a value interval corresponding to each song in the alternative song library based on the user preference; determining an interval of a value interval corresponding to each song and using the interval as a selection interval, and randomly generating a random value for selecting the song in the selection interval; and detecting a value interval matched with the random value, determining the value interval as a target interval, and playing the song corresponding to the target interval.
CN201510225248.2A 2015-05-05 2015-05-05 Music playing method and apparatus, and intelligent terminal Pending CN104835516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510225248.2A CN104835516A (en) 2015-05-05 2015-05-05 Music playing method and apparatus, and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510225248.2A CN104835516A (en) 2015-05-05 2015-05-05 Music playing method and apparatus, and intelligent terminal

Publications (1)

Publication Number Publication Date
CN104835516A true CN104835516A (en) 2015-08-12

Family

ID=53813352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510225248.2A Pending CN104835516A (en) 2015-05-05 2015-05-05 Music playing method and apparatus, and intelligent terminal

Country Status (1)

Country Link
CN (1) CN104835516A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956157A (en) * 2016-05-16 2016-09-21 乐视控股(北京)有限公司 Song playing order arrangement method and device
CN106816162A (en) * 2017-01-02 2017-06-09 安徽金鼎机电装备制造有限公司 The control method and playback terminal of a kind of music
WO2017185233A1 (en) * 2016-04-26 2017-11-02 华为技术有限公司 Method for controlling playback of audio file and audio playback apparatus
CN107704516A (en) * 2017-09-01 2018-02-16 北京雷客天地科技有限公司 A kind of method and system of requesting song
CN107885753A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 Document play-back method and playing device
CN109033461A (en) * 2018-08-30 2018-12-18 努比亚技术有限公司 Method for playing music, device and computer readable storage medium
CN111050094A (en) * 2019-12-24 2020-04-21 合肥凌极西雅电子科技有限公司 Multi-window display method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236582A1 (en) * 2002-06-25 2003-12-25 Lee Zamir Selection of items based on user reactions
CN1875639A (en) * 2003-11-06 2006-12-06 诺基亚公司 Automatic personal playlist generation with implicit user feedback
CN1885286A (en) * 2005-06-24 2006-12-27 鸿富锦精密工业(深圳)有限公司 Play list generation system and method
CN102905032A (en) * 2012-10-24 2013-01-30 广东欧珀移动通信有限公司 Method and system for realizing dynamic ring tone of smart mobile phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236582A1 (en) * 2002-06-25 2003-12-25 Lee Zamir Selection of items based on user reactions
CN1875639A (en) * 2003-11-06 2006-12-06 诺基亚公司 Automatic personal playlist generation with implicit user feedback
CN1885286A (en) * 2005-06-24 2006-12-27 鸿富锦精密工业(深圳)有限公司 Play list generation system and method
CN102905032A (en) * 2012-10-24 2013-01-30 广东欧珀移动通信有限公司 Method and system for realizing dynamic ring tone of smart mobile phone

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185233A1 (en) * 2016-04-26 2017-11-02 华为技术有限公司 Method for controlling playback of audio file and audio playback apparatus
CN108352173A (en) * 2016-04-26 2018-07-31 华为技术有限公司 A kind of method and audio playing apparatus of the broadcasting of control audio file
CN108352173B (en) * 2016-04-26 2020-04-14 华为技术有限公司 Method for controlling audio file playing and audio playing device
CN105956157A (en) * 2016-05-16 2016-09-21 乐视控股(北京)有限公司 Song playing order arrangement method and device
CN107885753A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 Document play-back method and playing device
CN106816162A (en) * 2017-01-02 2017-06-09 安徽金鼎机电装备制造有限公司 The control method and playback terminal of a kind of music
CN107704516A (en) * 2017-09-01 2018-02-16 北京雷客天地科技有限公司 A kind of method and system of requesting song
CN109033461A (en) * 2018-08-30 2018-12-18 努比亚技术有限公司 Method for playing music, device and computer readable storage medium
CN111050094A (en) * 2019-12-24 2020-04-21 合肥凌极西雅电子科技有限公司 Multi-window display method and system

Similar Documents

Publication Publication Date Title
CN107105314B (en) Video playing method and device
CN104867506B (en) The method and apparatus for automatically controlling music
US10324682B2 (en) Method, apparatus, and storage medium for controlling audio playing based on playing environment
CN104835516A (en) Music playing method and apparatus, and intelligent terminal
CN106911961B (en) Multimedia data playing method and device
CN105845124B (en) Audio processing method and device
US9654621B2 (en) Methods and devices for prompting calling request
CN106792173B (en) Video playing method and device and non-transitory computer readable storage medium
CN105898032B (en) method and device for adjusting prompt tone
CN107743244B (en) Video live broadcasting method and device
CN107147957B (en) Video broadcasting method and device
CN104618218A (en) Information reminding method and device
CN105407433A (en) Method and device for controlling sound output equipment
CN105242837B (en) Five application page acquisition methods and terminal
JP2016537748A (en) Message transmission method, message transmission device, program, and recording medium
CN114422854B (en) Data processing method, device, electronic device and storage medium
US20170034347A1 (en) Method and device for state notification and computer-readable storage medium
CN106528442B (en) Cache cleaning method and device
CN106020766A (en) Music playing method and device
CN114416015A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN112685599A (en) Video recommendation method and device
CN110113256B (en) Information interaction method and device, server, user terminal and readable storage medium
CN104486489A (en) Method and device for outputting call background voice
CN109088920B (en) Evaluation method, device and equipment of intelligent sound box and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150812

RJ01 Rejection of invention patent application after publication