Song playing method, device and electronic equipment
By receiving voice input and generating a target recommendation list, and playing songs based on multiple independent song sources, the problem of poor song playback flexibility in the existing technology is solved, and a richer and more flexible song playback experience is achieved.
Patent Information
- Application Number
- CN202010845873.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-08-20
AI Technical Summary
Existing song playing methods have poor flexibility, making it difficult for users to play the desired songs through simple voice input.
By receiving voice input, a target recommendation list based on multiple independent song sources is generated, allowing target songs to be played without song information, improving the flexibility and richness of song playback.
It improves the flexibility and richness of song playback, allowing users to more conveniently play songs that fit their listening habits, and improves the user experience.
Smart Images

Figure CN112000836B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of multimedia technology, and in particular to a song playing method, device and electronic device. Background Art
[0002] With the development of multimedia technology, more and more users listen to songs through electronic devices. In the related art, when users use electronic devices to listen to songs, they generally input specific song names to make the electronic devices play the specified songs. It can be seen that the flexibility of existing song playing is poor. Summary of the invention
[0003] The embodiments of the present disclosure provide a song playing method, device and electronic device to solve the problem of poor flexibility in existing song playing.
[0004] To solve the above problems, the present disclosure is implemented as follows:
[0005] In a first aspect, an embodiment of the present disclosure provides a song playing method, which is applied to an electronic device, and the method includes:
[0006] receiving a first voice input;
[0007] When the first voice input indicates to play a song but does not include song information, play the first song in the target recommendation list;
[0008] The target recommendation list is generated based on N song information sources included in the electronic device, each of the N song information sources includes an independent song library, and N is a positive integer.
[0009] In a second aspect, the present disclosure also provides a song playing device, which is applied to an electronic device, and is characterized in that the song playing device comprises:
[0010] A first receiving module, used to receive a first voice input;
[0011] A first playing module, configured to play the first song in the target recommendation list when the first voice input indicates to play a song but does not include song information;
[0012] The target recommendation list is generated based on N song information sources included in the electronic device, each of the N song information sources includes an independent song library, and N is a positive integer.
[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the steps of the song playing method as described above when executed by the processor.
[0014] In a fourth aspect, an embodiment of the present disclosure further provides a readable storage medium having a program stored thereon, and when the program is executed by a processor, the steps of the song playing method applied to an electronic device as described above are implemented.
[0015] In an embodiment of the present disclosure, the electronic device can play songs in a target recommendation list in response to a first voice input indicating to play a song but not including song information, thereby improving the flexibility of song playing. In addition, the target recommendation list in the embodiment of the present disclosure is generated based on N song sources included in the electronic device, each of the N song sources includes an independent song library, and N is a positive integer. In this way, the songs included in the N song sources of the electronic device can be fully utilized, thereby improving the richness of song playing.
[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of a song playing method according to an exemplary embodiment;
[0018] Figure 2 is a structural diagram of a song playing device according to an exemplary embodiment;
[0019] Figure 3 This is a second structural diagram of an electronic device according to an exemplary embodiment.
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0022] The terms "first", "second", etc. in this disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or apparatuses.
[0023] The song playing method of the embodiment of the present disclosure is described below.
[0024] See also Figure 1 , Figure 1 1 is a flowchart of a song playing method according to an exemplary embodiment. The song playing method of the disclosed embodiment is applied to an electronic device. In practical applications, the electronic device may be a smart speaker, a mobile phone, a computer, a television, a wearable device, or a vehicle-mounted device.
[0025] like Figure 1 As shown, the song playing method may include the following steps:
[0026] In step 101, a first voice input is received.
[0027] In a specific implementation, the electronic device can receive a first voice input in a first state, and the first state can be understood as a state of receiving and responding to a voice input. In the first state, the electronic device can receive a voice input and respond to the received voice input.
[0028] In actual applications, in a first implementation, the electronic device may always be in the first state; in a second implementation, the electronic device may be in the first state only when a wake-up input is received, thereby saving terminal power consumption.
[0029] In the second implementation, the wake-up input may be a voice input including a wake-up word, or a touch input for a wake-up control, but is not limited thereto. In addition, for the second implementation, further, the electronic device may be in a second state before receiving the wake-up input, and the second state may be understood as a state of receiving but not responding to voice input, or a state of not receiving voice input. In the second state, the electronic device may receive voice input, but does not respond to the received voice input, or the electronic device does not receive voice input.
[0030] In step 102, when the first voice input indicates to play a song but does not include song information, the first song in the target recommendation list is played.
[0031] In specific implementation, the electronic device can play songs in the target recommendation list when receiving a voice input that instructs to play a song but does not include song information such as the song name, singer title (which can be name, full name, stage name, nickname, etc.). In other words, the first voice input can be a voice input that does not include song information such as the song name and singer title. For example, if the electronic device receives a voice input such as "play a song" or "give me a song", the electronic device can play songs in the target recommendation list. The first song can be understood as any song in the target recommendation list.
[0032] In the embodiment of the present disclosure, the target recommendation list is generated based on N song information sources included in the electronic device, where N is a positive integer. In practical applications, the song information source can be an application or a song resource library for playing songs, but is not limited thereto.
[0033] Each of the N song information sources includes an independent song library, that is, when the electronic device plays songs in the song library of a certain song information source, it may not be affected by other song information sources. Different song information sources may include different song libraries. Of course, the song libraries of different song information sources may have previously stored the same songs or different songs, such as: the N song information sources include song information source a and song information source b, the song library of song information source a includes song 1, song 2, song 3 and song 4, and the song library of song information source b includes song 1, song 3, song 4, song 5 and song 6. A song information source may also be referred to as a song resource library, but is not limited thereto.
[0034] In specific implementation, the target recommendation list may include songs from some or all of the N song sources, that is, the songs in the target recommendation list may come from some or all of the N song sources, such as: taking the above-mentioned song source a and song source b as examples, the target recommendation list may include song 2 from song source a, song 3 from song source a, song 4 from song source b and song 6 from song source b.
[0035] In the song playing method of the disclosed embodiment, the electronic device can play songs in the target recommendation list in response to the first voice input indicating to play songs but not including song information, thereby improving the flexibility of song playing. In addition, the target recommendation list in the disclosed embodiment is generated based on the N song sources included in the electronic device, each of the N song sources includes an independent song library, and N is a positive integer. In this way, the songs included in the N song sources of the electronic device can be fully utilized, thereby improving the richness of song playing.
[0036] In the embodiment of the present disclosure, optionally, before the first song in the play target recommendation list, the method further includes:
[0037] Identifying the N song information sources included in the electronic device;
[0038] Determine, according to target information of K songs historically played by a first song information source among the N song information sources, P songs matching the K songs among all songs included in the N song information sources;
[0039] Generate the target recommendation list, wherein the target recommendation list includes the P songs;
[0040] Wherein, the first song information source includes at least one song information source among the N song information sources; K and P are both positive integers.
[0041] In this optional implementation, the electronic device may first identify all song information sources included in the electronic device, and then select P songs from all songs included in all song information sources of the electronic device to generate the target recommendation list.
[0042] In a specific implementation, the electronic device may select the P songs according to the target information of the K songs historically played by the first song information source among the N song information sources.
[0043] Optionally, the K songs played historically by the first song information source may be any of the following:
[0044] The K songs in the first song information source whose playing end time is closest to the first time;
[0045] K songs in the first song information source whose playing end time is closest to the first time and whose playing time is longer than the first preset time;
[0046] The first moment is the moment when the electronic device receives the first voice input.
[0047] For ease of understanding, the following examples are provided:
[0048] Assume that the songs historically played by song source a include song 1 and song 2, the playing end time of song 1 is t1, and the playing end time of song 2 is t2; the songs historically played by song source b include song 5 and song 6, the playing end time of song 5 is t3, and the playing end time of song 6 is t4, among which, when t1, t2, t3 and t4 are sorted in time from first to last, the arrangement order is: t2, t3, t1, t4.
[0049] Also assume that K is 2.
[0050] Then, when the first song information source includes song information source a and song information source b, the K songs are: song 1 and song 6.
[0051] Optionally, the target information of the K songs may include any one of the following:
[0052] The music types of the K songs, such as light music, rock music, folk music, etc.;
[0053] The production information of the K songs, such as the lyricist and composer;
[0054] The singers of the K songs;
[0055] The video resources associated with the K songs, such as TV series, movies, animations, etc.
[0056] In practical applications, the target information may be selected by a user or set by a system. Furthermore, the target information may be adjusted.
[0057] In this optional implementation, the P songs selected by the electronic device from the N song information sources match the target information of the K songs. In specific implementation, the target information matching of the P songs with the K songs can be understood as any of the following:
[0058] In the case where the target information of the K songs is the music genre of the K songs, the music genre of the P songs may be a first music genre, and the number of songs belonging to the first music genre among the K songs is greater than the number of songs belonging to other music genres;
[0059] In the case where the target information of the K songs is the production information of the K songs, the lyricist of the P songs may be the first lyricist, and the number of songs written by the first lyricist in the K songs is greater than the number of songs written by other lyricists;
[0060] In the case where the target information of the K songs is the production information of the K songs, the composer of the P songs may be a first composer, and the number of songs composed by the first composer among the K songs is greater than the number of songs composed by other composers;
[0061] In the case where the target information of the K songs is the singers of the K songs, the singers of the P songs may be the first singer, and the number of songs sung by the first singer in the K songs is greater than the number of songs sung by other singers;
[0062] When the target information of the K songs is video resources associated with the K songs, the P songs may be songs in the first video, and the number of songs belonging to the first video among the K songs is greater than the number of songs in other videos.
[0063] Through the above method, the songs included in the target recommendation list generated by the electronic device based on the N song sources included in the electronic device are matched with the K songs historically played by the electronic device. In this way, the songs included in the target recommendation list can be matched with the user's listening habits, thereby improving the satisfaction with song playback.
[0064] In the above optional implementation, the selection of the P songs is related to the target information of the K songs, but it should be understood that in other implementations of the present disclosure, the selection of the P songs may be unrelated to the target information of the K songs, such as: after the electronic device obtains all the songs included in the N song information, it can randomly select P songs from all the songs included in the N song information to generate the target recommendation list.
[0065] In the disclosed embodiment, optionally, before determining, based on the target information of K songs historically played by the first song information source among the N song information sources, P songs matching the K songs among all the songs included in the N song information sources, the method further includes:
[0066] Obtain data reading permission for each song information source in the first song information source.
[0067] In this optional implementation, before the electronic device obtains the historical playback records of a song source, it needs to first obtain data reading permission for the song source. That is to say, before obtaining data reading permission for the song source, the electronic device cannot obtain the historical playback records of the song source.
[0068] An electronic device can obtain data reading permissions for multiple song sources. In specific implementation, for each song source, a corresponding data reading switch can be set in the "settings" function of the electronic device. When the data reading switch is set to on, the electronic device has data reading permissions for the song source; when the data reading switch is set to off, the electronic device does not have data reading permissions for the song source. The setting status of the data reading switch can be set by the system, user, or other device authorization.
[0069] When there are W song information sources among the N song information sources whose data reading switches are set to on, and W is a positive integer, the first song information source may include part or all of the W song information sources.
[0070] In an optional implementation, the first song information source may include only one song information source among the W song information sources. In this case, the electronic device may determine the K songs based only on the historical playback records of the song information source. Optionally, the first song information source may be the song information source with the most or least number of songs played in the first time period among the W song information sources, but is not limited thereto.
[0071] In an optional implementation, the first song information source may include two or more song information sources among the W song information sources. In this case, the electronic device needs to obtain the historical playback records of each song information source included in the first song information source, and then determine the K songs based on the historical playback records of each song information source included in the first song information source.
[0072] In the embodiment of the present disclosure, each of the N song information sources includes an independent song library. Therefore, there may be a situation where the song libraries of different song information sources include some of the same songs, and the P songs determined by the electronic device include a second song corresponding to at least two song information sources, while the second song included in the target recommendation list belongs to only one of the at least two song information sources, which is recorded as the target song information source.
[0073] Optionally, before generating the target recommendation list, the method further includes:
[0074] Detecting whether a second song corresponds to at least two song information sources, the second song being any song among the P songs;
[0075] The generating the target recommendation list comprises:
[0076] In the case where the second song corresponds to at least two song information sources, entering the second song included in the target song information source among the at least two song information sources into the target recommendation list;
[0077] Among them, the song recommendation priority of the target song information source is higher than the song recommendation priority of other song information sources among the at least two song information sources.
[0078] In this optional implementation, each of the N song information sources corresponds to a song recommendation priority, and the song recommendation priority corresponding to each song information source can be set by the user or the system. Further, in the case where the song recommendation priority corresponding to the song information source is set by the system, the system can set the song recommendation priority of each song information source according to the number of songs played by each song information source within the second preset time length by the electronic device. For example, if the number of songs played by song information source a within the second preset time length is greater than the number of songs played by song information source b within the second preset time length, the system can set the song recommendation priority of song information source a to be higher than the song recommendation priority of song information source b.
[0079] In this optional implementation, after determining P songs, the electronic device can identify the number of song sources corresponding to each song of the P songs; if the number of song sources corresponding to the second song in the P songs is greater than 1, the target song source to which the second song included in the target recommendation list belongs can be determined based on the song recommendation priority of each song source corresponding to the second song. Specifically, the song source with the highest song recommendation priority among the at least two song sources corresponding to the second song can be determined as the song source to which the second song included in the target recommendation list belongs, but is not limited to this. In this way, the songs included in the target recommendation list can be further adapted to the user's listening habits, thereby further improving the satisfaction with song playback.
[0080] It should be noted that, in this optional implementation, if the song information source includes songs, then there is a corresponding relationship between the song information source and the songs. For example, if song information source a and song information source b both include song 1, then song 1 corresponds to song information source a and song information source b.
[0081] Further, after determining the target song information source to which the second song included in the target recommendation list belongs, the electronic device may further identify the number of the second songs included in the target song information source; when the target song information source includes M second songs, and M is an integer greater than 1, the electronic device may determine that the second song included in the target recommendation list is the target song among the M second songs according to the ranking of the M second songs, wherein the ranking may be a ranking of the popularity of the song played or a ranking of the popularity of the singer of the song, etc. Optionally, the target song may be the second song with the highest ranking among the M second songs, but is not limited thereto.
[0082] For ease of understanding, the following examples are provided:
[0083] Assume that the N song information sources include song information source c and song information source d, the song library of song information source c includes song 1, song 2, song 3 sung by the first singer, song 3 and song 4 sung by the second singer, and the song library of song information source d includes song 1, song 3, song 4, song 5 and song 6. In addition, assume that the song recommendation priority of song information source c is higher than that of song information source d; song 3 sung by the first singer is ranked higher than song 3 sung by the second singer.
[0084] If the P songs determined by the electronic device include song 3, the electronic device may first identify the number of song information sources corresponding to song 3. In this example, the number of song information sources corresponding to song 3 is greater than 1, specifically, the song information sources corresponding to song 3 include song information source c and song information source d.
[0085] If the electronic device determines the song source with the highest song recommendation priority among the song sources corresponding to the song as the song source to which the songs included in the target recommendation list belong, then in this example, the electronic device can determine song source c as the song source to which song 3 included in the target recommendation list belongs.
[0086] In this example, since the song information source c includes two songs 3, namely, song 3 sung by the first singer and song 3 sung by the second singer, the electronic device can determine the songs included in the target recommendation list according to the ranking of the songs. If the electronic device determines the songs in the target recommendation list from the song with the highest ranking, then song 3 sung by the first singer can be determined as song 3 included in the target recommendation list.
[0087] It can be seen that in this example, after the electronic device determines that the target recommendation list includes song 3, it can include song 3 sung by the first singer in the song information source c into the target recommendation list.
[0088] It should be noted that, in other embodiments, when the second song exists among the P songs, the electronic device may also include all the second songs included in the at least two song sources into the target recommendation list. For example, taking the above-mentioned song source c and song source d as examples, the target recommendation list may include song 3 sung by the first singer and song 3 and song 4 sung by the second singer in song source c, as well as song 3 in song source d.
[0089] In the embodiment of the present disclosure, optionally, N is greater than 1, and the first song is a song included in the first song source of the N song sources; after the first song in the playback target recommendation list, the method further includes:
[0090] receiving a second voice input;
[0091] In the case where the second voice input indicates switching the song information source of the first song, detecting whether a second song information source of the N song information sources includes the first song;
[0092] In the case where the second song information source includes the first song, the first song included in the second song information source is played.
[0093] In this optional implementation, in a first implementation, the second song information source may be indicated by the second voice input; in a second implementation, the second song information source may not be indicated by the second voice input. For ease of understanding, examples are provided as follows:
[0094] For the first implementation method, when the electronic device receives voice input such as "change the first song in the second song source", the electronic device can detect whether the second song source includes the first song. If so, the first song included in the second song source will be played. Otherwise, the electronic device can prompt the user that the second song source does not include the first song, or make no response and continue to play the first song included in the first song source.
[0095] For the second implementation, when the electronic device receives a voice input such as "change a version", it can identify the number of song information sources corresponding to the first song. If the number of song information sources corresponding to the first song is greater than 1, it can poll to detect whether any song information source other than the first song information source in the song information source corresponding to the first song includes the first song. If it does, the first song included in the second song information source is played. Otherwise, the electronic device can prompt the user that the second song information source does not include the first song, or, without responding, continue to play the first song included in the first song information source. If the number of song information sources corresponding to the first song is equal to 1, that is, the first song only corresponds to the first song information source, the electronic device can prompt the user that the second song information source does not include the first song, or, without responding, continue to play the first song included in the first song information source.
[0096] It should be understood that after the electronic device finishes playing the first song included in the second song source, it can continue to play the songs included in the target recommendation list, but is not limited to this.
[0097] It can be seen that, through the above method, when the first song corresponds to at least two song information sources, the user can trigger the electronic device to play the first song included in another song information source, thereby improving the flexibility of song playing.
[0098] It should be noted that the various optional implementations introduced in the embodiments of the present disclosure may be implemented in combination with each other or may be implemented separately if they do not conflict with each other, and the embodiments of the present disclosure are not limited to this.
[0099] For ease of understanding, the following examples are provided:
[0100] Step 1: Identify the song source (or source resource) permissions that the electronic device has, such as being able to play the resources of application a or the resources of application b.
[0101] Step 2: For electronic devices with multiple signal sources, the signal source song recommendation priority can be set to deal with the situation where different signal sources have the same songs.
[0102] Step three, determine all the source song information of the electronic device, and sort the same songs from different sources according to the priority input by the user, and then generate multiple song recommendation lists based on the user's historical behavior based on this total source song list. For example, a list of new and popular songs of the singer that the user often listens to will be generated, a list of rock music will be generated based on the genres that the user often listens to, such as rock, and a recommendation list will be generated based on the popular theme songs and interludes of the user's recent TV series, movies, animation and other video resources.
[0103] Step 4. When a user issues a song listening instruction to the smart speaker without a clear playback target, such as "play a song" or "let's play a song", the electronic device can identify the intention of recommending songs and return the recommended songs to the user for playback based on the generated recommendation list.
[0104] Step 5. The electronic device supports the need to switch the playback source for songs. For the recommended songs being played, the user can issue commands such as "change to another version" or "play version x", which triggers the electronic device to search for songs from the desired source. If there are resources, the song can be switched to the desired source. If not, the user can be prompted "version x does not have the current song, sorry, we can provide the corresponding song from version y."
[0105] The song recommendation method of the disclosed embodiment can be implemented by a recommendation system installed in an electronic device. In this case, the electronic device can be regarded as a third developer of the recommendation system. Different third-party developers who access the recommendation system have different song source library permissions. The recommendation system performs source isolation processing to be compatible with the different song recommendation needs of all developer user groups who access the system, thereby being able to adapt to the song recommendation needs of all developers.
[0106] See also Figure 2 , Figure 2FIG. 1 is a structural diagram of a song playing device according to an exemplary embodiment. Figure 2 As shown, the song playing device 200 includes:
[0107] A first receiving module 201, configured to receive a first voice input;
[0108] A first playing module 202, configured to play the first song in the target recommendation list when the first voice input indicates to play a song but does not include song information;
[0109] The target recommendation list is generated based on N song information sources included in the electronic device, each of the N song information sources includes an independent song library, and N is a positive integer.
[0110] Optionally, the song playing device 200 further includes:
[0111] An identification module, used for identifying the N song information sources included in the electronic device;
[0112] A determination module, configured to determine, based on target information of K songs historically played by a first song information source among the N song information sources, P songs matching the K songs among all songs included in the N song information sources;
[0113] A generating module, used for generating the target recommendation list, wherein the target recommendation list includes the P songs;
[0114] Wherein, the first song information source includes at least one song information source among the N song information sources; K and P are both positive integers.
[0115] Optionally, the song playing device 200 further includes:
[0116] The acquisition module is used to obtain the data reading permission of each song information source in the first song information source.
[0117] Optionally, the song playing device 200 further includes:
[0118] A detection module, used for detecting whether a second song corresponds to at least two song information sources, wherein the second song is any song among the P songs;
[0119] The generating module is used for, when the second song corresponds to at least two song information sources, entering the second song included in the target song information source among the at least two song information sources into a target recommendation list, wherein the target recommendation list includes the P songs;
[0120] Among them, the song recommendation priority of the target song information source is higher than the song recommendation priority of other song information sources among the at least two song information sources.
[0121] Optionally, N is greater than 1, and the first song is a song included in the first song source of the N song sources; the song playing device 200 further includes:
[0122] A second receiving module, used to receive a second voice input;
[0123] A detection module, configured to detect whether a second song information source of the N song information sources includes the first song when the second voice input indicates switching the song information source of the first song;
[0124] The second playing module is used to play the first song included in the second song information source when the second song information source includes the first song.
[0125] The song playing device 200 can implement each process in the embodiment of the method disclosed herein and achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0126] See also Figure 3 , Figure 3 FIG. 1 is a structural diagram of an electronic device according to an exemplary embodiment. Figure 3 As shown, the electronic device 300 includes: a processor 301, a memory 302, a user interface 303, a transceiver 304 and a bus interface.
[0127] In the embodiment of the present disclosure, the electronic device 300 further includes: a program stored in the memory 302 and executable on the processor 301, and when the program is executed by the processor 301, the following steps are implemented:
[0128] Receiving a first voice input via the user interface 303;
[0129] When the first voice input indicates to play a song but does not include song information, play the first song in the target recommendation list;
[0130] The target recommendation list is generated based on N song information sources included in the electronic device, each of the N song information sources includes an independent song library, and N is a positive integer.
[0131] Optionally, when the program is executed by the processor 301, the following steps may also be implemented:
[0132] Identifying the N song information sources included in the electronic device;
[0133] Determine, according to target information of K songs historically played by a first song information source among the N song information sources, P songs matching the K songs among all songs included in the N song information sources;
[0134] Generate the target recommendation list, wherein the target recommendation list includes the P songs;
[0135] Wherein, the first song information source includes at least one song information source among the N song information sources; K and P are both positive integers.
[0136] Optionally, when the program is executed by the processor 301, the following steps may also be implemented:
[0137] Obtain data reading permission for each song information source in the first song information source.
[0138] Optionally, when the program is executed by the processor 301, the following steps may also be implemented:
[0139] Detecting whether a second song corresponds to at least two song information sources, the second song being any song among the P songs;
[0140] In the case where the second song corresponds to at least two song information sources, entering the second song included in the target song information source among the at least two song information sources into a target recommendation list, wherein the target recommendation list includes the P songs;
[0141] Among them, the song recommendation priority of the target song information source is higher than the song recommendation priority of other song information sources among the at least two song information sources.
[0142] Optionally, N is greater than 1, and the first song is a song included in the first song source of the N song sources; after the first song in the playback target recommendation list, the program can also implement the following steps when executed by the processor 301:
[0143] Receiving a second voice input via the user interface 303;
[0144] In the case where the second voice input indicates switching the song information source of the first song, detecting whether a second song information source of the N song information sources includes the first song;
[0145] In the case where the second song information source includes the first song, the first song included in the second song information source is played.
[0146] exist Figure 3In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 301 and various circuits of memory represented by memory 302 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 304 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 303 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0147] The processor 301 is responsible for managing the bus architecture and general processing, and the memory 302 can store data used by the processor 2601 when performing operations.
[0148] The electronic device 300 can implement each process implemented by the electronic device in the above method embodiment, and will not be described again here to avoid repetition.
[0149] The disclosed embodiment also provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, each process of the above-mentioned song playing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0150] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present disclosure and the claims, all of which are within the protection of the present disclosure.
Claims
1. A song playing method, applied to an electronic device, characterized in that: The method comprises: receiving a first voice input; Identifying N song information sources included in the electronic device; Determine, according to target information of K songs historically played by a first song information source among the N song information sources, P songs matching the K songs among all songs included in the N song information sources; Generate a target recommendation list, wherein the target recommendation list includes the P songs; When the first voice input indicates to play a song but does not include song information, play the first song in the target recommendation list; The target recommendation list is generated based on N song information sources included in the electronic device, each of the N song information sources includes an independent song library, the first song information source includes at least one song information source of the N song information sources, and K, P and N are positive integers; The K songs played in the history of the first song source are any of the following: The K songs in the first song information source whose playing end time is closest to the first time; K songs in the first song information source whose playing end time is closest to the first time and whose playing time is longer than the first preset time; The first moment is the moment when the electronic device receives the first voice input.
2. The method according to claim 1, characterized in that Before determining, based on the target information of K songs played historically by a first song information source among the N song information sources, P songs matching the K songs among all songs included in the N song information sources, the method further includes: Obtain data reading permission for each song information source in the first song information source.
3. The method according to claim 1, characterized in that Before generating the target recommendation list, the method further includes: Detecting whether a second song corresponds to at least two song information sources, the second song being any song among the P songs; The generating the target recommendation list comprises: In the case where the second song corresponds to at least two song information sources, entering the second song included in the target song information source among the at least two song information sources into the target recommendation list; Among them, the song recommendation priority of the target song information source is higher than the song recommendation priority of other song information sources among the at least two song information sources.
4. The method according to claim 1, characterized in that: N is greater than 1, and the first song is a song included in the first song source of the N song sources; after the first song in the play target recommendation list, the method further includes: receiving a second voice input; In the case where the second voice input indicates switching the song information source of the first song, detecting whether a second song information source of the N song information sources includes the first song; In the case where the second song information source includes the first song, the first song included in the second song information source is played.
5. A song playing device, applied to electronic equipment, characterized in that: The song playing device comprises: A first receiving module, used to receive a first voice input; An identification module, used for identifying N song information sources included in the electronic device; A determination module, configured to determine, based on target information of the K songs played historically by the electronic device, P songs that match the K songs among all the songs included in the N song information sources; A generating module, used for generating a target recommendation list, wherein the target recommendation list includes the P songs; A first playing module, configured to play the first song in the target recommendation list when the first voice input indicates to play a song but does not include song information; The target recommendation list is generated based on N song information sources included in the electronic device, each of the N song information sources includes an independent song library, the first song information source includes at least one song information source of the N song information sources, and K, P and N are positive integers; The K songs played in the history of the first song source are any of the following: The K songs in the first song information source whose playing end time is closest to the first time; K songs in the first song information source whose playing end time is closest to the first time and whose playing time is longer than the first preset time; The first moment is the moment when the electronic device receives the first voice input.
6. The song playing device according to claim 5, characterized in that: The song playing device also includes: The acquisition module is used to obtain the data reading permission of each song information source in the first song information source.
7. The song playing device according to claim 5, characterized in that: The song playing device also includes: A detection module, used for detecting whether a second song corresponds to at least two song information sources, wherein the second song is any song among the P songs; The generating module is used for entering the second song included in the target song source in the at least two song sources into a target recommendation list when the second song corresponds to at least two song sources, and the target recommendation list includes the P songs; Among them, the song recommendation priority of the target song information source is higher than the song recommendation priority of other song information sources among the at least two song information sources.
8. The song playing device according to claim 5, characterized in that: N is greater than 1, and the first song is a song included in the first song source of the N song sources; the song playing device further includes: A second receiving module, used to receive a second voice input; A detection module, configured to detect whether a second song information source of the N song information sources includes the first song when the second voice input indicates switching the song information source of the first song; The second playing module is used to play the first song included in the second song information source when the second song information source includes the first song.
9. An electronic device, characterized in that: It includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the song playing method as described in any one of claims 1 to 4 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by the processor, the steps of the song playing method as described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Music playing control method and device based on brain waves
CN105824888A
Voice interaction-based audio processing method, device and audio playing equipment
CN107342082A
Vehicle-mounted music playing method and vehicle-mounted equipment
CN108766474A
Song recommendation list generation method, medium, apparatus, and computing device
CN109376265A
Music playing method and device, storage medium and air conditioner
CN109582819A
