WO2017185233A1 - 一种控制音频文件播放的方法及音频播放装置 - Google Patents

一种控制音频文件播放的方法及音频播放装置 Download PDF

Info

Publication number
WO2017185233A1
WO2017185233A1 PCT/CN2016/080234 CN2016080234W WO2017185233A1 WO 2017185233 A1 WO2017185233 A1 WO 2017185233A1 CN 2016080234 W CN2016080234 W CN 2016080234W WO 2017185233 A1 WO2017185233 A1 WO 2017185233A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio file
probability
audio
play
played
Prior art date
Application number
PCT/CN2016/080234
Other languages
English (en)
French (fr)
Inventor
李陈
杨艳昌
王浩
黄志权
喻恒
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/080234 priority Critical patent/WO2017185233A1/zh
Priority to CN201680014726.8A priority patent/CN108352173B/zh
Priority to EP16899747.6A priority patent/EP3441972A4/en
Publication of WO2017185233A1 publication Critical patent/WO2017185233A1/zh
Priority to US16/171,259 priority patent/US20190065590A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/102Programmed access in sequence to addressed parts of tracks of operating record carriers
    • G11B27/105Programmed access in sequence to addressed parts of tracks of operating record carriers of operating discs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/64Browsing; Visualisation therefor

Definitions

  • the present invention relates to the field of audio playback, and in particular, to a method for controlling audio file playback and an audio playback device.
  • the music player has a function of setting a label, and the user marks the song that he likes. When playing, the user can select the list of songs that have been marked for playing.
  • the probability of playing remains unchanged, that is, when there are multiple songs in the list of songs that have been marked, if the user wants to play one of the favorite
  • the songs still have a high probability of playing multiple songs before switching to their favorite songs, which increases the switching time and reduces the user experience.
  • An embodiment of the present invention provides a method for controlling audio file playback and an audio playback device, so as to determine the number of times the audio file is played according to the identification information corresponding to the audio file in the random play mode, that is, It is necessary to play multiple audio files with equal probability, which improves the user experience and increases the flexibility of the solution.
  • the first aspect of the embodiments of the present invention provides a method for controlling audio file playback, including:
  • the audio playback device first obtains the identifier information corresponding to the audio file in the random play mode, and specifically obtains the identifier information that the user has marked the audio file last time or earlier;
  • the audio playback device may determine the playback probability of the audio file according to the identifier information corresponding to the audio file, where the identifier information corresponding to the audio file includes the audio file for calculating the audio file. Probabilistic information, so that the audio playback device can determine a playback probability corresponding to different audio files according to different identification information;
  • the audio playback device determines the playback probability of each audio file according to the identification information corresponding to the audio file, and plays the corresponding audio file according to the playback probability of each audio file.
  • a method for controlling playback of an audio file is provided.
  • the audio playback device acquires identification information corresponding to the audio file, and determines a playback probability of the audio file according to the identification information corresponding to the audio file, and finally, according to the playback probability of the audio file. , play audio files.
  • the number of times of playing the audio file is determined according to the identification information corresponding to the audio file, that is, the degree of the user's favorite, without playing the multiple audio files in the case of equal probability, thereby improving the user experience and increasing The flexibility of the program.
  • the playback mode of the audio playback device is a random play mode, that is, an audio file is played in a random play mode. Confirm and obtain different playback probabilities through different identification information.
  • the play mode of the audio playback device is limited to the random play mode. Since the probability of playing each audio file is the same when the random play mode is adopted in the prior art, the present invention can be In the random play mode, the number of times the audio file is played is determined for the identification information corresponding to the audio file, thereby further improving the user experience and increasing the flexibility of the solution.
  • the identifier information used to determine the playback probability of the audio file includes the identifier value and the number of identifiers.
  • the specific identification information may be expressed as user preference information in an actual application.
  • the identifier information includes the identifier value and the number of identifiers, which are specifically expressed as user preference information, and the audio playback device receives the user preference information of the user on the audio file, and plays the playback probability corresponding to the audio file according to the user preference information. Prompt tone.
  • the identification information includes the identifier value and the identifier number, so that the audio playback device can determine the playback probability of the audio file according to the identifier value and the number of identifiers, and at the same time, if the playback probability corresponding to the audio file can also be played.
  • the prompt tone enables the user to know the probability of the audio file without viewing the music player interface, and improves the practicability and flexibility of the solution when the user is inconvenient to view the music player interface, and is convenient for the user to adjust in real time.
  • the probability of the current music file thereby enhancing the user experience of the solution.
  • the audio playback device determines the play probability of the audio file according to the identifier information corresponding to the audio file, and may include:
  • the music playing device plays a set of audio files to be played by at least one audio file, wherein the set of audio files to be played may be a playlist, and the user integrates the playlist according to his own preferences, and the playlist may have multiple;
  • the audio playback device determines the playback probability corresponding to the audio file according to the number of identifiers of the audio file and the average playback probability, and randomly selects the audio file in the audio file set to be played for playback.
  • the audio playback device determines the number of audio files in the audio file set to be played, and the audio file set to be played is composed of at least one audio file, and then sets the total identifier according to the audio file set to be played.
  • the number determines the average playing probability of the audio file, and finally determines the playing probability of the audio file in the audio file set to be played according to the number of identifiers of the audio file and the average playing probability.
  • the above method can be used to make the audio playback device determine the playing probability of the audio file, and provide a specific solution for the specific implementation of the solution, thereby improving the practicability and feasibility of the solution.
  • the audio playback device determines the play probability of the audio file according to the identifier information corresponding to the audio file, and may include:
  • the music playing device plays a set of audio files to be played by at least one audio file, wherein the set of audio files to be played may be a playlist, and the user integrates the playlist according to his own preferences, and the playlist may have multiple;
  • the number of the identifiers in the identifier information determines a second play probability, wherein the first audio file and the second audio file are audio files in the set of audio files to be played, and the number of identifiers in the identifier information of the first audio file is greater than or If the number of the identifiers in the identifier information of the second audio file is greater than the number of the identifiers in the identifier information of the first audio file, it should be noted that the order of calculating the first playback probability and the second playback probability is not limited;
  • the audio playback device may calculate a sum of play probability of the audio file in the audio file set to be played according to the average play probability, the first play probability, and the second play probability;
  • the audio playback device further acquires a target random probability according to the average play probability and the play probability sum value;
  • the audio playback device finally determines the playback probability of the audio file in the audio file set to be played according to the target random probability.
  • the audio playback device plays a set of audio files to be played by at least one audio file, first according to the total identifier in the audio file set to be played. Determine the average play probability of the audio file, determine the first play probability according to the number of identifiers in the identifier information of the first audio file, and determine the second play probability according to the number of identifiers in the identifier information of the second audio file. Finally, the average play probability, the first play probability and the second play probability are used to determine the sum of the play probability of the audio file in the audio file set to be played, and the audio play device may obtain the target random probability according to the average play probability and the play probability sum. And determining the playing probability of the audio file in the audio file set to be played according to the target random probability.
  • the selection of the audio file to be played in the above manner provides another specific implementation means for the solution of the invention, thereby improving the flexibility and practicability of the solution.
  • the audio playback device is based on an average play probability, a first play probability, and a second play probability. Determining the sum of the playback probabilities of the audio files in the audio file set to be played, including:
  • the audio playback device calculates the sum of the playback probabilities of the audio files in the audio file set to be played, the formula can be used as follows:
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • 1/n represents the average play probability
  • a represents the first play probability of the first audio file
  • b represents the second play probability of the second audio file
  • the first audio file may include a plurality of audio files having equal playing probabilities
  • the second audio file may also include an audio file having an equal playing probability
  • the first playing probability corresponding to the first audio file is smaller than the second corresponding to the second audio file. Play probability.
  • a specific method for the audio playback device to calculate the sum of the playback probabilities of the audio files in the audio file set to be played is provided, and the sum of the playback probabilities can be calculated by the formula and applied to subsequent data processing. This improves the operability and practicality of the solution.
  • the audio playback device acquires the target random probability according to the average play probability and the sum of the play probability ,include:
  • the interval of the target random probability should be determined first, and the target random probability can be randomly obtained according to the following interval:
  • 1/n represents the average playback probability
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • k represents the target random probability, and not the audio playback device arbitrarily selects any value as the target random probability.
  • the target random probability k should be within a reasonable range, that is, greater than or equal to the average play probability 1/n, less than or equal to the play probability sum value SUM.
  • the interval for randomly acquiring the target random probability is defined, and the interval should be greater than or equal to the average playing probability, less than or equal to the sum of the playing probabilities, and the target random probability selected in the interval can be guaranteed.
  • the rationality of the playback probability of the audio text is calculated, thereby improving the practicability and operability of the scheme.
  • the audio playback device plays the audio file according to the playing probability of the audio file.
  • the target random probability in the case where the target random probability is not equal to the average play probability, it can be divided into two intervals, the first interval is 1/n ⁇ k ⁇ (1/n+a), and the second interval is (1/n+a) ⁇ k ⁇ SUM, when the target random probability is greater than the average play probability and less than or equal to the average play probability plus the first play probability, ie 1/n ⁇ k ⁇ (1/n + a), then the audio playback device randomly selects Playing the first audio file whose playback probability is the first playback probability;
  • the audio playback device randomly selects the play probability as the second play probability.
  • the second audio file is played.
  • a method for how to randomly play an audio file is introduced in the case where the target random probability is equal to the average playback probability.
  • the audio playback device randomly selects an audio file whose playback probability is the average play probability from the medium probability of the set of audio files to be played, and plays.
  • the audio playback device selects an audio file whose play probability is the first play probability from the set of audio files to be played, and plays
  • the audio playback device selects an audio file whose play probability is the second play probability from the set of to-be-played audio files, Play it.
  • the audio playback device Before the audio playback device obtains the identifier information corresponding to the audio file, the audio playback device may further include:
  • the audio playback device first acquires a flag bit in the audio file, wherein the flag bit includes the first flag bit or the second flag bit. However, it can be understood that the audio playback device can obtain the flag bits of each audio file first. Then, from the audio file whose flag is the first flag bit, the next played audio file is determined by the playing probability, or the next audio file to be played may be selected according to the playing probability, and then the audio to be played is determined. Whether the flag of the file is the first flag, if yes, it is determined to play the audio file, if the flag of the audio file to be played is the second flag, then re-in the audio file whose flag is the first flag Select the audio file to be played;
  • the step of playing the audio file by the audio playback device according to the playing probability of the audio file may specifically include:
  • the audio playback device plays the audio file according to the playback probability of the audio file, that is, the audio playback device only plays the audio file whose flag bit is the first flag bit.
  • the flag bit of the audio file to be played may be obtained first, and then the audio playback device selects the audio file whose flag is the first flag bit, and according to The playback probability of the audio file determines the next played audio file.
  • the flag bit is the first flag bit, indicating that the audio file can be played, because the audio file played last time is not this.
  • the flag bit is the second flag bit, it indicates that the audio file corresponding to the second flag bit has just been Play, so the next play does not consider the audio file.
  • the method may further include:
  • the audio playback device determines, according to the playback probability of the audio file, that the next played audio file is the third audio file from the audio file whose flag is the first flag bit, and when the third audio file is played, the audio playback device will be the third
  • the first flag bit in the audio file is updated to the second flag bit, so when the third audio file is played, or the user switches the third audio file, the next one is selected from the audio file not including the third audio file.
  • the audio file to be played, wherein the selection of the next audio file to be played still needs to be determined according to the probability of the audio file.
  • a method for recovering a flag bit in time is provided, when the audio is broadcasted.
  • the playback device determines, according to the playback probability of the audio file, and determines from the audio file whose flag is the first flag bit, that the next audio file to be played is the third audio file, the third audio file is turned on, that is, the third The first flag corresponding to the audio file is updated to the second flag. In this way, if the user frequently switches the audio file in a short time, the audio playback device can also ensure that the same audio file is not continuously played repeatedly, thereby further improving. user experience.
  • a second aspect of the embodiments of the present invention provides an audio playback device, including:
  • An obtaining module configured to obtain identifier information corresponding to the audio file
  • a determining module configured to determine a play probability of the audio file according to the identifier information corresponding to the audio file acquired by the acquiring module
  • a playing module configured to play the audio file according to a playing probability of the audio file determined by the determining module.
  • the playback mode of the audio playback device is a random play mode.
  • the identifier information includes an identifier value and a number of identifiers.
  • any one of the first or second possible implementation manners of the second aspect of the embodiments of the present invention, the third implementation manner of the second aspect of the embodiments of the present invention In the determination module includes:
  • a first playing unit configured to play a set of to-be-played audio files composed of at least one audio file
  • a first determining unit configured to determine an average playing probability of the audio file according to the total number of identifiers in the audio file set to be played played by the first playing unit
  • the second determining unit is configured to determine, according to the number of identifiers of the audio file determined by the first determining unit and the average playing probability, the playing probability of the audio file in the audio file set to be played.
  • any one of the first or second possible implementation manners of the second aspect of the embodiments of the present invention, the fourth implementation manner of the second aspect of the embodiments of the present invention In the determination module includes:
  • a second playing unit configured to play a set of to-be-played audio files composed of at least one audio file
  • a third determining unit configured to determine an average playing probability of the audio file according to the total number of identifiers in the audio file set to be played played by the second playing unit;
  • a fourth determining unit configured to determine a first play probability according to the number of identifiers in the identifier information of the first audio file, and determine a second play probability according to the number of identifiers in the identifier information of the second audio file, where the first The audio file and the second audio file are audio files in the audio file set to be played.
  • the number of the identifiers in the identifier information of the first audio file is greater than or equal to 2, and the number of identifiers in the identifier information of the second audio file is greater than the first.
  • the number of identifiers in the identification information of the audio file
  • a fifth determining unit configured to determine, according to an average play probability determined by the third determining unit, a first play probability determined by the fourth determining unit, and a second play probability, a play probability sum value of the audio file in the audio file set to be played;
  • An obtaining unit configured to acquire a target random probability according to an average play probability determined by the third determining unit and a play probability sum value determined by the fifth determining unit;
  • a sixth determining unit configured to determine, according to the target random probability acquired by the acquiring unit, a play probability of the audio file in the audio file set to be played.
  • the fifth determining unit includes:
  • the calculation subunit is configured to calculate a sum of play probability of the audio file in the audio file set to be played as follows:
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • 1/n represents the average play probability
  • a represents the first play probability of the first audio file
  • b represents the second play probability of the second audio file.
  • the acquiring unit includes:
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • k represents the target random probability
  • the playing module includes:
  • a second selection unit configured to: when 1/n ⁇ k ⁇ (1/n+a), select a first audio file whose playback probability is the first playback probability to play;
  • the third selecting unit is configured to: when (1/n+a) ⁇ k ⁇ SUM, select the second audio file whose playing probability is the second playing probability to play.
  • the audio playback device may further include:
  • An identifier obtaining module configured to obtain a flag bit in the audio file, where the flag bit includes a first flag bit or a second flag bit;
  • the playback module includes:
  • the third playing unit is configured to: when the flag bit in the audio file is the first flag bit, play the audio file according to the playing probability of the audio file.
  • the audio playback device may further include:
  • an update module configured to update the first flag bit in the third audio file to the second flag bit when the third audio file is played.
  • a third aspect of the embodiments of the present invention provides an audio playback device, including: a memory, a transceiver, a processor, and a bus system;
  • the memory is used to store the program
  • the processor is used to execute the program in the memory, as follows:
  • the audio file is played according to the playback probability of the audio file.
  • the bus system is configured to connect the memory, the transceiver, and the processor to cause the memory, the transceiver, and the processor to communicate.
  • the play mode of the audio playback device is a random play mode.
  • the identifier information includes an identifier value and a number of identifiers.
  • the processor is configured to execute the program in the memory, and is specifically configured to perform the following steps:
  • the playing probability of the audio file in the audio file set to be played is determined according to the number of identifiers of the audio file and the average playing probability.
  • the processor is configured to execute the program in the memory, and is specifically configured to perform the following steps:
  • the probability of playing the audio file in the set of audio files to be played is determined according to the target random probability.
  • the processor is configured to execute the program in the memory, and is specifically configured to perform the following steps:
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • 1/n represents the average play probability
  • a represents the first play probability of the first audio file
  • b represents the second play probability of the second audio file.
  • the processor is configured to execute the program in the memory, and is specifically configured to perform the following steps:
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • k represents the target random probability
  • the processor is configured to execute the program in the memory, and is specifically configured to perform the following steps:
  • the first audio file whose playback probability is the first playback probability is selected for playing
  • the processor is configured to execute the program in the memory, and is specifically configured to perform the following steps:
  • the audio file is played according to the playback probability of the audio file.
  • the processor is configured to execute the program in the memory, and is specifically configured to perform the following steps:
  • the first flag bit in the third audio file is updated to the second flag bit.
  • a method for controlling playback of an audio file is provided.
  • the audio playback device acquires identification information corresponding to the audio file, and determines a playback probability of the audio file according to the identification information corresponding to the audio file, and finally, according to the playback probability of the audio file. , play audio files.
  • the number of times of playing the audio file is determined according to the identification information corresponding to the audio file, that is, the degree of the user's favorite, without playing the multiple audio files in the case of equal probability, thereby improving the user experience and increasing The flexibility of the program.
  • FIG. 1 is a schematic diagram of an embodiment of a method for controlling audio file playback according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a music player interface for controlling audio file playback according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another embodiment of an audio playback device according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an audio playing device according to an embodiment of the present invention.
  • FIG. 12 is another schematic structural diagram of an audio playback device according to an embodiment of the present invention.
  • the present invention is applied to a scene of audio playback, which may specifically be a random play mode in audio playback.
  • audio playback softwares that users often use, such as a "everyday listening” client, "cool. My music box “client, “cool dog music” client and “Netease cloud music” client, etc., and these audio files play the client has a random play function, currently widely used is called a linear same
  • the rest of the algorithm is used for random play, and the probability of playing is the same for each audio file in the same list.
  • the device for playing an audio file is referred to as an audio playback device in the embodiment of the present invention, and may be a personal computer (English name: Personal Computer, English abbreviation: PC), mobile phone, music player (English full name: Moving Pictures Experts Group Audio Layer 3, English abbreviation: MP3) or tablet computer, etc., here will be a mobile phone as an example, but in practical applications should not It is understood to be a limitation of the inventive arrangements.
  • an embodiment of a method for controlling audio file playing in an embodiment of the present invention includes:
  • the audio playback device acquires identification information corresponding to the audio file.
  • different play modes may be selected, for example, one of the play modes, such as sequential play, single loop play, and list random play.
  • the default playback mode used is random play.
  • the audio playback device can directly obtain the identification information that the user has marked the audio file last time or earlier.
  • the random play mode or the default random play mode is selected, and the audio playback device starts playing the audio file in the random play mode.
  • the audio playback device determines a play probability of the audio file according to the identifier information corresponding to the audio file.
  • the audio playback device may determine the playback probability of the audio file according to the identification information corresponding to the audio file.
  • the information corresponding to the audio file includes information for calculating the playing probability of the audio file, so that the audio playing device can determine the playing probability corresponding to the different audio files according to different identification information.
  • the playback probability of the audio file can be obtained by using various probability calculation methods, and the playback probability of the audio file can be obtained by the correspondence between the identification information and the playback probability. In the following embodiments, it will be targeted in different scenarios. How to obtain the playback probability of an audio file is described in detail. It should be noted that, in practical applications, it is not limited to several probability calculation methods which will be mentioned below, and should not be construed as limiting the present invention.
  • the audio playback device plays the audio file according to the playing probability of the audio file.
  • the audio playback device determines the playback probability of each audio file according to the identification information corresponding to the audio file, and plays the corresponding audio file according to the playback probability of each audio file.
  • a method for controlling audio file playback is provided.
  • the audio playback device acquires identification information corresponding to the audio file, and determines an audio file according to the identification information corresponding to the audio file. Play the probability, and finally play the audio file according to the playback probability of the audio file.
  • the number of times of playing the audio file is determined according to the identification information corresponding to the audio file, that is, the degree of the user's favorite, without playing the multiple audio files in the case of equal probability, thereby improving the user experience and increasing The flexibility of the program.
  • the playback mode of the audio playback device is a random play mode.
  • the play mode adopted by the music playing device is a random play mode.
  • the random play mode is actually a random play algorithm.
  • a new algorithm needs to be developed.
  • the Shuffle algorithm and the sorting algorithm are just the opposite, which is a process from order to disorder, commonly known as shuffling algorithm. It scrambles the audio files in the playlist in order, becomes an out-of-order playlist that has nothing to do with the original audio file order, and then plays the audio file, and supports when the user clicks "previous" Go back to the audio file you just played.
  • the Random algorithm performs a random number operation when selecting the song to be played, and obtains the index of the upcoming song in the playlist.
  • the playlist itself is not disturbed, but a random function is used to select one from the playlist.
  • the song is played.
  • the more common random number generation algorithm is based on the linear congruence algorithm.
  • the C standard library function rand( ) uses it to generate random numbers.
  • the linear congruence algorithm is capable of producing a uniformly distributed random number, but it depends on the upper bound of a given random number. If the upper bound is smaller, the probability of the generated random number repeating is greater.
  • the play mode of the audio playback device is limited to the random play mode. Since the probability of playing each audio file is the same when the random play mode is adopted in the prior art, the present invention can be Determining audio in the random play mode for the identification information corresponding to the audio file The number of times the file is played, which further enhances the user experience and increases the flexibility of the solution.
  • the identifier information includes an identifier value and a number of identifiers.
  • the identifier information used to determine the playback probability of the audio file includes the identifier value and the number of identifiers.
  • the identifier value is a specific identifier value set for each audio file, and the identifier value used by the different audio files is used. Inevitably different. Generally, when the identification value of an audio file is ⁇ 1 ⁇ , the identification value of the latter audio file cannot be ⁇ 1 ⁇ , it can be ⁇ 2 ⁇ , or ⁇ 2, 3 ⁇ , or it is ⁇ 2,2 ⁇ and other different forms of expression.
  • the number of identifiers can be expressed in the form of user preference information in practical applications.
  • the user can input his/her own user preference information for the audio file through the music player interface, wherein the user preference information is mainly used to reflect the user's preference for the audio file, and the higher the preference degree, the higher the playback probability.
  • the audio playback device receives the user preference information set by the user for the audio file, and can play the playback probability prompt sound corresponding to the audio file according to the user preference information.
  • the user is provided with the option of setting preference information for the current audio file.
  • preference information for the current audio file.
  • the user may also be provided with the preference for selecting the audio file on other interfaces in the actual application. Information options.
  • FIG. 2 is a schematic diagram of a music player interface for controlling audio file playback according to an embodiment of the present invention.
  • the user can determine the preference information of the current audio file by setting the heart pattern, and the more the heart pattern mark, the higher the probability that the current audio file is played.
  • the user selects three of them, which means that the playback probability of the current audio file is three times the playback probability of the audio file marked with a heart, and the identification information of the current audio file is The number of identifiers is 3.
  • the heart-shaped selection pattern is only one indication, and may be other patterns, such as a star, a square or a circle, and is not limited herein.
  • the user can also set the preference information of the audio file by using a shortcut, for example, when the audio playback device receives the user while holding down the volume key “+” and the volume key “-”, indicating that the user will play the currently played audio file.
  • the number of markers is increased by one, and the corresponding playback probability is increased by one level.
  • the audio playback device receives the user while pressing and holding the power button and the volume button "+”, or simultaneously pressing the power button and the volume button "-”, the user is indicated.
  • the number of identifiers of the currently played audio file is decremented by one, and the corresponding playback probability is lowered by one level, and the state of the heart-shaped pattern is updated on the music player interface.
  • the user can also set the preference information of the audio file by using specific gesture recognition. For example, in the state of the black screen, the user makes a gesture of sliding to the right, and the sensing module of the audio playback device receives the right sliding gesture and then plays the current one. The number of identifiers of the audio file is increased by one, and the corresponding playback probability is increased by one level. If the user makes a gesture of sliding to the left, the sensing module of the audio playback device receives the left sliding gesture and then identifies the currently played audio file. The number is reduced by 1, and the corresponding playback probability is lowered by one level.
  • the probability of the current audio file can be notified by playing a specific prompt sound when the interface is not played by the audio file.
  • the prompt tone can also be customized by the user, and can be a prompt sound that is provided by the system, a prompt sound downloaded by the user, or a prompt sound obtained by the user.
  • the audio playback device can determine the playing probability of the audio file according to the identification information including the identification value and the number of the identification, and at the same time, if the playback probability prompt sound corresponding to the audio file can also be played, the user does not need to pass the Viewing the music player interface knows the probability of the audio file.
  • the utility and flexibility of the solution are improved, and the user is allowed to adjust the probability of the current music file in real time, thereby enhancing the solution. User experience.
  • the audio playback device is based on the first or second embodiment corresponding to FIG. 1 and FIG.
  • the identification information corresponding to the audio file determines the playing probability of the audio file, and may include:
  • the audio playback device plays a set of audio files to be played that are composed of at least one audio file
  • the audio playback device determines an average play probability of the audio file according to the total number of identifiers in the set of audio files to be played;
  • the audio playback device determines the playback probability of the audio file in the audio file set to be played according to the number of identifiers of the audio file and the average playback probability.
  • the audio playback device acquires the identification information corresponding to the audio file in the random play mode, and determines the playback probability of the audio file according to the identification information corresponding to the audio file.
  • the music playing device plays a set of audio files to be played by at least one audio file, wherein the set of audio files to be played may be a playlist, and the user integrates the playlist according to his own preferences, and the playlist may have multiple, different lists.
  • the same or different play modes can be performed, for example, the audio files in list A are in the random play mode, and the audio files in list B are in the sequential play mode. This embodiment is described by taking a random play mode as an example.
  • the audio playback device determines the playback probability of the audio file in the audio file set to be played according to the number of identifiers of the audio file and the average playback probability. Specifically, the audio playback device may calculate the playback probability of the audio file according to the number of identifiers of the audio file, wherein the audio playback device uses the average playback probability as the playback probability of the default audio file, and the default audio file is not adjusted by the user.
  • the audio file of the user preference information, the user preference information corresponds to the lowest level, and the default audio file carries an identifier.
  • the playback probability of the audio file i ⁇ the average playback probability, for example, the average playback probability is 1/10, and the number of identifiers of the A audio file is 3, then the playback probability of the audio file is That is 3/10.
  • the identifier value of the current audio file is to identify the current audio file, which is 1 for the identifier value of the previous audio file, and the number of identifiers is the number of identifiers set by the user for the current audio file, that is, the preference information that is set as the setting.
  • the relationship between the playback probability of the preset audio file and the identification value and the number of identifiers corresponding to the audio file is that the more the number of identifiers of the audio file is, the greater the playback probability of the audio file is.
  • the playback probability of the audio file is corresponding to the number of identifiers of the audio file.
  • the step of determining the playing probability of the audio file in the audio file set to be played by the audio playing device according to the number of identifiers of the audio file and the average playing probability may have the following processing manners:
  • the audio playback device determines the identification information of the audio file according to the order of the audio files in the audio file set to be played, wherein the identifier information includes the number of identifiers and the identifier value corresponding to each identifier, wherein different audios with the same playback probability The file's identification value is different.
  • the default audio file may be referred to as a first audio file.
  • the playback probability of the first audio file is the average playback probability
  • the number of identifiers of the audio file which is usually the average playback probability
  • the audio file for which the user has set the user preference information is referred to as the second audio file.
  • the playback probability of the second audio file is not the average playback probability, and the number of identifiers is greater than or equal to 2.
  • the audio playback device can determine the identification value and the number of identifiers of the playback file according to the order in which the audio files are arranged in the set of audio files to be played.
  • the playback probability of the audio file may be obtained according to the number of identifiers. For example, the playback probability of the first audio file is 1/10, and the identifier number of the second audio file is 2. , then the playback probability of the second audio file is 3/10. And further determining the location of the first audio file in the set of audio files to be played, if the first audio file is the third audio file in the playlist, the second audio file is the fourth file in the playlist, and The audio file A and the audio file B are preceded by the first audio file, and the identification information of the first audio file and the second audio file may be the following two cases.
  • the audio file A is sorted first in the list, its identification value is 1, and the number of identifiers is 1, the identification information of the audio file A is represented as ⁇ 1 ⁇ , and the audio file B is in the list.
  • the order is 2, the identifier value is 2, and the number of identifiers is 2.
  • the identifier information of the audio file B is identified as ⁇ 2, 2 ⁇ , and thus, the identifier number of the first audio file C after the audio file B is When one is, the identification information of C is ⁇ 3 ⁇ , and the identification information of the second audio file D is ⁇ 4, 4, 4 ⁇ ;
  • the identifier value is 1, and the number of identifiers is two, the identification information of the audio file A is ⁇ 1, 2 ⁇ , and the identifier of the audio file B is The first digit of the value needs to be consecutive with the last digit of the previous audio file, and the identifier of the audio file B is 3 to the first digit. If the number of identifiers is 3, the identification information of the audio file B is ⁇ 3. , 4, 5 ⁇ . Thus, the first audio file after the audio file B can be represented by ⁇ 6 ⁇ . Identification information, the identification information of the second audio file is ⁇ 7, 8, 9 ⁇ .
  • the representation of the identification information is not limited to the above two methods, and the identification information corresponding to the audio file may also be represented by a letter or a symbol.
  • the identification information of the audio file A is ⁇ a, b ⁇
  • the identification information of the audio file B is ⁇ c ⁇ , etc., which is not limited herein.
  • the user may set user preference information for each audio file.
  • the audio to be played may be determined by referring to the following manner. file:
  • FIG. 2 is A schematic diagram of a music player interface for controlling audio file playback in an embodiment of the invention, for example:
  • the identifier corresponding to the first audio file is ⁇ 1 ⁇ , indicating that the user preference information is a heart-shaped pattern
  • the identifier corresponding to the second song is ⁇ 2 ⁇ , indicating that the user preference information is a heart-shaped pattern
  • the identifier corresponding to the third song is ⁇ 3, 4 ⁇ , indicating that the user preference information is two heart-shaped patterns
  • the identifier corresponding to the fourth song is ⁇ 5 ⁇ , indicating that the user preference information is a heart-shaped pattern
  • the identifier corresponding to the fifth song is ⁇ 6, 7, 8 ⁇ , indicating that the user preference information is three heart-shaped patterns, and so on.
  • the audio playback device selects the value with the largest identification value in the set of audio files to be played, which is y, and then randomly selects a value in 1 to y, and the audio file is to be played in the identification information of the audio file. Audio file,
  • the audio playback device may also determine the preset playback times of each audio file by using the following method, and The number of play times determines the multiple relationship between the playback probabilities of the individual audio files.
  • the user sets user preference information only for the first audio file and the second audio file.
  • the user preference information is divided into five levels, and the highest level is no more than 1/2.
  • the first level can be set to 1/10
  • the second level is 2/10
  • the third level is 3/10.
  • the four levels are 4/10 and the fifth level is 5/10.
  • the first audio file is the second level
  • the second audio file is the third level. 3/10.
  • the preset number of playbacks of the audio file is determined according to the preference information set by the user as follows:
  • N represents the total number of identifiers in the set of audio files to be played
  • M represents the playback level of the current audio file
  • the preset playback frequency of the first audio file is five times that of the default audio file
  • the preset playback frequency of the second audio file is seven times that of the default audio file. Therefore, the audio playing device can randomly select the audio file to be played according to the calculated preset playing times, and play the same.
  • the audio playback device determines the number of audio files in the audio file set to be played, and the audio file set to be played is composed of at least one audio file, according to the total number of identifiers in the audio file set to be played. Determining the average playing probability of the audio file, and finally determining the playing probability of the audio file in the audio file set to be played according to the number of identifiers of the audio file and the average playing probability.
  • the above method can be used to make the audio playback device determine the playing probability of the audio file, and provide a specific solution for the specific implementation of the solution, thereby improving the practicability and feasibility of the solution.
  • the audio playback device is based on the first or second embodiment corresponding to FIG. 1 and FIG.
  • the identification information corresponding to the audio file determines the playing probability of the audio file, and may include:
  • the audio playback device plays a set of audio files to be played that are composed of at least one audio file
  • the audio playback device determines an average play probability of the audio file according to the total number of identifiers in the set of audio files to be played;
  • the audio playback device determines a first play probability according to the number of identifiers in the identifier information of the first audio file, and determines a second play probability according to the number of identifiers in the identifier information of the second audio file, where the first audio file is The second audio file is an audio file in the set of audio files to be played, the first sound
  • the number of identifiers in the identifier information of the frequency file is greater than or equal to 2
  • the number of identifiers in the identifier information of the second audio file is greater than the number of identifiers in the identifier information of the first audio file;
  • the audio playback device determines a play probability sum value of the audio files in the audio file set to be played according to the average play probability, the first play probability, and the second play probability;
  • the audio playback device acquires the target random probability according to the average play probability and the sum of the play probabilities
  • the audio playback device determines the playback probability of the audio file in the audio file set to be played according to the target random probability.
  • the audio playback device may determine the playback probability according to the identification information corresponding to the audio file, and may also carry multiple audio files carrying different identification information. Medium, determine its playback probability.
  • the audio playback device first determines user preference information according to a playback level of the audio file set by the user on the audio file, the user preference information determines identification information of each audio file, and according to the audio file in the audio file set to be played.
  • the total number of identifiers determines the average playback probability, and then the playback probability of the plurality of audio files in the audio file set to be played, and the sum of the playback probabilities are calculated by the identification information and the average playback probability, and a number is randomly selected from different intervals as The target random probability, the audio playback device can confirm the playback probability of the audio file in the audio file set to be played according to the target random probability.
  • the default average playback probability is 1/100
  • the user preference information is divided into 5 levels. If the highest level probability is 5/100, then the first level can be It is 1/100, the second level is 2/100, the third level is 3/100, the fourth level is 4/100, and the fifth level is 5/100.
  • the audio file A and the audio file B are both the second level
  • the audio file A and the audio file B have a probability of 2/100.
  • the levels of the audio file C and the audio file D are both the fifth level
  • the audio file C and the audio file D have a probability of 5/100.
  • the audio file set to be played is grouped according to probability, as follows:
  • the probability corresponding to ⁇ A, B ⁇ is 2/100;
  • ⁇ C, D ⁇ corresponds to a probability of 5/100
  • the probability corresponding to other audio files is 1/100 of the average playback probability.
  • the first audio file may be an audio file A or an audio file.
  • the first playback probability is 2/100
  • the second playback probability is 5/100
  • the number of identifiers in the identification information of the first audio file (audio file A or audio file B) is greater than or equal to 2
  • the second audio file ( The number of identifiers in the identifier information of the audio file C or the audio file D) is greater than the number of identifiers in the identifier information of the first audio file.
  • the audio playback device determines the sum of the playback probabilities of the audio files in the audio file set to be played according to the average play probability, that is, 1/100, the first play probability, that is, 2/100 and the second play probability, that is, 5/100, and then The target random probability is randomly selected in the interval between the average play probability and the play probability sum value, and finally the play probability of the audio file in the audio file set to be played is calculated according to the target random probability.
  • the selection of the audio file to be played in the above manner provides another specific implementation means for the solution of the invention, thereby improving the flexibility and practicability of the solution.
  • the audio playing device is based on the average playing probability, first, according to the fourth embodiment corresponding to FIG.
  • the play probability and the second play probability determine a sum of play probability of the audio file in the audio file set to be played, which may include:
  • the audio playback device calculates the sum of the playback probabilities of the audio files in the audio file set to be played as follows:
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • 1/n represents the average play probability
  • a represents the first play probability of the first audio file
  • b represents the second play probability of the second audio file.
  • the audio playback device calculates the sum of the playback probabilities of the audio files in the audio file set to be played
  • the SUM in the formula represents the sum of the playback probabilities of the audio files in the audio file set to be played. 1/n represents the average play probability, a represents the first play probability of the first audio file, and b represents the second play probability of the second audio file.
  • a random probability of target is randomly selected, and the value range is 1/100 ⁇ target random probability. ⁇ 7/100, determining the playing probability of the audio file in the audio file set to be played according to the target random probability, and playing the corresponding audio file according to the playing probability.
  • a specific method for the audio playback device to calculate the sum of the playback probabilities of the audio files in the audio file set to be played is provided, and the sum of the playback probabilities can be calculated by the formula and applied to subsequent data processing. This improves the operability and practicality of the solution.
  • the audio playback device is based on the average playback probability and the playback probability.
  • the sum value, the probability of obtaining the target may include:
  • the audio playback device randomly acquires the target random probability according to the following interval:
  • SUM represents the sum of the playback probabilities of the audio files in the audio file set to be played
  • k represents the target random probability
  • the target random probability interval should be determined first, and not any value can be randomly selected as the target random probability.
  • the target random probability k should be within a reasonable range, that is, greater than or equal to the average play probability 1/n, less than or equal to the play probability sum value SUM.
  • the interval for randomly acquiring the target random probability is defined, and the interval should be greater than or equal to the average playing probability, less than or equal to the sum of the playing probabilities, and the target random probability selected in the interval can be guaranteed.
  • the rationality of the playback probability of the audio text is calculated, thereby improving the practicability and operability of the scheme.
  • the audio playback device plays the audio file according to the playing probability of the audio file, including:
  • the audio playback device selects an audio file whose playback probability is an average playback probability for playing
  • the audio playback device selects the first audio file whose playback probability is the first playback probability to play;
  • the audio playback device selects the second audio file whose playback probability is the second playback probability for playback.
  • the audio playback device is greater than or equal to the average playback probability 1/n, less than or equal to the playback probability sum value SUM.
  • the target random probability in the case where the target random probability is not equal to the average play probability, it can be divided into two intervals, the first interval is 1/n ⁇ k ⁇ (1/n+a), and the second interval is (1/n+a) ⁇ k ⁇ SUM, when the target random probability k falls within the first interval, the audio playback device selects the first audio file whose playback probability is the first playback probability to play, when the target random probability k falls in the second In the interval, the audio playback device selects the second audio file whose playback probability is the second playback probability to play.
  • the specific scenario mentioned in the sixth optional embodiment in the embodiment of the present invention may be introduced, that is, if there are a total of 100 identifiers in the audio file set to be played, the default average playback probability is It is 1/100, the user preference information is divided into 5 levels, and if the highest level probability is 5/100, then the first level can be 1/100, the second level is 2/100, and the third level is 3 /100, the fourth level is 4/100, and the fifth level is 5/100.
  • the levels of the audio file A and the audio file B are both the second level, and the first playback probability of the audio file A and the audio file B is 2/100
  • the levels of the audio file C and the audio file D are the fifth level.
  • the second playback probability of the audio file C and the audio file D is 5/100, and the first play probability 2/100 is smaller than the second play. Probability 5/100.
  • the sum of the play probability of the audio file in the audio file set to be played is calculated according to the above probability, and the value range of the target random probability is obtained, that is, 1/100 ⁇ target random probability ⁇ 7/100.
  • the audio playback device selects an audio file whose playback probability is the average play probability to play, as will be described below, specifically :
  • the preset playback probability is calculated first, because the grouping can be grouped according to different playing probabilities, and three groups are obtained, which are respectively a group whose playing probability is an average playing probability, a group whose playing probability is equal to the first playing probability, and the playing probability is equal to A set of the second play probability, so the preset play probability can be set to (1/n+a), where 1/n is the average play probability, which is 1/100, and a is the first play probability, which is 2/100. Then, the preset playback probability (1/n+a) is equal to 3/100.
  • the audio playback device randomly plays the audio file whose playback probability is the first playback probability from the set of audio files to be played. , play.
  • the audio file that can be randomly played is the audio file A or the audio file B.
  • the audio playback device randomly plays an audio file whose playback probability is the second playback probability from the set of audio files to be played, and plays.
  • the audio file that can be randomly played is the audio file C or the audio file D.
  • the preset playback probability when there are more than three groups of audio files grouped according to probability, the preset playback probability also has at least two values.
  • the average playback probability is 1/n
  • the audio file A and the audio file B correspond to each other.
  • the probability is a
  • the probability corresponding to the audio file C and the audio file D is b
  • the probability of the audio file E and the audio file F is c
  • the preset playback probability is (1/n+a) and (1/n+b)
  • the range of the target random probability k can be divided into three regions, 1/n ⁇ k ⁇ (1/n+a), (1/n+a) ⁇ k ⁇ ( 1/n+a+b), (1/n+a+b) ⁇ k ⁇ SUM, and so on. If there are more different probabilities in the audio file, the above method is also used for calculation. .
  • a method for how to randomly play an audio file is introduced in the case where the target random probability is equal to the average playback probability.
  • the audio playback device randomly selects an audio file whose playback probability is the average playback probability from the medium probability of the set of audio files to be played, and plays.
  • the audio playback device selects an audio file whose play probability is the first play probability from the set of audio files to be played, and plays
  • the audio playback device selects an audio file whose play probability is the second play probability from the set of to-be-played audio files, Play it.
  • the method further includes:
  • the audio playback device acquires a flag bit in the audio file, where the flag bit includes a first flag bit or a second flag bit;
  • the audio playback device plays the audio file according to the playing probability of the audio file, and may include:
  • the audio playback device plays the audio file according to the playback probability of the audio file.
  • the audio playback device before playing the next audio file, the audio playback device needs to first acquire the flag bits of all the audio files, wherein the flag bit includes the first flag bit and the second flag bit, and the audio playback device only plays the flag. An audio file with the first flag.
  • each audio file has a flag (English full name: flag), the flag can be represented by "0" and “1” respectively, "0" is the first flag, the flag is "0" audio
  • the file indicates that the last played audio file is not the audio file, and "1" is the second flag.
  • the audio file with the flag "1" indicates that the audio file was just played last time.
  • the audio playback device only has the flag bit from "0". In the audio file, one of the audio files is selected for playback according to the playback probability.
  • the audio playback device can first obtain the flag bit of each audio file, and then determine the next played audio file by playing probability from the audio file whose flag is the first flag bit. Of course, the audio player plays. The device may first select the next audio file to be played according to the playing probability, and then determine whether the flag bit of the audio file to be played is the first flag bit, and if yes, determine to play the audio file, if the audio to be played If the flag of the file is the second flag, the audio file to be played is selected again in the audio file whose flag is the first flag.
  • first flag bit and the second flag bit there are various ways for indicating the first flag bit and the second flag bit.
  • it may also be represented by an English letter, such as “T” and “F”.
  • English words such as “true” and “false”
  • symbols such as "+” and "-”, so there is no limit here.
  • the flag bit of the audio file to be played may be obtained first, and then the audio playback device selects the audio file whose flag is the first flag bit, and according to The playback probability of the audio file determines the next played audio file.
  • the flag bit is the first flag bit, indicating that the audio file can be played, because the audio file played last time is not this.
  • the flag bit is the second flag bit, it indicates that the audio file corresponding to the second flag bit has just been Play, so the next play does not consider the audio file.
  • the ninth optional embodiment of the method for controlling audio file playback provided by the embodiment of the present invention may further include:
  • the audio playback device updates the first flag bit in the third audio file to the second flag bit.
  • the audio playback device determines, according to the playback probability of the audio file, that the next played audio file is the third audio file from the audio file whose flag is the first flag.
  • the audio playback device updates the first flag bit corresponding to the third audio file to the second flag bit from the moment of playing.
  • the next audio file to be played is selected from the audio file that does not include the third audio file, where Selecting the next audio file to be played still needs to be determined based on the probability of the audio file.
  • a method for recovering a flag bit in time is provided.
  • the audio playback device determines the next played audio from the audio file whose flag bit is the first flag bit according to the playback probability of the audio file.
  • the file is the third audio file
  • the first flag bit corresponding to the third audio file is updated to the second flag bit at the moment when the third audio file is turned on, so that if the user frequently switches the audio in a short time
  • the file and audio playback device can also ensure that the same audio file is not continuously played repeatedly, thereby further enhancing the user experience.
  • Xiao Li sets the user preference information for the three songs through the music player interface.
  • Xiao Li did not set the other 7 songs, so the 7 first ones are the default playback probabilities.
  • the identification information of each song is first obtained, respectively:
  • the identification information of song A is ⁇ 1 ⁇
  • the identification information of song B is ⁇ 2 ⁇
  • the identification information of song C is ⁇ 3 ⁇
  • the identification information of song D is ⁇ 4 ⁇
  • the identification information of song E is ⁇ 5 ⁇
  • the identification information of song F is ⁇ 6 ⁇
  • the identification information of song G is ⁇ 7 ⁇
  • the identification information of the song "Wedding in Dreams” is ⁇ 8,9,10,11 ⁇
  • the identification information of the song "Four Little Swan Dance” is ⁇ 12,13,14,15,16 ⁇
  • the logo for the song "Blue Danube” is ⁇ 17,18,19,20,21 ⁇
  • the audio playback device in the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to determine, according to the identifier information corresponding to the audio file acquired by the acquiring module 201, a play probability of the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202.
  • the obtaining module 201 obtains the identifier information corresponding to the audio file
  • the determining module 202 determines the playing probability of the audio file according to the identifier information corresponding to the audio file acquired by the acquiring module 201
  • the playing module 203 is configured according to the Determining the playing probability of the audio file determined by the module 202, playing the audio file.
  • a method for controlling playback of an audio file is provided.
  • the audio playback device acquires identification information corresponding to the audio file, and determines a playback probability of the audio file according to the identification information corresponding to the audio file, and finally, according to the playback probability of the audio file. , play audio files.
  • the number of times of playing the audio file is determined according to the identification information corresponding to the audio file, that is, the degree of the user's favorite, without playing the multiple audio files in the case of equal probability, thereby improving the user experience and increasing The flexibility of the program.
  • the play mode of the audio playback device is a random play mode.
  • the play mode of the audio playback device is limited to the random play mode. Since the random play mode is used in the prior art, the probability of playing each audio file is the same. However, the present invention can determine the number of times the audio file is played for the identification information corresponding to the audio file in the random play mode, thereby further improving the user experience and increasing the flexibility of the solution.
  • the identifier information includes an identifier value and a number of identifiers.
  • the identifier information includes the identifier value and the number of identifiers, which are specifically expressed as user preference information, and the audio playback device receives the user preference information of the user on the audio file, and plays the playback probability corresponding to the audio file according to the user preference information. Prompt tone.
  • the identification information includes the identifier value and the identifier number, so that the audio playback device can determine the playback probability of the audio file according to the identifier value and the number of identifiers, and at the same time, if the playback probability corresponding to the audio file can also be played.
  • the prompt tone enables the user to know the probability of the audio file without viewing the music player interface, and improves the practicability and flexibility of the solution when the user is inconvenient to view the music player interface, and is convenient for the user to adjust in real time.
  • the probability of the current music file thereby enhancing the user experience of the solution.
  • FIG. 4 another embodiment of an audio playback device in an embodiment of the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to determine, according to the identifier information corresponding to the audio file acquired by the acquiring module 201, a play probability of the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202;
  • the determining module 202 includes:
  • a first playing unit 2021A configured to play a set of to-be-played audio files composed of at least one of the audio files
  • the first determining unit 2021B is configured to determine an average playing probability of the audio file according to the total number of identifiers in the to-be-played audio file set played by the first playing unit 2021A;
  • the second determining unit 2021C is configured to determine, according to the number of identifiers of the audio file determined by the first determining unit 2021B and the average playing probability, a playing probability of the audio file in the to-be-played audio file set.
  • the audio playback device determines the number of audio files in the audio file set to be played, and the audio file set to be played is composed of at least one audio file, and then The total number of identifiers in the audio file set is played, the average play probability of the audio file is determined, and finally, the play probability of the audio file in the audio file set to be played is determined according to the number of identifiers of the audio file and the average play probability.
  • the above method can be used to make the audio playback device determine the playing probability of the audio file, and provide a specific solution for the specific implementation of the solution, thereby improving the practicability and feasibility of the solution.
  • another embodiment of an audio playback device in an embodiment of the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to determine, according to the identifier information corresponding to the audio file acquired by the acquiring module 201, a play probability of the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202;
  • the determining module 202 includes:
  • a second playing unit 2022A configured to play a set of to-be-played audio files composed of at least one of the audio files
  • the third determining unit 2022B is configured to determine an average playing probability of the audio file according to the total number of identifiers in the to-be-played audio file set played by the second playing unit 2022A;
  • the fourth determining unit 2022C is configured to determine a first play probability according to the number of identifiers in the identifier information of the first audio file, and determine a second play probability according to the number of identifiers in the identifier information of the second audio file, where
  • the first audio file and the second audio file are audio files in the set of audio files to be played, and the number of identifiers in the identification information of the first audio file is greater than or equal to 2, and the second audio file is The number of identifiers in the identifier information is greater than the number of identifiers in the identifier information of the first audio file;
  • the fifth determining unit 2022D is configured to determine, according to the average playing probability determined by the third determining unit 2022B, the first playing probability determined by the fourth determining unit 2022C, and the second playing probability. Playing a sum of play probability of the audio file in the audio file set;
  • the obtaining unit 2022E is configured to acquire a target random probability according to the average playing probability determined by the third determining unit 2022B and the play probability sum value determined by the fifth determining unit 2022D;
  • a sixth determining unit 2022F configured to: randomly acquire the target according to the acquiring unit 2022E The probability determines a play probability of the audio file in the set of audio files to be played.
  • the audio playback device plays a set of audio files to be played by at least one audio file, first according to the total identifier in the audio file set to be played. Determine the average play probability of the audio file, determine the first play probability according to the number of identifiers in the identifier information of the first audio file, and determine the second play probability according to the number of identifiers in the identifier information of the second audio file. Finally, the average play probability, the first play probability and the second play probability are used to determine the sum of the play probability of the audio file in the audio file set to be played, and the audio play device may obtain the target random probability according to the average play probability and the play probability sum. And determining the playing probability of the audio file in the audio file set to be played according to the target random probability.
  • the selection of the audio file to be played in the above manner provides another specific implementation means for the solution of the invention, thereby improving the flexibility and practicability of the solution.
  • FIG. 6 another embodiment of an audio playback device in an embodiment of the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to determine, according to the identifier information corresponding to the audio file acquired by the acquiring module 201, a play probability of the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202;
  • the determining module 202 includes:
  • a second playing unit 2022A configured to play a set of to-be-played audio files composed of at least one of the audio files
  • the third determining unit 2022B is configured to determine an average playing probability of the audio file according to the total number of identifiers in the to-be-played audio file set played by the second playing unit 2022A;
  • the fourth determining unit 2022C is configured to determine a first play probability according to the number of identifiers in the identifier information of the first audio file, and determine a second play probability according to the number of identifiers in the identifier information of the second audio file, where
  • the first audio file and the second audio file are audio files in the set of audio files to be played, and the number of identifiers in the identification information of the first audio file is greater than or equal to 2, and the second audio file is The number of identifiers in the identifier information is greater than the number of identifiers in the identifier information of the first audio file;
  • a fifth determining unit 2022D configured to determine the level according to the third determining unit 2022B a play probability, a first play probability determined by the fourth determining unit 2022C, and the second play probability to determine a play probability sum value of the audio file in the to-be-played audio file set;
  • the obtaining unit 2022E is configured to acquire a target random probability according to the average playing probability determined by the third determining unit 2022B and the play probability sum value determined by the fifth determining unit 2022D;
  • a sixth determining unit 2022F configured to determine, according to the target random probability acquired by the acquiring unit 2022E, a play probability of the audio file in the to-be-played audio file set;
  • the fifth determining unit 2022D includes:
  • the calculating subunit 20221 is configured to calculate a sum of playing probability of the audio file in the to-be-played audio file set as follows:
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set, 1/n represents the average play probability, a represents a first play probability of the first audio file, and b represents the The second playback probability of the second audio file.
  • a specific method for the audio playback device to calculate the sum of the playback probabilities of the audio files in the audio file set to be played is provided, and the sum of the playback probabilities can be calculated by the formula and applied to subsequent data processing. This improves the operability and practicality of the solution.
  • FIG. 7 another embodiment of an audio playback device in an embodiment of the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to determine, according to the identifier information corresponding to the audio file acquired by the acquiring module 201, a play probability of the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202;
  • the determining module 202 includes:
  • a second playing unit 2022A configured to play a set of to-be-played audio files composed of at least one of the audio files
  • the third determining unit 2022B is configured to determine an average playing probability of the audio file according to the total number of identifiers in the to-be-played audio file set played by the second playing unit 2022A;
  • a fourth determining unit 2022C configured to determine, according to the number of identifiers in the identification information of the first audio file Determining a first play probability, and determining a second play probability according to the number of identifiers in the identifier information of the second audio file, wherein the first audio file and the second audio file are both the to-be-played audio file set
  • the number of the identifiers in the identifier information of the first audio file is greater than or equal to 2
  • the number of identifiers in the identifier information of the second audio file is greater than the identifier in the identifier information of the first audio file Number
  • the fifth determining unit 2022D is configured to determine, according to the average playing probability determined by the third determining unit 2022B, the first playing probability determined by the fourth determining unit 2022C, and the second playing probability. Playing a sum of play probability of the audio file in the audio file set;
  • the obtaining unit 2022E is configured to acquire a target random probability according to the average playing probability determined by the third determining unit 2022B and the play probability sum value determined by the fifth determining unit 2022D;
  • a sixth determining unit 2022F configured to determine, according to the target random probability acquired by the acquiring unit 2022E, a play probability of the audio file in the to-be-played audio file set;
  • the fifth determining unit 2022D includes:
  • the calculating subunit 20221 is configured to calculate a sum of playing probability of the audio file in the to-be-played audio file set as follows:
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set, 1/n represents the average play probability, a represents a first play probability of the first audio file, and b represents the a second playback probability of the second audio file;
  • the obtaining unit 2022E includes:
  • the obtaining subunit 20222 is configured to randomly acquire the target random probability according to the following interval:
  • SUM represents the sum of play probability of the audio file in the set of audio files to be played
  • k represents the target random probability
  • the interval for randomly acquiring the target random probability is defined, and the interval should be greater than or equal to the average playing probability, less than or equal to the sum of the playing probabilities, and the target random probability selected in the interval can be guaranteed.
  • the rationality of the playback probability of the audio text is calculated, thereby improving the practicability and operability of the scheme.
  • FIG. 8 another embodiment of an audio playback device in an embodiment of the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to determine, according to the identifier information corresponding to the audio file acquired by the acquiring module 201, a play probability of the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202;
  • the determining module 202 includes:
  • a second playing unit 2022A configured to play a set of to-be-played audio files composed of at least one of the audio files
  • the third determining unit 2022B is configured to determine an average playing probability of the audio file according to the total number of identifiers in the to-be-played audio file set played by the second playing unit 2022A;
  • the fourth determining unit 2022C is configured to determine a first play probability according to the number of identifiers in the identifier information of the first audio file, and determine a second play probability according to the number of identifiers in the identifier information of the second audio file, where
  • the first audio file and the second audio file are audio files in the set of audio files to be played, and the number of identifiers in the identification information of the first audio file is greater than or equal to 2, and the second audio file is The number of identifiers in the identifier information is greater than the number of identifiers in the identifier information of the first audio file;
  • the fifth determining unit 2022D is configured to determine, according to the average playing probability determined by the third determining unit 2022B, the first playing probability determined by the fourth determining unit 2022C, and the second playing probability. Playing a sum of play probability of the audio file in the audio file set;
  • the obtaining unit 2022E is configured to acquire a target random probability according to the average playing probability determined by the third determining unit 2022B and the play probability sum value determined by the fifth determining unit 2022D;
  • a sixth determining unit 2022F configured to determine, according to the target random probability acquired by the acquiring unit 2022E, a play probability of the audio file in the to-be-played audio file set;
  • the fifth determining unit 2022D includes:
  • the calculating subunit 20221 is configured to calculate a sum of playing probability of the audio file in the to-be-played audio file set as follows:
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set, 1/n represents the average play probability, a represents a first play probability of the first audio file, and b represents the a second playback probability of the second audio file;
  • the obtaining unit 2022E includes:
  • the obtaining subunit 20222 is configured to randomly acquire the target random probability according to the following interval:
  • 1/n represents the average play probability
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set
  • k represents the target random probability
  • the playing module 203 includes:
  • the second selecting unit 2032 is configured to: when 1/n ⁇ k ⁇ (1/n+a), select the first audio file whose playing probability is the first playing probability to play;
  • the third selecting unit 2033 is configured to: when (1/n+a) ⁇ k ⁇ SUM, select a second audio file whose playing probability is the second playing probability to play.
  • a method for how to randomly play an audio file is introduced in the case where the target random probability is equal to the average playback probability.
  • the audio playback device randomly selects an audio file whose playback probability is the average play probability from the medium probability of the set of audio files to be played, and plays.
  • the audio playback device selects an audio file whose play probability is the first play probability from the set of audio files to be played, and plays
  • the audio playback device selects an audio file whose play probability is the second play probability from the set of to-be-played audio files, Play it.
  • another embodiment of an audio playback device in an embodiment of the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to determine, according to the identifier information corresponding to the audio file acquired by the acquiring module 201, a play probability of the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202;
  • An identifier obtaining module 204 configured to acquire a flag bit in the audio file, where the flag bit includes a first flag bit or a second flag bit;
  • the determining module 202 includes:
  • a second playing unit 2022A configured to play a set of to-be-played audio files composed of at least one of the audio files
  • the third determining unit 2022B is configured to determine an average playing probability of the audio file according to the total number of identifiers in the to-be-played audio file set played by the second playing unit 2022A;
  • the fourth determining unit 2022C is configured to determine a first play probability according to the number of identifiers in the identifier information of the first audio file, and determine a second play probability according to the number of identifiers in the identifier information of the second audio file, where
  • the first audio file and the second audio file are audio files in the set of audio files to be played, and the number of identifiers in the identification information of the first audio file is greater than or equal to 2, and the second audio file is The number of identifiers in the identifier information is greater than the number of identifiers in the identifier information of the first audio file;
  • the fifth determining unit 2022D is configured to determine, according to the average playing probability determined by the third determining unit 2022B, the first playing probability determined by the fourth determining unit 2022C, and the second playing probability. Playing a sum of play probability of the audio file in the audio file set;
  • the obtaining unit 2022E is configured to acquire a target random probability according to the average playing probability determined by the third determining unit 2022B and the play probability sum value determined by the fifth determining unit 2022D;
  • a sixth determining unit 2022F configured to determine, according to the target random probability acquired by the acquiring unit 2022E, a play probability of the audio file in the to-be-played audio file set;
  • the fifth determining unit 2022D includes:
  • the calculating subunit 20221 is configured to calculate a sum of playing probability of the audio file in the to-be-played audio file set as follows:
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set, 1/n represents the average play probability, a represents a first play probability of the first audio file, and b represents the a second playback probability of the second audio file;
  • the obtaining unit 2022E includes:
  • the obtaining subunit 20222 is configured to randomly acquire the target random probability according to the following interval:
  • 1/n represents the average play probability
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set
  • k represents the target random probability
  • the playing module 203 includes:
  • the second selecting unit 2032 is configured to: when 1/n ⁇ k ⁇ (1/n+a), select the first audio file whose playing probability is the first playing probability to play;
  • the third selecting unit 2033 is configured to: when (1/n+a) ⁇ k ⁇ SUM, select a second audio file whose playing probability is the second playing probability to play.
  • the third playing unit 2034 is configured to: when the flag bit in the audio file is the first flag bit, play the audio file according to a playing probability of the audio file.
  • the flag bit of the audio file to be played may be obtained first, and then the audio playback device selects the audio file whose flag is the first flag bit, and according to The playback probability of the audio file determines the next played audio file.
  • the flag bit is the first flag bit, indicating that the audio file can be played, because the audio file played last time is not this.
  • the flag bit is the second flag bit, it indicates that the audio file corresponding to the second flag bit has just been Play, so the next play does not consider the audio file.
  • another embodiment of an audio playback device in an embodiment of the present invention includes:
  • the obtaining module 201 is configured to obtain identifier information corresponding to the audio file.
  • a determining module 202 configured to: according to the label corresponding to the audio file acquired by the acquiring module 201 The identification information determines a probability of playing the audio file;
  • the playing module 203 is configured to play the audio file according to the playing probability of the audio file determined by the determining module 202;
  • An identifier obtaining module 204 configured to acquire a flag bit in the audio file, where the flag bit includes a first flag bit or a second flag bit;
  • the updating module 205 is configured to: when the third audio file is played, update the first flag bit in the third audio file to the second flag bit;
  • the determining module 202 includes:
  • a second playing unit 2022A configured to play a set of to-be-played audio files composed of at least one of the audio files
  • the third determining unit 2022B is configured to determine an average playing probability of the audio file according to the total number of identifiers in the to-be-played audio file set played by the second playing unit 2022A;
  • the fourth determining unit 2022C is configured to determine a first play probability according to the number of identifiers in the identifier information of the first audio file, and determine a second play probability according to the number of identifiers in the identifier information of the second audio file, where
  • the first audio file and the second audio file are audio files in the set of audio files to be played, and the number of identifiers in the identification information of the first audio file is greater than or equal to 2, and the second audio file is The number of identifiers in the identifier information is greater than the number of identifiers in the identifier information of the first audio file;
  • the fifth determining unit 2022D is configured to determine, according to the average playing probability determined by the third determining unit 2022B, the first playing probability determined by the fourth determining unit 2022C, and the second playing probability. Playing a sum of play probability of the audio file in the audio file set;
  • the obtaining unit 2022E is configured to acquire a target random probability according to the average playing probability determined by the third determining unit 2022B and the play probability sum value determined by the fifth determining unit 2022D;
  • a sixth determining unit 2022F configured to determine, according to the target random probability acquired by the acquiring unit 2022E, a play probability of the audio file in the to-be-played audio file set;
  • the fifth determining unit 2022D includes:
  • the calculating subunit 20221 is configured to calculate a sum of playing probability of the audio file in the to-be-played audio file set as follows:
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set, 1/n represents the average play probability, a represents a first play probability of the first audio file, and b represents the a second playback probability of the second audio file;
  • the obtaining unit 2022E includes:
  • the obtaining subunit 20222 is configured to randomly acquire the target random probability according to the following interval:
  • 1/n represents the average play probability
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set
  • k represents the target random probability
  • the playing module 203 includes:
  • the second selecting unit 2032 is configured to: when 1/n ⁇ k ⁇ (1/n+a), select the first audio file whose playing probability is the first playing probability to play;
  • the third selecting unit 2033 is configured to: when (1/n+a) ⁇ k ⁇ SUM, select a second audio file whose playing probability is the second playing probability to play.
  • the third playing unit 2034 is configured to: when the flag bit in the audio file is the first flag bit, play the audio file according to a playing probability of the audio file.
  • a method for recovering a flag bit in time is provided.
  • the audio playback device determines the next played audio from the audio file whose flag bit is the first flag bit according to the playback probability of the audio file.
  • the file is the third audio file
  • the first flag bit corresponding to the third audio file is updated to the second flag bit at the moment when the third audio file is turned on, so that if the user frequently switches the audio in a short time
  • the file and audio playback device can also ensure that the same audio file is not continuously played repeatedly, thereby further enhancing the user experience.
  • FIG. 11 is a schematic structural diagram of an audio playback device 30 according to an embodiment of the present invention.
  • the audio playback device 30 can include a transceiver 310, a processor 320, and a memory 330.
  • the output device in the transceiver in the embodiment of the present invention may be a display device.
  • the terminal device according to the embodiment of the present invention may be a device that provides voice and/or data connectivity to a user, a handheld device with a wireless connection function, or other processing device connected to a wireless modem.
  • the wireless terminal can pass through the wireless access network (English full name: Radio Access Network, acronym: RAN) communicates with one or more core networks, which may be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals, for example, may be portable, Pocket, handheld, computer built-in or in-vehicle mobile devices that exchange language and/or data with a wireless access network.
  • core networks may be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals, for example, may be portable, Pocket, handheld, computer built-in or in-vehicle mobile devices that exchange language and/or data with a wireless access network.
  • PCS Personal Communication Service
  • SIP Session Initiation Protocol
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • a wireless terminal can also be called a system, a subscriber unit (English name: Subscriber Unit, English abbreviation: SU), a subscriber station (English full name: Subscriber Station, English abbreviation: SS), a mobile station (English full name: Mobile Station, English abbreviation: MS), mobile station (English full name: Mobile), remote station (English full name: Remote Station, English abbreviation: RS), access point (English full name: Access Point, English abbreviation: AP), remote terminal (English full name: Remote Terminal, English abbreviation: RT), access terminal (English full name: Access Terminal, English abbreviation: AT), user terminal (English full name: User Terminal, English abbreviation: UT), user agent (English full name: User Agent, English abbreviation : UA), user equipment (English full name: UserDevice, English abbreviation: UD), or user equipment (English full name: User Equipment, English abbreviation: UE).
  • a subscriber unit English name: Subscriber Unit,
  • Memory 330 can include read only memory and random access memory and provides instructions and data to processor 320. A portion of the memory 330 may also include a non-volatile random access memory (English name: Non-Volatile Random Access Memory, English abbreviation: NVRAM).
  • NVRAM Non-Volatile Random Access Memory
  • the memory 330 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 320 is configured to:
  • the audio file is played according to a playback probability of the audio file.
  • the play mode of the audio playback device 20 is a random play mode.
  • the identifier information may include an identifier value and a number of identifiers.
  • the processor 320 controls the operation of the audio playback device 30.
  • the processor 320 may also be referred to as a central processing unit (English full name: Central Processing Unit: CPU).
  • Memory 330 can include read only memory and random access memory and provides instructions and data to processor 320. A portion of the memory 330 may also include a non-volatile random access memory.
  • the various components of the audio playback device 30 are coupled together by a bus system 340, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus system 340 in the figure.
  • Processor 320 may be an integrated circuit chip with signal processing capabilities.
  • each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 430 or an instruction in a form of software.
  • the processor 320 may be a general-purpose processor, a digital signal processor (English name: Digital Signal Processing, English abbreviation: DSP), an application specific integrated circuit (English name: Application Specific Integrated Circuit, English abbreviation: ASIC), ready-made programmable Gate array (English name: Field-Programmable Gate Array, English abbreviation: FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA ready-made programmable Gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 330, and the processor 320 reads the information in the memory 330 and combines the hardware to perform the steps of the above method.
  • the processor 320 is specifically configured to:
  • the processor 320 is specifically configured to:
  • the processor 320 is specifically configured to:
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set, 1/n represents the average play probability, a represents a first play probability of the first audio file, and b represents the The second playback probability of the second audio file.
  • the processor 320 is specifically configured to:
  • the target random probability is randomly obtained according to the following interval:
  • 1/n represents the average play probability
  • SUM represents the set of audio files to be played.
  • the sum probability of the playback probability of the audio file, k represents the target random probability.
  • the processor 320 is specifically configured to:
  • the first audio file whose playback probability is the first playback probability is selected for playing
  • the processor 320 is specifically configured to:
  • the audio file is played according to the playing probability of the audio file.
  • the processor 320 is specifically configured to:
  • the first flag bit in the third audio file is updated to the second flag bit.
  • FIG. 11 The related description of FIG. 11 can be understood by referring to the related description and effect of the method part of FIG. 1, and no further description is made herein.
  • the embodiment of the present invention further provides another audio playback device.
  • the audio playback device may be any terminal including a mobile phone, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS), a car computer, and the like.
  • the device uses an audio player as a mobile phone as an example:
  • FIG. 12 is a block diagram showing a part of the structure of a mobile phone related to the audio playback device provided by the embodiment of the present invention.
  • the mobile phone includes: radio frequency (English full name: Radio Frequency, English abbreviation: RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (English full name: wireless fidelity , English abbreviation: WiFi) module 470, processor 480, and power supply 490 and other components.
  • radio frequency English full name: Radio Frequency, English abbreviation: RF
  • memory 420 input unit 430
  • display unit 440 sensor 450
  • audio circuit 460 includes: wireless fidelity (English full name: wireless fidelity , English abbreviation: WiFi) module 470, processor 480, and power supply 490 and other components.
  • wireless fidelity English full name: wireless fidelity , English abbreviation: WiFi
  • the RF circuit 410 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 480 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • the RF circuit 410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English name: Low Noise Amplifier, LNA), a duplexer, and the like.
  • RF circuitry 410 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to the global mobile communication system (English full name: Global System of Mobile communication, English abbreviation: GSM), general packet radio service (English full name: General Packet Radio Service, GPRS) ), code division multiple access (English full name: Code Division Multiple Access, English abbreviation: CDMA), wideband code division multiple access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), long-term evolution (English full name: Long Term Evolution, English abbreviation: LTE), e-mail, short message service (English full name: Short Messaging Service, SMS).
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 420 can be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 420.
  • the memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 430 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 430 may include a touch panel 431 and other input devices 432.
  • the touch panel 431 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 431 or near the touch panel 431. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 431 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user and detects a signal brought by the touch operation, The signal is transmitted to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into contact coordinates, sends it to the processor 480, and can receive and execute the command from the processor 480.
  • the touch panel 431 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 430 may also include other input devices 432.
  • other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 440 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 440 can include a display panel 441, and optionally, a liquid crystal display (English name: Liquid Crystal Display, English abbreviation: LCD), an organic light emitting diode (English name: Organic Light-Emitting Diode, English abbreviation: OLED), etc.
  • the display panel 441 is configured in a form.
  • the touch panel 431 can cover the display panel 441. When the touch panel 431 detects a touch operation on or near the touch panel 431, it transmits to the processor 480 to determine the type of the touch event, and then the processor 480 according to the touch event.
  • the type provides a corresponding visual output on display panel 441.
  • the touch panel 431 and the display panel 441 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 12, in some embodiments, the touch panel 431 and the display panel 441 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 450, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • Audio circuit 460, speaker 461, and microphone 462 provide an audio interface between the user and the handset.
  • the audio circuit 460 can transmit the converted electrical data of the received audio data to the speaker 461 for conversion to the sound signal output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal by the audio circuit 460. Converted to audio data after receiving, and then output audio data After processing 480, the processor 480 transmits it to, for example, another mobile phone, or outputs the audio data to the memory 420 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 470, which provides users with wireless broadband Internet access.
  • FIG. 12 shows the WiFi module 470, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 480 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 420, and invoking data stored in the memory 420, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 480.
  • the handset also includes a power source 490 (such as a battery) that supplies power to the various components.
  • a power source 490 such as a battery
  • the power source can be logically coupled to the processor 480 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 480 included in the terminal further has the following functions:
  • the control input unit 430 acquires identification information corresponding to the audio file
  • the audio file is played according to a playback probability of the audio file.
  • the play mode of the audio playback device is a random play mode.
  • the identifier information includes an identifier value and a number of identifiers.
  • the processor 480 is also specifically configured to
  • the processor 480 is also specifically configured to
  • the control input unit 430 acquires a target random probability according to the average play probability and the play probability sum value
  • the processor 480 is also specifically configured to
  • SUM represents a sum of play probability of the audio file in the to-be-played audio file set, 1/n represents the average play probability, a represents a first play probability of the first audio file, and b represents the The second playback probability of the second audio file.
  • the processor 480 is also specifically configured to
  • the target random probability is randomly obtained according to the following interval:
  • SUM represents the sum of play probability of the audio file in the set of audio files to be played
  • k represents the target random probability
  • the processor 480 is also specifically configured to
  • the first audio file whose playback probability is the first playback probability is selected for playing
  • the processor 480 is also specifically configured to
  • the control input unit 430 acquires a flag bit in the audio file, where the flag bit includes a first flag bit or a second flag bit;
  • the audio file is played according to the playing probability of the audio file.
  • the processor 480 is also specifically configured to
  • the first flag bit in the third audio file is updated to the second flag bit.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the 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 of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or a software functional unit. Formal realization.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic A variety of media that can store program code, such as a disc or a disc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明实施例公开了一种控制音频文件播放的方法,包括:音频播放装置获取音频文件对应的标识信息;所述音频播放装置根据所述音频文件对应的标识信息确定所述音频文件的播放概率;所述音频播放装置根据所述音频文件的播放概率,播放所述音频文件。本发明实施例还提供一种音频播放装置。本发明实施例在随机播放模式下根据音频文件对应的标识信息即用户的喜爱程度来来确定音频文件的播放次数,而不需要在等概率的情况下播放多个音频文件,提升了用户体验,增加了方案的灵活性。

Description

一种控制音频文件播放的方法及音频播放装置 技术领域
本发明涉及音频播放领域,尤其涉及一种控制音频文件播放的方法及音频播放装置。
背景技术
音乐已经逐渐进入每个人的日常生活,在现在音乐播放器的随机模式播放模式中,每首歌播放的概率是一样的,但是有时候用户想听自己喜欢的歌曲时,若播放下一首,则是有很大概率需要用户播放很多首歌的时候才能听到自己喜欢的歌曲。
现有技术中,音乐播放器都有设置标签的功能,用户对自己喜欢的歌曲进行标记,在播放时,用户可以选择已标记过歌曲清单进行播放。
然而在随机播放的模式下,即便设置有歌曲清单,其播放的概率依旧保持不变,也就是说,当已标记过歌曲清单中有多首歌曲时,如果用户想要播放其中一首最喜爱的歌曲,还是有很大概率需要播放多首歌后才切换道自己最爱的歌曲,从而增加了切换时间,降低了用户体验。
发明内容
本发明实施例提供了一种控制音频文件播放的方法及音频播放装置,以此达到在随机播放模式下根据音频文件对应的标识信息即用户的喜爱程度来来确定音频文件的播放次数,而不需要在等概率的情况下播放多个音频文件,提升了用户体验,增加了方案的灵活性。
有鉴于此,本发明实施例的第一方面提供一种控制音频文件播放的方法,包括:
音频播放装置首先在随机播放的模式下获取音频文件对应的标识信息,具体可以通过直接获取用户上次或者更早之前对音频文件标记过的标识信息;
音频播放装置可以根据音频文件所对应的标识信息,来确定音频文件的播放概率,其中,音频文件对应的标识信息中包含了用于计算该音频文件播 放概率的信息,以使得音频播放装置可以根据不同的标识信息确定不同音频文件对应的播放概率;
音频播放装置根据音频文件对应的标识信息确定每个音频文件的播放概率,并根据每个音频文件的播放概率播放相应的音频文件。
本发明实施例中,提供了一种控制音频文件播放的方法,音频播放装置获取音频文件对应的标识信息,并根据音频文件对应的标识信息确定音频文件的播放概率,最后根据音频文件的播放概率,播放音频文件。以此达到在随机播放模式下根据音频文件对应的标识信息即用户的喜爱程度来来确定音频文件的播放次数,而不需要在等概率的情况下播放多个音频文件,提升了用户体验,增加了方案的灵活性。
结合本发明实施例的第一方面,在本发明实施例的第一方面的第一种实现方式中,音频播放装置的播放模式为随机播放模式,即音频文件在随机播放模式下进行播放概率的确认,并通过不同的标识信息获取不同的播放概率。
其次,本发明实施例中,限定了音频播放装置的播放模式为随机播放模式,由于在现有技术中,采用随机播放模式时,每个音频文件播放的概率是一样的,但是本发明可以在随机播放模式下针对音频文件对应的标识信息来确定音频文件的播放次数,从而进一步地提升了用户体验,以及增加了方案的灵活性。
结合本发明实施例的第一方面第一种可能实现方式,在本发明实施例的第一方面的第二种实现方式中,用于确定音频文件播放概率的标识信息包括标识值和标识个数,具体标识信息可以在实际应用中表现为用户偏好信息。
再次,本发明实施例中,标识信息包括标识值和标识个数,具体表现为用户偏好信息,音频播放装置接收用户对音频文件的用户偏好信息,并根据用户偏好信息播放音频文件对应的播放概率提示音。通过上述方案,可以明确标识信息包括标识值和标识个数,使得音频播放装置可以根据标识值和标识个数来确定音频文件的播放概率,与此同时,如果还能够播放音频文件对应的播放概率提示音,就能使得用户无需通过查看音乐播放器界面就得知音频文件的概率,在不方便用户查看音乐播放器界面的情况下,提升了方案的实用性和灵活性,同时便于用户实时调整当前音乐文件的概率,从而增强方案的用户体验。
结合本发明实施例的第一方面、本发明实施例的第一方面的第一种或第二种可能实现方式中的任意一种,在本发明实施例的第一方面的第三种实现方式中,音频播放装置根据音频文件对应的标识信息确定音频文件的播放概率,可以包括:
音乐播放装置播放由至少一个音频文件构成待播放音频文件集合,其中,待播放音频文件集合可以是播放列表,用户根据自己的喜好整合播放列表,播放列表可以有多个;
音频播放装置根据待播放音频文件集合中的总的标识个数,再确定音频文件的平均播放概率,即平均播放概率=1/待音频文件集合中的总的标识个数;
音频播放装置根据音频文件的标识个数和平均播放概率,确定音频文件对应的播放概率,随机选取待播放音频文件集合中的音频文件进行播放。
进一步地,本发明实施例中,音频播放装置确定待播放音频文件集合中音频文件的数目,待播放音频文件集合由至少一个音频文件构成的,再置根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率,最后根据音频文件的标识个数和平均播放概率,确定待播放音频文件集合中音频文件的播放概率。采用上述方法可以使得音频播放装置确定音频文件的播放概率,为方案的具体实现提供了具体的解决手段,从而提升了方案的实用性和可行性。
结合本发明实施例的第一方面、本发明实施例的第一方面的第一种或第二种可能实现方式中的任意一种,在本发明实施例的第一方面的第四种实现方式中,音频播放装置根据音频文件对应的标识信息确定音频文件的播放概率,可以包括:
音乐播放装置播放由至少一个音频文件构成待播放音频文件集合,其中,待播放音频文件集合可以是播放列表,用户根据自己的喜好整合播放列表,播放列表可以有多个;
音频播放装置根据待播放音频文件集合中的总的标识个数,再确定音频文件的平均播放概率,即平均播放概率=1/待音频文件集合中的总的标识个数;
音频播放装置根据第一音频文件的标识信息中的标识个数计算第一播放概率,计算方式为第一播放概率=平均播放概率×标识个数,同样地,音频播放装置根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,第一音频文件与第二音频文件均为待播放音频文件集合中的音频文件,第一音频文件的标识信息中的标识个数大于或者等于2,第二音频文件的标识信息中的标识个数大于第一音频文件的标识信息中的标识个数,需要说明的是,计算第一播放概率和第二播放概率的顺序没有限定;
音频播放装置可以根据平均播放概率、第一播放概率和第二播放概率计算待播放音频文件集合中音频文件的播放概率总和值;
音频播放装置进一步地根据平均播放概率以及播放概率总和值,获取目标随机概率;
音频播放装置最后根据目标随机概率确定待播放音频文件集合中音频文件的播放概率。
进一步地,本发明实施例中,提供了另一种控制音频文件播放的方法,音频播放装置播放由至少一个音频文件构成的待播放音频文件集合,首先根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率,再根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,最后通过平均播放概率、第一播放概率和第二播放概率确定待播放音频文件集合中音频文件的播放概率总和值,音频播放装置可以根据平均播放概率以及播放概率总和值,获取目标随机概率,并根据目标随机概率确定待播放音频文件集合中音频文件的播放概率。采用上述方式进行待播放音频文件的选取,从而为本发明方案提供了另一种具体的实现手段,由此提升方案的灵活性和实用性。
结合本发明实施例的第一方面第四种可能实现方式,在本发明实施例的第一方面的第五种实现方式中,音频播放装置根据平均播放概率、第一播放概率和第二播放概率确定待播放音频文件集合中音频文件的播放概率总和值,包括:
音频播放装置计算待播放音频文件集合中音频文件的播放概率总和值时,可以如下采用公式:
SUM=1/n+a+b
其中,SUM表示待播放音频文件集合中音频文件的播放概率总和值,1/n表示平均播放概率,a表示第一音频文件的第一播放概率,b表示第二音频文件的第二播放概率,第一音频文件可能包括多个播放概率相等的音频文件,第二音频文件也同样可能包括播放概率相等的音频文件,且第一音频文件对应的第一播放概率小于第二音频文件对应的第二播放概率。
更进一步地,本发明实施例中,提供了音频播放装置计算待播放音频文件集合中音频文件的播放概率总和值的具体方法,通过公式可以计算得到播放概率总和值,并应用于后续的数据处理,由此提升了方案的可操作性和实用性。
结合本发明实施例的第一方面第五种可能实现方式,在本发明实施例的第一方面的第六种实现方式中,音频播放装置根据平均播放概率以及播放概率总和值,获取目标随机概率,包括:
在音频播放装置获取目标随机概率之前,应先确定目标随机概率所在区间,可以按照如下区间随机获取目标随机概率:
1/n≤k≤SUM
其中,1/n表示平均播放概率,SUM表示待播放音频文件集合中音频文件的播放概率总和值,k表示目标随机概率,并非音频播放装置随意地选择任一个数值都可作为目标随机概率,在随机播放模式下,目标随机概率k应该在一个合理的范围内,即大于或等于平均播放概率1/n,小于或等于播放概率总和值SUM。
再进一步地,本发明实施例中,限定了随机获取目标随机概率的区间,且区间应为大于或等于平均播放概率,小于或等于播放概率总和值,在该区间内选择的目标随机概率可以保证最后计算音频文的播放概率的合理性,从而提升方案的实用性和可操作性。
结合本发明实施例的第一方面第六种可能实现方式,在本发明实施例的第一方面的第七种实现方式中,音频播放装置根据所述音频文件的播放概率,播放所述音频文件,可以包括:
当目标随机概率等于平均播放概率,即k=1/n时,则音频播放装置随机选择播放概率为平均播放概率的音频文件进行播放,也就是说,音频播放装置从 大于或等于平均播放概率1/n,小于或等于播放概率总和值SUM的区间内随机抽取一个数,作为目标随机概率,若刚好选择的目标随机概率等于平均播放概率,则音频播放装置就在待播放音频文件集合中,等概率地随机选择一个音频文件进行播放。换言之,当目标随机概率k=平均播放概率1/n时,则音频播放装置选择播放概率为所述平均播放概率的音频文件进行播放;
此外,在目标随机概率不等于平均播放概率情况下,可以分成两个区间,第一个区间为1/n<k≤(1/n+a),第二个区间为(1/n+a)<k≤SUM,当目标随机概率大于平均播放概率,且小于或等于平均播放概率加第一播放概率,即1/n<k≤(1/n+a)时,则音频播放装置随机选择播放概率为第一播放概率的第一音频文件进行播放;
当目标随机概率大于平均播放概率加第一播放概率,且小于或等于播放概率总和值,即(1/n+a)<k≤SUM,则音频播放装置随机选择播放概率为第二播放概率的第二音频文件进行播放。
又进一步地,本发明实施例中,针对目标随机概率等于平均播放概率这一情况下,如何随机播放音频文件的方法进行介绍。当目标随机概率等于平均播放概率时,则音频播放装置从待播放音频文件集合中等概率随机选择一个播放概率为平均播放概率的音频文件,进行播放。通过上述方式,为方案的具体实现提供了相应处理方式和解决手段,从而提升了方案的可行性和实用性。若是针对目标随机概率不等于平均播放概率这一情况下,如何随机播放音频文件的方法进行介绍。当目标随机概率大于平均播放概率,且小于或等于平均播放概率与第一播放概率之和时,则音频播放装置从待播放音频文件集合中选择播放概率为第一播放概率的音频文件,进行播放;当目标随机概率大于平均播放概率与第一播放概率之和,且小于或等于播放概率总和值时,则音频播放装置从待播放音频文件集合中选择播放概率为第二播放概率的音频文件,进行播放。通过上述方式,为方案的具体实现进一步地提供了相应处理方式和解决手段,从而更进一步地提升了方案的可行性和实用性。
结合本发明实施例的第一方面、本发明实施例的第一方面的第一种至第七种实现方式中的任意一种,在本发明实施例的第一方面的第八种实现方式中,音频播放装置获取音频文件对应的标识信息之前,还可以包括:
音频播放装置先获取所述音频文件中的标志位,其中,标志位包含第一标志位或者第二标志位,然而,可以理解的是,音频播放装置既可以先获取各个音频文件的标志位,再从标志位为第一标志位的音频文件中,通过播放概率来决定下一个被播放的音频文件,也可以先根据播放概率选择下一个待播放的音频文件,然后在判断该待播放的音频文件的标志位是否为第一标志位,如果是,则确定播放该音频文件,如果待播放的音频文件的标志位是第二标志位,则重新在标志位为第一标志位的音频文件中选择被播放的音频文件;
音频播放装置根据音频文件的播放概率,播放音频文件的这一步骤具体可以包括:
当音频文件中的标志位为第一标志位时,则音频播放装置根据音频文件的播放概率,播放音频文件,也就是说,音频播放装置仅播放标志位为第一标志位的音频文件。
其次,本发明实施例中,为了避免同一个音频文件连续被播放两次,可以先获取待播放的音频文件的标志位,然后音频播放装置选择标志位为第一标志位的音频文件,并根据音频文件的播放概率确定下一个被播放的音频文件。标志位为第一标志位,则说明音频文件可以被播放,因为上一次播放的音频文件并非这个,相反地,如果标志位为第二标志位,则说明第二标志位对应的音频文件刚刚被播放,于是下一次的播放不考虑该音频文件。由此,保证了同一个音频文件不会被播放两遍甚至两遍以上,使得用户在心理上得到新鲜感,有利于提升用户体验。
结合本发明实施例的第一方面第八种可能实现方式,在本发明实施例的第一方面的第九种实现方式中,还可以包括:
音频播放装置根据音频文件的播放概率,从标志位为第一标志位的音频文件中确定下一个播放的音频文件为第三音频文件,当第三音频文件播放时,则音频播放装置将第三音频文件中的第一标志位更新为第二标志位,于是,当第三音频文件播放完毕,或者用户切换第三音频文件时,则从不包括该第三音频文件的音频文件中选择下一个待播放的音频文件,其中,选择下一个待播放的音频文件仍需要根据音频文件的概率来确定。
再次,本发明实施例中,提供了一种及时恢复标志位的方法,当音频播 放装置根据音频文件的播放概率,并从标志位为第一标志位的音频文件中确定下一个被播放的音频文件为第三音频文件时,在第三音频文件被开启的一刻,即将第三音频文件原本对应的第一标志位更新为第二标志位,这样的话,如果用户在短时间内频繁地切换音频文件,音频播放装置也能保证不连续重复播放同一个音频文件,从而进一步提升了用户体验。
本发明实施例第二方面提供了一种音频播放装置,包括:
获取模块,用于获取音频文件对应的标识信息;
确定模块,用于根据所述获取模块获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块,用于根据所述确定模块确定的所述音频文件的播放概率,播放所述音频文件。
结合本发明实施例的第二方面,在本发明实施例的第二方面的第一种实现方式中,音频播放装置的播放模式为随机播放模式。
结合本发明实施例的第二方面,在本发明实施例的第二方面的第二种实现方式中,标识信息包括标识值和标识个数。
结合本发明实施例的第二方面、本发明实施例的第二方面的第一种或第二种可能实现方式中的任意一种,在本发明实施例的第二方面的第三种实现方式中,确定模块包括:
第一播放单元,用于播放由至少一个音频文件构成的待播放音频文件集合;
第一确定单元,用于根据第一播放单元播放的待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率;
第二确定单元,用于根据第一确定单元确定的音频文件的标识个数和平均播放概率,确定待播放音频文件集合中音频文件的播放概率。
结合本发明实施例的第二方面、本发明实施例的第二方面的第一种或第二种可能实现方式中的任意一种,在本发明实施例的第二方面的第四种实现方式中,确定模块包括:
第二播放单元,用于播放由至少一个音频文件构成的待播放音频文件集合;
第三确定单元,用于根据第二播放单元播放的待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率;
第四确定单元,用于根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,第一音频文件与第二音频文件均为待播放音频文件集合中的音频文件,第一音频文件的标识信息中的标识个数大于等于2,第二音频文件的标识信息中的标识个数大于第一音频文件的标识信息中的标识个数;
第五确定单元,用于根据第三确定单元确定的平均播放概率、第四确定单元确定的第一播放概率和第二播放概率确定待播放音频文件集合中音频文件的播放概率总和值;
获取单元,用于根据第三确定单元确定的平均播放概率以及第五确定单元确定的播放概率总和值,获取目标随机概率;
第六确定单元,用于根据获取单元获取的目标随机概率确定待播放音频文件集合中音频文件的播放概率。
结合本发明实施例的第二方面第四种可能实现方式,在本发明实施例的第二方面的第五种实现方式中,第五确定单元包括:
计算子单元,用于按照如下方式计算待播放音频文件集合中音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示待播放音频文件集合中音频文件的播放概率总和值,1/n表示平均播放概率,a表示第一音频文件的第一播放概率,b表示第二音频文件的第二播放概率。
结合本发明实施例的第二方面第五种可能实现方式,在本发明实施例的第二方面的第六种实现方式中,获取单元包括:
获取子单元,用于按照如下区间随机获取目标随机概率:
1/n≤k≤SUM
其中,1/n表示平均播放概率,SUM表示待播放音频文件集合中音频文件的播放概率总和值,k表示目标随机概率。
结合本发明实施例的第二方面第六种可能实现方式,在本发明实施例的第 二方面的第七种实现方式中,播放模块包括:
第一选择单元,用于当k=1/n时,则选择播放概率为平均播放概率的音频文件进行播放;
第二选择单元,用于当1/n<k≤(1/n+a)时,则选择播放概率为第一播放概率的第一音频文件进行播放;
第三选择单元,用于当(1/n+a)<k≤SUM,则选择播放概率为第二播放概率的第二音频文件进行播放。
结合本发明实施例的第二方面、本发明实施例的第二方面的第一种至第七种可能实现方式中的任意一种,在本发明实施例的第二方面的第八种实现方式中,音频播放装置还可以包括:
标识获取模块,用于获取音频文件中的标志位,其中,标志位包含第一标志位或者第二标志位;
播放模块包括:
第三播放单元,用于当音频文件中的标志位为第一标志位时,则根据音频文件的播放概率,播放音频文件。
结合本发明实施例的第二方面第八种可能实现方式,在本发明实施例的第二方面的第九种实现方式中,音频播放装置还可以包括:
更新模块,用于当第三音频文件播放时,则将第三音频文件中的第一标志位更新为第二标志位。
本发明实施例第三方面提供了一种音频播放装置,包括:存储器、收发器、处理器以及总线系统;
其中,存储器用于存储程序;
处理器用于执行存储器中的程序,具体如下步骤:
控制收发器获取音频文件对应的标识信息;
根据音频文件对应的标识信息确定音频文件的播放概率;
根据音频文件的播放概率,播放音频文件。
所述总线系统用于连接所述存储器、收发器以及处理器,以使存储器、所述收发器以及处理器进行通信。
可选地,音频播放装置的播放模式为随机播放模式。
可选地,标识信息包括标识值和标识个数。
可选地,处理器用于执行所述存储器中的程序,具体还用于执行以下步骤:
播放由至少一个音频文件构成的待播放音频文件集合;
根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率;
根据音频文件的标识个数和平均播放概率,确定待播放音频文件集合中音频文件的播放概率。
可选地,处理器用于执行所述存储器中的程序,具体还用于执行以下步骤:
播放由至少一个音频文件构成的待播放音频文件集合;
根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率;
根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,第一音频文件与第二音频文件均为待播放音频文件集合中的音频文件,第一音频文件的标识信息中的标识个数大于等于2,第二音频文件的标识信息中的标识个数大于第一音频文件的标识信息中的标识个数;
根据平均播放概率、第一播放概率和第二播放概率确定待播放音频文件集合中音频文件的播放概率总和值;
根据平均播放概率以及播放概率总和值,控制收发器获取目标随机概率;
根据目标随机概率确定待播放音频文件集合中音频文件的播放概率。
可选地,处理器用于执行所述存储器中的程序,具体还用于执行以下步骤:
按照如下方式计算待播放音频文件集合中音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示待播放音频文件集合中音频文件的播放概率总和值,1/n表示平均播放概率,a表示第一音频文件的第一播放概率,b表示第二音频文件的第二播放概率。
可选地,处理器用于执行所述存储器中的程序,具体还用于执行以下步骤:
按照如下区间随机获取目标随机概率:
1/n≤k≤SUM
其中,1/n表示平均播放概率,SUM表示待播放音频文件集合中音频文件的播放概率总和值,k表示目标随机概率。
可选地,处理器用于执行所述存储器中的程序,具体还用于执行以下步骤:
当k=1/n时,则选择播放概率为平均播放概率的音频文件进行播放;
当1/n<k≤(1/n+a)时,则选择播放概率为第一播放概率的第一音频文件进行播放;
当(1/n+a)<k≤SUM,则选择播放概率为第二播放概率的第二音频文件进行播放。
可选地,处理器用于执行所述存储器中的程序,具体还用于执行以下步骤:
控制收发器获取音频文件中的标志位,其中,标志位包含第一标志位或者第二标志位;
当音频文件中的标志位为第一标志位时,则根据音频文件的播放概率,播放音频文件。
可选地,处理器用于执行所述存储器中的程序,具体还用于执行以下步骤:
当第三音频文件播放时,则将第三音频文件中的第一标志位更新为第二标志位。
从以上技术方案可以看出,本发明实施例具有以下优点:
本发明实施例中,提供了一种控制音频文件播放的方法,音频播放装置获取音频文件对应的标识信息,并根据音频文件对应的标识信息确定音频文件的播放概率,最后根据音频文件的播放概率,播放音频文件。以此达到在随机播放模式下根据音频文件对应的标识信息即用户的喜爱程度来来确定音频文件的播放次数,而不需要在等概率的情况下播放多个音频文件,提升了用户体验,增加了方案的灵活性。
附图说明
图1为本发明实施例中控制音频文件播放的方法一个实施例示意图;
图2为本发明实施例中控制音频文件播放的音乐播放器界面示意图;
图3为本发明实施例中音频播放装置一个实施例示意图;
图4为本发明实施例中音频播放装置另一个实施例示意图;
图5为本发明实施例中音频播放装置另一个实施例示意图;
图6为本发明实施例中音频播放装置另一个实施例示意图;
图7为本发明实施例中音频播放装置另一个实施例示意图;
图8为本发明实施例中音频播放装置另一个实施例示意图;
图9为本发明实施例中音频播放装置另一个实施例示意图;
图10为本发明实施例中音频播放装置另一个实施例示意图;
图11为本发明实施例中音频播放装置一个结构示意图;
图12为本发明实施例中音频播放装置另一个结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
应理解,本发明应用于音频播放的场景,具体可以为音频播放中的随机播放模式,在日常生活中,用户经常使用的音频播放软件有多种,例如“天天静听”客户端、“酷我音乐盒”客户端、“酷狗音乐”客户端和“网易云音乐”客户端等,而这些音频文件播放的客户端均具有随机播放的功能,目前广泛使用的是一种称为线性同余的算法来进行随机播放,对于同一列表中的各个音频文件而言,其播放的概率也是一样。此外,用于播放音频文件的装置在本发明实施例中被称为音频播放装置,具体可以是个人电脑(英文全称:Personal Computer, 英文缩写:PC)、手机、音乐播放器(英文全称:Moving Pictures Experts Group Audio Layer 3,英文缩写:MP3)或平板电脑等,此处将以手机为例进行介绍,然而在实际应用中不应理解为是对本发明方案的限定。
下面将对本发明方案中,一种控制音频文件播放的方法进行详细描述,请参阅图1,本发明实施例中控制音频文件播放的方法一个实施例包括:
101、音频播放装置获取音频文件对应的标识信息。
本实施例中,当用户开启音频播放装置中的音乐播放客户端时,可以选择不同的播放模式,例如从顺序播放、单曲循环播放和列表随机播放等方式中选取其中一种播放方式。在本方案中,采用的默认播放模式为的随机播放。
音频播放装置在默认的随机播放模式下,可以直接获取用户上次或者更早以前对音频文件标记过的标识信息。
在打开音频播放客户端时,选择随机播放模式或者默认随机播放模式,则音频播放装置在随机播放模式下开始播放音频文件。
102、音频播放装置根据音频文件对应的标识信息确定音频文件的播放概率。
本实施例中,音频播放装置可以根据音频文件所对应的标识信息,来确定音频文件的播放概率。其中,音频文件对应的标识信息中包含了用于计算该音频文件播放概率的信息,以使得音频播放装置可以根据不同的标识信息确定不同音频文件对应的播放概率。
在本发明中,可以通过多种概率计算方法得到音频文件的播放概率,还可以通过标识信息与播放概率的对应关系获取音频文件的播放概率,下面的实施例中,将针对在不同的场景下如何获取音频文件的播放概率进行详细介绍,需要说明的是,在实际应用中并不仅限于下面将提到的几种概率计算方法,此处不应理解为对本发明的限定。
103、音频播放装置根据音频文件的播放概率,播放音频文件。
本实施例中,音频播放装置根据音频文件对应的标识信息确定每个音频文件的播放概率,并根据每个音频文件的播放概率播放相应的音频文件。
本发明实施例中,提供了一种控制音频文件播放的方法,音频播放装置获取音频文件对应的标识信息,并根据音频文件对应的标识信息确定音频文件的 播放概率,最后根据音频文件的播放概率,播放音频文件。以此达到在随机播放模式下根据音频文件对应的标识信息即用户的喜爱程度来来确定音频文件的播放次数,而不需要在等概率的情况下播放多个音频文件,提升了用户体验,增加了方案的灵活性。
可选地,在上述图1对应的实施例的基础上,本发明实施例提供的控制音频文件播放的方法第一个可选实施例中,音频播放装置的播放模式为随机播放模式。
本实施例中,音乐播放装置采用的播放模式为随机播放模式。
随机播放模式其实就是一个随机播放的算法,想要更好的进行随机播放,需要研发出一种新的算法。常见的音乐随机播放算法主要有两种:一是Shuffle算法,二是Random算法。
其中,Shuffle算法和排序算法正好相反,是从有序到乱序的一个过程,俗称洗牌算法。它将播放列表中的音频文件顺序打乱,变成一个和原来音频文件顺序没有任何关系的乱序的播放列表,之后进行音频文件的播放,并支持当用户点击“上一首”时,能够回到刚刚播放的那一个音频文件。
Random算法是在选取即将播放的歌曲时,进行一个随机数的运算,得到即将播放的歌曲在播放列表中的索引,播放列表本身并没有被打乱,只是利用随机函数从播放列表中选取一首歌曲进行播放而已。
现在比较普遍的随机数生成算法是基于线性同余算法实现的,例如C语言标准库函数rand( )就是利用它产生随机数的。线性同余算法能够产生均匀分布的随机数,但是它依赖于给定的随机数的上限,如果上限越小,产生的随机数重复的概率就越大。
Random算法另一个缺陷是当点击“上一首”时,跟“下一首”功能完全一样,都是重新生成随机数,并利用它从播放列表中选取歌曲进行播放,而不会回到刚刚播放的那一首歌。当然,这个缺陷可以通过提供历史记录来弥补,只是需要花费额外的空间。
其次,本发明实施例中,限定了音频播放装置的播放模式为随机播放模式,由于在现有技术中,采用随机播放模式时,每个音频文件播放的概率是一样的,但是本发明可以在随机播放模式下针对音频文件对应的标识信息来确定音频 文件的播放次数,从而进一步地提升了用户体验,以及增加了方案的灵活性。
可选地,在上述图1对应的第一个实施例的基础上,本发明实施例提供的控制音频文件播放的方法第二个可选实施例中,标识信息包括标识值和标识个数。
本实施例中,用于确定音频文件播放概率的标识信息包括标识值和标识个数,具体地,标识值是针对每个音频文件设置的特定标识值,且不同的音频文件所使用的标识值必然不同,通常情况下,某个音频文件的标识值为{1}时,后一个音频文件的标识值就不能为{1},可以是{2},或者{2,3},又或者是{2,2}等不同的表现形式。
而标识个数可以在实际应用中以用户偏好信息的形式表现。例如,用户可以通过音乐播放器界面输入自己对于音频文件的用户偏好信息,其中,用户偏好信息主要用于体现用户对音频文件的喜好程度,偏好程度越高,则播放概率越高。音频播放装置接收用户对音频文件设置的用户偏好信息,可以根据用户偏好信息播放音频文件对应的播放概率提示音。
具体地,在音乐播放器界面中,给用户提供了为当前音频文件的设置偏好信息的选项,当然,可以理解的是,在实际应用中也可以在其他界面上给用户提供选择音频文件的偏好信息的选项。
下面将以在音乐播放器界面上设置音频文件的用户偏好信息为例进行介绍,请参阅图2,图2为本发明实施例中控制音频文件播放的音乐播放器界面示意图,如图所示,用户可以通过设置心形图案来确定当前音频文件的偏好信息,心形图案标记越多,表明当前音频文件播放的概率越高。图2中一共有五颗心,用户选择了其中的三颗心,即表示当前音频文件的播放概率为被标记一颗心的音频文件的播放概率的3倍,且当前音频文件的标识信息中的标识个数为3。需要说明的是,心形的选择图案仅为一个示意,还可以是其他样式的,例如星形、方形或者圆形等图像,此处不作限定。
而在设置当前音频文件偏好信息时,也有多种实现方式,例如,设置一个拖动条,用户通过滑动该拖动条来设置自己对当前音频文件的喜好程度,通常情况下,越往后拖动表示越喜爱当前的音频文件,系统会根据预设的拖动条位置判断当前音频文件的标识个数,改变当前音频文件的播放概率。
此外,用户也可以通过快捷方式来设置音频文件的偏好信息,比如,当音频播放装置接收到用户同时按住音量键“+”和音量键“-”时,表示用户将当前播放的音频文件的标识个数加1,相应的播放概率调高一个等级,当音频播放装置接收到用户同时按住电源键以及音量键“+”,或者同时按住电源键以及音量键“-”时,表示用户将当前播放的音频文件的标识个数减1,相应的播放概率调低一个等级,同时在音乐播放器界面上更新心形图案的状态。
当然,用户还可以通过特定的手势识别来设置音频文件的偏好信息,例如,在黑屏的状态下,用户做一个向右滑动的手势,音频播放装置的感应模块接收右滑手势后,将当前播放的音频文件的标识个数加1,相应的播放概率调高一个等级,如果用户做一个向左滑动的手势,那么音频播放装置的感应模块接收左滑手势后,将当前播放的音频文件的标识个数减1,相应的播放概率调低一个等级。
需要说明的是,设置音频文件的偏好信息除了上述的几种方法以外,还可以有其他可选方案,此处不应理解为是对本发明方案的限定。
为了让用户可以实时地知道当前音频文件的概率,可以在非音频文件播放界面的时候,通过播放特定的提示音来告知用户当前音频文件的概率,通常情况下,偏好信息所代表的标识个数是几,就播放几次提示音。而提示音也可以由用户自定义设定,既可以是系统自带的提示音,也可以是用户下载的提示音,还可以是用户录音得到的提示音。
通过上述方案,音频播放装置可以根据包括标识值和标识个数的标识信息来确定音频文件的播放概率,与此同时,如果还能够播放音频文件对应的播放概率提示音,就能使得用户无需通过查看音乐播放器界面就得知音频文件的概率,在不方便用户查看音乐播放器界面的情况下,提升了方案的实用性和灵活性,同时便于用户实时调整当前音乐文件的概率,从而增强方案的用户体验。
可选地,在上述图1以及图1对应的第一或第二个实施例的基础上,本发明实施例提供的控制音频文件播放的方法第三个可选实施例中,音频播放装置根据音频文件对应的标识信息确定音频文件的播放概率,可以包括:
音频播放装置播放由至少一个音频文件构成的待播放音频文件集合;
音频播放装置根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率;
音频播放装置根据音频文件的标识个数和平均播放概率,确定待播放音频文件集合中音频文件的播放概率。
本实施例中,音频播放装置在随机播放的模式下获取音频文件对应的标识信息,并根据音频文件对应的标识信息确定音频文件的播放概率。
具体地,音乐播放装置播放由至少一个音频文件构成待播放音频文件集合,其中,待播放音频文件集合可以是播放列表,用户根据自己的喜好整合播放列表,播放列表可以有多个,不同的列表可以执行相同或不同的播放模式,例如在列表A中的音频文件为随机播放模式,而列表B中的音频文件执行的是顺序播放模式。本实施例是以随机播放模式为例进行介绍。
音频播放装置根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率,平均播放概率的计算方式为,平均播放概率=1/待音频文件集合中的总的标识个数,例如,在待播放音频文件集合中的总的标识个数为10,那么音频文件的平均播放概率即为1/10。
音频播放装置根据音频文件的标识个数以及平均播放概率,确定待播放音频文件集合中音频文件的播放概率。具体而言,音频播放装置可以根据音频文件的标识个数,可以计算出该音频文件的播放概率,其中,音频播放装置将平均播放概率作为默认音频文件的播放概率,默认音频文件是用户没有调整过用户偏好信息的音频文件,用户偏好信息对应的是最低等级,并且该默认音频文件携带有一个标识。若音频文件的标识个数为i个,则音频文件的播放概率=i×平均播放概率,比如,平均播放概率为1/10,A音频文件的标识个数为3,那么音频文件的播放概率即为3/10。
当前音频文件的标识值是为了标识当前音频文件,其为前一个音频文件的标识值加1,而标识个数为用户对当前音频文件所设置的标识个数,即表现为设置的偏好信息。
通常情况下,预设的音频文件的播放概率与音频文件所对应的标识值和标识个数之间的关系为,当音频文件的标识个数越多,其音频文件的播放概率也就越大,然而,在实际应用中,也并不局限于上述的预设关系,但需要 注意的是,音频文件的播放概率是与音频文件的标识个数存在对应关系。
针对音频播放装置根据音频文件的标识个数和平均播放概率,确定待播放音频文件集合中音频文件的播放概率这一步骤,可以有如下的处理方式:
音频播放装置根据音频文件在待播放音频文件集合中的排列顺序,确定音频文件的标识信息,其中,标识信息包括标识个数以及与每个标识对应的标识值,其中,播放概率相同的不同音频文件的标识值不同。
对于默认音频文件可以称之为第一音频文件,此时,第一音频文件的播放概率即为平均播放概率,通常为平均播放概率的音频文件的标识个数为1。对于用户已经设置用户偏好信息的音频文件称之为第二音频文件,此时,第二音频文件的播放概率不是平均播放概率,其标识个数大于等于2。音频播放装置可以根据音频文件在待播放音频文件集合中排列顺序,确认播放文件的标识值和标识个数。
若待播放音频文件集合中总共有10个标识,首先可以根据标识个数获得音频文件的播放概率,例如,第一音频文件的播放概率为1/10,第二音频文件的标识个数为2,那么第二音频文件的播放概率为3/10。然后进一步确定该第一音频文件在待播放音频文件集合中的位置,如果第一音频文件为播放列表中的第三个音频文件、第二音频文件为播放列表中的第四个文件,且在第一音频文件之前还有音频文件A和音频文件B,则第一音频文件、第二音频文件的标识信息会有以下两种情况。
第一种情况为,假设音频文件A在列表中排序为第一,其标识值为1,标识个数有1个,则音频文件A的标识信息表示为{1},音频文件B在列表中排序为2,其标识值为2,且标识个数为2个,则音频文件B的标识信息标识为{2,2},于是,当音频文件B之后的第一音频文件C的标识数为1个的时候,C的标识信息为{3},第二音频文件D的标识信息为{4,4,4};
第二种情况为,假设音频文件A在列表中排序为第一,其标识值为1,标识个数有2个,则音频文件A的标识信息为{1,2},音频文件B的标识值第一位数字需要与前一个音频文件最后一位数字保持连续,那么音频文件B的标识至第一位数字为3,若标识个数为3个,则音频文件B的标识信息为{3,4,5}。于是,在音频文件B之后的第一音频文件则可以用{6}来表示对应的 标识信息,第二音频文件的标识信息为{7,8,9}。
需要说明的是,对于标识信息的表示并不局限于上述两种方式,还可以通过字母或者符号来表示以音频文件对应的标识信息。例如,音频文件A的标识信息为{a,b},音频文件B的标识信息为{c}等,此处不作限定。
通常情况下,当待播放音频文件集合中的音频文件数量不是特别多时,则用户可能会针对每个音频文件都设置用户偏好信息,采用这种模式,则可以参考如下方式来确定待播放的音频文件:
音频文件的标识个数是根据用户设定的用户偏好信息来确定的,而标识个数越大,音频文件被选择播放的概率也就随之增加,请参阅图2进行理解,图2为本发明实施例中控制音频文件播放的音乐播放器界面示意图,例如:
第一个音频文件对应的标识为{1},说明用户偏好信息为一个心形图案;
第二首歌曲对应的标识为{2},说明用户偏好信息为一个心形图案;
第三首歌曲对应的标识为{3,4},说明用户偏好信息为两个心形图案;
第四首歌对应的标识为{5},说明用户偏好信息为一个心形图案;
第五首歌对应的标识为{6,7,8},说明用户偏好信息为三个心形图案,以此类推。
音频播放装置在待播放音频文件集合中选择标识值最大的数值,为y,于是在1至y中随机选择一个数值,该数值落入哪个音频文件的标识信息中,则该音频文件就是待播放的音频文件,
除了上述介绍的内容以外,当用户没有针对待播放音频文件的每个音频文件都设置用户偏好信息时,音频播放装置还可以采用下面的方法来确定各个音频文件的预置播放次数,并通过预置播放次数确定各个音频文件播放概率之间的倍数关系。
具体地,假设待播放音频文件集合中的音频文件的总的标识个数为20,用户只针对第一个音频文件和第二个音频文件设置了用户偏好信息。而用户偏好信息总共分为了五个等级,最高等级不超过1/2,那么可以设置成,第一等级可以为1/10,第二等级为2/10,第三等级为3/10,第四等级为4/10,第五等级为5/10。第一个音频文件为第二等级,第二个音频文件为第三等级为 3/10。
根据如下公式用户设置的偏好信息确定音频文件的预置播放次数n:
n=N×(1/N+M),其中,
N表示待播放音频文件集合中总的标识个数,M代表当前音频文件的播放等级。
所有未被用户设置用户偏好信息的音频文件所对应的预置播放次数为20×(1/20+0)=1,未被用户设置用户偏好信息的音频文件可称为默认音频文件。
第一个音频文件所对应的预置播放次数为20×(1/20+2/10)=5;第二个音频文件所对应的预置播放次数为20×(1/20+3/10)=7。
通过上述方式可以得到第一个音频文件的预置播放次数是默认音频文件的五倍,而第二个音频文件的预置播放次数是默认音频文件的七倍。从而音频播放装置可以根据计算得到的预置播放次数随机选择待播放的音频文件,进行播放。
进一步地,本发明实施例中,音频播放装置确定待播放音频文件集合中音频文件的数目,待播放音频文件集合由至少一个音频文件构成,根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率,最后根据音频文件的标识个数和平均播放概率,确定待播放音频文件集合中音频文件的播放概率。采用上述方法可以使得音频播放装置确定音频文件的播放概率,为方案的具体实现提供了具体的解决手段,从而提升了方案的实用性和可行性。
可选地,在上述图1以及图1对应的第一或第二个实施例的基础上,本发明实施例提供的控制音频文件播放的方法第四个可选实施例中,音频播放装置根据音频文件对应的标识信息确定音频文件的播放概率,可以包括:
音频播放装置播放由至少一个音频文件构成的待播放音频文件集合;
音频播放装置根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率;
音频播放装置根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,第一音频文件与第二音频文件均为待播放音频文件集合中的音频文件,第一音 频文件的标识信息中的标识个数大于等于2,第二音频文件的标识信息中的标识个数大于第一音频文件的标识信息中的标识个数;
音频播放装置根据平均播放概率、第一播放概率和第二播放概率确定待播放音频文件集合中音频文件的播放概率总和值;
音频播放装置根据平均播放概率以及播放概率总和值,获取目标随机概率;
音频播放装置根据目标随机概率确定待播放音频文件集合中音频文件的播放概率。
本实施例中,除了上述第三个实施例中所提到的方法,音频播放装置可以根据某个音频文件对应的标识信息确定其播放概率以外,还可以在携带不同标识信息的多个音频文件中,确定其播放概率。
具体地,音频播放装置首先根据用户对音频文件设定的音频文件的播放等级确定用户偏好信息,该用户偏好信息决定了每个音频文件的标识信息,并根据待播放音频文件集合中音频文件的总标识个数确定平均播放概率,再通过标识信息和平均播放概率计算得到待播放音频文件集合中多个音频文件的播放概率,以及播放概率总和值,从不同的区间内随机抽取一个数,作为目标随机概率,音频播放装置可以根据目标随机概率确认待播放音频文件集合中音频文件的播放概率。
假设待播放音频文件集合中总共有100个标识,则默认的平均播放概率就为1/100,用户偏好信息被分为5个等级,若最高等级的概率为5/100,那么第一等级可以为1/100,第二等级为2/100,第三等级为3/100,第四等级为4/100,第五等级为5/100。当音频文件A和音频文件B的等级均为第二等级时,则音频文件A和音频文件B为2/100的概率。当音频文件C和音频文件D的等级均为第五等级,则音频文件C和音频文件D为5/100的概率。
将待播放音频文件集合根据概率进行分组,具体如下:
{A,B}对应的概率为2/100;
{C,D}对应的概率为5/100;
其他音频文件对应的概率均为平均播放概率1/100。
根据上面描述的内容可知,第一音频文件可以是音频文件A或音频文件 B,其中,用户对音频文件A和音频文件B均设置了2个“心形”等级,说明其分别携带了2个标识,那么音频文件A或音频文件B的播放概率就是2×1/100=2/100,“2”表示标识个数,“1/100”为平均播放概率。作为第二播放文件的音频文件C或音频文件D,分别携带了5个标识,那么音频文件C或音频文件D的播放概率就是5×1/100=5/100,“5”表示标识个数,“1/100”为平均播放概率。于是,第一播放概率为2/100,第二播放概率为5/100,第一音频文件(音频文件A或音频文件B)的标识信息中的标识个数大于等于2,第二音频文件(音频文件C或音频文件D)的标识信息中的标识个数大于第一音频文件的标识信息中的标识个数。
音频播放装置根据平均播放概率,即1/100,第一播放概率,即2/100和第二播放概率,即5/100,确定待播放音频文件集合中音频文件的播放概率总和值,再在平均播放概率以及播放概率总和值的区间中随机选择目标随机概率,最后根据目标随机概率计算得到待播放音频文件集合中音频文件的播放概率。
采用上述方式进行待播放音频文件的选取,为本发明方案提供了另一种具体的实现手段,由此提升方案的灵活性和实用性。
可选地,在上述图1对应的第四个实施例的基础上,本发明实施例提供的控制音频文件播放的方法第五个可选实施例中,音频播放装置根据平均播放概率、第一播放概率和所第二播放概率确定待播放音频文件集合中音频文件的播放概率总和值,可以包括:
音频播放装置按照如下方式计算待播放音频文件集合中音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示待播放音频文件集合中音频文件的播放概率总和值,1/n表示平均播放概率,a表示第一音频文件的第一播放概率,b表示第二音频文件的第二播放概率。
本实施例中,音频播放装置计算待播放音频文件集合中音频文件的播放概率总和值时,可以采用公式SUM=1/n+a+b。
公式中的SUM表示待播放音频文件集合中音频文件的播放概率总和值, 1/n表示平均播放概率,a表示第一音频文件的第一播放概率,b表示第二音频文件的第二播放概率。
例如,待播放音频文件集合中共有100个标识,因此,平均播放概率为1/100,假设第一音频文件的第一播放概率为2/100,第二音频文件的第二播放概率为5/100,由此,可以计算得到SUM=1/100+2/100+5/100=7/100,随机播放时,需要随机抽取一个目标随机概率,其取值范围是1/100≤目标随机概率≤7/100,根据目标随机概率确定待播放音频文件集合中音频文件的播放概率,并可以根据播放概率播放相应的音频文件。
更进一步地,本发明实施例中,提供了音频播放装置计算待播放音频文件集合中音频文件的播放概率总和值的具体方法,通过公式可以计算得到播放概率总和值,并应用于后续的数据处理,由此提升了方案的可操作性和实用性。
可选地,在上述图1对应的第五个实施例的基础上,本发明实施例提供的控制音频文件播放的方法第六个可选实施例中,音频播放装置根据平均播放概率以及播放概率总和值,获取目标随机概率,可以包括:
音频播放装置按照如下区间随机获取目标随机概率:
1/n≤k≤SUM
其中,1/n表示平均播放概率,SUM表示待播放音频文件集合中音频文件的播放概率总和值,k表示目标随机概率。
本实施例中,在音频播放装置获取目标随机概率前,应先确定目标随机概率所在区间,并非随意地选择任一个数值都可作为目标随机概率,在随机播放模式下,目标随机概率k应该在一个合理的范围内,即大于或等于平均播放概率1/n,小于或等于播放概率总和值SUM。
再进一步地,本发明实施例中,限定了随机获取目标随机概率的区间,且区间应为大于或等于平均播放概率,小于或等于播放概率总和值,在该区间内选择的目标随机概率可以保证最后计算音频文的播放概率的合理性,从而提升方案的实用性和可操作性。
可选地,在上述图1对应的第六个实施例的基础上,本发明实施例提供的控制音频文件播放的方法第七个可选实施例中,
音频播放装置根据所述音频文件的播放概率,播放所述音频文件,包括:
当k=1/n时,则音频播放装置选择播放概率为平均播放概率的音频文件进行播放;
当1/n<k≤(1/n+a)时,则音频播放装置选择播放概率为第一播放概率的第一音频文件进行播放;
当(1/n+a)<k≤SUM,则音频播放装置选择播放概率为第二播放概率的第二音频文件进行播放。
本实施例中,基于本发明实施例提供的控制音频文件播放的方法的第六个可选实施例,音频播放装置从即大于或等于平均播放概率1/n,小于或等于播放概率总和值SUM的区间内随机抽取一个数,作为目标随机概率,若刚好选择的目标随机概率等于平均播放概率,则音频播放装置就在待播放音频文件集合中,等概率地随机选择一个音频文件进行播放。换言之,当目标随机概率k=平均播放概率1/n时,则音频播放装置选择播放概率为所述平均播放概率的音频文件进行播放。
此外,在目标随机概率不等于平均播放概率情况下,可以分成两个区间,第一个区间为1/n<k≤(1/n+a),第二个区间为(1/n+a)<k≤SUM,当目标随机概率k落在第一个区间内时,则音频播放装置选择播放概率为第一播放概率的第一音频文件进行播放,当目标随机概率k落在第二个区间内时,则音频播放装置选择播放概率为第二播放概率的第二音频文件进行播放。
需要说明的是,在实际应用中,还可能有为第三播放概率的第三音频文件,或者有着更多不同播放概率的音频文件在待播放音频文件集合中,然而,这并不影响对待播放音频文件的确认,所采用的区间法仍可适用,故此处不作限定。
为了便于说明,仍可以根据本发明实施例中的第六个可选实施例中所提及的具体场景进行介绍,即假设待播放音频文件集合中总共有100个标识,则默认的平均播放概率就为1/100,用户偏好信息被分为5个等级,,若最高等级的概率为5/100,那么第一等级可以为1/100,第二等级为2/100,第三等级为3/100,第四等级为4/100,第五等级为5/100。音频文件A和音频文件B的等级均为第二等级时,且音频文件A和音频文件B的第一播放概率为2/100的概率,音频文件C和音频文件D的等级均为第五等级,且音频文件C和音频文件D的第二播放概率为5/100的概率,第一播放概率2/100小于第二播放 概率5/100。
于是根据上述的概率计算待播放音频文件集合中音频文件的播放概率总和值,可以得到目标随机概率的取值范围是,1/100≤目标随机概率≤7/100。
上述已经针对目标随机概率等于平均播放概率的情况进行了说明,当k=1/n时,则音频播放装置选择播放概率为平均播放概率的音频文件进行播放,下面将另外介绍的情况,具体为:
先计算预置播放概率,由于可以根据不同的播放概率进行分组,并得到三个分组,分别为播放概率为平均播放概率的一组,播放概率等于第一播放概率的一组,以及播放概率等于第二播放概率的一组,所以预置播放概率可以设置为(1/n+a),其中,1/n是平均播放概率,为1/100,a是第一播放概率,为2/100,于是预置播放概率(1/n+a)等于3/100。
然后确定目标随机概率所在的范围,当1/100<目标随机概率≤3/100,那么音频播放装置就从待播放音频文件集合中,等概率地随机播放播放概率为第一播放概率的音频文件,进行播放。结合具体场景,则可以随机播放的音频文件为音频文件A或音频文件B。
当3/100<目标随机概率≤7/100时,那么音频播放装置就从待播放音频文件集合中,等概率地随机播放播放概率为第二播放概率的音频文件,进行播放。结合具体场景,则可以随机播放的音频文件为音频文件C或音频文件D。
需要说明的是,当音频文件根据概率分组后有三组以上的情况时,预置播放概率则也至少有两个值,例如,平均播放概率为1/n,音频文件A和音频文件B对应的概率为a,音频文件C和音频文件D对应的概率为b,音频文件E和音频文件F的概率为c,且a<b<c,那么预置播放概率为(1/n+a)以及(1/n+b),且目标随机概率k的取值范围可以被划分为三个区域,1/n<k≤(1/n+a),(1/n+a)<k≤(1/n+a+b),(1/n+a+b)<k≤SUM,以此类推,若出现音频文件存在更多不同概率的时候,也采用上述方法进行计算,此处不作赘述。
又进一步地,本发明实施例中,针对目标随机概率等于平均播放概率这一情况下,如何随机播放音频文件的方法进行介绍。当目标随机概率等于平 均播放概率时,则音频播放装置从待播放音频文件集合中等概率随机选择一个播放概率为平均播放概率的音频文件,进行播放。通过上述方式,为方案的具体实现提供了相应处理方式和解决手段,从而提升了方案的可行性和实用性。若是针对目标随机概率不等于平均播放概率这一情况下,如何随机播放音频文件的方法进行介绍。当目标随机概率大于平均播放概率,且小于或等于平均播放概率与第一播放概率之和时,则音频播放装置从待播放音频文件集合中选择播放概率为第一播放概率的音频文件,进行播放;当目标随机概率大于平均播放概率与第一播放概率之和,且小于或等于播放概率总和值时,则音频播放装置从待播放音频文件集合中选择播放概率为第二播放概率的音频文件,进行播放。
通过上述方式,为方案的具体实现进一步地提供了相应处理方式和解决手段,从而更进一步地提升了方案的可行性和实用性。
可选地,在上述图1、图1对应的第一至第七个实施例中任一项的基础上,本发明实施例提供的控制音频文件播放的方法第八个可选实施例中,音频播放装置获取音频文件对应的标识信息之前,所述方法还包括:
音频播放装置获取音频文件中的标志位,其中,标志位包含第一标志位或者第二标志位;
音频播放装置根据音频文件的播放概率,播放音频文件,可以包括:
当音频文件中的标志位为第一标志位时,则音频播放装置根据音频文件的播放概率,播放音频文件。
本实施例中,音频播放装置在播放下一个音频文件之前,还需要先获取所有音频文件的标志位,其中,标志位包含了第一标志位和第二标志位,而音频播放装置仅播放标志位为第一标志位的音频文件。
具体地,当一个待播放音频文件集合中包含至少两个音频文件的时候,则采用本实施例中所描述的方法即可保证同一个音频文件不会连续被播放两次。首先,每个音频文件都有一个标志位(英文全称:flag),标志位可以分别用“0”和“1”来表示,“0”为第一标志位,标志位为“0”的音频文件表示上一个被播放音频文件不是该音频文件,而“1”为第二标志位,标志位为“1”的音频文件表示该音频文件在上一次刚刚被播放。音频播放装置只从标识位为“0”的 音频文件中,根据播放概率选择其中一个音频文件进行播放。
可以理解的是,音频播放装置既可以先获取各个音频文件的标志位,再从标志位为第一标志位的音频文件中,通过播放概率来决定下一个被播放的音频文件,当然,音频播放装置也可以先根据播放概率选择下一个待播放的音频文件,然后在判断该待播放的音频文件的标志位是否为第一标志位,如果是,则确定播放该音频文件,如果待播放的音频文件的标志位是第二标志位,则重新在标志位为第一标志位的音频文件中选择被播放的音频文件。
需要说明的是,用于表示第一标志位和第二标识位的方式有多种,除了“0”和“1”以外,也可以是用英文字母表示,如“T”和“F”,或者用英语单词表示,如“true”和“false”,还可以是用符号表示,如“+”和“-”,故此处不作限定。
其次,本发明实施例中,为了避免同一个音频文件连续被播放两次,可以先获取待播放的音频文件的标志位,然后音频播放装置选择标志位为第一标志位的音频文件,并根据音频文件的播放概率确定下一个被播放的音频文件。标志位为第一标志位,则说明音频文件可以被播放,因为上一次播放的音频文件并非这个,相反地,如果标志位为第二标志位,则说明第二标志位对应的音频文件刚刚被播放,于是下一次的播放不考虑该音频文件。由此,保证了同一个音频文件不会被播放两遍甚至两遍以上,使得用户在心理上得到新鲜感,有利于提升用户体验。
可选地,在上述图1对应的第八个实施例的基础上,本发明实施例提供的控制音频文件播放的方法第九个可选实施例中,还可以包括:
当第三音频文件播放时,则音频播放装置将第三音频文件中的第一标志位更新为第二标志位。
本实施例中,音频播放装置根据音频文件的播放概率,从标志位为第一标志位的音频文件中确定下一个播放的音频文件为第三音频文件。当第三音频文件正在播放时,从播放的一刻起,音频播放装置就将第三音频文件对应的第一标志位更新为第二标志位。
于是,当第三音频文件播放完毕,或者用户切换第三音频文件时,则从不包括该第三音频文件的音频文件中选择下一个待播放的音频文件,其中, 选择下一个待播放的音频文件仍需要根据音频文件的概率来确定。
再次,本发明实施例中,提供了一种及时恢复标志位的方法,当音频播放装置根据音频文件的播放概率,并从标志位为第一标志位的音频文件中确定下一个被播放的音频文件为第三音频文件时,在第三音频文件被开启的一刻,即将第三音频文件原本对应的第一标志位更新为第二标志位,这样的话,如果用户在短时间内频繁地切换音频文件,音频播放装置也能保证不连续重复播放同一个音频文件,从而进一步提升了用户体验。
为便于理解,下面以一个具体应用场景对本发明实施例中的一种控制音频文件播放的方法进行详细描述,具体为:
用户小李手机上的音频播放器中有一个随机列表,里头有7首歌曲,而他最近迷上了听歌,尤其是钢琴曲,于是近期在自己的随机播放列表中新增了3首钢琴曲,分别是理查德·克莱德曼的《梦中的婚礼》、小约翰·施特劳斯的《蓝色多瑙河》以及柴可夫斯基的《四小天鹅舞曲》。小李根据自己的喜好,通过音乐播放器界面分别对这三首歌曲进行用户偏好信息的设置。音乐播放器界面中一共有五个等级的喜爱程度,其中,对《梦中的婚礼》设置为4颗星,对《蓝色多瑙河》和《梦中的婚礼》均设置为5颗星。每次在退出音乐播放器界面的时候,都会通过“嘟嘟嘟”的音效来告知小李当前歌曲的用户偏好信息。例如,播放《梦中的婚礼》之前会嘟”4次。
小李没有对其他7首歌曲做设置,因此这7首个为默认播放概率。在后台进行随机播放处理的时候,首先获取各首歌曲的标识信息,分别为:
歌曲A的标识信息为{1}
歌曲B的标识信息为{2}
歌曲C的标识信息为{3}
歌曲D的标识信息为{4}
歌曲E的标识信息为{5}
歌曲F的标识信息为{6}
歌曲G的标识信息为{7}
歌曲《梦中的婚礼》的标识信息为{8,9,10,11}
歌曲《四小天鹅舞曲》的标识信息为{12,13,14,15,16}
歌曲《蓝色多瑙河》的标识信息为{17,18,19,20,21}
于是,在标识值为1至21中随机生成一个数值,然后查找包含该数值的歌曲,播放查找到的歌曲,本次随机抽取的数值为15,即播放《四小天鹅舞曲》给用户小李。
将该歌曲标志位设置为true,则下次在除12-16的数值中生成随机数,并查找包含该数值的歌曲并播放。
这样,由于标识个数越多,就越容易与生成的随机数对应,就越多次的被播放。
下面对本发明中的音频播放装置进行详细描述,请参阅图3,本发明实施例中的音频播放装置包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件。
本实施例中,获取模块201获取音频文件对应的标识信息,确定模块202根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率,播放模块203根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件。
本发明实施例中,提供了一种控制音频文件播放的方法,音频播放装置获取音频文件对应的标识信息,并根据音频文件对应的标识信息确定音频文件的播放概率,最后根据音频文件的播放概率,播放音频文件。以此达到在随机播放模式下根据音频文件对应的标识信息即用户的喜爱程度来来确定音频文件的播放次数,而不需要在等概率的情况下播放多个音频文件,提升了用户体验,增加了方案的灵活性。
可选地,在上述图3所对应的实施例的基础上,本发明实施例提供的音频播放装置的另一实施例中,所述音频播放装置的播放模式为随机播放模式。
其次,本发明实施例中,限定了音频播放装置的播放模式为随机播放模式,由于在现有技术中,采用随机播放模式时,每个音频文件播放的概率是一样的, 但是本发明可以在随机播放模式下针对音频文件对应的标识信息来确定音频文件的播放次数,从而进一步地提升了用户体验,以及增加了方案的灵活性。
可选地,在上述图3所对应的实施例的基础上,本发明实施例提供的音频播放装置的另一实施例中,所述标识信息包括标识值和标识个数。
再次,本发明实施例中,标识信息包括标识值和标识个数,具体表现为用户偏好信息,音频播放装置接收用户对音频文件的用户偏好信息,并根据用户偏好信息播放音频文件对应的播放概率提示音。通过上述方案,可以明确标识信息包括标识值和标识个数,使得音频播放装置可以根据标识值和标识个数来确定音频文件的播放概率,与此同时,如果还能够播放音频文件对应的播放概率提示音,就能使得用户无需通过查看音乐播放器界面就得知音频文件的概率,在不方便用户查看音乐播放器界面的情况下,提升了方案的实用性和灵活性,同时便于用户实时调整当前音乐文件的概率,从而增强方案的用户体验。
请参阅图4,本发明实施例中音频播放装置的另一个实施例包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件;
其中,所述确定模块202包括:
第一播放单元2021A,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
第一确定单元2021B,用于根据所述第一播放单元2021A播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
第二确定单元2021C,用于根据所述第一确定单元2021B确定的所述音频文件的标识个数和所述平均播放概率,确定所述待播放音频文件集合中所述音频文件的播放概率。
进一步地,本发明实施例中,音频播放装置确定待播放音频文件集合中音频文件的数目,待播放音频文件集合由至少一个音频文件构成的,再置根据待 播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率,最后根据音频文件的标识个数和平均播放概率,确定待播放音频文件集合中音频文件的播放概率。采用上述方法可以使得音频播放装置确定音频文件的播放概率,为方案的具体实现提供了具体的解决手段,从而提升了方案的实用性和可行性。
请参阅图5,本发明实施例中音频播放装置的另一个实施例包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件;
其中,所述确定模块202包括:
第二播放单元2022A,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
第三确定单元2022B,用于根据所述第二播放单元2022A播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
第四确定单元2022C,用于根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
第五确定单元2022D,用于根据所述第三确定单元2022B确定的所述平均播放概率、所述第四确定单元2022C确定的所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
获取单元2022E,用于根据所述第三确定单元2022B确定的所述平均播放概率以及所述第五确定单元2022D确定的所述播放概率总和值,获取目标随机概率;
第六确定单元2022F,用于根据所述获取单元2022E获取的所述目标随机 概率确定所述待播放音频文件集合中所述音频文件的播放概率。
进一步地,本发明实施例中,提供了另一种控制音频文件播放的方法,音频播放装置播放由至少一个音频文件构成的待播放音频文件集合,首先根据待播放音频文件集合中的总的标识个数,确定音频文件的平均播放概率,再根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,最后通过平均播放概率、第一播放概率和第二播放概率确定待播放音频文件集合中音频文件的播放概率总和值,音频播放装置可以根据平均播放概率以及播放概率总和值,获取目标随机概率,并根据目标随机概率确定待播放音频文件集合中音频文件的播放概率。采用上述方式进行待播放音频文件的选取,从而为本发明方案提供了另一种具体的实现手段,由此提升方案的灵活性和实用性。
请参阅图6,本发明实施例中音频播放装置的另一个实施例包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件;
其中,所述确定模块202包括:
第二播放单元2022A,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
第三确定单元2022B,用于根据所述第二播放单元2022A播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
第四确定单元2022C,用于根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
第五确定单元2022D,用于根据所述第三确定单元2022B确定的所述平 均播放概率、所述第四确定单元2022C确定的所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
获取单元2022E,用于根据所述第三确定单元2022B确定的所述平均播放概率以及所述第五确定单元2022D确定的所述播放概率总和值,获取目标随机概率;
第六确定单元2022F,用于根据所述获取单元2022E获取的所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率;
其中,第五确定单元2022D包括:
计算子单元20221,用于按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率。
更进一步地,本发明实施例中,提供了音频播放装置计算待播放音频文件集合中音频文件的播放概率总和值的具体方法,通过公式可以计算得到播放概率总和值,并应用于后续的数据处理,由此提升了方案的可操作性和实用性。
请参阅图7,本发明实施例中音频播放装置的另一个实施例包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件;
其中,所述确定模块202包括:
第二播放单元2022A,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
第三确定单元2022B,用于根据所述第二播放单元2022A播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
第四确定单元2022C,用于根据第一音频文件的标识信息中的标识个数确 定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
第五确定单元2022D,用于根据所述第三确定单元2022B确定的所述平均播放概率、所述第四确定单元2022C确定的所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
获取单元2022E,用于根据所述第三确定单元2022B确定的所述平均播放概率以及所述第五确定单元2022D确定的所述播放概率总和值,获取目标随机概率;
第六确定单元2022F,用于根据所述获取单元2022E获取的所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率;
其中,第五确定单元2022D包括:
计算子单元20221,用于按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率;
所述获取单元2022E包括:
获取子单元20222,用于按照如下区间随机获取所述目标随机概率:
1/n≤k≤SUM
其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,k表示所述目标随机概率。
再进一步地,本发明实施例中,限定了随机获取目标随机概率的区间,且区间应为大于或等于平均播放概率,小于或等于播放概率总和值,在该区间内选择的目标随机概率可以保证最后计算音频文的播放概率的合理性,从而提升方案的实用性和可操作性。
请参阅图8,本发明实施例中音频播放装置的另一个实施例包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件;
其中,所述确定模块202包括:
第二播放单元2022A,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
第三确定单元2022B,用于根据所述第二播放单元2022A播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
第四确定单元2022C,用于根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
第五确定单元2022D,用于根据所述第三确定单元2022B确定的所述平均播放概率、所述第四确定单元2022C确定的所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
获取单元2022E,用于根据所述第三确定单元2022B确定的所述平均播放概率以及所述第五确定单元2022D确定的所述播放概率总和值,获取目标随机概率;
第六确定单元2022F,用于根据所述获取单元2022E获取的所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率;
其中,第五确定单元2022D包括:
计算子单元20221,用于按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率;
所述获取单元2022E包括:
获取子单元20222,用于按照如下区间随机获取所述目标随机概率:
1/n≤k≤SUM
其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,k表示所述目标随机概率;
其中,所述播放模块203包括:
第一选择单元2031,用于当k=1/n时,则选择播放概率为所述平均播放概率的音频文件进行播放;
第二选择单元2032,用于当1/n<k≤(1/n+a)时,则选择播放概率为所述第一播放概率的第一音频文件进行播放;
第三选择单元2033,用于当(1/n+a)<k≤SUM,则选择播放概率为所述第二播放概率的第二音频文件进行播放。
又进一步地,本发明实施例中,针对目标随机概率等于平均播放概率这一情况下,如何随机播放音频文件的方法进行介绍。当目标随机概率等于平均播放概率时,则音频播放装置从待播放音频文件集合中等概率随机选择一个播放概率为平均播放概率的音频文件,进行播放。通过上述方式,为方案的具体实现提供了相应处理方式和解决手段,从而提升了方案的可行性和实用性。若是针对目标随机概率不等于平均播放概率这一情况下,如何随机播放音频文件的方法进行介绍。当目标随机概率大于平均播放概率,且小于或等于平均播放概率与第一播放概率之和时,则音频播放装置从待播放音频文件集合中选择播放概率为第一播放概率的音频文件,进行播放;当目标随机概率大于平均播放概率与第一播放概率之和,且小于或等于播放概率总和值时,则音频播放装置从待播放音频文件集合中选择播放概率为第二播放概率的音频文件,进行播放。通过上述方式,为方案的具体实现进一步地提供了相应处理方式和解决手段,从而更进一步地提升了方案的可行性和实用性。
请参阅图9,本发明实施例中音频播放装置的另一个实施例包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件;
标识获取模块204,用于获取所述音频文件中的标志位,其中,所述标志位包含第一标志位或者第二标志位;
其中,所述确定模块202包括:
第二播放单元2022A,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
第三确定单元2022B,用于根据所述第二播放单元2022A播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
第四确定单元2022C,用于根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
第五确定单元2022D,用于根据所述第三确定单元2022B确定的所述平均播放概率、所述第四确定单元2022C确定的所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
获取单元2022E,用于根据所述第三确定单元2022B确定的所述平均播放概率以及所述第五确定单元2022D确定的所述播放概率总和值,获取目标随机概率;
第六确定单元2022F,用于根据所述获取单元2022E获取的所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率;
其中,第五确定单元2022D包括:
计算子单元20221,用于按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率;
所述获取单元2022E包括:
获取子单元20222,用于按照如下区间随机获取所述目标随机概率:
1/n≤k≤SUM
其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,k表示所述目标随机概率;
其中,所述播放模块203包括:
第一选择单元2031,用于当k=1/n时,则选择播放概率为所述平均播放概率的音频文件进行播放;
第二选择单元2032,用于当1/n<k≤(1/n+a)时,则选择播放概率为所述第一播放概率的第一音频文件进行播放;
第三选择单元2033,用于当(1/n+a)<k≤SUM,则选择播放概率为所述第二播放概率的第二音频文件进行播放。
第三播放单元2034,用于当所述音频文件中的标志位为所述第一标志位时,则根据所述音频文件的播放概率,播放所述音频文件。
其次,本发明实施例中,为了避免同一个音频文件连续被播放两次,可以先获取待播放的音频文件的标志位,然后音频播放装置选择标志位为第一标志位的音频文件,并根据音频文件的播放概率确定下一个被播放的音频文件。标志位为第一标志位,则说明音频文件可以被播放,因为上一次播放的音频文件并非这个,相反地,如果标志位为第二标志位,则说明第二标志位对应的音频文件刚刚被播放,于是下一次的播放不考虑该音频文件。由此,保证了同一个音频文件不会被播放两遍甚至两遍以上,使得用户在心理上得到新鲜感,有利于提升用户体验。
请参阅图10,本发明实施例中音频播放装置的另一个实施例包括:
获取模块201,用于获取音频文件对应的标识信息;
确定模块202,用于根据所述获取模块201获取的所述音频文件对应的标 识信息确定所述音频文件的播放概率;
播放模块203,用于根据所述确定模块202确定的所述音频文件的播放概率,播放所述音频文件;
标识获取模块204,用于获取所述音频文件中的标志位,其中,所述标志位包含第一标志位或者第二标志位;
更新模块205,用于当第三音频文件播放时,则将所述第三音频文件中的所述第一标志位更新为所述第二标志位;
其中,所述确定模块202包括:
第二播放单元2022A,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
第三确定单元2022B,用于根据所述第二播放单元2022A播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
第四确定单元2022C,用于根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
第五确定单元2022D,用于根据所述第三确定单元2022B确定的所述平均播放概率、所述第四确定单元2022C确定的所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
获取单元2022E,用于根据所述第三确定单元2022B确定的所述平均播放概率以及所述第五确定单元2022D确定的所述播放概率总和值,获取目标随机概率;
第六确定单元2022F,用于根据所述获取单元2022E获取的所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率;
其中,第五确定单元2022D包括:
计算子单元20221,用于按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率;
所述获取单元2022E包括:
获取子单元20222,用于按照如下区间随机获取所述目标随机概率:
1/n≤k≤SUM
其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,k表示所述目标随机概率;
其中,所述播放模块203包括:
第一选择单元2031,用于当k=1/n时,则选择播放概率为所述平均播放概率的音频文件进行播放;
第二选择单元2032,用于当1/n<k≤(1/n+a)时,则选择播放概率为所述第一播放概率的第一音频文件进行播放;
第三选择单元2033,用于当(1/n+a)<k≤SUM,则选择播放概率为所述第二播放概率的第二音频文件进行播放。
第三播放单元2034,用于当所述音频文件中的标志位为所述第一标志位时,则根据所述音频文件的播放概率,播放所述音频文件。
再次,本发明实施例中,提供了一种及时恢复标志位的方法,当音频播放装置根据音频文件的播放概率,并从标志位为第一标志位的音频文件中确定下一个被播放的音频文件为第三音频文件时,在第三音频文件被开启的一刻,即将第三音频文件原本对应的第一标志位更新为第二标志位,这样的话,如果用户在短时间内频繁地切换音频文件,音频播放装置也能保证不连续重复播放同一个音频文件,从而进一步提升了用户体验。
图11是本发明实施例音频播放装置30的结构示意图。音频播放装置30可包括收发器310、处理器320和存储器330。本发明实施例中的收发器中的输出设备可以是显示设备。本发明实施例涉及的终端设备,可以是指向用户提供语音和/或数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经无线接入网(英文全称:Radio  Access Network,英文缩写:RAN)与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(英文全称:Personal Communication Service,英文缩写:PCS)电话、无绳电话、会话发起协议(英文全称:Session Initiation Protocol,英文缩写:SIP)话机、无线本地环路(WLL,Wireless Local Loop)站、个人数字助理(英文全称:Personal Digital Assistant,英文缩写:PDA)等设备。无线终端也可以称为系统、订户单元(英文全称:Subscriber Unit,英文缩写:SU)、订户站(英文全称:Subscriber Station,英文缩写:SS),移动站(英文全称:Mobile Station,英文缩写:MS)、移动台(英文全称:Mobile)、远程站(英文全称:Remote Station,英文缩写:RS)、接入点(英文全称:Access Point,英文缩写:AP)、远程终端(英文全称:Remote Terminal,英文缩写:RT)、接入终端(英文全称:Access Terminal,英文缩写:AT)、用户终端(英文全称:User Terminal,英文缩写:UT)、用户代理(英文全称:User Agent,英文缩写:UA)、用户设备(英文全称:UserDevice,英文缩写:UD)、或用户装备(英文全称:User Equipment,英文缩写:UE)。
存储器330可以包括只读存储器和随机存取存储器,并向处理器320提供指令和数据。存储器330的一部分还可以包括非易失性随机存取存储器(英文全称:Non-Volatile Random Access Memory,英文缩写:NVRAM)。
存储器330存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:
操作指令:包括各种操作指令,用于实现各种操作。
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。
本发明实施例中处理器320用于:
控制所述收发器310获取音频文件对应的标识信息;
根据所述音频文件对应的标识信息确定所述音频文件的播放概率;
根据所述音频文件的播放概率,播放所述音频文件。
其中,音频播放装置20的播放模式为随机播放模式。
其中,所述标识信息可以包括标识值和标识个数。
处理器320控制音频播放装置30的操作,处理器320还可以称为中央处理单元(英文全称:Central Processing Unit,英文缩写:CPU)。存储器330可以包括只读存储器和随机存取存储器,并向处理器320提供指令和数据。存储器330的一部分还可以包括非易失性随机存取存储器。具体的应用中,音频播放装置30的各个组件通过总线系统340耦合在一起,其中总线系统340除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统340。
上述本发明实施例揭示的方法可以应用于处理器320中,或者由处理器320实现。处理器320可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器430中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器320可以是通用处理器、数字信号处理器(英文全称:Digital Signal Processing,英文缩写:DSP)、专用集成电路(英文全称:Application Specific Integrated Circuit,英文缩写:ASIC)、现成可编程门阵列(英文全称:Field-Programmable Gate Array,英文缩写:FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器330,处理器320读取存储器330中的信息,结合其硬件完成上述方法的步骤。
可选地,处理器320具体用于:
播放由至少一个所述音频文件构成的待播放音频文件集合;
根据所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平 均播放概率;
根据所述音频文件的标识个数和所述平均播放概率,确定所述待播放音频文件集合中所述音频文件的播放概率。
可选地,处理器320具体用于:
播放由至少一个所述音频文件构成的待播放音频文件集合;
根据所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
根据所述平均播放概率、所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
根据所述平均播放概率以及所述播放概率总和值,控制所述收发器310获取目标随机概率;
根据所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率。
可选地,处理器320具体用于:
按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率。
可选地,处理器320具体用于:
按照如下区间随机获取所述目标随机概率:
1/n≤k≤SUM
其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中 所述音频文件的播放概率总和值,k表示所述目标随机概率。
可选地,处理器320具体用于:
当k=1/n时,则选择播放概率为所述平均播放概率的音频文件进行播放;
当1/n<k≤(1/n+a)时,则选择播放概率为所述第一播放概率的第一音频文件进行播放;
当(1/n+a)<k≤SUM,则选择播放概率为所述第二播放概率的第二音频文件进行播放。
可选地,处理器320具体用于:
控制所述收发器310获取所述音频文件中的标志位,其中,所述标志位包含第一标志位或者第二标志位;
当所述音频文件中的标志位为所述第一标志位时,则根据所述音频文件的播放概率,播放所述音频文件。
可选地,处理器320具体用于:
当第三音频文件播放时,则将所述第三音频文件中的所述第一标志位更新为所述第二标志位。
图11的相关描述可以参阅图1方法部分的相关描述和效果进行理解,本处不做过多赘述。
本发明实施例还提供了另一种音频播放装置,如图12所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该音频播放装置可以为包括手机、平板电脑、个人数字助理(英文全称:Personal Digital Assistant,英文缩写:PDA)、销售终端(英文全称:Point of Sales,英文缩写:POS)、车载电脑等任意终端设备,以音频播放装置为手机为例:
图12示出的是与本发明实施例提供的音频播放装置相关的手机的部分结构的框图。参考图12,手机包括:射频(英文全称:Radio Frequency,英文缩写:RF)电路410、存储器420、输入单元430、显示单元440、传感器450、音频电路460、无线保真(英文全称:wireless fidelity,英文缩写:WiFi)模块470、处理器480、以及电源490等部件。本领域技术人员可以理解,图12中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部 件,或者组合某些部件,或者不同的部件布置。
下面结合图12对手机的各个构成部件进行具体的介绍:
RF电路410可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器480处理;另外,将设计上行的数据发送给基站。通常,RF电路410包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(英文全称:Low Noise Amplifier,英文缩写:LNA)、双工器等。此外,RF电路410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文全称:Global System of Mobile communication,英文缩写:GSM)、通用分组无线服务(英文全称:General Packet Radio Service,GPRS)、码分多址(英文全称:Code Division Multiple Access,英文缩写:CDMA)、宽带码分多址(英文全称:Wideband Code Division Multiple Access,英文缩写:WCDMA)、长期演进(英文全称:Long Term Evolution,英文缩写:LTE)、电子邮件、短消息服务(英文全称:Short Messaging Service,SMS)等。
存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元430可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元430可包括触控面板431以及其他输入设备432。触控面板431,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板431上或在触控面板431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号, 将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板431。除了触控面板431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元440可包括显示面板441,可选的,可以采用液晶显示器(英文全称:Liquid Crystal Display,英文缩写:LCD)、有机发光二极管(英文全称:Organic Light-Emitting Diode,英文缩写:OLED)等形式来配置显示面板441。进一步的,触控面板431可覆盖显示面板441,当触控面板431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图12中,触控面板431与显示面板441是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板431与显示面板441集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在手机移动到耳边时,关闭显示面板441和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路460、扬声器461,传声器462可提供用户与手机之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处 理器480处理后,经RF电路410以发送给比如另一手机,或者将音频数据输出至存储器420以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图12示出了WiFi模块470,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器480是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器480可包括一个或多个处理单元;优选的,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。
手机还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
在本发明实施例中,该终端所包括的处理器480还具有以下功能:
控制输入单元430获取音频文件对应的标识信息;
根据所述音频文件对应的标识信息确定所述音频文件的播放概率;
根据所述音频文件的播放概率,播放所述音频文件。
其中,音频播放装置的播放模式为随机播放模式。
其中,所述标识信息包括标识值和标识个数。
处理器480具体还用于,
播放由至少一个所述音频文件构成的待播放音频文件集合;
根据所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
根据所述音频文件的标识个数和所述平均播放概率,确定所述待播放音频文件集合中所述音频文件的播放概率。
处理器480具体还用于,
播放由至少一个所述音频文件构成的待播放音频文件集合;
根据所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
根据所述平均播放概率、所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
根据所述平均播放概率以及所述播放概率总和值,控制输入单元430获取目标随机概率;
根据所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率。
处理器480具体还用于,
按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
SUM=1/n+a+b
其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率。
处理器480具体还用于,
按照如下区间随机获取所述目标随机概率:
1/n≤k≤SUM
其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,k表示所述目标随机概率。
处理器480具体还用于,
当k=1/n时,则选择播放概率为所述平均播放概率的音频文件进行播放;
当1/n<k≤(1/n+a)时,则选择播放概率为所述第一播放概率的第一音频文件进行播放;
当(1/n+a)<k≤SUM,则选择播放概率为所述第二播放概率的第二音频文件进行播放。
处理器480具体还用于,
控制输入单元430获取所述音频文件中的标志位,其中,所述标志位包含第一标志位或者第二标志位;
当所述音频文件中的标志位为所述第一标志位时,则根据所述音频文件的播放概率,播放所述音频文件。
处理器480具体还用于,
当第三音频文件播放时,则将所述第三音频文件中的所述第一标志位更新为所述第二标志位。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的 形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文全称:Read-Only Memory,英文缩写:ROM)、随机存取存储器(英文全称:Random Access Memory,英文缩写:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (21)

  1. 一种控制音频文件播放的方法,其特征在于,包括:
    音频播放装置获取音频文件对应的标识信息;
    所述音频播放装置根据所述音频文件对应的标识信息确定所述音频文件的播放概率;
    所述音频播放装置根据所述音频文件的播放概率,播放所述音频文件。
  2. 根据权利要求1所述的方法,其特征在于,所述音频播放装置的播放模式为随机播放模式。
  3. 根据权利要求2所述的方法,其特征在于,所述标识信息包括标识值和标识个数。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述音频播放装置根据所述音频文件对应的标识信息确定所述音频文件的播放概率,包括:
    所述音频播放装置播放由至少一个所述音频文件构成的待播放音频文件集合;
    所述音频播放装置根据所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
    所述音频播放装置根据所述音频文件的标识个数和所述平均播放概率,确定所述待播放音频文件集合中所述音频文件的播放概率。
  5. 根据权利要求1至3中任一项所述的方法,其特征在于,所述音频播放装置根据所述音频文件对应的标识信息确定所述音频文件的播放概率,包括:
    所述音频播放装置播放由至少一个所述音频文件构成的待播放音频文件集合;
    所述音频播放装置根据所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
    所述音频播放装置根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中 的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
    所述音频播放装置根据所述平均播放概率、所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
    所述音频播放装置根据所述平均播放概率以及所述播放概率总和值,获取目标随机概率;
    所述音频播放装置根据所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率。
  6. 根据权利要求5所述的方法,其特征在于,所述音频播放装置根据所述平均播放概率、所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值,包括:
    所述音频播放装置按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
    SUM=1/n+a+b
    其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率。
  7. 根据权利要求6所述的方法,其特征在于,所述音频播放装置根据所述平均播放概率以及所述播放概率总和值,获取目标随机概率,包括:
    所述音频播放装置按照如下区间随机获取所述目标随机概率:
    1/n≤k≤SUM
    其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,k表示所述目标随机概率。
  8. 根据权利要求7所述的方法,其特征在于,所述音频播放装置根据所述音频文件的播放概率,播放所述音频文件,包括:
    当k=1/n时,则所述音频播放装置选择播放概率为所述平均播放概率的音频文件进行播放;
    当1/n<k≤(1/n+a)时,则所述音频播放装置选择播放概率为所述第一播放 概率的第一音频文件进行播放;
    当(1/n+a)<k≤SUM,则所述音频播放装置选择播放概率为所述第二播放概率的第二音频文件进行播放。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,音频播放装置获取音频文件对应的标识信息之前,所述方法还包括:
    所述音频播放装置获取所述音频文件中的标志位,其中,所述标志位包含第一标志位或者第二标志位;
    所述音频播放装置根据所述音频文件的播放概率,播放所述音频文件,包括:
    当所述音频文件中的标志位为所述第一标志位时,则所述音频播放装置根据所述音频文件的播放概率,播放所述音频文件。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    当第三音频文件播放时,则所述音频播放装置将所述第三音频文件中的所述第一标志位更新为所述第二标志位。
  11. 一种音频播放装置,其特征在于,包括:
    获取模块,用于获取音频文件对应的标识信息;
    确定模块,用于根据所述获取模块获取的所述音频文件对应的标识信息确定所述音频文件的播放概率;
    播放模块,用于根据所述确定模块确定的所述音频文件的播放概率,播放所述音频文件。
  12. 根据权利要求11所述的音频播放装置,其特征在于,所述音频播放装置的播放模式为随机播放模式。
  13. 根据权利要求12所述的音频播放装置,其特征在于,所述标识信息包括标识值和标识个数。
  14. 根据权利要求11至13中任一项所述的音频播放装置,其特征在于,所述确定模块包括:
    第一播放单元,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
    第一确定单元,用于根据所述第一播放单元播放的所述待播放音频文件集 合中的总的标识个数,确定所述音频文件的平均播放概率;
    第二确定单元,用于根据所述第一确定单元确定的所述音频文件的标识个数和所述平均播放概率,确定所述待播放音频文件集合中所述音频文件的播放概率。
  15. 根据权利要求11至13中任一项所述的音频播放装置,其特征在于,所述确定模块包括:
    第二播放单元,用于播放由至少一个所述音频文件构成的待播放音频文件集合;
    第三确定单元,用于根据所述第二播放单元播放的所述待播放音频文件集合中的总的标识个数,确定所述音频文件的平均播放概率;
    第四确定单元,用于根据第一音频文件的标识信息中的标识个数确定第一播放概率,并根据第二音频文件的标识信息中的标识个数确定第二播放概率,其中,所述第一音频文件与所述第二音频文件均为所述待播放音频文件集合中的音频文件,所述第一音频文件的标识信息中的标识个数大于等于2,所述第二音频文件的标识信息中的标识个数大于所述第一音频文件的标识信息中的标识个数;
    第五确定单元,用于根据所述第三确定单元确定的所述平均播放概率、所述第四确定单元确定的所述第一播放概率和所述第二播放概率确定所述待播放音频文件集合中所述音频文件的播放概率总和值;
    获取单元,用于根据所述第三确定单元确定的所述平均播放概率以及所述第五确定单元确定的所述播放概率总和值,获取目标随机概率;
    第六确定单元,用于根据所述获取单元获取的所述目标随机概率确定所述待播放音频文件集合中所述音频文件的播放概率。
  16. 根据权利要求15所述的音频播放装置,其特征在于,所述第五确定单元包括:
    计算子单元,用于按照如下方式计算所述待播放音频文件集合中所述音频文件的播放概率总和值:
    SUM=1/n+a+b
    其中,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总 和值,1/n表示所述平均播放概率,a表示所述第一音频文件的第一播放概率,b表示所述第二音频文件的第二播放概率。
  17. 根据权利要求16所述的音频播放装置,其特征在于,所述获取单元包括:
    获取子单元,用于按照如下区间随机获取所述目标随机概率:
    1/n≤k≤SUM
    其中,1/n表示所述平均播放概率,SUM表示所述待播放音频文件集合中所述音频文件的播放概率总和值,k表示所述目标随机概率。
  18. 根据权利要求17所述的音频播放装置,其特征在于,所述播放模块包括:
    第一选择单元,用于当k=1/n时,则选择播放概率为所述平均播放概率的音频文件进行播放;
    第二选择单元,用于当1/n<k≤(1/n+a)时,则选择播放概率为所述第一播放概率的第一音频文件进行播放;
    第三选择单元,用于当(1/n+a)<k≤SUM,则选择播放概率为所述第二播放概率的第二音频文件进行播放。
  19. 根据权利要求11至18中任一项所述的音频播放装置,其特征在于,所述音频播放装置还包括:
    标识获取模块,用于获取所述音频文件中的标志位,其中,所述标志位包含第一标志位或者第二标志位;
    所述播放模块包括:
    第三播放单元,用于当所述音频文件中的标志位为所述第一标志位时,则根据所述音频文件的播放概率,播放所述音频文件。
  20. 根据权利要求19所述的音频播放装置,其特征在于,所述音频播放装置还包括:
    更新模块,用于当第三音频文件播放时,则将所述第三音频文件中的所述第一标志位更新为所述第二标志位。
  21. 一种音频播放装置,其特征在于,包括:存储器、收发器、处理器以及总线系统;
    其中,所述存储器用于存储程序;
    所述处理器用于执行所述存储器中的程序,具体如下步骤:
    控制所述收发器获取音频文件对应的标识信息;
    根据所述音频文件对应的标识信息确定所述音频文件的播放概率;
    根据所述音频文件的播放概率,播放所述音频文件;
    所述总线系统用于连接所述存储器、所述收发器以及所述处理器,以使所述存储器、所述收发器以及所述处理器进行通信。
PCT/CN2016/080234 2016-04-26 2016-04-26 一种控制音频文件播放的方法及音频播放装置 WO2017185233A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2016/080234 WO2017185233A1 (zh) 2016-04-26 2016-04-26 一种控制音频文件播放的方法及音频播放装置
CN201680014726.8A CN108352173B (zh) 2016-04-26 2016-04-26 一种控制音频文件播放的方法及音频播放装置
EP16899747.6A EP3441972A4 (en) 2016-04-26 2016-04-26 METHOD FOR CONTROLLING THE PLAYBACK OF AN AUDIO FILE AND AUDIO REPRODUCTIVE DEVICE
US16/171,259 US20190065590A1 (en) 2016-04-26 2018-10-25 Audio file play control method and audio play apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/080234 WO2017185233A1 (zh) 2016-04-26 2016-04-26 一种控制音频文件播放的方法及音频播放装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/171,259 Continuation US20190065590A1 (en) 2016-04-26 2018-10-25 Audio file play control method and audio play apparatus

Publications (1)

Publication Number Publication Date
WO2017185233A1 true WO2017185233A1 (zh) 2017-11-02

Family

ID=60160630

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080234 WO2017185233A1 (zh) 2016-04-26 2016-04-26 一种控制音频文件播放的方法及音频播放装置

Country Status (4)

Country Link
US (1) US20190065590A1 (zh)
EP (1) EP3441972A4 (zh)
CN (1) CN108352173B (zh)
WO (1) WO2017185233A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840122A (zh) * 2022-04-02 2022-08-02 杭州网易云音乐科技有限公司 随机播放的交互方法、装置、存储介质和计算设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11198068B2 (en) * 2019-02-18 2021-12-14 eFantasy Sports LLC Method of conducting a fantasy sports game
CN113411326A (zh) * 2021-06-17 2021-09-17 上海明略人工智能(集团)有限公司 用于音频加密的方法及装置、电子设备、系统、可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001176252A (ja) * 1999-12-16 2001-06-29 Pioneer Electronic Corp ディスク再生方法ならびにその再生装置及び同方法が記録される記録媒体
US20060288845A1 (en) * 2005-06-24 2006-12-28 Joshua Gale Preference-weighted semi-random media play
CN104835516A (zh) * 2015-05-05 2015-08-12 小米科技有限责任公司 音乐播放方法和装置、智能终端
CN104851439A (zh) * 2015-04-22 2015-08-19 惠州Tcl移动通信有限公司 多媒体文件播放的方法以及播放器

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100228740A1 (en) * 2009-03-09 2010-09-09 Apple Inc. Community playlist management
EP2369498A1 (en) * 2010-03-24 2011-09-28 Research In Motion Limited System and method for music resource connection, selection and rating for providing a radio like user listening experience
CN104978377B (zh) * 2014-09-25 2019-08-23 腾讯科技(深圳)有限公司 一种多媒体数据处理的方法、装置以及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001176252A (ja) * 1999-12-16 2001-06-29 Pioneer Electronic Corp ディスク再生方法ならびにその再生装置及び同方法が記録される記録媒体
US20060288845A1 (en) * 2005-06-24 2006-12-28 Joshua Gale Preference-weighted semi-random media play
CN104851439A (zh) * 2015-04-22 2015-08-19 惠州Tcl移动通信有限公司 多媒体文件播放的方法以及播放器
CN104835516A (zh) * 2015-05-05 2015-08-12 小米科技有限责任公司 音乐播放方法和装置、智能终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3441972A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840122A (zh) * 2022-04-02 2022-08-02 杭州网易云音乐科技有限公司 随机播放的交互方法、装置、存储介质和计算设备

Also Published As

Publication number Publication date
EP3441972A1 (en) 2019-02-13
CN108352173B (zh) 2020-04-14
EP3441972A4 (en) 2019-05-01
US20190065590A1 (en) 2019-02-28
CN108352173A (zh) 2018-07-31

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
TWI497406B (zh) 用於為一語音辨識互動模組提供輸入功能之方法及電腦可讀取媒體
CN104571498B (zh) 一种应用程序启动方法
WO2017215649A1 (zh) 音效调节方法及用户终端
WO2017215652A1 (zh) 音效参数的调节方法及移动终端
KR102270633B1 (ko) 단말기에서 근전도 검사 장치로 데이터를 전송하기 위한 장치, 시스템 및 방법
WO2019057202A1 (zh) 一种特效同步方法、装置及移动终端
CN106126174B (zh) 一种场景音效的控制方法、及电子设备
CN108763316B (zh) 一种音频列表管理方法及移动终端
WO2014008843A1 (zh) 一种声纹特征模型更新方法及终端
WO2018228167A1 (zh) 导航方法及相关产品
US20120321150A1 (en) Apparatus and Method for a Virtual Keypad Using Phalanges in the Finger
TW201037558A (en) Method, apparatus, system, and program product for pose to device mapping
WO2018223837A1 (zh) 音乐播放方法及相关产品
WO2017215635A1 (zh) 一种音效处理方法及移动终端
CN106210755A (zh) 一种播放直播视频的方法、装置和系统
WO2018049934A1 (zh) 一种数据迁移的方法及终端
WO2018219165A1 (zh) 音乐播放的方法、终端及存储介质
CN106506437B (zh) 一种音频数据处理方法,及设备
CN111124345A (zh) 一种音频源处理的方法及移动终端
CN106657641B (zh) 一种优化分享方式的方法及相关设备
US20190065590A1 (en) Audio file play control method and audio play apparatus
WO2018094725A1 (zh) 一种头像显示的方法以及头像显示装置
CN104793879B (zh) 终端设备上的对象选择方法和终端设备
CN104408051B (zh) 歌曲推荐方法及装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016899747

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016899747

Country of ref document: EP

Effective date: 20181106

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16899747

Country of ref document: EP

Kind code of ref document: A1