Music playing method and device, and storage medium
By dynamically adjusting the music playlist based on the user's motion status information, the problem of existing music players being unable to match motion status is solved, achieving dynamic matching between music and motion status, thus improving the exercise effect and user experience.
Patent Information
- Application Number
- PCT/CN2025/092686
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-20
- Filing Date
- 2025-04-30
- Publication Date
- 2025-12-26
AI Technical Summary
Existing music players or apps cannot dynamically match the user's exercise status during exercise, resulting in music that is not suitable for the exercise rhythm, affecting the exercise effect and mood.
By acquiring the user's current motion status information, the music list is dynamically adjusted to match the motion status, including generating the music list locally on the terminal or on the server, and displaying the currently playing music in real time on the interface.
It achieves dynamic matching between music and exercise status, providing a customized exercise experience, meeting individual and emotional needs, and improving exercise results and user experience.
Smart Images

Figure CN2025092686_26122025_PF_FP_ABST
Abstract
Description
Music playback methods, devices and storage media
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202410805469.6, filed on June 20, 2024, entitled "Method, Device and Storage Medium for Playing Music", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This disclosure relates to the field of computer and network communication technology, and in particular to a music playback method, device and storage medium. Background Technology
[0004] In sports such as running, cycling, and mountain climbing, most users choose rhythmic music to help them complete their exercise plans.
[0005] Currently, music players or music apps on mobile devices offer a large music library, allowing users to select more energetic and rhythmic music to create workout playlists, or choose preset playlists to selectively play before exercising.
[0006] However, once users create a custom playlist or select a preset playlist, the songs in the playlist are fixed and may not be suitable for the exercise process, affecting the exercise effect or even the mood, resulting in an unsatisfactory experience. Summary of the Invention
[0007] This disclosure provides a music playback method, device, and storage medium to play music that matches the user's current movement state during exercise.
[0008] In a first aspect, embodiments of this disclosure provide a music playback method applied to a terminal, the method comprising:
[0009] Obtain the current motion state information of the object and display the current motion state information on the interface;
[0010] Obtain the music list based on the current motion status information;
[0011] The system continuously monitors whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, the system plays music included in the music list and displays the currently playing music on the interface.
[0012] Secondly, this disclosure provides a music playback method applied to a server, the method comprising:
[0013] Receive current motion status information sent by the terminal;
[0014] The music list is determined based on the current motion status information;
[0015] The music included in the music list is sent to the terminal so that the terminal plays the music included in the music list when it determines that the change in the current motion state information is within a preset threshold.
[0016] Thirdly, embodiments of this disclosure provide a music playback device, including:
[0017] A motion state information acquisition unit is used to acquire the current motion state information of an object and display the current motion state information on the interface;
[0018] A music list acquisition unit is used to acquire a music list based on the current motion state information;
[0019] The playback unit is used to determine whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, the music included in the music list is played, and the currently playing music is displayed on the interface.
[0020] Fourthly, embodiments of this disclosure provide a music recommendation device, including:
[0021] The receiving unit is used to receive the current motion status information sent by the terminal;
[0022] The recommendation unit is used to determine a music list based on the current motion state information;
[0023] A sending unit is used to send music included in the music list to the terminal, so that the terminal plays the music included in the music list when it determines that the change amplitude of the current motion state information is within a preset threshold.
[0024] Fifthly, embodiments of this disclosure provide an electronic device, including: at least one processor and a memory;
[0025] The memory stores computer-executed instructions;
[0026] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the music playback method as described in the first aspect and various possible designs of the first aspect, or the music playback method as described in the second aspect and various possible designs of the second aspect.
[0027] Sixthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the music playback method described in the first aspect and various possible designs of the first aspect, or the music playback method described in the second aspect and various possible designs of the second aspect.
[0028] In a seventh aspect, embodiments of this disclosure provide a computer program product, including computer execution instructions, which, when executed by a processor, implement the music playback method described in the first aspect and various possible designs of the first aspect, or the music playback method described in the second aspect and various possible designs of the second aspect.
[0029] The music playback method, device, and storage medium provided in this disclosure acquire the current motion state information of an object through a terminal and display the current motion state information on an interface; acquire a music list based on the current motion state information; determine whether the current motion state information has changed; if the change in the current motion state information is within a preset threshold, play the music included in the music list and display the currently playing music on the interface. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 is an example diagram of a music playback method in the prior art;
[0032] Figure 2 is a schematic flowchart of a music playback method provided in an embodiment of this disclosure;
[0033] Figures 3a, 3b and 3c are schematic diagrams of the terminal interface provided in the embodiments of this disclosure;
[0034] Figure 4 is a schematic flowchart of a music playback method provided in another embodiment of this disclosure;
[0035] Figure 5 is a structural block diagram of a music playback device provided in an embodiment of this disclosure;
[0036] Figure 6 is a structural block diagram of a music recommendation device provided in an embodiment of this disclosure;
[0037] Figure 7 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0039] In sports such as running, cycling, and mountain climbing, most users choose rhythmic music to help them complete their exercise plans.
[0040] Currently, music players or music apps on mobile devices offer a large music library, allowing users to select more energetic and rhythmic music to create workout playlists, or choose preset playlists to selectively play before exercising.
[0041] However, once a user creates a custom playlist or selects a preset playlist, the songs in the playlist are fixed and may not be suitable for the exercise process. In particular, the user's exercise state may change, and the music playing may not match the current exercise rhythm. This causes the user to frequently search for suitable songs or constantly adjust their exercise state, which will ultimately affect the exercise effect and even their mood, resulting in an unsatisfactory experience.
[0042] Some related technologies incorporate AI to provide recommendation functions, which can push music that users may like based on their personal preferences and tastes, combined with a wide range of factors such as popular preferences. For example, commuting music recommendations or fitness music recommendations can solve the needs of discovering and selecting music, but cannot solve the needs of matching exercise status.
[0043] To address the aforementioned technical problems, this disclosure provides a music playback method. The method involves acquiring the current motion state information of an object via a terminal and displaying this information on an interface; obtaining a music list based on the current motion state information; determining whether the current motion state information has changed; and if the change is within a preset threshold, playing music from the music list and displaying the currently playing music on the interface. By acquiring the music list based on the object's current motion state information, this disclosure allows music playback to match the current motion state, providing users with a more personalized and comfortable exercise experience, satisfying individual and emotional needs. Furthermore, the simultaneous display of the current motion state information and the currently playing music on the terminal interface facilitates real-time viewing of the current motion state information for adjusting the exercise state and controlling the playback of the currently playing music.
[0044] The music playback method provided in this disclosure can be implemented by the terminal alone. That is, the terminal can pre-store multiple music tracks and / or pre-configure a preset music generation model locally. Based on the current motion state information, the music list is obtained based on the multiple music tracks stored locally and / or the preset music generation model; then the subsequent judgment and playback process is performed.
[0045] Alternatively, the music playback method provided in this disclosure can also be implemented by the terminal and the server working together, as shown in Figure 1. The server is configured with a music library and / or a preset music generation model. The terminal can send the current motion state information to the server, which will then obtain the music list based on the music library and / or the preset music generation model according to the current motion state information, and return it to the terminal. The terminal will then perform subsequent judgment and playback processes.
[0046] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0047] The music playback method of this disclosure will be described in detail below with reference to specific embodiments.
[0048] Referring to Figure 2, which is a schematic flowchart of a music playback method according to an embodiment of this disclosure, the method of this embodiment can be applied in a terminal, and the music playback method includes:
[0049] S201. Obtain the current motion state information of the object and display the current motion state information on the interface.
[0050] In this embodiment, the terminal can communicate with a wearable device. During any movement, the object can collect current motion state information through the wearable device, which can then send this information to the terminal. Alternatively, the terminal may be equipped with sensors, such as accelerometers or gyroscopes, which can also collect current motion state information during the object's movement. Alternatively, part of the current motion state information may be collected through the wearable device, and part through the terminal's own sensors. Of course, the object's current motion state information can also be obtained through any other possible means.
[0051] The current exercise status information can vary depending on the type of exercise. For example, for running, the current exercise status information may include, but is not limited to, steps, cadence, speed, running distance, running time, and heart rate. This current exercise status information can be displayed on the terminal's interface, as shown in Figure 3a. Optionally, a sports mode can be provided within the music application (APP). Users can select a sports mode before exercising. Once in sports mode, the corresponding interface is displayed, showing the current exercise status information. This sports mode interface can be as shown in Figure 3a.
[0052] S202. Obtain the music list based on the current motion state information.
[0053] In this embodiment, a music list matching the current motion state information can be obtained based on the current motion state information. The music feature parameters include, but are not limited to, one or more of rhythm, intensity, and genre, so that the object can move with the music in the music list and maintain or adjust its motion state, such as maintaining or adjusting the stride frequency to match the music rhythm during running.
[0054] Optionally, the terminal can retrieve a music list from its local storage based on current motion status information. For example, if the terminal has multiple pre-stored music tracks, it can obtain a music list by matching complete tracks and / or music segments from these tracks based on the current motion status information. Alternatively, the terminal may be configured with a pre-defined music generation model, such as a generative intelligence model. Content (AIGC) can generate complete music and / or music fragments based on the current motion state information using a preset music generation model, resulting in a music list; alternatively, the complete music and / or music fragments in the music list may be derived partly from multiple locally stored music tracks and partly from the preset music generation model. Optionally, complete music and / or music fragments may be matched from the multiple locally stored music tracks first. If no complete music and / or music fragments can be matched, or if the number of matched complete music and / or music fragments is less than a preset number, then complete music and / or music fragments may be generated using the preset music generation model. Alternatively, the terminal may adjust the music feature parameters of some music and / or music fragments that do not match the current motion state information to make them match the current motion state information, such as adjusting music feature parameters such as rhythm and / or intensity; or the terminal may also obtain complete music and / or music fragments through other means and add them to the music list.
[0055] Optionally, the terminal can also send its current motion status information to the server, which will then recommend complete music and / or music clips based on the current motion status information, forming a music list, and return it to the terminal. Similarly, the server can be configured with a music library. When recommending music and / or music segments, it can also match complete music and / or music segments from the music library based on the current motion state information to obtain a music list. Alternatively, the server can be configured with a preset music generation model to generate complete music and / or music segments based on the current motion state information, thus obtaining a music list. Or, the complete music and / or music segments in the music list can be generated partly from the music library and partly from the preset music generation model. Optionally, complete music and / or music segments can be matched from the music library first. If no complete music and / or music segments can be matched, or the number of matched complete music and / or music segments is less than a preset number, then complete music and / or music segments can be generated by the preset music generation model. Alternatively, the server can adjust the music feature parameters of some music and / or music segments that do not match the current motion state information to make them match the current motion state information, such as adjusting music feature parameters such as rhythm and / or intensity. Or, the server can also obtain complete music and / or music segments through other means and add them to the music list.
[0056] It should be noted that, regardless of the terminal or the server, when matching complete music and / or music segments from multiple pre-stored music or music libraries based on the current motion state information, the music in the pre-stored music or music library can be detected and labeled in advance. For example, music feature parameters of the complete music or some music segments in the complete music can be detected and labeled, including but not limited to rhythm, intensity, and style, or motion state information that matches the complete music or some music segments in the complete music can be labeled, such as cadence and speed, so as to match it with the current motion state information when making recommendations.
[0057] S203. Determine whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, play the music included in the music list and display the currently playing music on the interface.
[0058] In this embodiment, since obtaining the music list based on the current motion state information takes a certain amount of time, the current motion state information may remain unchanged or change during this time. If it changes, the magnitude of the change may be small or large. If the magnitude of the change in the current motion state information is large (exceeding the preset threshold), the obtained music list may not be suitable for the current motion state. Therefore, continuing to play the music included in the obtained music list is meaningless. It is necessary to obtain the music list again based on the changed current motion state information to update the music list so that the updated music list can match the changed current motion state information. The process of re-obtaining is the same as in the above embodiment and will not be repeated here. If the magnitude of the change in the current motion state information is small (not exceeding the preset threshold, including no change, i.e., the magnitude of change is 0), the music included in the obtained music list can be played. During the playback of the music list, the currently playing music can be displayed on the terminal interface, as shown in Figure 3a above, including displaying information such as music name and artist.
[0059] Optionally, the music list can also be displayed by triggering a function. Furthermore, for the currently playing music, users can perform any operation such as pausing, playing, adjusting playback progress, adjusting playback speed, switching to the next song, or switching to the previous song; there are no restrictions on this.
[0060] The music playback method provided in this embodiment obtains the current motion state information of an object and displays the current motion state information on an interface; obtains a music list based on the current motion state information; determines whether the current motion state information has changed; if the change in the current motion state information is within a preset threshold, then plays music included in the music list and displays the currently playing music on the interface. This embodiment, by obtaining the music list based on the object's current motion state information, allows music playback to match the current motion state, providing users with a customized and more comfortable exercise experience, satisfying individual and emotional needs. Furthermore, simultaneously displaying the current motion state information and the currently playing music on the terminal interface facilitates real-time viewing of the current motion state information for adjusting the exercise state and controlling the playback of the currently playing music.
[0061] Based on any of the above embodiments, before obtaining the current motion state information of the object as described in S201, the following may also be included:
[0062] Obtain the historical motion state information of the object at the beginning stage of its historical motion process;
[0063] Based on the historical motion state information, obtain the first music list at the beginning of the current motion process, and start playing music based on the first music list.
[0064] In this embodiment, at the beginning of the current movement process, the current movement state information of the object may not yet be obtained, or the obtained current movement information may be inaccurate or unreliable. Considering that the object may have stable movement habits, the historical movement state information of the object at the beginning of the previous movement can be obtained first, and a music list can be obtained based on the historical movement state information as the first music list at the beginning of the current movement process. Music can then be started playing based on the first music list to ensure that music that matches the object can be played in a timely manner at the beginning of the movement without waiting. After the current movement state information of the current movement process is obtained later, or after the current movement state information is stable and reliable, the music list can be obtained again based on the current movement information to update the music list, so that the updated music list is more in line with the current movement process.
[0065] Based on any of the above embodiments, the entire exercise process can be pre-divided into different exercise stages. For example, for running, it can be divided into a warm-up stage, a jogging stage, a sprint stage, etc. The different exercise stages in the entire exercise process can be displayed on the terminal interface, as shown in Figure 3a. Furthermore, the current exercise stage can be determined from different exercise stages based on the current exercise status information and / or a preset exercise plan. The preset exercise plan can include one or more preset exercise status information for different exercise stages in the entire exercise process. For example, for running, the preset exercise plan can include the speed, time, cadence, etc. of different exercise stages.
[0066] For example, if the current movement stage is determined entirely based on the current movement information, preset movement information corresponding to different movement stages can be pre-configured, and then the current movement information can be matched with the preset movement information corresponding to different movement stages to determine the current movement stage. If the current movement stage is determined entirely based on the preset movement plan, preset time or preset conditions corresponding to different movement stages can be pre-configured, and the current movement stage can be determined by matching the current movement time with the preset time corresponding to different movement stages, or by judging whether the preset conditions corresponding to any movement stage are met. Of course, the current movement stage can also be determined by combining the current movement status information and the preset movement plan. For example, if the current movement information meets the preset movement information corresponding to any movement stage, and the current movement time meets the preset time corresponding to that movement stage (and / or meets the preset conditions corresponding to that movement stage), then that movement stage is determined as the current movement stage. If the current movement information does not meet the preset movement information corresponding to any movement stage, but the current movement time meets the preset time corresponding to a certain movement stage (and / or meets the preset conditions corresponding to that movement stage), then that movement stage is determined as the current movement stage. Alternatively, the current movement stage can also be determined by other methods, which are not limited in this embodiment.
[0067] Furthermore, the current motion stage can be highlighted among the different motion stages displayed in the interface during the entire motion process, as shown in Figure 3a.
[0068] Optionally, when a change in the current exercise stage is detected, a prompt message can be played. For example, if the current exercise stage changes from the warm-up stage to the jogging stage, a voice prompt "Warm-up is over, let's run!" can be played (or displayed on the interface, as shown in Figure 3b) to prompt the target to proceed to the next exercise stage.
[0069] Optionally, different music lists can be used for different exercise stages, and the music list corresponding to the current exercise stage can be played after the current exercise stage is determined.
[0070] Optionally, different motion stages can correspond to different music libraries or multiple preset music tracks. Then, after determining the current motion stage, the complete music and / or music segments can be matched from the music library or multiple preset music tracks corresponding to the current motion stage based on the current motion state to obtain a music list.
[0071] Optionally, the current motion state information may match or not match the preset motion state information of the current motion stage in the preset exercise plan. In order to encourage the subject to adjust the motion state so that the current motion state information is close to the preset motion state information of the current motion stage in the preset exercise plan when they do not match, thereby avoiding failure to achieve the expected exercise effect or avoiding injury due to excessive exercise, and to achieve positive feedback to help the subject adjust the motion state, the terminal in this embodiment may also execute the following process:
[0072] The current motion state information is compared with the preset motion state information of the current motion stage in the preset motion plan; wherein the preset motion plan includes one or more preset motion state information of different motion stages throughout the entire motion process;
[0073] If the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan, a prompt message is played, and / or, the music list is re-acquired based on the preset motion state information of the current motion stage in the preset motion plan, so as to encourage the object to adjust its motion state so that the current motion state information is close to the preset motion state information of the current motion stage in the preset motion plan.
[0074] In this embodiment, the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan, including at least the following two situations:
[0075] 1) If the current motion status information exceeds the preset motion status information of the current motion stage in the preset exercise plan, such as the current speed exceeding the preset speed of the current motion stage in the preset exercise plan, a prompt message can be played to prompt the subject to adjust the motion status to reduce the current motion status information, such as playing a voice prompt "The speed is too fast, please slow down" (or it can also be displayed on the interface); and / or, the music list can be re-acquired based on the preset motion status information of the current motion stage in the preset exercise plan. Compared to obtaining the music list based on the current motion status information, the obtained music list can prompt the subject to adjust the motion status information. For example, the music list can be re-acquired based on the preset motion status information of the current motion stage in the preset exercise plan. Compared to obtaining the music list based on the current motion status information, the music list is slower and weaker, which is beneficial for the subject to reduce speed, reduce step frequency, etc.
[0076] 2) If the current exercise status information is insufficient compared to the preset exercise status information for the current exercise stage in the preset exercise plan, such as the current speed being insufficient compared to the preset speed for the current exercise stage in the preset exercise plan, a prompt message can be played to prompt the subject to adjust their exercise status to improve the current exercise status information. For example, a voice prompt such as "Speed is too slow, please speed up" can be played (or it can be displayed on the interface); and / or, the music list can be re-acquired based on the preset exercise status information for the current exercise stage in the preset exercise plan. Compared to re-acquiring the music list based on the current exercise status information, the re-acquired music list can prompt the subject to adjust their exercise status information. For example, re-acquiring the music list based on the preset exercise status information for the current exercise stage in the preset exercise plan has a stronger rhythm and intensity, which is beneficial for the subject to increase speed, increase stride frequency, etc.
[0077] By providing prompts and / or adjusting the music playlist, the system encourages users to regulate their exercise state so that the current exercise state information is close to the preset exercise state information of the current exercise stage in the preset exercise plan. This helps to avoid failing to achieve the expected exercise effect or avoiding injury due to excessive exercise, thus achieving positive feedback.
[0078] Based on any of the above embodiments, the method further includes:
[0079] In response to the end-of-motion command, display all the music played during the entire motion process;
[0080] The exercise end command can be triggered by the user pressing the end button on the terminal, or it can be automatically triggered by the terminal according to a preset exercise plan (e.g., the total exercise time reaches the preset total exercise time in the preset exercise plan). Furthermore, the interface can display all the music played during the entire exercise process, and a history playlist (also called a history music list) can be automatically generated based on this music, or a history playlist can be generated in response to a music playlist generation command. The history playlist can be used to play music during subsequent exercise sessions, or music can be selected from the history playlist during subsequent exercise sessions. In addition, the exercise status information for the entire exercise process can be simultaneously collected and displayed on the interface, as shown in Figure 3c.
[0081] Optionally, if the played music includes music segments from a complete song, the complete song to which the music segment belongs can be added to the history playlist when generating the history playlist; if the played music includes complete songs and / or music segments generated by a preset music generation model, since these complete songs and / or music segments are generated temporarily, these complete songs and / or music segments can be filtered out when generating the history playlist.
[0082] Optionally, based on the generated historical playlist, when obtaining the music list according to the current motion state information in S202, the historical playlist can be selected. Specifically, the selected historical playlist can be determined in response to the historical playlist selection instruction. Further, the music list can be obtained according to the current motion state information and the historical playlist. At least one complete piece of music and / or music segment can be selected from the historical playlist and added to the music list according to the current motion state information. The current music list may not only include complete pieces of music and / or music segments from the historical playlist, but may also include complete pieces of music and / or music segments obtained through other means, such as complete pieces of music and / or music segments matched from the music library in the above embodiment, or complete pieces of music and / or music segments generated by a preset music generation model, etc., to avoid the music list containing unchanging and overly monotonous music. Among them, complete pieces of music and / or music segments are preferentially selected from the historical playlist, or the complete pieces of music and / or music segments in the historical playlist have a higher weight.
[0083] Optionally, when the terminal generates a historical playlist, it can send the historical playlist to the server; then, when selecting a historical playlist, the terminal can send a historical playlist selection instruction to the server, and the server can select at least one complete music and / or music segment from the selected historical playlist based on the current motion status information and add it to the music list.
[0084] Referring to Figure 4, which is a schematic flowchart of a music playback method according to an embodiment of this disclosure, the method of this embodiment can be applied to a server. The music playback method includes:
[0085] S301, Receive current motion status information sent by the terminal;
[0086] S302. Determine the music list based on the current motion state information;
[0087] S303. Send the music included in the music list to the terminal, so that the terminal plays the music included in the music list when it determines that the change range of the current motion state information is within a preset threshold.
[0088] This embodiment is a method embodiment on the server side of the above embodiments. Its technical solution and technical effects can be found in the above embodiments, and will not be repeated here.
[0089] Based on the above embodiments, determining the music list according to the current motion state information includes:
[0090] Complete music and / or music fragments matched from the music library based on the current motion state information; and / or complete music and / or music fragments generated by a preset music generation model based on the current motion state information;
[0091] Add the complete music and / or music clips to the music list.
[0092] Based on any of the above embodiments, the method further includes:
[0093] The music feature parameters of the complete music and / or music segment are adjusted based on the current motion state information, and the music feature parameters include rhythm and / or intensity.
[0094] Based on any of the above embodiments, the step of determining the music list according to the current motion state information further includes:
[0095] Receive the historical playlist selection instruction sent by the terminal, and determine the selected historical playlist according to the historical playlist selection instruction;
[0096] Based on the current motion status information, at least one complete piece of music and / or a music segment is selected from the historical playlist and added to the music list.
[0097] Based on any of the above embodiments, the method further includes:
[0098] The terminal receives the preset motion state information sent when it determines that the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan;
[0099] The music list is redefined based on the preset exercise state information of the current exercise stage in the preset exercise plan, and sent to the terminal to encourage the subject to adjust the exercise state so that the current exercise state information is close to the preset exercise state information of the current exercise stage in the preset exercise plan.
[0100] Corresponding to the music playback method on the terminal side in the above embodiments, Figure 5 is a structural block diagram of a music playback device provided in this disclosure embodiment. For ease of explanation, only the parts related to this disclosure embodiment are shown. Referring to Figure 5, the music playback device 500 includes: a motion state information acquisition unit 501, a music list acquisition unit 502, and a playback unit 503.
[0101] The motion state information acquisition unit 501 is used to acquire the current motion state information of the object and display the current motion state information on the interface;
[0102] The music list acquisition unit 502 is used to acquire a music list based on the current motion state information;
[0103] The playback unit 503 is used to determine whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, the music included in the music list is played, and the currently playing music is displayed on the interface.
[0104] In one or more embodiments of this disclosure, the music list acquisition unit 502, when acquiring the music list based on the current motion state information, is configured to:
[0105] Send the current motion status information to the server;
[0106] The receiving server returns a music list based on the current motion state information, wherein the music list includes at least one of the following:
[0107] The server matches complete music and / or music fragments from the music library based on the current motion state information, and the server generates complete music and / or music fragments based on the current motion state information using a preset music generation model.
[0108] In one or more embodiments of this disclosure, the music list acquisition unit 502 is further configured to:
[0109] If the change in the current motion state information exceeds the preset threshold, then the music list is obtained based on the changed current motion state information.
[0110] In one or more embodiments of this disclosure, the motion state information acquisition unit 501 is further configured to acquire historical motion state information of the object at the beginning stage of historical motion before acquiring the current motion state information of the object;
[0111] The music list acquisition unit 502 is further configured to acquire the first music list at the beginning of the current movement based on the historical movement state information, and start playing music based on the first music list.
[0112] In one or more embodiments of this disclosure, the motion state information acquisition unit 501 is further configured to:
[0113] The interface displays the different motion stages of the entire motion process.
[0114] Based on the current motion status information and / or the preset motion plan, the current motion stage is determined from the different motion stages and highlighted; wherein the preset motion plan includes one or more preset motion status information for different motion stages throughout the entire motion process.
[0115] In one or more embodiments of this disclosure, the motion state information acquisition unit 501 is further configured to compare the current motion state information with the preset motion state information of the current motion stage in a preset motion plan; wherein the preset motion plan includes one or more preset motion state information of different motion stages throughout the entire motion process.
[0116] The music list acquisition unit 502 is further configured to: play a prompt message if the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan; and / or reacquire the music list according to the preset motion state information of the current motion stage in the preset motion plan, so as to encourage the object to adjust its motion state so that the current motion state information is close to the preset motion state information of the current motion stage in the preset motion plan.
[0117] In one or more embodiments of this disclosure, the music list acquisition unit 502 is further configured to:
[0118] In response to the end-of-motion command, display all the music played during the entire motion process;
[0119] In response to the music playlist generation command, a history playlist is generated for all the music that has been played.
[0120] Accordingly, when the music list acquisition unit 502 acquires the music list based on the current motion state information, it is used to:
[0121] In response to the historical playlist selection instruction, the selected historical playlist is determined; the music list is obtained based on the current motion status information and the historical playlist.
[0122] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0123] Corresponding to the server-side music playback method in the above embodiments, Figure 6 is a structural block diagram of a music recommendation device provided in this disclosure embodiment. For ease of explanation, only the parts related to this disclosure embodiment are shown. Referring to Figure 6, the music recommendation device 600 includes: a receiving unit 601, a recommendation unit 602, and a sending unit 603.
[0124] The receiving unit 601 is used to receive the current motion state information sent by the terminal;
[0125] Recommendation unit 602 is used to determine a music list based on the current motion state information;
[0126] The sending unit 603 is used to send the music included in the music list to the terminal, so that the terminal plays the music included in the music list when it determines that the change amplitude of the current motion state information is within a preset threshold.
[0127] In one or more embodiments of this disclosure, the recommendation unit 602, when determining the music list based on the current motion state information, is used to:
[0128] Complete music and / or music fragments matched from the music library based on the current motion state information; and / or complete music and / or music fragments generated by a preset music generation model based on the current motion state information;
[0129] Add the complete music and / or music clips to the music list.
[0130] In one or more embodiments of this disclosure, the recommendation unit 602 is further configured to:
[0131] The music feature parameters of the complete music and / or music segment are adjusted based on the current motion state information, and the music feature parameters include rhythm and / or intensity.
[0132] In one or more embodiments of this disclosure, when determining the music list based on the current motion state information, the recommendation unit 602 is further configured to:
[0133] Receive the historical playlist selection instruction sent by the terminal, and determine the selected historical playlist according to the historical playlist selection instruction;
[0134] Based on the current motion status information, at least one complete piece of music and / or a music segment is selected from the historical playlist and added to the music list.
[0135] In one or more embodiments of this disclosure, the receiving unit 601 is further configured to receive the preset motion state information sent by the terminal when it determines that the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan;
[0136] The recommendation unit 602 is further configured to redetermine the music list based on the preset exercise state information of the current exercise stage in the preset exercise plan, and send it to the terminal, so as to encourage the object to adjust its exercise state so that the current exercise state information is close to the preset exercise state information of the current exercise stage in the preset exercise plan.
[0137] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0138] Referring to Figure 7, a schematic diagram of the structure of an electronic device 700 suitable for implementing embodiments of the present disclosure is shown. The electronic device 700 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 7 is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present disclosure.
[0139] As shown in Figure 7, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0140] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 shows electronic device 700 with various devices, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0141] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of embodiments of this disclosure.
[0142] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0143] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0144] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
[0145] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0146] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0147] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0148] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0149] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0150] In a first aspect, according to one or more embodiments of this disclosure, a music playback method is provided, applied to a terminal, the method comprising:
[0151] Obtain the current motion state information of the object and display the current motion state information on the interface;
[0152] Obtain the music list based on the current motion status information;
[0153] Determine whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, play the music included in the music list and display the currently playing music on the interface.
[0154] According to one or more embodiments of this disclosure, obtaining the music list based on the current motion state information includes:
[0155] Send the current motion status information to the server;
[0156] The receiving server returns a music list based on the current motion state information, wherein the music list includes at least one of the following:
[0157] The server matches complete music and / or music fragments from the music library based on the current motion state information, and the server generates complete music and / or music fragments based on the current motion state information using a preset music generation model.
[0158] According to one or more embodiments of this disclosure, the method further includes:
[0159] If the change in the current motion state information exceeds the preset threshold, then the music list is obtained based on the changed current motion state information.
[0160] According to one or more embodiments of this disclosure, before obtaining the current motion state information of the object, the method further includes:
[0161] Obtain the historical motion state information of the object at the beginning stage of its historical motion process;
[0162] Based on the historical motion state information, obtain the first music list at the beginning of the current motion process, and start playing music based on the first music list.
[0163] According to one or more embodiments of this disclosure, the method further includes:
[0164] The interface displays the different motion stages of the entire motion process.
[0165] Based on the current motion status information and / or the preset motion plan, the current motion stage is determined from the different motion stages and highlighted; wherein the preset motion plan includes one or more preset motion status information for different motion stages throughout the entire motion process.
[0166] According to one or more embodiments of this disclosure, the method further includes:
[0167] The current motion state information is compared with the preset motion state information of the current motion stage in the preset motion plan; wherein the preset motion plan includes one or more preset motion state information of different motion stages throughout the entire motion process;
[0168] If the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan, a prompt message is played, and / or, the music list is re-acquired based on the preset motion state information of the current motion stage in the preset motion plan, so as to encourage the object to adjust its motion state so that the current motion state information is close to the preset motion state information of the current motion stage in the preset motion plan.
[0169] According to one or more embodiments of this disclosure, the method further includes:
[0170] In response to the end-of-motion command, display all the music played during the entire motion process;
[0171] In response to the music playlist generation command, a history playlist is generated for all the music that has been played.
[0172] Accordingly, obtaining the music list based on the current motion state information includes:
[0173] In response to the historical playlist selection instruction, the selected historical playlist is determined; the music list is obtained based on the current motion status information and the historical playlist.
[0174] Secondly, according to one or more embodiments of this disclosure, a music playback method is provided, applied to a server, the method comprising:
[0175] Receive current motion status information sent by the terminal;
[0176] The music list is determined based on the current motion status information;
[0177] The music included in the music list is sent to the terminal so that the terminal plays the music included in the music list when it determines that the change in the current motion state information is within a preset threshold.
[0178] According to one or more embodiments of this disclosure, determining the music list based on the current motion state information includes:
[0179] Complete music and / or music fragments matched from the music library based on the current motion state information; and / or complete music and / or music fragments generated by a preset music generation model based on the current motion state information;
[0180] Add the complete music and / or music clips to the music list.
[0181] According to one or more embodiments of this disclosure, the method further includes:
[0182] The music feature parameters of the complete music and / or music segment are adjusted based on the current motion state information, and the music feature parameters include rhythm and / or intensity.
[0183] According to one or more embodiments of this disclosure, determining the music list based on the current motion state information further includes:
[0184] Receive the historical playlist selection instruction sent by the terminal, and determine the selected historical playlist according to the historical playlist selection instruction;
[0185] Based on the current motion status information, at least one complete piece of music and / or a music segment is selected from the historical playlist and added to the music list.
[0186] According to one or more embodiments of this disclosure, the method further includes:
[0187] The terminal receives the preset motion state information sent when it determines that the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan;
[0188] The music list is redefined based on the preset exercise state information of the current exercise stage in the preset exercise plan, and sent to the terminal to encourage the subject to adjust the exercise state so that the current exercise state information is close to the preset exercise state information of the current exercise stage in the preset exercise plan.
[0189] Thirdly, according to one or more embodiments of this disclosure, a music playback device is provided, comprising:
[0190] A motion state information acquisition unit is used to acquire the current motion state information of an object and display the current motion state information on the interface;
[0191] A music list acquisition unit is used to acquire a music list based on the current motion state information;
[0192] The playback unit is used to determine whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, the music included in the music list is played, and the currently playing music is displayed on the interface.
[0193] According to one or more embodiments of this disclosure, when the music list acquisition unit acquires the music list based on the current motion state information, it is configured to:
[0194] Send the current motion status information to the server;
[0195] The receiving server returns a music list based on the current motion state information, wherein the music list includes at least one of the following:
[0196] The server matches complete music and / or music fragments from the music library based on the current motion state information, and the server generates complete music and / or music fragments based on the current motion state information using a preset music generation model.
[0197] According to one or more embodiments of this disclosure, the music list acquisition unit is further configured to:
[0198] If the change in the current motion state information exceeds the preset threshold, then the music list is obtained based on the changed current motion state information.
[0199] According to one or more embodiments of this disclosure, before acquiring the current motion state information of the object, the motion state information acquisition unit is further configured to acquire the historical motion state information of the object at the beginning stage of the historical motion process;
[0200] The music list acquisition unit is also used to acquire the first music list at the beginning of the current movement based on the historical movement state information, and start playing music based on the first music list.
[0201] According to one or more embodiments of this disclosure, the motion state information acquisition unit is further configured to:
[0202] The interface displays the different motion stages of the entire motion process.
[0203] Based on the current motion status information and / or the preset motion plan, the current motion stage is determined from the different motion stages and highlighted; wherein the preset motion plan includes one or more preset motion status information for different motion stages throughout the entire motion process.
[0204] According to one or more embodiments of this disclosure, the motion state information acquisition unit is further configured to compare the current motion state information with the preset motion state information of the current motion stage in a preset motion plan; wherein the preset motion plan includes one or more preset motion state information of different motion stages throughout the entire motion process;
[0205] The music list acquisition unit is further configured to: if the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan, play a prompt message; and / or, re-acquire the music list based on the preset motion state information of the current motion stage in the preset motion plan, so as to encourage the object to adjust its motion state so that the current motion state information is close to the preset motion state information of the current motion stage in the preset motion plan.
[0206] According to one or more embodiments of this disclosure, the music list acquisition unit is further configured to:
[0207] In response to the end-of-motion command, display all the music played during the entire motion process;
[0208] In response to the music playlist generation command, a history playlist is generated for all the music that has been played.
[0209] Accordingly, when the music list acquisition unit acquires the music list based on the current motion state information, it is used to:
[0210] In response to the historical playlist selection instruction, the selected historical playlist is determined; the music list is obtained based on the current motion status information and the historical playlist.
[0211] Fourthly, according to one or more embodiments of this disclosure, a music recommendation device is provided, comprising:
[0212] The receiving unit is used to receive the current motion status information sent by the terminal;
[0213] The recommendation unit is used to determine a music list based on the current motion state information;
[0214] A sending unit is used to send music included in the music list to the terminal, so that the terminal plays the music included in the music list when it determines that the change amplitude of the current motion state information is within a preset threshold.
[0215] According to one or more embodiments of this disclosure, when the recommendation unit determines the music list based on the current motion state information, it is configured to:
[0216] Complete music and / or music fragments matched from the music library based on the current motion state information; and / or complete music and / or music fragments generated by a preset music generation model based on the current motion state information;
[0217] Add the complete music and / or music clips to the music list.
[0218] According to one or more embodiments of this disclosure, the recommendation unit is further configured to:
[0219] The music feature parameters of the complete music and / or music segment are adjusted based on the current motion state information, and the music feature parameters include rhythm and / or intensity.
[0220] According to one or more embodiments of this disclosure, when determining the music list based on the current motion state information, the recommendation unit is further configured to:
[0221] Receive the historical playlist selection instruction sent by the terminal, and determine the selected historical playlist according to the historical playlist selection instruction;
[0222] Based on the current motion status information, at least one complete piece of music and / or a music segment is selected from the historical playlist and added to the music list.
[0223] According to one or more embodiments of this disclosure, the receiving unit is further configured to receive the preset motion state information sent by the terminal when it is determined that the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan;
[0224] The recommendation unit is further configured to redetermine the music list based on the preset exercise state information of the current exercise stage in the preset exercise plan, and send it to the terminal, so as to encourage the object to adjust its exercise state so that the current exercise state information is close to the preset exercise state information of the current exercise stage in the preset exercise plan.
[0225] Fifthly, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory;
[0226] The memory stores computer-executed instructions;
[0227] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the music playback method as described in the first aspect and various possible designs of the first aspect, or the music playback method as described in the second aspect and various possible designs of the second aspect.
[0228] Sixthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, the computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the music playback method described in the first aspect and various possible designs of the first aspect, or the music playback method described in the second aspect and various possible designs of the second aspect.
[0229] In a seventh aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including computer execution instructions, which, when executed by a processor, implement the music playback method described in the first aspect and various possible designs of the first aspect, or the music playback method described in the second aspect and various possible designs of the second aspect.
[0230] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0231] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0232] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for playing music, wherein, Applied to a terminal, the method includes: Obtain the current motion state information of the object and display the current motion state information on the interface; Obtain the music list based on the current motion status information; Determine whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, play the music included in the music list and display the currently playing music on the interface.
2. The method according to claim 1, wherein, The step of obtaining the music list based on the current motion state information includes: Send the current motion status information to the server; The receiving server returns a music list based on the current motion state information, wherein the music list includes at least one of the following: The server matches complete music and / or music fragments from the music library based on the current motion state information, and the server generates complete music and / or music fragments based on the current motion state information using a preset music generation model.
3. The method according to claim 1 or 2, wherein, The method further includes: If the change in the current motion state information exceeds the preset threshold, then the music list is obtained based on the changed current motion state information.
4. The method according to claim 1, wherein, Before obtaining the current motion state information of the object, the method further includes: Obtain the historical motion state information of the object at the beginning stage of its historical motion process; Based on the historical motion state information, obtain the first music list at the beginning of the current motion process, and start playing music based on the first music list.
5. The method according to claim 1, wherein, The method further includes: The interface displays the different motion stages of the entire motion process. Based on the current motion state information and / or the preset motion plan, the current motion stage is determined from the different motion stages and highlighted; wherein the preset motion plan includes one or more preset motion state information for different motion stages throughout the entire motion process.
6. The method according to claim 1, wherein, The method further includes: The current motion state information is compared with the preset motion state information of the current motion stage in the preset motion plan; wherein the preset motion plan includes one or more preset motion state information of different motion stages throughout the entire motion process; If the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan, a prompt message is played, and / or, the music list is re-acquired based on the preset motion state information of the current motion stage in the preset motion plan, so as to encourage the object to adjust its motion state so that the current motion state information is close to the preset motion state information of the current motion stage in the preset motion plan.
7. The method according to claim 1, wherein, The method further includes: In response to the end-of-motion command, display all the music played during the entire motion process; In response to the music playlist generation command, a history playlist is generated for all the music that has been played. Accordingly, obtaining the music list based on the current motion state information includes: In response to the historical playlist selection instruction, the selected historical playlist is determined; the music list is obtained based on the current motion status information and the historical playlist.
8. A method for playing music, wherein, Applied to the server side, the method includes: Receive current motion status information sent by the terminal; The music list is determined based on the current motion status information; The music included in the music list is sent to the terminal so that the terminal plays the music included in the music list when it determines that the change in the current motion state information is within a preset threshold.
9. The method according to claim 8, wherein, The step of determining the music list based on the current motion state information includes: Complete music and / or music fragments matched from the music library based on the current motion state information; and / or complete music and / or music fragments generated by a preset music generation model based on the current motion state information; Add the complete music and / or music clips to the music list.
10. The method according to claim 9, wherein, The method further includes: The music feature parameters of the complete music and / or music segment are adjusted based on the current motion state information, and the music feature parameters include rhythm and / or intensity.
11. The method according to any one of claims 8-10, wherein, The step of determining the music list based on the current motion state information further includes: Receive the historical playlist selection instruction sent by the terminal, and determine the selected historical playlist according to the historical playlist selection instruction; Based on the current motion status information, at least one complete piece of music and / or a music segment is selected from the historical playlist and added to the music list.
12. The method according to claim 8, wherein, The method further includes: The terminal receives the preset motion state information sent when it determines that the current motion state information does not match the preset motion state information of the current motion stage in the preset motion plan; The music list is redefined based on the preset exercise state information of the current exercise stage in the preset exercise plan, and sent to the terminal to encourage the subject to adjust the exercise state so that the current exercise state information is close to the preset exercise state information of the current exercise stage in the preset exercise plan.
13. A music playback device, wherein, include: A motion state information acquisition unit is used to acquire the current motion state information of an object and display the current motion state information on the interface; A music list acquisition unit is used to acquire a music list based on the current motion state information; The playback unit is used to determine whether the current motion state information has changed. If the change in the current motion state information is within a preset threshold, the music included in the music list is played, and the currently playing music is displayed on the interface.
14. A music recommendation device, wherein, include: The receiving unit is used to receive the current motion status information sent by the terminal; The recommendation unit is used to determine a music list based on the current motion state information; A sending unit is used to send music included in the music list to the terminal, so that the terminal plays the music included in the music list when it determines that the change amplitude of the current motion state information is within a preset threshold.
15. An electronic device, wherein, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method as described in any one of claims 1-12.
16. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the method as described in any one of claims 1-12.
17. A computer program product, wherein, Includes computer execution instructions, which, when executed by a processor, implement the method as described in any one of claims 1-12.
Citation Information
Patent Citations
Method for playing music based on step of user and mobile terminal
CN101388233A
Music playing method and system for use during exercise
CN106599123A
Server and music service system and method therefor
CN106844359A
Electronic apparatus and music playing system and method therefor
CN106844360A
Music playing method, device and system, electronic equipment and storage medium
CN116980516A