Music playback method, electronic device, system, and storage medium
By acquiring the user's exercise frequency, the system automatically selects and adjusts music tracks, solving the problem of poor music playback control during exercise and improving the convenience of music playback and the exercise experience.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- GUANGDONG COROS SPORTS TECH JOINT CO
- Filing Date
- 2025-01-23
- Publication Date
- 2026-07-30
AI Technical Summary
Users cannot select or adjust music playback in a timely manner during exercise, resulting in poor playback control convenience.
By acquiring the user's movement frequency, the target music track is determined from multiple music tracks based on the movement frequency, and the playback of the music track is adjusted according to the movement frequency.
It improves the ease of identifying target music tracks and the convenience of playback control, thereby enhancing the user's exercise experience.
Smart Images

Figure CN2025074346_30072026_PF_FP_ABST
Abstract
Description
Music playback methods, electronic devices, systems and storage media Technical Field
[0001] This application relates to the field of music playback technology, and in particular to a music playback method, electronic device, system and storage medium. Background Technology
[0002] With the increasing popularity of sports, users' demand for exercise is growing. When exercising, users can listen to music to stimulate their enthusiasm for exercise, relieve stress and fatigue during the process, and thus immerse themselves in the atmosphere of exercise more easily and comfortably.
[0003] However, during user exercise, users need to perform corresponding movements, which may lead to situations where users cannot select the music to play or adjust the music currently playing in a timely manner, resulting in poor convenience of music playback control. Summary of the Invention
[0004] The main purpose of this application is to provide a music playback method, electronic device, system, and storage medium, aiming to solve the technical problem of poor convenience in music playback control caused by the user's inability to select the music to be played or adjust the music currently playing in a timely manner.
[0005] Firstly, this application provides a music playback method, the music playback method comprising:
[0006] Obtain the user's movement frequency during exercise;
[0007] Based on the aforementioned motion frequency, a target music track is determined from multiple music tracks;
[0008] Play the target music track;
[0009] The playback of the target music track is adjusted according to the motion frequency.
[0010] Secondly, this application provides an electronic device, the electronic device including a memory and a processor:
[0011] The memory is used to store computer programs;
[0012] The processor is configured to execute a computer program and, when executing the computer program, implement the music playback method described above.
[0013] Thirdly, this application provides a music playback method, which is applied to an electronic system. The electronic system includes a first electronic device and a second electronic device communicatively connected to the first electronic device. The music playback method includes:
[0014] The first electronic device is controlled to acquire the user's motion frequency during movement.
[0015] Based on the motion frequency, the second electronic device is controlled to determine the target music track from multiple music tracks;
[0016] Play the target music track;
[0017] The playback of the target music track is adjusted according to the motion frequency.
[0018] Fourthly, this application provides an electronic system, the electronic system including a first electronic device, a second electronic device communicatively connected to the first electronic device, a memory, and a processor;
[0019] The memory is used to store computer programs;
[0020] The processor is configured to execute a computer program and, when executing the computer program, implement the music playback method described above.
[0021] Fifthly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the music playback method described above.
[0022] This application provides a music playback method, electronic device, system, and storage medium. The music playback method includes: acquiring the user's movement frequency during exercise; determining a target music track from multiple music tracks based on the movement frequency; playing the target music track; and adjusting the playback of the target music track according to the movement frequency.
[0023] By acquiring the user's movement frequency, the target music track can be determined and played based on this frequency, thus improving the ease of determining the target music track. Similarly, movement frequency can also be used as a basis for adjusting the playback of the target music track, further improving the ease of adjustment. This improved ease of determining and adjusting the playback of the target music track enhances the overall ease of controlling its playback. Attached Figure Description
[0024] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 is a schematic flowchart of a music playback method provided in an embodiment of this application;
[0026] Figure 2 is a flowchart illustrating a music playback method provided in another embodiment of this application;
[0027] Figure 3 is a flowchart illustrating a music playback method according to another embodiment of this application;
[0028] Figure 4 is a flowchart illustrating a music playback method provided in another embodiment of this application;
[0029] Figure 5 is a flowchart illustrating a music playback method provided in another embodiment of this application;
[0030] Figure 6 is a flowchart illustrating a music playback method provided in another embodiment of this application;
[0031] Figure 7 is a flowchart illustrating a music playback method provided in another embodiment of this application;
[0032] Figure 8 is a flowchart illustrating a music playback method provided in another embodiment of this application;
[0033] Figure 9 is a flowchart illustrating a music playback method according to another embodiment of this application;
[0034] Figure 10 is a flowchart illustrating a music playback method provided in another embodiment of this application;
[0035] Figure 11 is a flowchart illustrating a music playback method according to another embodiment of this application;
[0036] Figure 12 is a flowchart illustrating a music playback method according to another embodiment of this application;
[0037] Figure 13 is a schematic block diagram of an electronic device provided in an embodiment of this application;
[0038] Figure 14 is a schematic block diagram of an electronic device provided in another embodiment of this application;
[0039] Figure 15 is a schematic block diagram of an electronic system provided in an embodiment of this application;
[0040] Figure 16 is a schematic block diagram of an electronic system provided in another embodiment of this application. Detailed Implementation
[0041] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0042] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0043] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0044] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0045] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0046] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0047] As shown in Figure 1, one embodiment of this application discloses a music playback method. The music playback method includes:
[0048] S110, acquires the user's movement frequency during exercise.
[0049] For example, users can have a corresponding exercise frequency when exercising. Exercise can include walking, running, swimming, cycling, skipping rope, etc., without limitation. Exercise frequency can include step frequency, heart rate, stroke rate, cadence, etc., without limitation.
[0050] For different types of exercise, the frequency of a user's exercise can include the same type of exercise frequency, different types of exercise frequency, or some types of exercise frequency that are the same, without any restrictions.
[0051] Taking exercise such as walking or running as an example, the user's exercise frequency can include at least one of step frequency and heart rate. Taking exercise such as swimming or skipping rope as an example, the user's exercise frequency can include at least one of step frequency, heart rate, and stroke rate. Stroke rate can be used to indicate the frequency of the user's hand movements during exercise. For example, when a user is skipping rope, they need to use their hands, such as the rotation of their wrists to drive the rope's rotation; therefore, the user's hands have a certain hand movement frequency. Similarly, when a user is swimming, they need to use their hands, such as the arm strokes to propel themselves forward; therefore, the user's hands have a certain hand movement frequency. Taking exercise such as cycling as an example, the user's exercise frequency can include at least one of heart rate and pedal frequency. Pedal frequency can be used to indicate the frequency of the user's footsteps during exercise.
[0052] In some implementations, the electronic device may have the capability to acquire motion frequency. When a user is moving while carrying the electronic device, the device can acquire the user's motion frequency based on its own motion frequency acquisition capability. For example, the electronic device may have a built-in sensor, which can acquire the user's motion frequency during movement.
[0053] In some implementations, the electronic device can establish a communication connection with other electronic devices. When the electronic device lacks the ability to acquire motion frequency, but other electronic devices do, the electronic device can acquire the user's motion frequency from those other electronic devices based on the communication connection. For example, the other electronic devices may include sensors or wearable devices with built-in sensors; in this case, the other electronic devices can acquire the user's motion frequency through the sensors, without limitation.
[0054] Once the user's movement frequency is obtained, it can be used to determine the target music track and adjust its playback.
[0055] S120 determines the target music track from multiple music tracks based on the movement frequency.
[0056] By acquiring the user's movement frequency, the electronic device can determine the target music track from multiple music tracks based on the movement frequency.
[0057] In some implementations, if the user's movement frequency matches the music track during the user's movement, the music track that matches the movement frequency can be identified as the target music track.
[0058] For example, different music tracks can correspond to different motion frequency ranges. Similarly, different music tracks can also correspond to different motion frequencies; this is not limited. Taking music track 1 corresponding to a first motion frequency range and music track 2 corresponding to a second motion frequency range as an example: When the user's motion frequency is within the first motion frequency range, the electronic device can determine that music track 1 matches the motion frequency, and thus designate music track 1 as the target music track. When the user's motion frequency is within the second motion frequency range, the electronic device can determine that music track 2 matches the motion frequency, and thus designate music track 2 as the target music track. Of course, this is not limited to this; the correspondence between music tracks and motion frequency ranges, and between music tracks and motion frequencies, can be preset or set or adjusted by the user; this is not limited.
[0059] Based on this, electronic devices can determine the target music track from multiple tracks according to the user's movement frequency, without requiring the user to manually select the target music track, thus improving the ease of determining the target music track. Correspondingly, once the target music track is determined, it can be played subsequently to assist the user's movement, further enhancing the ease of controlling the playback of the target music track.
[0060] S130, play the target music track.
[0061] Once the target music track is selected, the electronic device can play the target music track.
[0062] In some implementations, the number of target music tracks may include at least one. When there are multiple target music tracks, the electronic device can determine the playback order of the multiple target music tracks to play them in that order.
[0063] For example, an electronic device can acquire the historical playback information of multiple target music tracks to determine the playback order of the tracks. The historical playback information may include at least one of the following: historical playback count, historical playback frequency, and the time of the most recent historical playback; there is no limitation on this.
[0064] In some exemplary embodiments, the electronic device can determine the playback order of multiple target music tracks by ranking them from most to least historical playback counts. Alternatively, it can determine the playback order by ranking them from highest to lowest historical playback frequency. Furthermore, it can determine the playback order by ranking them from most recent to oldest historical playback time. Based on this, the electronic device can prioritize playing any one of the following: the target music track with the most historical playback counts, the target music track with the highest historical playback frequency, or the target music track with the most recent historical playback time. This allows the playback order of the target music tracks to be adapted to the user's music playback habits.
[0065] In other exemplary embodiments, the electronic device can determine the playback order of multiple target music tracks based on their historical playback counts from fewest to most. Alternatively, it can determine the playback order based on their historical playback frequency from lowest to highest. Furthermore, it can determine the playback order based on the most recent historical playback time from oldest to most recent. Based on this, the electronic device can prioritize playing any one of the following target music tracks: the one with the fewest historical playback counts, the one with the lowest historical playback frequency, or the one with the oldest recent historical playback time. This allows the user to hear less frequently played target music tracks, thus adapting the playback order to the user's preference for less-played music.
[0066] Of course, this isn't limited to just that. For example, the playback order of multiple target music tracks can also be determined by combining all historical playback information. Different historical playback information can be assigned corresponding weights. The electronic device can determine the playback weight of each target music track based on its individual historical playback information and the weights corresponding to different historical playback information. Accordingly, the electronic device can determine the playback order of multiple target music tracks based on their respective playback weights. For example, target music tracks with higher playback weights are played first. Or, target music tracks with lower playback weights are played first. For example, the playback order of multiple target music tracks can also include random playback order, which is not limited here.
[0067] Therefore, electronic devices can play target music tracks to assist users in exercise, which improves the ease of controlling the playback of these tracks. Playing target music tracks can enhance the user's exercise experience. For example, users can follow the target music tracks during exercise, making the process more relaxed and comfortable. Furthermore, the target music tracks can help users increase their exercise frequency and extend exercise time, thereby improving the overall exercise experience. Correspondingly, during the playback of target music tracks, electronic devices can employ different strategies to determine the playback order of multiple target music tracks, which improves the ease of determining the playback order, thus enhancing the flexibility and ease of controlling the playback of target music tracks.
[0068] S140 adjusts the playback of the target music track according to the motion frequency.
[0069] For example, during exercise, a user's movement frequency can remain constant or change. The electronic device can adjust the target music track according to the movement frequency so that the playback of the target music track can continuously adapt to the user's movement frequency during exercise.
[0070] In some implementations, each time the electronic device acquires the user's movement frequency during exercise, it can compare the currently acquired frequency with the previously acquired frequency. If they are the same, the electronic device may not adjust the playback of the target music track. If they are different, the electronic device may adjust the playback of the target music track. The electronic device may acquire the user's movement frequency in real time or at preset time intervals; this is not limited to either method.
[0071] For example, the target music track itself can have corresponding playback parameters. Playback parameters can include tempo and / or playback speed. For instance, the tempo of the target music track can include 1x tempo, so the electronic device can play the target music track according to its own tempo. As another example, the playback speed of the target music track can include 1x speed, so the electronic device can play the target music track according to its own playback speed.
[0072] During the process of adjusting the playback of a target music track based on motion frequency, the electronic device can adjust the playback parameters of the target music track. For example, if the currently acquired motion frequency is equal to the previously acquired motion frequency, the electronic device can keep the playback parameters of the target music track unchanged, such as keeping the tempo unchanged and / or keeping the playback speed unchanged. If the currently acquired motion frequency is less than the previously acquired motion frequency, the electronic device can decrease the playback parameters of the target music track, such as decreasing the tempo and / or decreasing the playback speed. If the currently acquired motion frequency is greater than the previously acquired motion frequency, the electronic device can increase the playback parameters of the target music track, such as increasing the tempo and / or increasing the playback speed.
[0073] Based on this, electronic devices can adjust the playback of target music tracks according to the user's movement frequency without requiring the user to manually switch or adjust the tracks. This ensures the playback of the target music track remains consistently adapted to the user's movement frequency, thus improving the ease of control over its playback. When the playback of the target music track continuously adapts to the user's movement frequency, it enhances the user's workout experience.
[0074] This embodiment obtains the user's movement frequency during exercise, determines the target music track from multiple music tracks based on the movement frequency, plays the target music track, and adjusts the playback of the target music track according to the movement frequency. This realizes the automatic selection and automatic playback adjustment of the target music track during exercise, without requiring the user to manually control the electronic device to select and adjust the target music track, thus improving the convenience of controlling the playback of the target music track.
[0075] Another embodiment of this application discloses another music playback method. As shown in FIG2, based on the embodiment corresponding to FIG1 above, between step S110 and step S120, the method further includes:
[0076] S150 determines the music type corresponding to the motion frequency based on the motion frequency.
[0077] In this embodiment, step S120 includes:
[0078] S1201, The music track corresponding to the music type is determined as the target music track.
[0079] In step S150 above, during the user's movement, the music type corresponding to the movement frequency can be determined. The correspondence between movement frequency and music type can be preset or set by the user, and there is no restriction here.
[0080] In step S1201 above, if at least one of the multiple music tracks has the same music type as the music type corresponding to the motion frequency, that is, if at least one music track is the music track corresponding to the music type, then the music track corresponding to the music type can be determined as the target music track.
[0081] For example, different music genres can correspond to different motion frequency ranges. Similarly, different music genres can also correspond to different motion frequencies, without limitation. Let's take music track 3 as instrumental and music track 4 as non-instrumental. Instrumental music indicates music tracks without lyrics. Non-instrumental music indicates music tracks with lyrics. Instrumental music can correspond to a third motion frequency range, and non-instrumental music can correspond to a fourth motion frequency range. When the user's motion frequency is within the third motion frequency range, the electronic device can determine that the music genre corresponding to the motion frequency is instrumental, and thus select music track 3 as the target music track. When the user's motion frequency is within the fourth motion frequency range, the electronic device can determine that the music genre corresponding to the motion frequency is non-instrumental, and thus select music track 4 as the target music track. Of course, this is not limited to these categories; for example, music genres can also include classical music, folk music, pop music, jazz, R&B, rock music, electronic music, rap music, etc. For example, the range of motion frequencies may also include other ranges of motion frequencies besides the third and fourth ranges of motion frequencies, without limitation.
[0082] Therefore, during exercise, electronic devices can determine the corresponding music genre based on the user's exercise frequency, and then identify the target music track based on the music genre, which improves the ease of identifying the target music track. Correspondingly, if the user's exercise frequency can be matched with the music genre of the target music track, it enhances the user's exercise experience.
[0083] In some optional embodiments, as shown in FIG3, based on the embodiment corresponding to FIG2 above, between step S110 and step S150, the following is further included:
[0084] S160 determines playback parameters based on motion frequency.
[0085] In this embodiment, step S150 includes:
[0086] S1501 determines the music type based on playback parameters.
[0087] In step S160 above, during the user's movement, playback parameters corresponding to the movement frequency can be determined based on the movement frequency. The correspondence between the movement frequency and the playback parameters can be preset or set by the user; there is no restriction here.
[0088] In step S1501 above, given the playback parameters, the music type corresponding to the playback parameters can be determined. The music type can be used to select a target music track from multiple tracks, such as defining the music track corresponding to the music type as the target music track. The correspondence between playback parameters and music types can be preset or set by the user; there are no restrictions here.
[0089] For example, different playback parameters can correspond to different motion frequency ranges. Correspondingly, different playback parameters can correspond to different motion frequencies, without limitation. Taking a playback parameter consisting of a first playback parameter and a second playback parameter, where the first playback parameter is smaller than the second playback parameter, as an example: the first playback parameter can correspond to a fifth motion frequency range, and the second playback parameter can correspond to a sixth motion frequency range. The maximum motion frequency in the fifth motion frequency range is less than the minimum motion frequency in the sixth motion frequency range. When the user's motion frequency is within the fifth motion frequency range, the electronic device can determine that the first playback parameter matches the motion frequency, and thus determine the music type based on the first playback parameter. When the user's motion frequency is within the sixth motion frequency range, the electronic device can determine that the second playback parameter matches the motion frequency, and thus determine the music type based on the second playback parameter. Of course, this is not limited to this; for example, playback parameters can include specific playback parameter values or ranges of playback parameter values. Furthermore, motion frequency ranges can also include other motion frequency ranges besides the fifth and sixth motion frequency ranges, without limitation.
[0090] For example, different music genres can be associated with different playback parameters. Take classical music and rock music as examples. Classical music can be associated with a first playback parameter, and rock music with a second playback parameter. If the first playback parameter is determined by the motion frequency, the music genre can be determined as classical music. If the second playback parameter is determined by the motion frequency, the music genre can be determined as rock music. Of course, this is not a limitation, and no specific restrictions are imposed here.
[0091] Therefore, during exercise, electronic devices can determine playback parameters based on the user's exercise frequency, and then determine the music genre based on these parameters, thus improving the ease of music genre selection. Correspondingly, once the music genre is determined, it can be used to subsequently select a target music track, ensuring that the target track matches the genre. This, in turn, ensures that the user's exercise frequency matches the target music track's genre, thereby enhancing the user's exercise experience.
[0092] Another embodiment of this application discloses another music playback method. As shown in FIG. 4, based on the embodiment corresponding to FIG. 1 above, between step S130 and step S140, the method further includes:
[0093] S170 determines playback parameters based on motion frequency.
[0094] In this embodiment, step S140 includes:
[0095] S1401 plays the target music track with defined playback parameters.
[0096] In step S170 above, during the user's movement, playback parameters corresponding to the movement frequency can be determined based on the movement frequency. The correspondence between the movement frequency and the playback parameters can be preset or set by the user; there is no restriction here.
[0097] In step S1401 above, if the playback parameters are determined, the target music track can be played according to the playback parameters.
[0098] For example, different playback parameters can correspond to different ranges of motion frequencies. Similarly, different playback parameters can also correspond to different motion frequencies, without limitation. During the playback of a target music track, the user's motion frequency may change. In response to this change in motion frequency, the playback parameters determined based on the motion frequency are also likely to change. Therefore, when adjusting the playback of the target music track according to the motion frequency, the target music track can be played according to the determined playback parameters. For example, if the playback parameters determined based on the motion frequency change, the target music track can be played according to the changed playback parameters. Or, for example, if the playback parameters determined based on the motion frequency do not change, the target music track can be played using the original playback parameters.
[0099] Based on this, during exercise, the electronic device can determine the playback parameters according to the exercise frequency and play the target music track with the determined playback parameters, without the user having to manually control the electronic device to adjust the playback parameters of the target music track. This improves the ease of determining and adjusting the playback parameters of the target music track.
[0100] In some optional embodiments, as shown in FIG5, based on the embodiment corresponding to FIG4 above, the method further includes the following between step S170 and step S1401:
[0101] S180, detects the playback status of the target music track.
[0102] In this embodiment, step S1401 includes:
[0103] Step S1402: If the target music track is detected to be playing, play the target music track with the playback parameters.
[0104] In step S180 above, during the playback of the target music track, the playback status of the target music track can be detected to determine whether the target music track is being played, and then to determine whether the playback of the target music track needs to be adjusted according to the motion frequency.
[0105] In step S1402 above, if the target music track is detected to be playing, it can be determined that the playback of the target music track needs to be adjusted according to the motion frequency. Based on this, if the playback parameters are determined according to the motion frequency, the target music track can be played according to the playback parameters to adjust the playback of the target music track.
[0106] Based on this, by detecting the playback status of the target music track during playback, the playback parameters can be adjusted to play the target music track while it is playing. This ensures that the playback of the target music track is adjusted according to the motion frequency while it is playing, thereby improving the ease of control over the playback of the target music track.
[0107] In some alternative embodiments, playback parameters include beat and / or playback speed.
[0108] For example, when determining playback parameters based on motion frequency, the beat and / or playback speed can be determined based on motion frequency.
[0109] Different beats can correspond to different ranges of motion frequencies. Similarly, different beats can also correspond to different motion frequencies; this is not limited. The correspondence between beats and motion frequency ranges, and between beats and motion frequencies, can be preset or user-defined; this is not limited. Beats include, for example, 50 beats per minute (BPM), 55 BPM, 60 BPM, 70 BPM, 75 BPM, 80 BPM, 86 BPM, 90 BPM, 92 BPM, 100 BPM, 110 BPM, 120 BPM, 130 BPM, 140 BPM, etc., and this is not limited.
[0110] In one exemplary embodiment, the correspondence between beats and the range of motion frequencies includes, for example, that when the motion frequency is less than a first motion frequency, the beat is a first beat; when the motion frequency is greater than or equal to the first motion frequency and less than or equal to a second motion frequency, the beat is a second beat; and when the motion frequency is greater than the second frequency, the beat is a third beat. Wherein, the first motion frequency is less than the second motion frequency, the first beat is less than the second beat, and the second beat is less than the third beat. And so on, with higher motion frequencies corresponding to larger beat values.
[0111] Taking movement frequency, including step frequency, as an example, the correspondence between beat and step frequency range can be as follows: when the step frequency is less than 160 steps / minute, the beat is 120 BPM; when the step frequency is greater than or equal to 160 steps / minute and less than or equal to 170 steps / minute, the beat is 130 BPM; and when the step frequency is greater than 170 steps / minute, the beat is 140 BPM.
[0112] For example, if a user's cadence over 5 seconds is obtained, and the user's average cadence over 5 seconds is 150 steps / minute, then the user's cadence during exercise can be determined to be 150 steps / minute. Correspondingly, if the user's cadence during exercise is 150 steps / minute, since this cadence is less than 160 steps / minute, the beat rate can be determined to be 120 BPM. Of course, this is not a limitation, and no specific restriction is imposed here.
[0113] Different playback speeds can correspond to different motion frequency ranges. Similarly, different playback speeds can also correspond to different motion frequencies; this is not limited. The correspondence between playback speed and motion frequency range, or between playback speed and motion frequency, can be preset or user-defined; this is not limited. Playback speeds, for example, include 0.25x, 0.5x, 0.75x, 1x, 1.25x, 1.5x, 1.75x, 2x, and 3x speeds, etc., and this is not limited.
[0114] In one exemplary embodiment, the correspondence between playback speed and motion frequency range includes, for example, a first playback speed when the motion frequency is less than a third motion frequency; a second playback speed when the motion frequency is greater than or equal to the third motion frequency and less than or equal to a fourth motion frequency; and a third playback speed when the motion frequency is greater than the fourth motion frequency. Wherein, the third motion frequency is less than the fourth motion frequency, the first playback speed is less than the second playback speed, and the second playback speed is less than the third playback speed. And so on, with higher motion frequencies corresponding to higher playback speed values.
[0115] For example, the beat and / or playback speed determined by the movement frequency can be used to determine the music genre, which can then be used to identify the target music track, thereby improving the ease of identifying the target music track.
[0116] Different beats can correspond to different music genres. The correspondence between beats and music genres can be one-to-one or many-to-one; there are no restrictions here. This correspondence can be pre-set or user-defined; there are no restrictions here either. When the beat is determined based on the movement frequency, the corresponding music genre can be determined, allowing the selection of music tracks corresponding to that genre as target tracks.
[0117] Different playback speeds can correspond to different music genres. The correspondence between playback speed and music genre can be one-to-one or many-to-one; no restriction is imposed here. When the playback speed is determined based on the motion frequency, the corresponding music genre can be identified, allowing for the selection of music tracks corresponding to that genre as target tracks.
[0118] For example, the beat and / or playback speed determined by the movement frequency can be used to play a target music track, thereby improving the ease of control over the playback of the target music track.
[0119] By determining the beat based on the movement frequency, a target music track can be played at a fixed beat. The larger the beat value, the shorter the time required to play the same target music track.
[0120] Accordingly, when the playback speed is determined based on the motion frequency, the target music track can be played at a fixed playback speed. The faster the playback speed, the shorter the time required to finish playing the same target music track.
[0121] Another embodiment of this application discloses another music playback method. As shown in FIG. 6, based on the embodiment corresponding to FIG. 1 above, between step S110 and step S120, the method further includes:
[0122] S190, detect the playback status of the target music track.
[0123] In this embodiment, step S120 includes:
[0124] S1202, if the target music track is not detected to be playing, the target music track is determined from multiple music tracks based on the motion frequency.
[0125] In step S190 above, when the user's movement frequency is obtained, since the movement frequency can be used to select a target music track and adjust its playback, it can be determined whether to select the target music track by detecting its playback status. For example, if the target music track is detected to be playing, it can be determined that there is no need to select it, and the playback of the target music track can be adjusted according to the movement frequency.
[0126] In step S1202 above, if the target music track is not detected to be playing, it can be determined that a target music track needs to be selected. Based on this, the motion frequency can be used as the basis for determining the target music track from multiple music tracks, thereby determining the target music track.
[0127] Based on this, by obtaining the user's movement frequency during exercise and detecting the playback status of the target music track, the target music track can be determined from multiple music tracks based on the movement frequency even when the target music track is not playing. This ensures that the target music track can be selected based on the movement frequency even when the target music track is not playing, without requiring the user to select the target music track manually, thereby improving the convenience of controlling the playback of the target music track.
[0128] It should be understood that the sequence number of each step in the above embodiments does not imply 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 this application.
[0129] It should be noted that the various method embodiments disclosed in this application can be freely combined, and the technical solutions obtained after free combination are also within the protection scope of this application.
[0130] Another embodiment of this application discloses another music playback method. This music playback method is applied to an electronic system, which includes a first electronic device and a second electronic device communicatively connected to the first electronic device. As shown in FIG7, in this embodiment, the music playback method includes:
[0131] S210, control the first electronic device to acquire the motion frequency of the user during movement.
[0132] S220, based on the motion frequency, control the second electronic device to determine the target music track from multiple music tracks.
[0133] S230, play the target music track.
[0134] S240 adjusts the playback of the target music track according to the motion frequency.
[0135] In this embodiment, when the first electronic device obtains the user's movement frequency, it can send the movement frequency to the second electronic device based on the communication connection between the first and second electronic devices. Upon receiving the movement frequency, the second electronic device can determine the target music track from multiple music tracks based on the movement frequency.
[0136] Accordingly, when the second electronic device determines the target music track, the first electronic device can acquire and play the target music track based on the communication connection with the second electronic device. Conversely, when the second electronic device determines the target music track, the second electronic device can also play the target music track.
[0137] During the playback of the target music track, either the first electronic device or the second electronic device can adjust the playback of the target music track according to the motion frequency.
[0138] It should be noted that, in this embodiment, the executing entity of step S230 can be either the first electronic device or the second electronic device, and there is no limitation thereto. Similarly, the executing entity of step S240 can be either the first electronic device or the second electronic device, and there is no limitation thereto. The specific implementation process of this embodiment can be referred to the description of the above embodiments of this application. The specific processes of acquiring the motion frequency, determining the target music track, playing the target music track, and adjusting the playback of the target music track in this embodiment can be referred to the description of the above embodiments of this application, and will not be repeated here.
[0139] In one possible implementation, the first electronic device may include a wearable device. Wearable devices may include watches, wristbands, or other devices that can be worn on a user's body. The second electronic device may include mobile phones, tablets, servers, or server clusters.
[0140] Another embodiment of this application discloses another music playback method. As shown in FIG8, this embodiment, based on the embodiment corresponding to FIG7 above, further includes the following between steps S210 and S220:
[0141] S250 determines the music type corresponding to the motion frequency based on the motion frequency.
[0142] Step S220 includes:
[0143] S2201, control the second electronic device to determine the music track corresponding to the music type as the target music track.
[0144] The specific implementation process for determining the music type and the target music track in this embodiment can be found in the description of the above embodiments of this application, and will not be repeated here. It should be noted that the executing entity of step S250 in this embodiment can be either the first electronic device or the second electronic device, and no limitation is made here.
[0145] Another embodiment of this application discloses another music playback method. As shown in FIG8, this embodiment, based on the embodiment corresponding to FIG8 above, further includes the following between step S210 and step S250:
[0146] S260 determines playback parameters based on motion frequency.
[0147] Step S250 includes:
[0148] S2501 determines the music type based on playback parameters.
[0149] The specific implementation process for determining the playback parameters and music type in this embodiment can be found in the description of the above embodiments of this application, and will not be repeated here. It should be noted that the executing entity of the above steps in this embodiment can be either a first electronic device or a second electronic device, and no limitation is made here.
[0150] Another embodiment of this application discloses another music playback method. As shown in FIG10, based on the embodiment corresponding to FIG7 above, between step S230 and step S240, the method further includes:
[0151] S270 determines playback parameters based on motion frequency.
[0152] Step S240 includes:
[0153] S2401 plays the target music track with defined playback parameters.
[0154] The specific implementation process of determining the playback parameters and playing the target music track in this embodiment can be found in the description of the above embodiments of this application, and will not be repeated here. It should be noted that the execution subject of the above steps in this embodiment can be either a first electronic device or a second electronic device, and there is no limitation thereto.
[0155] In some optional embodiments, as shown in FIG11, based on the embodiment corresponding to FIG10 above, between step S270 and step S2401, the following is further included:
[0156] S280 detects the playback status of the target music track.
[0157] Step S2401 includes:
[0158] S2402, if the target music track is detected to be playing, play the target music track with the playback parameters.
[0159] The specific implementation process of detecting the playback status of the target music track and playing the target music track in this embodiment can be referred to the description of the above embodiments of this application, and will not be repeated here. It should be noted that the execution subject of the above steps in this embodiment can be either a first electronic device or a second electronic device, and there is no limitation here.
[0160] In some alternative embodiments, playback parameters include beat and / or playback speed.
[0161] The description of the playback parameters in this embodiment can be found in the description of the above embodiments of this application, and will not be repeated here.
[0162] Another embodiment of this application discloses another music playback method. As shown in FIG12, based on the embodiment corresponding to FIG7 above, between step S210 and step S220, the method further includes:
[0163] S290, detects the playback status of the target music track.
[0164] Step S220 includes:
[0165] S2202, if the target music track is not detected to be playing, the second electronic device is controlled to determine the target music track from multiple music tracks based on the motion frequency.
[0166] The specific implementation process of detecting the playback status of the target music track and determining the target music track in this embodiment can be referred to the description of the above embodiments of this application, and will not be repeated here. It should be noted that the execution subject of step S290 in this embodiment can be either the first electronic device or the second electronic device, and there is no limitation here.
[0167] Corresponding to the music playback method in the embodiment shown in Figure 1 above, this application also provides an electronic device. As shown in Figure 13, the electronic device 50 includes a memory 501 and a processor 502; the memory 501 stores a computer program 503; the processor 502 executes the computer program 503 and implements the aforementioned music playback method when executing the computer program 503. This electronic device can be a wearable device, a mobile phone, a tablet computer, a server, or a server cluster, etc. Wearable devices can include watches or bracelets, etc., that can be worn on a user's body, and are not limited thereto.
[0168] Specifically, when executing computer program 503, processor 502 needs to perform the following steps:
[0169] Obtain the user's movement frequency during exercise;
[0170] Based on the aforementioned motion frequency, a target music track is determined from multiple music tracks;
[0171] Play the target music track;
[0172] The playback of the target music track is adjusted according to the motion frequency.
[0173] In some alternative embodiments, the processor 502 also needs to perform the following steps:
[0174] Based on the motion frequency, determine the music type corresponding to the motion frequency;
[0175] The music track corresponding to the music type is identified as the target music track.
[0176] In some alternative embodiments, the processor 502 also needs to perform the following steps:
[0177] Based on the motion frequency, determine the playback parameters;
[0178] The music type is determined based on the playback parameters.
[0179] In some alternative embodiments, the processor 502 also needs to perform the following steps:
[0180] Based on the motion frequency, determine the playback parameters;
[0181] The target music track is played using the determined playback parameters.
[0182] In some alternative embodiments, the processor 502 also needs to perform the following steps:
[0183] Detect the playback status of the target music track;
[0184] If the target music track is detected to be playing, the target music track is played using the playback parameters.
[0185] In some alternative embodiments, the processor 502 also needs to perform the following steps:
[0186] The playback parameters include beat and / or playback speed.
[0187] In some alternative embodiments, the processor 502 also needs to perform the following steps:
[0188] Detect the playback status of the target music track;
[0189] If the target music track is not detected to be playing, the target music track is determined from multiple music tracks based on the motion frequency.
[0190] In some embodiments, based on the embodiment corresponding to FIG13 above, another electronic device is disclosed. As shown in FIG14, the electronic device in this embodiment further includes a display 504. The display 504 is connected to the processor 502. The display 504 is used to display the user's movement frequency, the target music track being played, etc. Of course, it is not limited to this; the display 504 can also be used to display the user's movement trajectory, mark the target music track being played on the user's movement trajectory, etc., without limitation.
[0191] Corresponding to the music playback method in the embodiment shown in Figure 7 above, this application also provides an electronic system, as shown in Figure 15. The electronic system 60 includes a first electronic device 601, a second electronic device 602 communicatively connected to the first electronic device 601, a memory 603, and a processor 604. The memory 603 stores a computer program 605. The processor 604 executes the computer program 605 to implement the aforementioned music playback method.
[0192] The memory 603 in the electronic system may include the memory of each of the first electronic device 601 and the second electronic device 602, or it may be a separate memory that is communicatively connected to both the first electronic device 601 and the second electronic device 602. The processor 604 in the electronic system may include the processor of each of the first electronic device 601 and the second electronic device 602, or it may be a separate processor that is communicatively connected to both the first electronic device 601 and the second electronic device 602; no limitation is imposed here.
[0193] Specifically, processor 604 needs to perform the following steps when executing computer program 605:
[0194] The first electronic device is controlled to acquire the user's motion frequency during movement.
[0195] Based on the motion frequency, the second electronic device is controlled to determine the target music track from multiple music tracks;
[0196] Play the target music track;
[0197] The playback of the target music track is adjusted according to the motion frequency.
[0198] In some alternative embodiments, the processor 604 also needs to perform the following steps:
[0199] Based on the motion frequency, determine the music type corresponding to the motion frequency;
[0200] The second electronic device is controlled to determine the music track corresponding to the music type as the target music track.
[0201] In some alternative embodiments, the processor 604 also needs to perform the following steps:
[0202] Based on the motion frequency, determine the playback parameters;
[0203] The music type is determined based on the playback parameters.
[0204] In some alternative embodiments, the processor 604 also needs to perform the following steps:
[0205] Based on the motion frequency, determine the playback parameters;
[0206] The target music track is played using the determined playback parameters.
[0207] In some alternative embodiments, the processor 604 also needs to perform the following steps:
[0208] Detect the playback status of the target music track;
[0209] If the target music track is detected to be playing, the target music track is played using the playback parameters.
[0210] In some alternative embodiments, the processor 604 also needs to perform the following steps:
[0211] The playback parameters include beat and / or playback speed.
[0212] In some alternative embodiments, the processor 604 also needs to perform the following steps:
[0213] Detect the playback status of the target music track;
[0214] If the target music track is not detected to be playing, the second electronic device is controlled to determine the target music track from multiple music tracks based on the motion frequency.
[0215] In some embodiments, based on the embodiment corresponding to FIG15 above, another electronic system is disclosed. As shown in FIG16, the electronic system in this embodiment further includes a display device. The display device is used to display the user's movement frequency, the target music track being played, etc. Of course, it is not limited to this; the display device can also be used to display the user's movement trajectory, mark the target music track being played on the user's movement trajectory, etc., without limitation. The display device is disposed in at least one of the first electronic device 601 and the second electronic device 602, that is, it can be disposed in both the first electronic device 601 and the second electronic device 602, or it can be disposed in one of the first electronic device 601 and the second electronic device 602. In the electronic system shown in FIG15, the first electronic device 601 is provided with a first display device 606, and the second electronic device 602 is provided with a second display device 607, but this application is not limited thereto.
[0216] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the music playback method described above.
[0217] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps of the music playback method described above.
[0218] If the integrated unit is implemented as 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, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to a photographic device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0219] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0220] Those skilled in the art will recognize that the units and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0221] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0222] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0223] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for playing music, characterized in that, The music playback method includes: Obtain the user's movement frequency during exercise; Based on the aforementioned motion frequency, a target music track is determined from multiple music tracks; Play the target music track; The playback of the target music track is adjusted according to the motion frequency.
2. The music playback method according to claim 1, characterized in that, The music playback method also includes: Based on the motion frequency, determine the music type corresponding to the motion frequency; Based on the aforementioned motion frequency, a target music track is determined from multiple music tracks, including: The music track corresponding to the music type is identified as the target music track.
3. The method according to claim 2, characterized in that, The music playback method also includes: Based on the motion frequency, determine the playback parameters; The step of determining the music type corresponding to the motion frequency based on the motion frequency includes: The music type is determined based on the playback parameters.
4. The music playback method according to claim 1, characterized in that, The music playback method also includes: Based on the motion frequency, determine the playback parameters; The step of adjusting the playback of the target music track according to the motion frequency includes: The target music track is played using the determined playback parameters.
5. The music playback method according to claim 4, characterized in that, The music playback method also includes: Detect the playback status of the target music track; Playing the target music track according to the determined playback parameters includes: If the target music track is detected to be playing, the target music track is played using the playback parameters.
6. The music playback method according to claim 3 or 4, characterized in that, The playback parameters include beat and / or playback speed.
7. The music playback method according to claim 1, characterized in that, The music playback method also includes: Detect the playback status of the target music track; The step of determining the target music track from multiple music tracks based on the motion frequency includes: If the target music track is not detected to be playing, the target music track is determined from multiple music tracks based on the motion frequency.
8. An electronic device, characterized in that, The electronic device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute a computer program and, when executing the computer program, implement the music playback method as described in any one of claims 1 to 7.
9. A method for playing music, characterized in that, The music playback method is applied to an electronic system, the electronic system including a first electronic device and a second electronic device communicatively connected to the first electronic device, the music playback method including: The first electronic device is controlled to acquire the user's motion frequency during movement. Based on the motion frequency, the second electronic device is controlled to determine the target music track from multiple music tracks; Play the target music track; The playback of the target music track is adjusted according to the motion frequency.
10. The music playback method according to claim 9, characterized in that, The music playback method also includes: Based on the motion frequency, determine the music type corresponding to the motion frequency; The step of controlling the second electronic device to determine the target music track from multiple music tracks based on the motion frequency includes: The second electronic device is controlled to determine the music track corresponding to the music type as the target music track.
11. The music playback method according to claim 10, characterized in that, The music playback method also includes: Based on the motion frequency, determine the playback parameters; The step of determining the music type corresponding to the motion frequency based on the motion frequency includes: The music type is determined based on the playback parameters.
12. The music playback method according to claim 9, characterized in that, The music playback method also includes: Based on the motion frequency, determine the playback parameters; The step of adjusting the playback of the target music track according to the motion frequency includes: The target music track is played using the determined playback parameters.
13. The music playback method according to claim 12, characterized in that, The music playback method also includes: Detect the playback status of the target music track; Playing the target music track according to the determined playback parameters includes: If the target music track is detected to be playing, the target music track is played using the playback parameters.
14. The music playback method according to claim 11 or 12, characterized in that, The playback parameters include beat and / or playback speed.
15. The music playback method according to claim 9, characterized in that, The music playback method also includes: Detect the playback status of the target music track; The step of controlling the second electronic device to determine the target music track from multiple music tracks based on the motion frequency includes: If the target music track is not detected to be playing, the second electronic device is controlled to determine the target music track from multiple music tracks based on the motion frequency.
16. An electronic system, the electronic system comprising a first electronic device, a second electronic device communicatively connected to the first electronic device, a memory, and a processor; The memory is used to store computer programs; The processor is configured to execute a computer program and, when executing the computer program, implement the music playback method as described in any one of claims 9 to 15.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the music playback method as described in any one of claims 1 to 7, or implements the steps of the music playback method as described in any one of claims 9 to 15.