CN113050848A - Music playing method, system, equipment and computer readable storage medium - Google Patents
Music playing method, system, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN113050848A CN113050848A CN201911371014.3A CN201911371014A CN113050848A CN 113050848 A CN113050848 A CN 113050848A CN 201911371014 A CN201911371014 A CN 201911371014A CN 113050848 A CN113050848 A CN 113050848A
- Authority
- CN
- China
- Prior art keywords
- music
- user
- running
- playing
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B22/00—Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements
- A63B22/02—Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with movable endless bands, e.g. treadmills
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Cardiology (AREA)
- Vascular Medicine (AREA)
- General Health & Medical Sciences (AREA)
- Physical Education & Sports Medicine (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
The application provides a music playing method, a system, equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring the running parameters of the treadmill; determining the running mode of the user according to the running parameters; determining a music list to be played according to the running mode; and acquiring physical sign data of a user, and selecting music from the music list to play according to the physical sign data. The application effectively improves the interestingness of the user in using the treadmill and effectively improves the running efficiency.
Description
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a music playing method, system, device, and computer-readable storage medium.
Background
With the increase of the movement consciousness of people, more and more people prefer sports. However, in cities, people cannot easily run outdoors due to outdoor air pollution, and therefore, many people choose to set one running machine at home and perform running activities on the running machine.
At present, a user runs on a running machine very boring, so that a lot of people can play music through audio playing equipment or earphones to enhance the running interest, and meanwhile, the running efficiency can be improved through music with a proper rhythm. However, most of music played by users is played randomly or circularly, and the music playing cannot be intelligently controlled according to the actual situation of the users during running, so that the user experience is not high.
Disclosure of Invention
The present disclosure is directed to a method, a system, a device and a computer readable storage medium for playing music, which are used to increase the enjoyment of a user in using a treadmill and increase the running efficiency of the user on the treadmill.
In a first aspect, the present application provides a music playing method, applied to an audio playing device, where the audio playing device is in communication with a treadmill, and the music playing method includes the following steps:
acquiring the running parameters of the treadmill;
determining the running mode of the user according to the running parameters;
determining a music list to be played according to the running mode;
and acquiring physical sign data of a user, and selecting music from the music list to play according to the physical sign data.
In a second aspect, the present application further provides a music playing system, including:
audio playback device and treadmill, audio playback device and treadmill communication connection, wherein:
the running machine is used for sending an operation instruction to the audio playing equipment after being started;
the audio playing device is configured to receive the operation instruction, and execute the steps of the music playing method according to the operation instruction.
In a third aspect, the present application further provides an audio playing device, which includes a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the music playing method as described above are implemented.
In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the music playing method as described above.
The application provides a music playing method, a system, equipment and a computer readable storage medium, the running mode of a user is determined through running parameters of a running machine, a music list to be played is determined according to the running mode, then physical sign data of the user is obtained, music is selected from the music list according to the physical sign data to be played, the music can be intelligently selected to be played according to the actual running condition of the user, interestingness of the user in running is effectively improved, and running efficiency is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a music playing method according to an embodiment of the present application;
FIG. 2 is a schematic view of a treadmill according to an embodiment of the present application;
fig. 3 is a schematic view of a scene for implementing the music playing method provided in this embodiment;
fig. 4 is a schematic flowchart of another music playing method according to an embodiment of the present application;
FIG. 5 is a schematic view of another treadmill provided in accordance with an embodiment of the present application;
fig. 6 is a schematic block diagram of a music playing system according to an embodiment of the present application;
fig. 7 is a schematic block diagram of a structure of an audio playing device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a music playing method, a music playing system, music playing equipment and a computer readable storage medium. The music playing method can be applied to audio playing equipment which can be electronic equipment such as a mobile phone, a tablet personal computer, a notebook computer, an intelligent sound box, an intelligent earphone and a CD player. The audio playing device is in communication connection with the running machine, and the audio playing device can be located in the same space with the running machine, so that the best effect of music playing is achieved.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a music playing method according to an embodiment of the present application.
As shown in fig. 1, the music playing method includes steps S101 to S104.
And S101, acquiring the running parameters of the treadmill.
When the user starts the treadmill, the treadmill sends a start instruction to the audio playing device. And the audio playing equipment receives the opening instruction and controls the opening according to the opening instruction. The starting instruction can be sent by infrared rays or near infrared rays in a remote control mode or by a radio remote control mode, the running machine can be a mechanical running machine or an electric running machine or a single-function running machine or a multifunctional running machine, and the audio playing device can be a mobile phone, an intelligent sound box and the like.
In one embodiment, the treadmill is in communication connection with the audio playing device, and after the treadmill is started, the audio playing device is awakened through the network to obtain the running parameters of the treadmill. The network comprises a wired network and a wireless network, wherein the wireless network comprises a WiFi communication network, a Bluetooth communication network, a 3G communication network, a 4G communication network, a 5G communication network and the like. The running parameters comprise at least one of running time length, an energy consumption value, a slope and a running speed of the running machine, wherein the energy consumption value is an energy value consumed by a user in running, the slope is a slope of a track of the running machine, the range of the slope can be (0 DEG and 30 DEG), the running speed is a rotating speed of the track of the running machine, and the range of the running speed can be 0-15 km/h.
In an embodiment, when the operation parameter of the treadmill is obtained, the operation parameter may also be included in the operation instruction sent by the treadmill, that is, the treadmill sends the operation instruction to the audio playing device, the audio playing device controls the operation according to the received operation instruction, and the operation parameter in the received operation instruction is stored in the memory. In addition, the user may also control the audio playing device to be turned on through a button, a remote controller, a control, a voice wake-up instruction, or the like, determine whether the treadmill is in the working state after the audio playing device is turned on, and send an acquisition request to the treadmill to acquire the running parameters of the treadmill if the treadmill is in the working state.
And S102, determining the running mode of the user according to the running parameters.
Specifically, the running mode in which the user is positioned may be determined based on the length of time the treadmill is operating, the energy consumption value, the grade, and/or the operating speed. Wherein the energy consumption value is an energy value consumed by the user to run, the gradient is a gradient of a track of the treadmill, and the running speed is a rotation speed of the track of the treadmill. It should be noted that the running time of the treadmill is measured from the time when the track of the treadmill rotates, the energy consumption value is determined by the running time of the treadmill, the gradient of the track of the treadmill, the rotating speed and the weight of the user, which can be input by the user or determined by the weight sensor on the treadmill.
In one embodiment, the running mode of the user is determined based on the running time and the energy expenditure value of the treadmill. Optionally, the running mode includes a warm-up mode, a slow-warm mode, a challenge mode, and a relaxation mode. The warming-up mode is a mode that a user just starts to exercise to warm up, the slow heating mode is a mode that the user enters an exercise state to continuously exercise, the challenge mode is a mode that the user approaches the exercise limit to challenge the user, and the relaxation mode is a mode that the user approaches the exercise end to smooth the heart rate of the user.
Further, it is determined that the user is in a warm-up mode when the operation duration is less than 8 minutes or the energy consumption value is less than 80 calories, it is determined that the user is in a slow-heating mode when the operation duration is 8 to 20 minutes or the energy consumption value is 80 to 200 calories, it is determined that the user is in a challenge mode when the operation duration is more than 20 minutes and the energy consumption value is more than 200 calories, and it is determined that the user is in a relaxation mode when the operation duration is more than 30 minutes and the calorie increase amplitude of the energy consumption value is less than a preset amplitude threshold value, which can be flexibly set. In the above embodiment, when the user is in the warm-up mode, the user starts to warm up, and the warm-up time is controlled within 8 minutes or the energy consumption value is controlled within 80 calories. It should be noted that the determination criteria when the user is in the warm-up mode, the slow-warm mode, the challenge mode, or the relaxation mode may be set according to actual situations, and the embodiment given in this embodiment is only one of various embodiments and should not be taken as a limitation to this application.
In one embodiment, the running mode in which the user is positioned is determined based on the grade and operating speed of the treadmill. Wherein, the running mode comprises a slow slope jogging mode, a steep slope jogging mode, a slow slope fast running mode and a slow slope fast running mode. Optionally, the user is determined to be in the gentle slope jogging mode when the gradient is less than or equal to 5 degrees and the running speed is less than or equal to 8km/h, the user is determined to be in the steep slope jogging mode when the gradient is greater than 5 degrees and the running speed is less than or equal to 8km/h, the user is determined to be in the gentle slope jogging mode when the gradient is less than or equal to 5 degrees and the running speed is greater than 8km/h, and the user is determined to be in the steep slope jogging mode when the gradient is greater than 5 degrees and the running speed is greater than 8 km/h. It should be noted that the energy consumption speed of the user in each mode is different, the energy consumption speed is the fastest when the user is in the fast running mode on a steep slope, and the energy consumption speed is the slowest when the user is in the slow running mode on a gentle slope. The judgment standard when the user is in the gentle slope jogging mode, the steep slope jogging mode, the gentle slope fast running mode and the gentle slope fast running mode can be set according to actual conditions, and the method and the device are not specifically limited.
It can be understood that the running mode of the user may also be determined according to one or both of the running time length, the energy consumption value, the gradient and the running speed of the treadmill, and the specific steps may refer to the above embodiment of determining the running mode of the user, which is not described in detail herein.
In one embodiment, the running mode may also be selected by the user at his or her discretion. As shown in FIG. 2, the treadmill includes a display module 10 for displaying operating parameters of the treadmill. The display module 10 is provided with a plurality of mode selection buttons 11, the user can adjust the running mode of the treadmill based on the mode selection buttons 11 on the display module 10, the running mode includes a first running mode, a second running mode and a third running mode, the mode selection buttons 11 include a first running mode button 111, a second running mode button 112 and a third running mode button 113, and the user can control the treadmill to switch the first running mode, the second running mode and the third running mode based on the first running mode button 111, the second running mode button 112 and the third running mode button 113. When this treadmill switches the mode of running at every turn, send the mode of running after switching for audio playback equipment, can know the mode of running that the user was located fast.
And step S103, determining a music list to be played according to the running mode.
The running mode of the user is different, the music suitable for playing is different, and the running efficiency of the user can be improved only by playing the music matched with the running mode, so that the user can not feel boring to run. In each running mode, a plurality of pieces of music suitable for playing jointly form a music list to be played. It should be noted that the music in the music list may be extracted from the memory of the audio playing device, or may be downloaded through the cloud database. In addition, the number of music pieces in the music list can be flexibly set by the user, and optionally, the number of music pieces is 12.
In one embodiment, after determining the running mode of the user, determining whether a history of music playing belonging to the running mode exists; if the history record of music playing of the running mode exists, determining a music list to be played according to the history record; and if the history record of music playing to which the running mode belongs does not exist, selecting a music list to be played from a preset music list set according to the running mode. It should be noted that, if there is no history of music playing belonging to the running mode, the user may select or randomly select a music list to be played, and the preset music list set may be preset by the user according to the actual situation, for example, a song list in a music player is used as the preset music list set, which is not limited in this application.
If the history of music playing to which the running mode belongs exists, the method for determining the music list to be played specifically comprises the following steps: and selecting the music played in the history from the history record according to the number of the music pieces of the preset music list to obtain the music list to be played. It should be noted that the number of music pieces of the preset music list can be flexibly set by the user. Illustratively, the number of music pieces is 6, and 6 music pieces which are played in the history are selected from the history record to form a music list to be played.
Or, the method for determining the music list to be played according to the history record of the music playing to which the running mode belongs may also be: and acquiring the playing times of each piece of music in the history record, and determining a music list to be played according to the playing times of each piece of music. It should be noted that, each piece of music may be sorted according to the playing times of each piece of music, and a music list to be played is obtained according to the sorting result. The music may be arranged from large to small, from small to large, or randomly, and the application is not limited in particular.
And S104, acquiring physical sign data of the user, and selecting music from the music list to play according to the physical sign data.
The audio playing device can acquire physical sign data of a user through intelligent wearable equipment worn by the user, and the physical sign data comprises information such as heart rate, swing arm frequency and/or stepping frequency. The physical sign data of the user can also be obtained by receiving the data of the heart rate, the swing arm frequency and/or the stepping frequency and the like of the user sent by the treadmill. The intelligent wearable device comprises an intelligent bracelet, an intelligent watch, an intelligent garment and the like, the swing arm frequency is the number of times that the arm swings back and forth in unit time, and the stepping frequency is the frequency that the user alternately steps in unit time.
In an embodiment, the audio playing device selects music from a music list to play according to the received physical sign data, and includes: acquiring the beats per minute BPM of each piece of music in the music list, matching the physical sign data with the BPM of each piece of music, and selecting the music corresponding to the BPM with the highest matching degree as the music to be played so as to play the music. Illustratively, the stepping frequency of the user is 100 steps/minute, four pieces of music are stored in the music list, the beats per minute BPM corresponding to each piece of music are respectively 80BPM, 120BPM, 105BPM and 110BPM, the BPM with the highest matching degree with the stepping frequency in the four pieces of music is 120BPM, and at this time, the music corresponding to 120BPM is selected to be played.
The beats per minute BPM of each piece of music can be generally obtained by: carrying out fast Fourier transform on a plurality of pieces of music to obtain a sound spectrum of each piece of music; the BPM of each piece of music can be obtained by counting the wave crests and the wave troughs in the sound spectrum of each piece of music. Since the BPM calculation for each piece of music involves more algorithms, a third party music database, such as a Soundtouch audio processor, may be selected to calculate the BPM. It should be noted that the BPM calculation of each piece of music may be a non-real-time operation, that is, as long as newly added music in the target music list is detected, a corresponding algorithm may be called to calculate the BPM, and the BPM may be recorded in the local database or the cloud database.
In an embodiment, after the number of beats per minute BPM of each music in the music list is determined, the music list may be further sorted in order of the BPM of each music from small to large or from large to small. Optionally, the music list is divided into a plurality of sub-music lists according to a preset number of BPMs as intervals, and the BPM interval corresponding to each sub-music list is different. It should be noted that the preset number can be flexibly set by the user, and the BPM of each piece of music in each BPM interval is greater than the BPM of each piece of music in the next BPM interval.
Referring to fig. 3, fig. 3 is a schematic view of a scene for implementing the music playing method provided in this embodiment.
As shown in fig. 3, the user a is running on the treadmill B, and the audio playback device C and the treadmill B are located in the same space. The user A controls the running machine B to be started through a starting button on the running machine B, after the running machine B is started, an operation instruction is sent to the audio playing device C, the audio playing device C is controlled to be started according to the received operation instruction, a parameter obtaining request is sent to the running machine B, the running machine B sends the running parameters of the user A and the sign data of the user A to the audio playing device C, and the audio playing device C selects music to play according to the running parameters and the sign data.
According to the music playing method provided by the embodiment, the running mode of the user is determined according to the running parameters of the running machine, the music list to be played is determined according to the running mode, the physical sign data of the user is obtained, and music is selected from the music list to be played according to the physical sign data, so that the music can be intelligently selected to be played according to the actual running condition of the user, the interestingness of the user in using the running machine is effectively improved, and the running efficiency is effectively improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another music playing method according to an embodiment of the present application.
As shown in fig. 4, the music playing method includes steps S201 to S204.
Step S201, obtaining the running parameters of the treadmill, and determining the running mode of the user according to the running parameters.
After the user controls the running machine to be started, the running machine sends an operation instruction to the audio playing device, so that the audio playing device operates according to the operation instruction. After receiving the running instruction, the audio playing device sends a running parameter obtaining request to the running machine so as to obtain the running parameters of the running machine. Wherein the operation parameter includes at least one of an operation time period, an energy consumption value, a grade, and an operation speed of the treadmill, and the energy consumption value is an energy value consumed by the user to run.
The audio playback device determines the running mode of the user according to the running time length, the energy consumption value, the gradient and/or the running speed of the treadmill. For example, the running mode of the user is determined according to the running time length and the energy consumption value of the treadmill; alternatively, the running mode of the user is determined based on the grade and running speed of the treadmill. It is understood that the running mode of the user may be determined according to one or both of the running time, the energy consumption value, the grade and the running speed of the treadmill, and the application is not limited in particular.
Illustratively, as shown in fig. 5, the treadmill includes a display module 10, and a speed selection button 12 and a grade selection button 13 are further provided on the display module 10, and a user can control the running speed of the treadmill through the speed selection button 12 and the grade of the track of the treadmill through the grade selection button 13. Each time the user triggers the speed selection button 12 or the gradient selection button 13, the treadmill sends the running speed or gradient adjusted by the treadmill to the audio playing device, so that the audio playing device judges the running mode of the user according to the running speed and/or gradient.
Step S202, determining a music list to be played according to the running mode, and acquiring physical sign data of the user.
The running mode of the user is different, the music suitable for playing is different, and the running efficiency of the user can be improved only by playing the music matched with the running mode, so that the user can not feel boring to run. In each running mode, a plurality of pieces of music suitable for playing jointly form a music list to be played. It should be noted that the music in the music list may be extracted from the memory of the audio playing device, or may be downloaded through the cloud database.
The audio playing device can acquire data such as heart rate, swing arm frequency and/or stepping frequency of the user through intelligent wearing equipment worn by the user or a treadmill. The intelligent wearable device comprises an intelligent bracelet, an intelligent watch, an intelligent garment and the like, the swing arm frequency is the number of times that the arm swings back and forth in unit time, and the stepping frequency is the frequency that the user alternately steps in unit time.
Step S203, determining rhythm information of each piece of music in the music list.
Each piece of music may be divided into a plurality of pieces of music and a plurality of beats, which means the total length of notes of each bar in the music score, including the common 1/4, 2/4, 3/4, 4/4, 3/8, 6/8, 7/8, 9/8, 12/8 beats and so on, and the length of each bar is fixed. Similarly, the music includes the tempos of light, heavy, slow, fast, compact, loose, etc., and in this embodiment, the tempo information of the music is the bar and the position of the beat of each tempo in each piece of music.
At present, the following methods are mainly used for automatic detection of music tempo: one is a music rhythm extraction method based on an internal and external probability algorithm. The method analyzes music elements, defines a probability context-free grammar system to describe relatively independent music rhythm elements, converts the music rhythm into formal grammar sentences, obtains the probability value of each grammar sentence in the grammar system by adopting an internal and external probability algorithm, and guides a computer to generate the music rhythm by utilizing the probability context-free grammar. The other method is a single-tone music rhythm extraction method based on the Bayesian theory, and the method introduces a Bayesian rhythm model, and then deduces the bar of the music fragment and the position of the beat by adopting a sequence Monte Carlo method based on the Bayesian theory, thereby obtaining the rhythm information of the music.
And S204, selecting music from the music list to play according to the physical sign data and the rhythm information of each piece of music.
In one embodiment, the heart rate, swing arm frequency and/or step frequency of the user in the sign data are acquired; matching rhythm information of each piece of music based on the heart rate, the swing arm frequency and/or the stepping frequency of the user to obtain the matching degree of each piece of music; and selecting the music from the music list to play according to the matching degree of each piece of music. It should be noted that, on the same time axis, the heart rate, the swing arm frequency and/or the stepping frequency may be compared with the rhythm information of each piece of music to obtain the coincidence degree between the heart rate, the swing arm frequency and/or the stepping frequency and the beat of each piece of music, and the coincidence degree of each piece of music is recorded as the matching degree corresponding to each piece of music. The music with the highest matching degree can be selected from the music list to be played, so that the interestingness of the user in running is enhanced, and the running efficiency is improved.
The heart rate, the swing arm frequency and/or the stepping frequency can be compared with the rhythm information of each piece of music in the following mode: comparing the beat of each piece of music with the heart rate, swing arm frequency and/or stepping frequency of the user; or comparing the odd number of the music beats with the heart rate, the swing arm frequency and/or the stepping frequency of the user; and comparing the even number of beat points of the music beat with the heart rate, swing arm frequency, and/or stride frequency of the user, etc., which is not limited in this embodiment.
In one embodiment, first rhythm information corresponding to a swing arm frequency of a user and second rhythm information corresponding to a heart rate of the user are obtained; respectively matching the first rhythm information and the second rhythm information with the rhythm information of each piece of music to obtain a first matching degree and a second matching degree of each piece of music; and processing the first matching degree and the second matching degree according to a preset formula to obtain the matching degree of each piece of music. Wherein, the swing arm rhythm information is the rhythm information of the swing of the arm when the user runs. It should be noted that the preset formula can be selected as an average weighting formula to improve the accuracy of the matching degree.
In an embodiment, the heart rate, the swing arm frequency and/or the stepping frequency of the user may also be matched with the rhythm information of the music piece of each piece of music, and then the music piece with the highest matching degree is selected as the selected target music to be played, so that the matching accuracy is improved, and some pieces of the played music are prevented from being inconsistent with the heart rate, the swing arm frequency and/or the stepping frequency of the user.
According to the music playing method provided by the embodiment, the running mode of the user is determined according to the running parameters of the running machine, the music list to be played is determined according to the running mode, the physical sign data of the user and the rhythm information of each piece of music in the music list are obtained, and the music is selected from the music list to be played according to the physical sign data and the rhythm information of each piece of music, so that the proper music can be effectively selected for playing according to the actual running condition of the user, the interest of the user in using the running machine is improved, and the running efficiency is improved.
Referring to fig. 6, fig. 6 is a schematic block diagram of a music playing system according to an embodiment of the present application.
As shown in fig. 6, the music playing system 300 includes: the audio playing device 301 and the running machine 302 are connected in communication, and the audio playing device 301 and the running machine 302 can be located in the same space to achieve the best effect of music playing.
The treadmill 302 is configured to send an operation instruction to the audio playing device 301 after being turned on;
the audio playing device 301 is configured to receive the operation instruction, and obtain an operation parameter of the treadmill 302 according to the operation instruction; determining the running mode of the user according to the running parameters; determining a music list to be played according to the running mode; and acquiring physical sign data of a user, and selecting music from the music list to play according to the physical sign data.
In one embodiment, the audio playing device 301 is further configured to:
determining whether a history of music playing to which the running mode belongs exists;
if the history record of music playing of the running mode exists, determining a music list to be played according to the history record;
and if the history record of music playing to which the running mode belongs does not exist, selecting a music list to be played from a preset music list set according to the running mode.
In one embodiment, the audio playing device 301 is further configured to:
selecting music played in history from the history record according to the number of music pieces of a preset music list to obtain a music list to be played; or
And acquiring the playing times of each piece of music in the history record, and determining a music list to be played according to the playing times of each piece of music.
In one embodiment, the audio playing device 301 is further configured to:
determining rhythm information of each piece of music in the music list;
and selecting music from the music list to play according to the physical sign data and the rhythm information of each piece of music.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of each device in the audio playing system described above may refer to the corresponding processes in the foregoing music playing method embodiment, and are not described herein again.
Referring to fig. 7, fig. 7 is a schematic block diagram illustrating a structure of an audio playing device according to an embodiment of the present disclosure. The audio playing device can be an electronic device such as a mobile phone, a tablet personal computer, a notebook computer, a sound box, an earphone and a CD player.
As shown in fig. 7, the audio playing device includes a processor, a memory and a network interface connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the music playing methods.
The processor is used for providing calculation and control capability and supporting the operation of the whole audio playing device.
The internal memory provides an environment for running a computer program in the non-volatile storage medium, which, when executed by the processor, causes the processor to perform any one of the music playing methods.
The network interface is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in fig. 7 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the audio playback device to which the present application is applied, and a particular audio playback device may include more or less components than those shown in the drawings, or combine some components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
acquiring the running parameters of the treadmill;
determining the running mode of the user according to the running parameters;
determining a music list to be played according to the running mode;
and acquiring physical sign data of a user, and selecting music from the music list to play according to the physical sign data.
In one embodiment, the processor, in implementing the determining a list of music to play according to the running mode, is configured to implement:
determining whether a history of music playing to which the running mode belongs exists;
if the history record of music playing of the running mode exists, determining a music list to be played according to the history record;
and if the history record of music playing to which the running mode belongs does not exist, selecting a music list to be played from a preset music list set according to the running mode.
In one embodiment, the processor, in implementing the determining a music list to be played from the history, is configured to implement:
selecting music played in history from the history record according to the number of music pieces of a preset music list to obtain a music list to be played; or
And acquiring the playing times of each piece of music in the history record, and determining a music list to be played according to the playing times of each piece of music.
In one embodiment, the processor in implementing the operational parameter includes at least one of an operational length of time, an energy expenditure value, a grade, and an operational speed of the treadmill, the energy expenditure value being an amount of energy expended by the user to run; when the running mode of the user is determined according to the running parameters, the method is used for realizing that:
determining the running mode of the user according to the running time length, the energy consumption value, the gradient and/or the running speed of the running machine.
In one embodiment, when the processor is configured to select music from the music list for playing according to the physical sign data, the processor is configured to:
determining rhythm information of each piece of music in the music list;
and selecting music from the music list to play according to the physical sign data and the rhythm information of each piece of music.
In one embodiment, when the processor selects music from the music list to play according to the physical sign data and the rhythm information of each piece of music, the processor is configured to implement:
acquiring the heart rate, swing arm frequency and/or stepping frequency of the user in the sign data;
matching rhythm information of each piece of music based on the heart rate, the swing arm frequency and/or the stepping frequency of the user to obtain the matching degree of each piece of music;
and selecting music from the music list to play according to the matching degree of each piece of music.
In one embodiment, the processor, when implementing the obtaining of the vital sign data of the user, is configured to implement:
acquiring the heart rate, the swing arm frequency and/or the stepping frequency of a user through intelligent wearable equipment worn by the user; or
And receiving the heart rate, the swing arm frequency and/or the stepping frequency of the user sent by the treadmill.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the audio playing device described above may refer to the corresponding process in the foregoing embodiment of the music playing method, and is not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to the embodiments of the music playing method of the present application.
The computer-readable storage medium may be an internal storage unit of the audio playing device described in the foregoing embodiment, for example, a hard disk or a memory of the audio playing device. The computer readable storage medium may also be an external storage device of the audio playing device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the audio playing device.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A music playing method is applied to an audio playing device, the audio playing device is in communication connection with a treadmill, and the music playing method comprises the following steps:
acquiring the running parameters of the treadmill;
determining the running mode of the user according to the running parameters;
determining a music list to be played according to the running mode;
and acquiring physical sign data of a user, and selecting music from the music list to play according to the physical sign data.
2. The music playing method according to claim 1, wherein the determining a list of music to be played according to the running mode comprises:
determining whether a history of music playing to which the running mode belongs exists;
if the history record of music playing of the running mode exists, determining a music list to be played according to the history record;
and if the history record of music playing to which the running mode belongs does not exist, selecting a music list to be played from a preset music list set according to the running mode.
3. The music playing method according to claim 2, wherein said determining a list of music to be played based on said history comprises:
selecting music played in history from the history record according to the number of music pieces of a preset music list to obtain a music list to be played; or
And acquiring the playing times of each piece of music in the history record, and determining a music list to be played according to the playing times of each piece of music.
4. The music playing method of claim 1, wherein the operation parameter includes at least one of an operation time period, an energy consumption value, a gradient, and an operation speed of the treadmill, the energy consumption value being an energy value consumed by the user to run;
the determining the running mode of the user according to the running parameters comprises:
determining the running mode of the user according to the running time length, the energy consumption value, the gradient and/or the running speed of the running machine.
5. The music playing method according to any one of claims 1 to 4, wherein selecting music from the music list for playing according to the physical sign data comprises:
determining rhythm information of each piece of music in the music list;
and selecting music from the music list to play according to the physical sign data and the rhythm information of each piece of music.
6. The music playing method according to claim 5, wherein the selecting music from the music list for playing according to the physical sign data and the rhythm information of each piece of music comprises:
acquiring the heart rate, swing arm frequency and/or stepping frequency of the user in the sign data;
matching rhythm information of each piece of music based on the heart rate, the swing arm frequency and/or the stepping frequency of the user to obtain the matching degree of each piece of music;
and selecting music from the music list to play according to the matching degree of each piece of music.
7. The music playing method according to any one of claims 1 to 4, wherein the obtaining of the physical sign data of the user comprises:
acquiring the heart rate, the swing arm frequency and/or the stepping frequency of a user through intelligent wearable equipment worn by the user; or
And receiving the heart rate, the swing arm frequency and/or the stepping frequency of the user sent by the treadmill.
8. A music playing system, characterized in that the music playing system comprises: audio playback device and treadmill, audio playback device and treadmill communication connection, wherein:
the running machine is used for sending an operation instruction to the audio playing equipment after being started;
the audio playing device is configured to receive the operation instruction, and execute the steps of the music playing method according to any one of claims 1 to 7 according to the operation instruction.
9. An audio playback device, characterized in that the audio playback device comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the music playback method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the music playing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911371014.3A CN113050848A (en) | 2019-12-26 | 2019-12-26 | Music playing method, system, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911371014.3A CN113050848A (en) | 2019-12-26 | 2019-12-26 | Music playing method, system, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113050848A true CN113050848A (en) | 2021-06-29 |
Family
ID=76505836
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911371014.3A Pending CN113050848A (en) | 2019-12-26 | 2019-12-26 | Music playing method, system, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113050848A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114201138A (en) * | 2021-12-10 | 2022-03-18 | 珠海格力电器股份有限公司 | Smart home control method, device and system and storage medium |
CN114267381A (en) * | 2021-12-14 | 2022-04-01 | 咪咕音乐有限公司 | Intelligent music playing method and equipment during sports and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394906A (en) * | 2006-01-24 | 2009-03-25 | 索尼株式会社 | Audio reproducing device, audio reproducing method, and audio reproducing program |
CN105430184A (en) * | 2015-11-24 | 2016-03-23 | 小米科技有限责任公司 | Audio playing method and device |
CN106844660A (en) * | 2017-01-23 | 2017-06-13 | 腾讯科技(深圳)有限公司 | A kind of music recommends method and device |
CN106943708A (en) * | 2017-03-29 | 2017-07-14 | 北京小米移动软件有限公司 | The system of selection of treadmill motor pattern and device |
CN107004035A (en) * | 2017-03-10 | 2017-08-01 | 万魔声学科技有限公司 | Method for playing music, device and music player devices |
CN107875576A (en) * | 2017-11-27 | 2018-04-06 | 轻奔智能科技(上海)有限公司 | The control method of music BPM control speed is adjusted on treadmill by cadence |
CN109045575A (en) * | 2018-08-30 | 2018-12-21 | 合肥工业大学 | Intelligent running machine based on contactless physiological parameter measurement |
CN110152272A (en) * | 2018-03-07 | 2019-08-23 | 蔡璟 | A control method of a treadmill, a treadmill and an intelligent terminal |
US20190369868A1 (en) * | 2018-05-31 | 2019-12-05 | Beijing Xiaomi Mobile Software Co., Ltd. | Terminal control method, device and computer readable storage medium |
-
2019
- 2019-12-26 CN CN201911371014.3A patent/CN113050848A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394906A (en) * | 2006-01-24 | 2009-03-25 | 索尼株式会社 | Audio reproducing device, audio reproducing method, and audio reproducing program |
CN105430184A (en) * | 2015-11-24 | 2016-03-23 | 小米科技有限责任公司 | Audio playing method and device |
CN106844660A (en) * | 2017-01-23 | 2017-06-13 | 腾讯科技(深圳)有限公司 | A kind of music recommends method and device |
CN107004035A (en) * | 2017-03-10 | 2017-08-01 | 万魔声学科技有限公司 | Method for playing music, device and music player devices |
CN106943708A (en) * | 2017-03-29 | 2017-07-14 | 北京小米移动软件有限公司 | The system of selection of treadmill motor pattern and device |
CN107875576A (en) * | 2017-11-27 | 2018-04-06 | 轻奔智能科技(上海)有限公司 | The control method of music BPM control speed is adjusted on treadmill by cadence |
CN110152272A (en) * | 2018-03-07 | 2019-08-23 | 蔡璟 | A control method of a treadmill, a treadmill and an intelligent terminal |
US20190369868A1 (en) * | 2018-05-31 | 2019-12-05 | Beijing Xiaomi Mobile Software Co., Ltd. | Terminal control method, device and computer readable storage medium |
CN109045575A (en) * | 2018-08-30 | 2018-12-21 | 合肥工业大学 | Intelligent running machine based on contactless physiological parameter measurement |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114201138A (en) * | 2021-12-10 | 2022-03-18 | 珠海格力电器股份有限公司 | Smart home control method, device and system and storage medium |
CN114267381A (en) * | 2021-12-14 | 2022-04-01 | 咪咕音乐有限公司 | Intelligent music playing method and equipment during sports and storage medium |
CN114267381B (en) * | 2021-12-14 | 2024-09-06 | 咪咕音乐有限公司 | Method, device and storage medium for intelligent music playing during exercise |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8212136B2 (en) | Exercise audio reproducing device, exercise audio reproducing method, and exercise audio reproducing program | |
US20200349981A1 (en) | Electronic device and method for reproducing a human perceptual signal | |
US10254824B2 (en) | Systems and methods for output of content based on sensing an environmental factor | |
CN101002985B (en) | Apparatus for controlling music reproduction and apparatus for reproducing music | |
CN106844660B (en) | Music recommendation method and device | |
KR101333024B1 (en) | Electronic device and method for selecting content items | |
US10311462B2 (en) | Music streaming for athletic activities | |
CN104460982A (en) | Presenting audio based on biometrics parameters | |
US20150142147A1 (en) | Audio system for rhythm-based activity | |
WO2015099768A1 (en) | Tracking heart rate for music selection | |
CN107004035B (en) | Music playing method and device and music playing equipment | |
CN105721537A (en) | Method and apparatus for processing user lactate level information | |
JP2013208266A (en) | Pacemaker apparatus, operation method thereof, and program | |
CN113050848A (en) | Music playing method, system, equipment and computer readable storage medium | |
TW201624199A (en) | Automatically choosing songs system and method according to motion state | |
CN106066780B (en) | Running data processing method and device | |
CN100517323C (en) | Content and content list searching method, and searching apparatus and searching server thereof | |
TWI590241B (en) | Portable electronic device | |
JP2012022242A (en) | Reproducing device for musical sound, and program | |
CN106951068A (en) | A kind of audio method for pushing and device | |
CN105139875B (en) | The audio frequency playing method and device of height above sea level change during based on motion | |
KR20110077107A (en) | MP3 player with intelligent sport mode and sport mode implementation method using same | |
TWI588743B (en) | Portable electronic device | |
TWM523912U (en) | Portable electronic apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210629 |
|
RJ01 | Rejection of invention patent application after publication |