Music collection method and terminal equipment
By automatically identifying and collecting repeated music in the audio playback device, the problem of cumbersome music collection operations in the prior art is solved, improving the user experience and simplifying the collection process.
Patent Information
- Application Number
- CN202411063219.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, music collection operations are cumbersome and the user experience is poor. Users need to manually click on the Little Red Heart or other logo on the playback interface to collect it.
In the audio playback device, by obtaining the identification information and playback duration of the currently played music, marking it as an effective playback song, and obtaining the identification information of the N adjacent effective playback songs, identifying whether there are duplicate songs, and automatically performing the collection operation.
Users can automatically collect their favorite music without manual operations, which improves the user experience, simplifies the collection process, and avoids increased equipment complexity and cost.
Smart Images

Figure CN119128203A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent control, and in particular relates to a music collection method and terminal equipment. Background Art
[0002] With the development of wireless communication systems, more and more users choose wireless music players, such as Bluetooth headsets, to meet the user's demand for beautiful and convenient use experience. When current users use Bluetooth headsets or speakers to listen to music, they always play it through a music player on a smart terminal (such as a smart phone, tablet computer, etc.). The music players installed in most of these smart terminals have a music collection function. For example, a little red heart is set on the interface of the player. After clicking it, the song being played will be added to the collection list, and users can collect their favorite music. When operating in this way, every time the user hears a favorite song, he must open the music player on the playback end and click the little red heart or other logo on the playback page to collect it. The operation is cumbersome and the user experience is not good. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a music collection method and a terminal device to solve the problem of cumbersome operation and poor experience in collecting music in the prior art.
[0004] A first aspect of an embodiment of the present invention provides a music collection method, which is applied to an audio playback device with a Bluetooth function. The music collection method includes:
[0005] After receiving the music playing instruction, obtaining the identification information of the currently playing music, and recording the playing time of the currently playing music;
[0006] When the playing time is longer than the preset time, marking the currently playing music as a valid playing music;
[0007] Obtain identification information of N validly played music pieces adjacent to the currently played music piece;
[0008] Identify, according to the identification information, whether there is a song in the N validly played songs that is the same as the currently played song;
[0009] If there is a piece of music that is the same as the currently playing music among the N validly playing music pieces, an operation of collecting the currently playing music piece is performed.
[0010] A second aspect of an embodiment of the present invention provides a music collection device, wherein the music collection device has a Bluetooth function and includes:
[0011] The information acquisition module is used to obtain the identification information of the currently playing music after receiving the music playing instruction, and record the playing time of the currently playing music; and is also used to obtain the identification information of N valid playing music adjacent to the currently playing music;
[0012] A marking module, used for marking the currently playing music as a valid playing music when the playing time is longer than a preset time;
[0013] An identification module, used for identifying whether there is a song identical to the currently playing song among the N validly played songs according to the identification information;
[0014] The collection module is used to collect the currently playing music when there is a music that is the same as the currently playing music among the N validly playing music.
[0015] A third aspect of an embodiment of the present invention provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in any one of the first aspects above are implemented.
[0016] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the first aspects above are implemented.
[0017] A fifth aspect of an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the steps of the music collection method described in the first aspect.
[0018] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: after receiving a music playback instruction, the identification information of the currently playing music is obtained, and the playback duration of the currently playing music is recorded; when the playback duration is greater than the preset duration, the currently playing music is marked as a validly played music; at the same time, the identification information of N validly played music adjacent to the currently playing music is obtained; according to the identification information of each music, it is determined whether there is a music that is the same as the currently playing music among the N validly played music; if so, the operation of collecting the currently playing music is performed. In the above manner, when a user hears his favorite music, he can automatically collect the music, avoiding the need for the user to open the playback interface and perform manual collection operations every time, thereby improving the user experience.
[0019] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 1 is a schematic diagram of the implementation process of the music collection method provided in the first embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of a music collection device provided in Embodiment 2 of the present invention;
[0023] Figure 3 It is a schematic diagram of a music playing device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0027] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0028] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0029] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0030] In the embodiment of the present application, after receiving the music playing instruction, the audio playback device with Bluetooth function obtains the identification information of the currently playing music and records the playing time of the currently playing music; when the playing time is greater than the preset time, the currently playing music is marked as a valid playing music; at the same time, the identification information of N valid playing music adjacent to the currently playing music is obtained; according to the identification information of each music, it is identified whether there is a music that is the same as the currently playing music in the N valid playing music; if there is, the operation of collecting the currently playing music is performed. In the above manner, when the user hears the music he likes, he can automatically collect the music, avoiding the need for the user to open the playback interface to perform manual collection operations every time, thereby improving the user experience.
[0031] See also Figure 1 , Figure 1 1 is a schematic diagram of a music collection method according to an embodiment of the present application. The music collection method is applied to an audio playback device with a Bluetooth function and may include:
[0032] Step 101, after receiving a music playing instruction, obtain identification information of the currently playing music and record the playing time of the currently playing music.
[0033] The method provided in this application is mainly applied to audio playback devices with Bluetooth function, such as smart phones, Bluetooth headsets, Bluetooth speakers, etc. When the audio playback device obtains the music playback instruction, it starts to continuously record the playback time of the currently played music. The music mentioned in this solution includes pure music, songs, etc., and may also include audio information such as recordings in a user-specified format.
[0034] The operation of the present solution is illustrated by a specific example. For example, when the audio playback device is a Bluetooth headset, the Bluetooth headset is first paired with an audio output terminal (such as a smart phone or other terminal), and a music playback instruction issued by the audio output terminal is received to start playing the music and obtain the identification information and playback time of the currently played music.
[0035] In another embodiment, the audio playback device may also be a device with an audio output function such as a smart phone, a tablet computer, or a smart watch. In this case, the music playback instruction may be an audio playback instruction issued by the user, such as opening a music playback APP and playing any song therein. In this case, the smart phone may or may not turn on the Bluetooth function. Whether to turn on the Bluetooth function is selected by the user. For example, if the user chooses to play music in an external speaker format, the Bluetooth device may not be turned on. In this case, the smart phone obtains the identification information of the currently playing music and records the playing time of the music.
[0036] Step 102: When the playing time is longer than a preset time, the currently playing music is marked as a valid playing music.
[0037] In this application, if the playing time of the current music recorded by the audio playback device is longer than the preset time, it means that the user is more interested in the currently playing music, and the music is marked as a valid playing music. The preset time can be 30S or 15S, etc. The preset time can be set by the user according to habit, or according to the duration of the played music, for example, the preset time is set to 10% or 5% of the total duration of the currently playing music, etc. Of course, the user can also formulate rules to set the above preset time.
[0038] Step 103, obtaining identification information of N validly played music pieces adjacent to the currently played music piece.
[0039] In the present application, the audio playback device obtains N songs adjacent to the currently playing song that are marked as validly played and their corresponding identification information. The number of songs marked as validly played here can be set by the user, such as 3 songs marked as validly played, or the number of songs marked as validly played within a specified time interval is obtained according to the time period distribution of the user's listening to music. For example, when the user listens to music almost every day, the identification information of 5 or 10 songs marked as validly played within 24 hours (or 48 hours, etc.) is obtained. The identification information here can be the name of the song, the version of the song, or an identifying melody or identifying lyrics in the song, etc.
[0040] Step 104: Identify whether there is a song that is the same as the currently playing song among the N validly played songs according to the identification information.
[0041] Step 105: If there is a song that is the same as the currently playing song among the N validly playing songs, then the operation of collecting the currently playing song is performed.
[0042] The identification information of the currently playing music is compared with the identification information of the obtained music marked as validly played music one by one to identify whether there is a music that is the same as the currently playing music among the N validly played music obtained. The same here can mean that the name of the music is exactly the same or the similarity reaches a certain proportion, such as 80%, 90%, etc. If there is music that is the same as the currently playing music among the music marked as validly played, it is considered that the user has listened to the currently playing music repeatedly, so the operation of collecting the currently playing music is performed.
[0043] When performing the collection operation, if the audio playback device is a terminal such as a smart phone or a tablet computer, the program for collecting music can be directly run. If the audio playback device is a Bluetooth headset, a Bluetooth speaker or other device, a collection instruction is sent to the corresponding audio source output terminal (such as a smart phone) to instruct the audio source output terminal to collect the currently playing music.
[0044] In the embodiment of the present application, after receiving the music playing instruction, the audio playing device with Bluetooth function obtains the identification information of the currently playing music and records the playing time of the currently playing music; when the playing time is greater than the preset time, the currently playing music is marked as a valid playing music; at the same time, the identification information of N valid playing music adjacent to the currently playing music is obtained; according to the identification information of each music, it is identified whether there is a music that is the same as the currently playing music in the N valid playing music; if there is, the operation of collecting the currently playing music is performed. In the above manner, the user can automatically collect the music when hearing the music he likes, avoiding the need for the user to open the playing interface to manually collect the music every time, improving the user experience without increasing the complexity and cost of the device.
[0045] In another embodiment provided by the present application, the identification information includes a music title and a singer name. Accordingly, the step of identifying whether there is a music that is the same as the currently playing music in the N validly played music according to the identification information includes:
[0046] Determine whether there is a song among the N validly played songs with the same song name and singer name as the currently played song.
[0047] In another embodiment provided by the present application, the step of identifying whether there is a song identical to the currently playing song in the N validly played songs according to the identification information includes:
[0048] Extracting keywords from the song title and / or singer name;
[0049] It is determined whether there is any one or more pieces of music among the N validly played music, the keywords of the identification information of which have a degree of overlap with the keywords of the identification information of the currently played music being greater than a preset value.
[0050] In this application, a specified algorithm can be used to extract keywords from the identification information of effectively played music, and then compare them. The above-mentioned specified algorithm can be preset according to the user group, and is not limited here. The extracted keywords are compared one by one. For example, if the extracted keywords are the version number and the singer's name of the music, the keywords of the currently playing music are compared one by one with the keywords of the N effectively played music obtained. When the overlap between the two reaches a preset value (such as 80%, 90%, etc.), it is determined that the same music exists.
[0051] In another embodiment provided by the present application, the music collection method further includes:
[0052] Monitor the time interval when the user switches from the currently playing music to the next music within a specified time period;
[0053] The preset duration is set according to the time interval.
[0054] In this application, the above-mentioned preset duration is used to determine whether the played music needs to be marked as a valid played music. The preset duration here can be set according to the duration of the user switching music. For example, if it is checked that the music listened to is all long music, such as a song lasting more than 5 minutes (10 minutes, etc.), it is considered that the user prefers long music, and the time it takes for the user to finish listening to a piece of music is generally longer. At this time, the time to switch to the next piece will also be longer. The preset duration can be appropriately set to a longer duration, such as 30 seconds, 1 minute, etc. Similarly, if it is detected that the music listened to by the user is short, the preset duration can also be set to a shorter duration, such as 15 seconds.
[0055] In another embodiment provided by the present application, after marking the currently playing music as a valid playing music, the method further includes:
[0056] Establishing a mapping table between the effectively played music and its corresponding identification information;
[0057] The mapping table is stored.
[0058] In another embodiment provided by the present application, the music collection method further includes:
[0059] Detecting the number of songs stored in the mapping table or the memory occupancy rate of the audio playback device;
[0060] When the number of the music pieces reaches a specified value or the memory occupancy rate of the audio playback device reaches a specified percentage, the first stored music piece is overwritten by the newly stored music piece.
[0061] In this application, the music marked as valid music and its corresponding identification information are recorded in a mapping table and stored one by one. This information can be stored in the memory of the audio playback device, or it can be written into the flash memory of the audio playback device. Every time the audio playback device is turned off, the memory information will be written into the flash for storage. This information will not be cleaned up, and it will continue to accumulate. Of course, according to the size of the flash of the audio playback device, there will be a storage limit, such as storing up to 1,000 song information; if the limit is exceeded or the memory occupancy rate reaches the limit, it will be overwritten in order, that is, the new data information will overwrite the original first data information to continuously update the stored music information.
[0062] The embodiment provided by the present application liberates the user from the terminal from the perspective of user experience, that is, the user does not need to open the terminal player every time he hears a good song and collect the song in a specific interface, but only needs to listen to it repeatedly once or multiple times to collect it. In addition, the present application achieves the purpose of automatically judging whether the user likes to listen to the music through secondary processing of the music information, which has very strong operability and flexibility.
[0063] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0064] Another embodiment of the present application also provides a music collection device, such as Figure 2 As shown, the music collection device 2 provided in the embodiment of the present application has a Bluetooth function and includes:
[0065] The information acquisition module 21 is used to obtain the identification information of the currently playing music after receiving the music playing instruction, and record the playing time of the currently playing music; and is also used to obtain the identification information of N valid playing music adjacent to the currently playing music;
[0066] The marking module 22 is used to mark the currently playing music as a valid playing music when the playing time is longer than a preset time;
[0067] An identification module 23 is used to identify whether there is a song identical to the currently playing song among the N validly played songs according to the identification information;
[0068] The collection module 24 is used to collect the currently playing music when there is a music that is the same as the currently playing music among the N validly playing music.
[0069] The music collection device 2 also includes:
[0070] The duration setting module is used to monitor the time interval when the user switches from the currently playing music to the next music within a specified time period; and set the preset duration according to the time interval.
[0071] The identification information includes a music title and a singer name. Accordingly, when the identification module 23 identifies whether there is a music that is the same as the currently playing music in the N validly played music according to the identification information, it is specifically used to:
[0072] Determine whether there is a song among the N validly played songs with the same song name and singer name as the currently played song.
[0073] When the identification module 23 identifies whether there is a song identical to the currently playing song in the N validly played songs according to the identification information, it is also used to:
[0074] Extracting keywords from the song title and / or singer name;
[0075] It is determined whether there is any one or more pieces of music among the N validly played music, the keywords of the identification information of which have a degree of overlap with the keywords of the identification information of the currently played music being greater than a preset value.
[0076] The music collection device 2 also includes:
[0077] The storage module is used to establish a mapping table between the effectively played music and its corresponding identification information; and store the mapping table.
[0078] It is also used to detect the number of songs stored in the mapping table or the memory occupancy rate of the audio playback device;
[0079] When the number of the music pieces reaches a specified value or the memory occupancy rate of the audio playback device reaches a specified percentage, the first stored music piece is overwritten by the newly stored music piece.
[0080] In the embodiment of the present application, after receiving the music playing instruction, the audio playing device with Bluetooth function obtains the identification information of the currently playing music and records the playing time of the currently playing music; when the playing time is greater than the preset time, the currently playing music is marked as a valid playing music; at the same time, the identification information of N valid playing music adjacent to the currently playing music is obtained; according to the identification information of each music, it is identified whether there is a music that is the same as the currently playing music in the N valid playing music; if there is, the operation of collecting the currently playing music is performed. In the above manner, the user can automatically collect the music when hearing the music he likes, avoiding the need for the user to open the playing interface to manually collect the music every time, improving the user experience without increasing the complexity and cost of the device.
[0081] Figure 3 This is a schematic diagram of the structure of an audio playback device provided in one embodiment of the present application. Figure 3 As shown, the audio playback device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one is shown in the figure) a processor, a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, and when the processor 30 executes the computer program 32, the steps of any of the above-mentioned music collection method embodiments are implemented.
[0082] The audio playback device 3 may be a desktop computer, a notebook, a PDA, or other Bluetooth device with an audio playback function. The audio playback device may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of the audio playback device 3 and does not constitute a limitation on the audio playback device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0083] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0084] In some embodiments, the memory 31 may be an internal storage unit of the audio playback device 3, such as a hard disk or memory of the audio playback device 3. In other embodiments, the memory 31 may also be an external storage device of the audio playback device 3, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the audio playback device 3. In one embodiment, the memory 31 may also include both an internal storage unit and an external storage device of the audio playback device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0085] For example, the audio playback device can be a station (ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a TV set-top box (STB), a customer premises equipment (CPE) and / or other devices for communicating on a wireless system and a next-generation communication system, such as a mobile terminal in a 5G network or a mobile terminal in a future evolved public land mobile network (PLMN) network, etc.
[0086] The communication module can provide communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to network devices. The communication module can be one or more devices integrating at least one communication processing module. The communication module can include an antenna, which can have only one array element or an antenna array including multiple array elements. The communication module can receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signals, and send the processed signals to the processor. The communication module can also receive the signal to be sent from the processor, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0087] The power management module can receive input from a battery and / or a charger to power the processor, memory, and communication module, etc.
[0088] It should be noted that the above Figure 3 It does not constitute a limitation on the structure of the audio playback device 3, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the audio playback device 3 may also have a display screen, indicator lights, a motor, controls (such as buttons), a gyroscope sensor, an acceleration sensor, etc.
[0089] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0090] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0091] An embodiment of the present application also provides an audio playback device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0092] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0093] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0094] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / audio playback device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, RandomAccess Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0095] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0096] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0097] In the embodiments provided in the present application, it should be understood that the disclosed device / audio playback equipment and method can be implemented in other ways. For example, the device / audio playback equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0098] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0099] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A music collection method, characterized in that: Applied to an audio playback device with Bluetooth function, the music collection method comprises: After receiving the music playing instruction, obtaining the identification information of the currently playing music, and recording the playing time of the currently playing music; When the playing time is longer than the preset time, marking the currently playing music as a valid playing music; Obtain identification information of N validly played music pieces adjacent to the currently played music piece; Identify, according to the identification information, whether there is a song in the N validly played songs that is the same as the currently played song; If there is a piece of music that is the same as the currently playing music among the N validly playing music pieces, an operation of collecting the currently playing music piece is performed.
2. The music collection method according to claim 1, characterized in that: The identification information includes a music title and a singer name. Accordingly, the step of identifying whether there is a music that is the same as the currently playing music in the N validly played music according to the identification information includes: Determine whether there is a song among the N validly played songs with the same song name and singer name as the currently played song.
3. The music collection method according to claim 2, characterized in that: The step of identifying whether there is a song identical to the currently playing song in the N validly played songs according to the identification information comprises: Extracting keywords from the song title and / or singer name; It is determined whether there is any one or more pieces of music among the N validly played music, the keywords of the identification information of which have a degree of overlap with the keywords of the identification information of the currently played music being greater than a preset value.
4. The music collection method according to claim 1, characterized in that: The music collection method further comprises: Monitor the time interval when the user switches from the currently playing music to the next music within a specified time period; The preset duration is set according to the time interval.
5. The music collection method according to claim 1, characterized in that: After marking the currently playing music as a valid playing music, the method further includes: Establishing a mapping table between the effectively played music and its corresponding identification information; The mapping table is stored.
6. The music collection method according to claim 5, characterized in that: The music collection method further comprises: Detecting the number of songs stored in the mapping table or the memory occupancy rate of the audio playback device; When the number of the music pieces reaches a specified value or the memory occupancy rate of the audio playback device reaches a specified percentage, the first stored music piece is overwritten by the newly stored music piece.
7. A music collection device, characterized in that: The music collection device has a Bluetooth function and includes: The information acquisition module is used to obtain the identification information of the currently playing music after receiving the music playing instruction, and record the playing time of the currently playing music; and is also used to obtain the identification information of N valid playing music adjacent to the currently playing music; A marking module, used for marking the currently playing music as a valid playing music when the playing time is longer than a preset time; An identification module, used for identifying whether there is a song identical to the currently playing song among the N validly played songs according to the identification information; The collection module is used to collect the currently playing music when there is a music that is the same as the currently playing music among the N validly playing music.
8. The music collection device according to claim 7, characterized in that: The music collection device also includes: The duration setting module is used to monitor the time interval when the user switches from the currently playing music to the next music within a specified time period; and set the preset duration according to the time interval.
9. An audio playback device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
