CN105407217A - Mobile terminal music playing method and mobile terminal - Google Patents

Mobile terminal music playing method and mobile terminal Download PDF

Info

Publication number
CN105407217A
CN105407217A CN201510708377.7A CN201510708377A CN105407217A CN 105407217 A CN105407217 A CN 105407217A CN 201510708377 A CN201510708377 A CN 201510708377A CN 105407217 A CN105407217 A CN 105407217A
Authority
CN
China
Prior art keywords
user
mobile terminal
respiratory frequency
respiratory
determining
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
Application number
CN201510708377.7A
Other languages
Chinese (zh)
Inventor
史瑞平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANJING BBK COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
NANJING BBK COMMUNICATION TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NANJING BBK COMMUNICATION TECHNOLOGY Co Ltd filed Critical NANJING BBK COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201510708377.7A priority Critical patent/CN105407217A/en
Publication of CN105407217A publication Critical patent/CN105407217A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the field of mobile devices, and particularly discloses a mobile terminal music playing method. The method comprises steps: when the mobile terminal is detected to play music, a sound inputting device is started; through the sound inputting device, the respiratory rate of a user is acquired; the work and rest state of the user is determined according to the acquired user respiratory rate, wherein the work and rest state comprises a sleep state and an alertness state; and in the case of the sleep state, the music playing mode is switched to a sleep playing mode. The embodiment of the invention also discloses a mobile terminal for realizing the above method. Thus, according to different sleep states of the user, music playing can be managed, the mobile terminal is more intelligent and humane, and experience of the user on mobile terminal music playing can be greatly improved.

Description

Mobile terminal music playing method and mobile terminal
Technical Field
The invention relates to the field of mobile equipment, in particular to a method for playing music of a mobile terminal and the mobile terminal.
Background
With the development of technology, the functions of the current mobile terminal in music playing are more and more, but the current technology only designs the functions of the mobile terminal such as starting or stopping the music playing at fixed time, and cannot be specially designed according to different states of the user, for example, when the user closes to listen to music and goes to sleep, the music is still played, or a fast-paced fierce song is suddenly played to wake up the user.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to solve the problems that the music of the mobile terminal is still played and wakes up a user after the user enters a sleep state, and the problems of insufficient intelligence, humanization and poor experience are solved.
In order to achieve the above object, an aspect of the embodiments of the present invention provides a method for playing music on a mobile terminal, including:
when the mobile terminal is detected to play music, starting sound recording equipment;
acquiring the respiratory frequency of a user through the sound recording equipment;
determining the work and rest state of the user according to the acquired respiratory frequency of the user, wherein the work and rest state comprises a sleep state and a waking state;
and if the work and rest state is a sleep state, switching the music playing mode to a sleep playing mode.
On the other hand, an embodiment of the present invention further provides a mobile terminal, including:
the starting module is used for starting the sound recording equipment when detecting that the mobile terminal plays music;
the respiratory frequency acquisition module is used for acquiring the respiratory frequency of the user through the sound recording equipment;
the determining module is used for determining the work and rest state of the user according to the acquired respiratory frequency of the user, wherein the work and rest state comprises a sleep state and a waking state;
and the switching module is used for switching the music playing mode to the sleep playing mode if the work and rest state is the sleep state.
According to the embodiment of the invention, the current respiratory frequency of the user is acquired through the sound input equipment of the mobile terminal, then the current sleep state or the waking state of the user is determined according to the current respiratory frequency of the user, and if the user is in the sleep state, the song and the volume of music playing are adjusted or the music playing is closed. According to the embodiment, music playing is managed according to different work and rest states of the user, so that the mobile terminal is more intelligent and humanized, and the experience of the user on the music playing of the mobile terminal is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 flowchart illustrating a first embodiment of a method for music playing of a mobile terminal according to the present invention;
fig. 2 is a flowchart illustrating a second embodiment of the method for music playing of a mobile terminal according to the present invention;
fig. 3 is a flowchart illustrating a third embodiment of the method for music playing of a mobile terminal according to the present invention;
fig. 4 is a schematic structural diagram of a first embodiment of the mobile terminal of the present invention;
fig. 5 is a schematic structural diagram of a second embodiment of the mobile terminal of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
When embodiments of the present invention refer to the ordinal numbers "first", "second", etc., it should be understood that the words are used for distinguishing between them unless the context clearly dictates otherwise.
Fig. 1 is a flowchart illustrating a method for playing music on a mobile terminal according to a first embodiment of the present invention.
And step S11, when detecting that the mobile terminal plays music, starting the sound recording equipment.
In this embodiment, a detection device or circuit is disposed in the mobile terminal, and is configured to detect whether the mobile terminal is currently playing music, and if it is detected that the mobile terminal is currently playing music, start a sound recording device of the mobile terminal.
And step S12, acquiring the breathing frequency of the user through the sound recording equipment.
In the present embodiment, the sound entry apparatus illustratively includes: and a microphone of the mobile terminal or a receiver of the earphone. In this step, the mobile terminal obtains the breathing sound of the user through the microphone, or obtains the breathing sound of the user through the receiver of the earphone when the user wears the earphone to listen to music. According to the breathing sound, the number of breaths of the user in a preset threshold time is extracted, for example, the number of breaths of the user in 5 minutes is obtained, then the average number of breaths per minute is obtained, and the breathing frequency of the user is obtained.
Step S13, determining the work and rest state of the user according to the acquired respiratory frequency of the user, wherein the work and rest state comprises a sleep state and a waking state.
In the invention, the mobile terminal system receives a breathing frequency reference interval input from the outside, or the terminal acquires the breathing frequency reference interval of the human body during sleeping through data statistics. In this step, the respiratory frequency of the user obtained in step S12 is compared with the respiratory frequency reference interval, and the current sleep state of the user is determined according to the comparison result. For example, if the current breathing rate is within a certain range of the breathing rate reference interval, the user is determined as being in the sleep state, and if the current breathing rate is beyond the certain range of the breathing rate reference interval, the user is determined as being in the awake state.
In step S14, if the work and rest state is the sleep state, the music playing mode is switched to the sleep playing mode.
If the sleep state of the user is determined in step S13, the present step is executed to manage the current music playback, for example, to turn off the music or turn down the volume of the music playback.
According to the embodiment of the invention, the current respiratory frequency of the user is acquired through the sound input equipment of the mobile terminal, then the current sleep state or the waking state of the user is determined according to the current respiratory frequency of the user, and if the user is in the sleep state, the music playing management is adjusted. According to the embodiment, music playing is managed according to different work and rest states of the user, so that the mobile terminal is more intelligent and humanized, and the experience of the user on the music playing of the mobile terminal is greatly improved.
Fig. 2 is a flowchart illustrating a music playing method of a mobile terminal according to a second embodiment of the present invention.
And step S21, recording the breathing sound of the user in a first preset time through the sound recording device.
In this embodiment, the sound entry apparatus includes: the mobile terminal comprises a receiver of the mobile terminal and/or a receiver connected with the mobile terminal.
In the step, the mobile terminal inputs the breathing sound of the user in the first preset time through the sound input equipment. The first preset time is a sleep time of the user, for example, the mobile terminal records a breath sound of the user at 2 to 5 am.
Step S22, acquiring the breathing frequency of the user within a first preset time according to the breathing sound within the first preset time.
According to the breathing sound of the user in the first preset time period recorded in the step S21, in this step, the breathing frequency in the time period is acquired according to the breathing sound in the time period. For example, the total number of breaths in the time period is extracted and divided by the breath time to obtain the number of breaths per minute in the time period, thus obtaining the breathing frequency in the time period on the day.
And step S23, obtaining a first respiratory frequency interval according to the obtained respiratory frequency of the user within two or more times of the first preset time.
In this embodiment, in step S22, the breathing frequency of the user in the preset sleep state is acquired. The respiratory frequency within the first preset time is more accurate and reliable. In this step, the breathing frequency in the sleep state is obtained twice or more, and then the breathing frequency interval in the sleep state is obtained. For example, the breathing frequency of the user in the sleep state is acquired continuously for 5 days from 2 to 5 am every day, and then the first breathing frequency interval is obtained according to the breathing frequency of the user in the time period of the 5 days.
And step S24, when detecting that the mobile terminal plays music, starting the sound recording equipment.
This step S24 is the same as the corresponding step in the first embodiment of the method for playing music by a mobile terminal of the present invention, and is not described herein again.
And step S25, acquiring the breathing frequency of the user through the sound recording equipment.
This step S25 is the same as the corresponding step in the first embodiment of the method for playing music by a mobile terminal of the present invention, and is not described herein again.
Step S26, determining whether the acquired respiratory frequency of the user is within the first respiratory frequency interval.
In this embodiment, through steps S21 to S23, the first respiratory frequency interval of the user is obtained, and through step S25, the current respiratory frequency value of the user is obtained. In this step, it is determined whether the breathing frequency of the user acquired in step S25 is within the first breathing frequency interval.
In step S27, if yes, the user is determined to be in a sleep state.
In this embodiment, through step S26, it is determined whether the current respiratory rate of the user is within the first respiratory rate interval. If yes, in the step, the current sleep state of the user is determined.
In step S28, if not, the user is determined to be awake.
In this embodiment, through step S26, it is determined whether the current respiratory rate of the user is within the first respiratory rate interval. If not, in the step, the user is determined to be in the waking state currently.
In addition, according to the determination result of step S26, step S27 and step S28 can be performed only in one step. If step S27 is executed, step S28 is not executed again, and the process proceeds to the steps after step S28. If step S28 is executed as a result of step S26, step S27 is not executed.
In step S29, if the work and rest state is the sleep state, the music playing mode is switched to the sleep playing mode.
According to the sleep state of the user determined in step S26, if it is determined in step S27 that the user is currently in the sleep state, the present step is executed to manage the current music playing.
In this step, the sleep play mode mainly includes playing music in a preset music list and reducing the volume of music playing; and/or stopping the music playing after a preset threshold time.
Wherein, the music in the preset music list is a song with slow rhythm, softness and suitability for hypnosis. That is, for example, if it is determined that the user is currently in the sleep state, some songs suitable for hypnosis are played, the volume is decreased, and after a certain period of time, for example, ten minutes, of playing the songs suitable for hypnosis, the music is stopped.
In this step, the music playing may also be directly stopped after the user is judged to be in the sleep state currently.
In this embodiment, the terminal obtains the first respiratory frequency interval by recording the respiratory sound of the user and acquiring the respiratory frequency in a specific sleep time period of the user and acquiring the respiratory frequency in a certain time period. Whether the user sleeps or not is judged by comparing the relation between the current respiratory frequency and the respiratory frequency interval, if so, the volume is turned down, a soft and hypnotic song is played, and the music playing is turned off after a period of time, so that the user keeps a comfortable auditory effect, and the sleep of the user is promoted. In this embodiment, the respiratory frequency reference value of acquireing varies from person to person, and is more accurate, and the music management mode is more various, and is more intelligent.
Fig. 3 is a flowchart illustrating a music playing method of a mobile terminal according to a third embodiment of the present invention.
And step S31, recording the breathing sound of the user in a first preset time through the sound recording device.
Step S32, acquiring the breathing frequency of the user within a first preset time according to the breathing sound within the first preset time.
And step S33, obtaining a first respiratory frequency interval according to the obtained respiratory frequency of the user within two or more times of the first preset time.
Steps S31 to S33 are the same as the corresponding steps in the second embodiment of the method for playing music by a mobile terminal of the present invention, and are not described herein again.
And step S34, recording the breathing sound of the user in a second preset time through the sound recording device.
The principle of the step is similar to that of the step S31, and the breathing sound of the user in the second preset time is recorded by the mobile terminal through the sound recording device. The second preset time is the time when the user is awake, for example, the mobile terminal records the breathing rate of the user during the time period from 10 to 11 am.
And step S35, acquiring the respiratory frequency of the user within a second preset time according to the respiratory sound within the second preset time.
According to the breath sound of the user in the second preset time period recorded in step S34, in this step, the breathing frequency in the time period is acquired according to the breath sound in the time period. For example, the total number of breaths in the time period is extracted and divided by the breath time to obtain the number of breaths per minute in the time period, thus obtaining the breathing frequency in the time period on the day.
And step S36, obtaining a second respiratory frequency interval according to the respiratory frequency of the user within the second preset time which is obtained twice or more.
In this embodiment, in step S36, the breathing frequency of the user in the preset awake state is acquired. So that the acquired respiratory frequency within the first preset time is more accurate and more reliable. In this step, the breathing frequency in the awake state is obtained twice or more, and then the breathing frequency interval in the awake state is obtained. For example, the breathing rate of the user in the waking state is obtained continuously for 5 days from 10 am to 11 am every day, and then the second breathing rate interval is obtained according to the breathing rate of the user in the time period of the 5 days.
And step S37, when detecting that the mobile terminal plays music, starting the sound recording equipment.
And step S38, acquiring the breathing frequency of the user through the sound recording equipment.
Steps S37 to S38 are the same as the corresponding steps in the first embodiment of the method for playing music by a mobile terminal of the present invention, and are not described herein again.
And 39, judging whether the acquired respiratory frequency of the user is in the first respiratory frequency interval or the second respiratory frequency interval.
In this embodiment, the first respiratory frequency interval of the user is obtained through steps S31 to S33, the second respiratory frequency interval of the user is obtained according to steps S34 to S36, and the current respiratory frequency value of the user is obtained through step S38. In this step, it is determined whether the breathing frequency of the user acquired in step S38 is within the first breathing frequency interval or within the second breathing frequency interval.
In step S310, if the breathing frequency is within the first breathing frequency interval, it is determined that the user is in a sleep state.
In this embodiment, through step S39, it is determined whether the current respiratory rate of the user is within the first respiratory rate interval. If yes, in the step, the current sleep state of the user is determined.
In step S311, if the respiratory rate is within the second respiratory rate interval, it is determined that the user is awake.
In this embodiment, through step S39, it is determined whether the current respiratory rate of the user is within the second respiratory rate interval. If yes, in the step, the user is determined to be in the waking state currently.
Step S312, if not, acquiring a first difference value between the acquired respiratory frequency of the user and a minimum value in the first respiratory frequency interval, and acquiring a second difference value between the acquired respiratory frequency of the user and a minimum value in the second respiratory frequency interval; if the absolute value of the first difference is smaller than or equal to the absolute value of the second difference, determining that the user is in a sleep state; and if the absolute value of the first difference is larger than the absolute value of the second difference, determining that the user is in the waking state.
If the current respiratory rate of the user acquired in step S38 is not within the first respiratory rate interval or the second respiratory rate interval, as determined in step S39, the present step is executed. In this step, first obtaining a first difference value between the obtained respiratory frequency of the user and a minimum value in the first respiratory frequency interval, and then obtaining a second difference value between the obtained respiratory frequency of the user and a minimum value in the second respiratory frequency interval; then, the relationship between the absolute value of the first difference and the absolute value of the second difference is compared, that is, it is determined whether the current respiratory rate of the user obtained in step S38 is closer to the first frequency interval or the second frequency interval.
If the absolute value of the first difference is smaller than or equal to the absolute value of the second difference, determining that the user is in a sleep state;
and if the absolute value of the first difference is larger than the absolute value of the second difference, determining that the user is in the waking state.
Step S313, if the work and rest state is the sleep state, the music playing mode is switched to the sleep playing mode.
Step S313 is the same as the corresponding step in the first embodiment of the method for playing music by a mobile terminal of the present invention, and is not described herein again.
In this embodiment, the terminal acquires the first respiratory frequency interval by recording the respiratory sound of the user in a specific sleep time period of the user, and acquires the second respiratory frequency interval by recording the respiratory sound of the user in a specific wake time period of the user. And comparing the current respiratory frequency with the relationship between the first respiratory frequency interval or the second respiratory frequency to judge whether the user sleeps, if so, turning down the volume, playing soft and hypnotic songs, and turning off music playing after a period of time, so that the user keeps a comfortable auditory effect and the sleep of the user is promoted. In this embodiment, the method for determining whether the user is in the sleep state or the awake state is more intelligent and has a better effect.
The above description details embodiments of the method for music playing of a mobile terminal according to the present invention. The mobile terminal corresponding to the above method will be further explained below. The mobile terminal may be a mobile phone, a tablet computer, an MP3, an MP4, or a notebook computer.
Fig. 4 is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention.
In this embodiment, the mobile terminal 100 includes a starting module 110, a breathing frequency obtaining module 120, a determining module 130, and a switching module 140.
The starting module 110 is connected to the respiratory frequency obtaining module 120, and is configured to start the sound recording device when detecting that the mobile terminal plays music.
In this embodiment, a detection device or circuit is disposed in the mobile terminal, and is configured to detect whether the mobile terminal is currently playing music, and if it is detected that the mobile terminal is currently playing music, start a sound recording device of the mobile terminal.
And the respiratory frequency obtaining module 120 is connected to the determining module 130, and is configured to obtain the respiratory frequency of the user through the sound recording device.
In the present embodiment, the sound entry apparatus illustratively includes: and a microphone of the mobile terminal or a receiver of the earphone. The breathing frequency obtaining module 120 obtains the breathing sound of the user through a microphone, or obtains the breathing sound of the user through a receiver of an earphone when the user wears the earphone to listen to music. According to the breathing sound, the number of breaths of the user in a preset threshold time is extracted, for example, the number of breaths of the user in 5 minutes is obtained, then the average number of breaths per minute is obtained, and the breathing frequency of the user is obtained.
The determining module 130 is connected to the switching module 140, and configured to determine a rest state of the user according to the acquired respiratory rate of the user, where the rest state includes a sleep state and an awake state.
In the invention, the mobile terminal system receives a breathing frequency reference interval input from the outside, or the terminal acquires the breathing frequency reference interval of the human body during sleeping through data statistics. According to the respiratory frequency of the user obtained in the respiratory frequency obtaining module 120, the module is compared with the respiratory frequency reference interval, and according to the comparison result, the current sleep state of the user is judged. For example, if the current breathing rate is within a certain range of the breathing rate reference interval, the user is determined as being in the sleep state, and if the current breathing rate is beyond the certain range of the breathing rate reference interval, the user is determined as being in the awake state.
The switching module 140 is configured to switch the music playing mode to the sleep playing mode if the work and rest state is the sleep state.
According to the sleep state of the user determined by the determining module 130, if the sleep state is the sleep state, the present module is executed to manage the current music playing, for example, the music may be turned off, or the volume of the music playing may be turned down.
According to the embodiment of the invention, the current respiratory frequency of the user is acquired through the sound input equipment of the mobile terminal, then the current sleep state or the waking state of the user is determined according to the current respiratory frequency of the user, and if the user is in the sleep state, the music playing management is adjusted. According to the embodiment, music playing is managed according to different sleep states of the user, so that the mobile terminal is more intelligent and humanized, and the experience of the user on the music playing of the mobile terminal is greatly improved.
Fig. 5 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention.
In this embodiment, the mobile terminal 200 includes: the system comprises a first logging module 210, a first obtaining module 220, a first interval obtaining module 230, a starting module 240, a respiratory rate obtaining module 250, a determining module 260 and a switching module 270.
The first recording module 210 is connected to the first obtaining module 220, and is configured to record, through the sound recording device, the breathing sound of the user within a first preset time.
In this embodiment, the sound entry apparatus includes: the mobile terminal comprises a receiver of the mobile terminal and/or a receiver connected with the mobile terminal.
The first recording module 210 records the breathing sound of the user within a first preset time through the sound recording device. The first preset time is a sleep time of the user, for example, the mobile terminal records a breath sound of the user at 2 to 5 am.
The first obtaining module 220 is connected to the first interval obtaining module 230, and is configured to obtain the respiratory frequency of the user within the first preset time according to the respiratory sound within the first preset time.
According to the breath sound of the user recorded in the first recording module 210 within the first preset time, the first obtaining module 220 obtains the breathing frequency within the time period according to the breath sound within the time period. For example, the total number of breaths in the time period is extracted and divided by the breath time to obtain the number of breaths per minute in the time period, thus obtaining the breathing frequency in the time period on the day.
The first interval obtaining module 230 is connected to the starting module 240, and configured to obtain a first respiratory frequency interval according to the obtained respiratory frequency of the user within two or more times of the first preset time.
In this embodiment, in the first obtaining module 220, the breathing frequency of the user in the preset sleep state is obtained. The respiratory frequency within the first preset time is more accurate and reliable. In the first interval obtaining module 230, the breathing frequency in the sleep state is obtained twice or more, and then the breathing frequency interval in the sleep state is obtained. For example, the breathing frequency of the user in the sleep state is acquired continuously for 5 days from 2 to 5 am every day, and then the first breathing frequency interval is obtained according to the breathing frequency of the user in the time period of the 5 days.
And the starting module 240 is connected to the respiratory frequency obtaining module 250, and is configured to start the sound recording device when detecting that the mobile terminal plays music.
The module 240 has the same principle as the corresponding module in the first embodiment of the mobile terminal of the present invention, and is not described herein again.
And the respiratory frequency obtaining module 250 is connected with the determining module 260 and is used for obtaining the respiratory frequency of the user through the sound recording device.
The module 250 has the same principle as the corresponding module in the first embodiment of the mobile terminal of the present invention, and is not described herein again.
And a determining module 260 connected to the switching module 270, wherein the determining module 260 includes a judging unit 261, a first determining unit 262 and a second determining unit 263.
The judging unit 261 is connected to the first determining unit 262 and the second determining unit 263, and is configured to judge whether the acquired respiratory frequency of the user is within the first respiratory frequency interval.
In this embodiment, the first logging module 210, the first obtaining module 220, and the first interval obtaining module 230 are used to obtain a first respiratory frequency interval of the user, and the respiratory frequency obtaining module 250 is used to obtain a current respiratory frequency value of the user. In this module, it is determined whether the respiratory frequency of the user acquired by the respiratory frequency acquisition module 250 is within the first respiratory frequency interval.
A first determining unit 262, configured to determine that the user is in a sleep state if yes.
In this embodiment, the determining unit 261 determines whether the current respiratory rate of the user is within the first respiratory rate interval. If yes, in the first determination unit 262, it is determined that the user is currently in the sleep state.
A second determining unit 263 for determining that the user is in an awake state.
In this embodiment, the determining unit 261 determines whether the current respiratory rate of the user is within the first respiratory rate interval. If not, in the second determination unit 263, it is determined that the user is currently in the awake state.
It should be noted that the first determining unit 262 and the second determining unit 263 can only be performed alternatively according to the determination result of the determining unit 261. If the first determination unit 262 is executed, the second determination unit 263 is not executed any more, and the process goes directly to the module after the second determination unit 263. If the second determining unit 263 is executed according to the result of the judging unit 261, the first determining unit 262 is not executed.
The switching module 270 is configured to switch the music playing mode to the sleep playing mode if the work and rest state is the sleep state.
According to the sleep state of the user determined by the determining module 260, if the first determining unit 262 determines that the user is currently in the sleep state, the present module is executed to manage the current music playing.
Wherein the switching module 270 includes, for example,
the first switching unit 271 is configured to play music in a preset music list and reduce the volume of the music playing;
and a second switching unit 272 for stopping the music playing after a preset threshold time.
Wherein, the music in the preset music list is a song with slow rhythm, softness and suitability for hypnosis. That is, for example, if it is determined that the user is currently in the sleep state, some songs suitable for hypnosis are played, the volume is decreased, and after a certain period of time, for example, ten minutes, of playing the songs suitable for hypnosis, the music is stopped.
In this embodiment, the music playing may also be directly stopped after the user is determined to be in the sleep state.
In the switching module 270, the first switching unit 271 and the second switching unit 272 may be operated at the same time, or one of the first switching unit 271 and the second switching unit 272 may be operated.
In this embodiment, the terminal obtains the first respiratory frequency interval by recording the respiratory sound of the user and acquiring the respiratory frequency in a specific sleep time period of the user and acquiring the respiratory frequency in a certain time period. Whether the user sleeps or not is judged by comparing the relation between the current respiratory frequency and the respiratory frequency interval, if so, the volume is turned down, a soft and hypnotic song is played, and the music playing is turned off after a period of time, so that the user keeps a comfortable auditory effect, and the sleep of the user is promoted. In this embodiment, the respiratory frequency reference value of acquireing varies from person to person, and is more accurate, and the music management mode is more various, and is more intelligent.
Fig. 6 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention.
In this embodiment, the mobile terminal 300 includes: a first logging module 310, a first obtaining module 320, a first interval obtaining module 330, a second logging module 340, a second obtaining module 350, a second interval obtaining module 360, an opening module 370, a respiratory rate obtaining module 380, a determining module 390 and a switching module 3100. Wherein,
and the first recording module 310 is connected with the first acquiring module 320 and is used for recording the breathing sound of the user within a first preset time through the sound recording device.
The first obtaining module 320 is connected to the first interval obtaining module 330, and is configured to obtain the respiratory frequency of the user within a first preset time according to the respiratory sound within the first preset time.
The first interval obtaining module 330 is connected to the starting module 370, and configured to obtain a first respiratory frequency interval according to the obtained respiratory frequency of the user within two or more times of the first preset time.
The first entering module 310, the first obtaining module 320 and the first interval obtaining module 330 are the same as the corresponding modules in the second embodiment of the mobile terminal of the present invention in principle, and are not described here again.
And the second recording module 340 is connected to the second acquiring module 350, and is configured to record, through the sound recording device, the breathing sound of the user within a second preset time.
The principle of the module is similar to that of the first recording module 310, and the mobile terminal records the breathing sound of the user in the second preset time through the sound recording device. The second preset time is the time when the user is awake, for example, the mobile terminal records the breathing rate of the user during the time period from 10 to 11 am.
And a second obtaining module 350, connected to the second interval obtaining module 360, configured to obtain the respiratory frequency of the user within the second preset time according to the respiratory sound within the second preset time.
According to the breath sound of the user recorded in the second recording module 340 within the second preset time, the second obtaining module 350 obtains the breathing frequency within the time period according to the breath sound within the time period. For example, the total number of breaths in the time period is extracted and divided by the breath time to obtain the number of breaths per minute in the time period, thus obtaining the breathing frequency in the time period on the day.
And a second interval obtaining module 360 connected to the starting module 370, configured to obtain a second respiratory frequency interval according to the obtained respiratory frequency of the user within the second preset time twice or more.
In this embodiment, in the second obtaining module 350, the breathing frequency of the user in the preset waking state is obtained. So that the acquired respiratory frequency within the first preset time is more accurate and more reliable. In the second interval obtaining module 360, the breathing frequency in the waking state is obtained twice or more, and then the breathing frequency interval in the sleeping state is obtained. For example, the breathing rate of the user in the waking state is obtained continuously for 5 days from 10 am to 11 am every day, and then the second breathing rate interval is obtained according to the breathing rate of the user in the time period of the 5 days.
The starting module 370 is connected to the respiratory frequency obtaining module 380, and is configured to start the sound recording device when detecting that the mobile terminal plays music.
And the respiratory frequency obtaining module 380 is connected to the determining module 390, and is configured to obtain the respiratory frequency of the user through the sound recording device.
The starting module 370 and the breathing rate obtaining module 380 have the same principle as the corresponding modules in the second embodiment of the mobile terminal of the present invention, and are not described herein again.
A determination module 390 is coupled to the switching module 3100. The determining module 390 includes a second determining unit 391, a third determining unit 392, a fourth determining unit 393 and a fifth determining unit 394.
The second determining unit 391 is connected to the third determining unit 392, the fourth determining unit 393 and the fifth determining unit 394, and is configured to determine whether the acquired respiratory frequency of the user is within the first respiratory frequency interval or the second respiratory frequency interval.
In this embodiment, a first respiratory frequency interval of the user is obtained through the first entry module 310, the first obtaining module 320, and the first interval obtaining module 330, a second respiratory frequency interval of the user is obtained through the second entry module 340, the second obtaining module 350, and the second interval obtaining module 360, and a current respiratory frequency value of the user is obtained through the respiratory frequency obtaining module 380. In the second determining unit 391, it is determined whether the respiratory frequency of the user acquired by the respiratory frequency acquiring module 380 is within the first respiratory frequency interval or the second respiratory frequency interval.
A third determining unit 392, configured to determine that the user is in the sleep state if the user is in the first breathing frequency interval.
In this embodiment, the second determining unit 391 determines whether the current respiratory frequency of the user is within the first respiratory frequency interval. If yes, in the module, the current sleep state of the user is determined.
A fourth determining unit 393 configured to determine that the user is awake if the second respiratory frequency interval is included.
In this embodiment, the second determining unit 391 determines whether the current respiratory frequency of the user is within the second respiratory frequency interval. If yes, in the module, the user is determined to be in the waking state currently.
A fifth determining unit 394, configured to, if not, obtain a first difference between the obtained breathing frequency of the user and a minimum value in the first breathing frequency interval, and obtain a second difference between the obtained breathing frequency of the user and a minimum value in the second breathing frequency interval; if the absolute value of the first difference is smaller than or equal to the absolute value of the second difference, determining that the user is in a sleep state; and if the absolute value of the first difference is larger than the absolute value of the second difference, determining that the user is in the waking state.
According to the judgment result of the second judging unit 391, if the current respiratory rate of the user acquired by the respiratory rate acquiring module 380 is not in the first respiratory rate interval or the second respiratory rate interval, the module is executed. In the module, a first difference value between the acquired respiratory frequency of the user and a minimum value in the first respiratory frequency interval is acquired firstly, and then a second difference value between the acquired respiratory frequency of the user and a minimum value in the second respiratory frequency interval is acquired; then, the relationship between the absolute value of the first difference and the absolute value of the second difference is compared, that is, it is determined whether the current respiratory rate of the user, which is obtained by the respiratory rate obtaining module 380, is closer to the first frequency interval or the second frequency interval.
If the absolute value of the first difference is smaller than or equal to the absolute value of the second difference, determining that the user is in a sleep state;
and if the absolute value of the first difference is larger than the absolute value of the second difference, determining that the user is in the waking state.
A switching module 3100, configured to switch the music playing mode to the sleep playing mode if the work and rest state is the sleep state.
The switching module 3100 has the same principle as the corresponding module in the first embodiment of the mobile terminal of the present invention, and is not described herein again.
In this embodiment, the terminal acquires the first respiratory frequency interval by recording the respiratory sound of the user in a specific sleep time period of the user, and acquires the second respiratory frequency interval by recording the respiratory sound of the user in a specific wake time period of the user. And comparing the current respiratory frequency with the relationship between the first respiratory frequency interval or the second respiratory frequency to judge whether the user sleeps, if so, turning down the volume, playing soft and hypnotic songs, and turning off music playing after a period of time, so that the user keeps a comfortable auditory effect and the sleep of the user is promoted. In this embodiment, the method for determining whether the user is in the sleep state or the awake state is more intelligent and has a better effect.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The foregoing is illustrative of one or more embodiments provided in connection with the detailed description and is not intended to limit the practice of the invention to the particular forms disclosed. Similar or identical methods, structures and the like as those of the present invention or several technical deductions or substitutions made on the premise of the conception of the present invention should be considered as the protection scope of the present invention.

Claims (12)

1. A method for playing music on a mobile terminal is characterized by comprising the following steps:
when the mobile terminal is detected to play music, starting sound recording equipment;
acquiring the respiratory frequency of a user through the sound recording equipment;
determining the work and rest state of the user according to the acquired respiratory frequency of the user, wherein the work and rest state comprises a sleep state and a waking state;
and if the work and rest state is a sleep state, switching the music playing mode to a sleep playing mode.
2. The method according to claim 1, wherein before the step of turning on a sound recording device when detecting that the mobile terminal plays music, the method further comprises:
recording breathing sound of a user within a first preset time through the sound recording equipment;
acquiring the breathing frequency of the user within a first preset time according to the breathing sound within the first preset time;
obtaining a first respiratory frequency interval according to the respiratory frequency of the user within the first preset time which is obtained twice or more;
the sound entry apparatus includes: the mobile terminal comprises a receiver of the mobile terminal and/or a receiver connected with the mobile terminal.
3. The method according to claim 2, wherein before the step of turning on a sound recording device when detecting that the mobile terminal plays music, the method further comprises:
recording breathing sound of the user within a second preset time through the sound recording equipment;
acquiring the breathing frequency of the user within second preset time according to the breathing sound within the second preset time;
and acquiring a second respiratory frequency interval according to the acquired respiratory frequency of the user within the second preset time twice or more.
4. The method of claim 2, wherein the step of determining the work and rest status of the user according to the obtained breathing frequency of the user comprises:
judging whether the acquired respiratory frequency of the user is in the first respiratory frequency interval or not;
if so, determining that the user is in a sleep state;
if not, the user is determined to be in the awake state.
5. The method of claim 3, wherein the step of determining the work and rest status of the user according to the obtained breathing frequency of the user comprises:
judging whether the acquired respiratory frequency of the user is in the first respiratory frequency interval or the second respiratory frequency interval;
if the breathing frequency is within the first breathing frequency interval, determining that the user is in a sleep state;
if the respiratory rate is within the second respiratory rate interval, determining that the user is in a waking state;
if not, acquiring a first difference value between the acquired respiratory frequency of the user and a minimum value in the first respiratory frequency interval, and acquiring a second difference value between the acquired respiratory frequency of the user and a minimum value in the second respiratory frequency interval; if the absolute value of the first difference is smaller than or equal to the absolute value of the second difference, determining that the user is in a sleep state; and if the absolute value of the first difference is larger than the absolute value of the second difference, determining that the user is in the waking state.
6. The method of claim 1, wherein the step of switching the music playing mode to the sleep playing mode if the work and rest state is the sleep state comprises:
playing music in a preset music list and reducing the volume of the played music;
and/or the presence of a gas in the gas,
and stopping the music playing after a preset threshold time.
7. A mobile terminal, comprising:
the starting module is used for starting the sound recording equipment when detecting that the mobile terminal plays music;
the respiratory frequency acquisition module is used for acquiring the respiratory frequency of the user through the sound recording equipment;
the determining module is used for determining the work and rest state of the user according to the acquired respiratory frequency of the user, wherein the work and rest state comprises a sleep state and a waking state;
and the switching module is used for switching the music playing mode to the sleep playing mode if the work and rest state is the sleep state.
8. The mobile terminal of claim 7, further comprising:
the first recording module is used for recording breathing sound of a user within a first preset time through the sound recording equipment;
the first acquisition module is used for acquiring the respiratory frequency of the user within first preset time according to the respiratory sound within the first preset time;
the first interval acquisition module is used for acquiring a first respiratory frequency interval according to the acquired respiratory frequency of the user within two or more times of the first preset time;
the sound entry apparatus includes: the mobile terminal comprises a receiver of the mobile terminal and/or a receiver connected with the mobile terminal.
9. The mobile terminal of claim 8, further comprising:
the second recording module is used for recording the breathing sound of the user within a second preset time through the sound recording equipment;
the second acquisition module is used for acquiring the respiratory frequency of the user within second preset time according to the respiratory sound within the second preset time;
and the second interval acquisition module is used for acquiring a second respiratory frequency interval according to the acquired respiratory frequency of the user within the second preset time twice or more.
10. The mobile terminal of claim 8, wherein the determining module comprises:
the first judgment unit is used for judging whether the acquired respiratory frequency of the user is in the first respiratory frequency interval or not;
the first determining unit is used for determining that the user is in a sleep state if the user is in the sleep state;
and the second determination unit is used for determining that the user is in the waking state if the user is not in the waking state.
11. The mobile terminal of claim 9, wherein the determining module comprises:
the second judging unit is used for judging whether the acquired respiratory frequency of the user is in the first respiratory frequency interval or the second respiratory frequency interval;
the third determining unit is used for determining that the user is in a sleep state if the user is in the first respiratory frequency interval;
a fourth determining unit, configured to determine that the user is in an awake state if the second respiratory frequency interval is within the second respiratory frequency interval;
a fifth determining unit, configured to, if not, obtain a first difference between the obtained respiratory rate of the user and a minimum value in the first respiratory rate interval, and obtain a second difference between the obtained respiratory rate of the user and a minimum value in the second respiratory rate interval; if the absolute value of the first difference is smaller than or equal to the absolute value of the second difference, determining that the user is in a sleep state; and if the absolute value of the first difference is larger than the absolute value of the second difference, determining that the user is in the waking state.
12. The mobile terminal of claim 7, wherein the handover module comprises,
the first switching unit is used for playing music in a preset music list and reducing the volume of the played music;
and the second switching unit is used for stopping the music playing after the preset threshold time.
CN201510708377.7A 2015-10-26 2015-10-26 Mobile terminal music playing method and mobile terminal Pending CN105407217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510708377.7A CN105407217A (en) 2015-10-26 2015-10-26 Mobile terminal music playing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510708377.7A CN105407217A (en) 2015-10-26 2015-10-26 Mobile terminal music playing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN105407217A true CN105407217A (en) 2016-03-16

Family

ID=55472458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510708377.7A Pending CN105407217A (en) 2015-10-26 2015-10-26 Mobile terminal music playing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105407217A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933539A (en) * 2016-06-22 2016-09-07 北京小米移动软件有限公司 Audio playing control method and device, and terminal
CN106178221A (en) * 2016-07-14 2016-12-07 大连工业大学 Intelligent sleep-assisting method and system based on respiratory frequency regulation
CN106253933A (en) * 2016-08-16 2016-12-21 惠州Tcl移动通信有限公司 Mobile terminal audio frequency and video autocontrol method based on Intelligent bracelet and system
CN107280672A (en) * 2016-03-30 2017-10-24 刘炜 Light and handy Intelligent wearable sleep and motion gain monitoring of respiration conditioner
CN107374615A (en) * 2017-08-15 2017-11-24 北京道贞健康科技发展有限责任公司 A kind of electrocardio, breathing, the sleep-walking reporting system and method for position monitoring
CN108335700A (en) * 2018-01-30 2018-07-27 上海思愚智能科技有限公司 Voice adjusting method, device, interactive voice equipment and storage medium
CN108404276A (en) * 2018-03-22 2018-08-17 杨帆 A kind of hypnosis device and method based on human body respiration analysis
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion
CN110710954A (en) * 2019-09-20 2020-01-21 长沙友记互娱网络信息有限公司 Method for detecting sleep quality through sound collection
CN110934566A (en) * 2019-09-09 2020-03-31 精华隆智慧感知科技(深圳)股份有限公司 Intelligent detection, automatic sleep-aiding and emergency alarm device
CN111292771A (en) * 2020-02-24 2020-06-16 青岛海尔多媒体有限公司 Method and device for controlling audio and video equipment and terminal equipment
CN113448438A (en) * 2021-06-25 2021-09-28 内蒙古工业大学 Control system and method based on sleep perception
CN114484814A (en) * 2022-01-04 2022-05-13 青岛海尔空调器有限总公司 Method and device for controlling air conditioner voice, air conditioner and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130039513A1 (en) * 2011-08-10 2013-02-14 Hon Hai Precision Industry Co., Ltd. Electronic device and method for adjusting volume
CN103640519A (en) * 2013-12-17 2014-03-19 南宁光波科技有限公司 Vehicle-mounted intelligent system
CN104318934A (en) * 2014-09-11 2015-01-28 小米科技有限责任公司 Method, terminal, wearable device and play device for closing multimedia file
CN104484045A (en) * 2014-12-26 2015-04-01 小米科技有限责任公司 Audio play control method and device
CN104951063A (en) * 2014-03-25 2015-09-30 英特尔公司 Power management for wearable apparatus
CN104994455A (en) * 2015-07-03 2015-10-21 深圳市前海安测信息技术有限公司 Headset volume adjusting method conducive to improving sleep quality and headset

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130039513A1 (en) * 2011-08-10 2013-02-14 Hon Hai Precision Industry Co., Ltd. Electronic device and method for adjusting volume
CN103640519A (en) * 2013-12-17 2014-03-19 南宁光波科技有限公司 Vehicle-mounted intelligent system
CN104951063A (en) * 2014-03-25 2015-09-30 英特尔公司 Power management for wearable apparatus
CN104318934A (en) * 2014-09-11 2015-01-28 小米科技有限责任公司 Method, terminal, wearable device and play device for closing multimedia file
CN104484045A (en) * 2014-12-26 2015-04-01 小米科技有限责任公司 Audio play control method and device
CN104994455A (en) * 2015-07-03 2015-10-21 深圳市前海安测信息技术有限公司 Headset volume adjusting method conducive to improving sleep quality and headset

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107280672A (en) * 2016-03-30 2017-10-24 刘炜 Light and handy Intelligent wearable sleep and motion gain monitoring of respiration conditioner
CN105933539A (en) * 2016-06-22 2016-09-07 北京小米移动软件有限公司 Audio playing control method and device, and terminal
CN105933539B (en) * 2016-06-22 2019-12-06 北京小米移动软件有限公司 audio playing control method and device and terminal
CN106178221B (en) * 2016-07-14 2019-09-27 大连工业大学 The Intelligent sleep-assisting method and system adjusted based on respiratory rate
CN106178221A (en) * 2016-07-14 2016-12-07 大连工业大学 Intelligent sleep-assisting method and system based on respiratory frequency regulation
CN106253933A (en) * 2016-08-16 2016-12-21 惠州Tcl移动通信有限公司 Mobile terminal audio frequency and video autocontrol method based on Intelligent bracelet and system
CN107374615A (en) * 2017-08-15 2017-11-24 北京道贞健康科技发展有限责任公司 A kind of electrocardio, breathing, the sleep-walking reporting system and method for position monitoring
CN107374615B (en) * 2017-08-15 2024-04-26 北京道贞健康科技发展有限责任公司 Dream report system and method for electrocardiograph, respiration and posture monitoring
CN108335700A (en) * 2018-01-30 2018-07-27 上海思愚智能科技有限公司 Voice adjusting method, device, interactive voice equipment and storage medium
CN108404276A (en) * 2018-03-22 2018-08-17 杨帆 A kind of hypnosis device and method based on human body respiration analysis
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion
CN110151137B (en) * 2019-05-28 2022-03-11 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion
CN110934566A (en) * 2019-09-09 2020-03-31 精华隆智慧感知科技(深圳)股份有限公司 Intelligent detection, automatic sleep-aiding and emergency alarm device
CN110710954A (en) * 2019-09-20 2020-01-21 长沙友记互娱网络信息有限公司 Method for detecting sleep quality through sound collection
CN111292771A (en) * 2020-02-24 2020-06-16 青岛海尔多媒体有限公司 Method and device for controlling audio and video equipment and terminal equipment
CN113448438A (en) * 2021-06-25 2021-09-28 内蒙古工业大学 Control system and method based on sleep perception
CN114484814A (en) * 2022-01-04 2022-05-13 青岛海尔空调器有限总公司 Method and device for controlling air conditioner voice, air conditioner and storage medium
CN114484814B (en) * 2022-01-04 2024-08-16 青岛海尔空调器有限总公司 Method and device for controlling air conditioner voice, air conditioner and storage medium

Similar Documents

Publication Publication Date Title
CN105407217A (en) Mobile terminal music playing method and mobile terminal
TWI551267B (en) Sleep aid system and operation method thereof
CN107743289B (en) Intelligent sound box control method in intelligent household scene
CN102065350B (en) Method, system and earphone for intelligently controlling multimedia playing
CN109243431A (en) A kind of processing method, control method, recognition methods and its device and electronic equipment
WO2012144396A1 (en) Information processing device, information processing method, and program
CN109408663A (en) Playing method and device of sleep music
CN105225679A (en) Music adjusting method and device
CN111629297B (en) Earphone wearing state detection method and device, earphone and storage medium
US20230233142A1 (en) Method for sleep monitoring, electronic device and non-transitory computer-readable medium
CN112087685A (en) Control method and device of sleep-aiding earphone
CN106339198B (en) Method and system for automatically adjusting volume of electronic equipment through environment volume
CN101330539A (en) Method for implementing circumstance mode and terminal equipment
CN105163180A (en) Play control method, play control device and terminal
US20130039513A1 (en) Electronic device and method for adjusting volume
CN107750012A (en) A kind of video broadcasting method and device
CN107633853A (en) Control method for playing audio and video files and user terminal
WO2017128539A1 (en) Alarm control method and alarm control device for use in wearable device
CN108307271A (en) A kind of volume adjusting method of smart machine, device and smart machine
CN107426437A (en) Alarm clock reminding method and device
CN105182730A (en) Alarm clock reminding method and device
CN112671623B (en) Projection-based wake-up method and device, projection equipment and computer storage medium
CN113835807A (en) Reminding method and device and electronic equipment
CN106126158B (en) A kind of method and apparatus of playing audio-fequency data
CN109669546B (en) Music playing control method and device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316

RJ01 Rejection of invention patent application after publication