CN108810749B - Player control method, device, terminal equipment and storage medium - Google Patents

Player control method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN108810749B
CN108810749B CN201810586156.0A CN201810586156A CN108810749B CN 108810749 B CN108810749 B CN 108810749B CN 201810586156 A CN201810586156 A CN 201810586156A CN 108810749 B CN108810749 B CN 108810749B
Authority
CN
China
Prior art keywords
user
physiological characteristic
sleep
characteristic data
sleep state
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.)
Expired - Fee Related
Application number
CN201810586156.0A
Other languages
Chinese (zh)
Other versions
CN108810749A (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810586156.0A priority Critical patent/CN108810749B/en
Publication of CN108810749A publication Critical patent/CN108810749A/en
Application granted granted Critical
Publication of CN108810749B publication Critical patent/CN108810749B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/01Measuring temperature of body parts ; Diagnostic temperature sensing, e.g. for malignant or inflamed tissue
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • A61B5/02055Simultaneously evaluating both cardiovascular condition and temperature
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4809Sleep detection, i.e. determining whether a subject is asleep or not
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4812Detecting sleep stages or cycles
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6887Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient mounted on external non-worn devices, e.g. non-medical devices
    • A61B5/6898Portable consumer electronic devices, e.g. music players, telephones, tablet computers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Surgery (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Cardiology (AREA)
  • Physiology (AREA)
  • Acoustics & Sound (AREA)
  • Otolaryngology (AREA)
  • Signal Processing (AREA)
  • Pulmonology (AREA)
  • Anesthesiology (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The embodiment of the application discloses a player control method, a device, terminal equipment and a storage medium, wherein the method comprises the steps of receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to an acquired physiological characteristic signal of a user; judging whether the user is in a sleep state or not according to the physiological characteristic data; if the user is detected to be in the sleep state, the player is closed, the control flow of the player is simplified, and the automatic closing opportunity of the player is more accurate.

Description

Player control method, device, terminal equipment and storage medium
Technical Field
The present disclosure relates to computer technologies, and in particular, to a method and an apparatus for controlling a player, a terminal device, and a storage medium.
Background
With the increase of the popularity of the terminal devices, more and more users use the terminal devices to perform various functions to meet their own needs, such as reading text, watching video, listening to music, playing games, etc., wherein the player, as one of the important software in the terminal device, can be used to play music and video for the users to realize multimedia entertainment.
In the prior art, the purpose of automatically closing the player can be achieved by setting the automatic closing time, however, the player needs to be manually set by a user in such a way, the setting time of the user changes dynamically every day, the operation is complex, and meanwhile, the player is automatically closed at a time.
Disclosure of Invention
The invention provides a player control method, a player control device, terminal equipment and a storage medium, which simplify the control flow of a player and enable the automatic closing time of the player to be more accurate.
In a first aspect, an embodiment of the present application provides a player control method, including:
receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the acquired physiological characteristic signals of the user;
judging whether the user is in a sleep state or not according to the physiological characteristic data;
and if the user is detected to be in the sleep state, closing the player.
In a second aspect, an embodiment of the present application further provides a player control apparatus, including:
the information acquisition module is used for receiving physiological characteristic data sent by the earphone equipment, and the physiological characteristic data is generated by the earphone equipment according to the acquired physiological characteristic signals of the user;
the sleep state judging module is used for judging whether the user is in a sleep state according to the physiological characteristic data;
and the player control module is used for closing the player if the user is detected to be in the sleep state.
In a third aspect, an embodiment of the present application further provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the player control method according to the embodiments of the present application when executing the computer program.
In a fourth aspect, the present application further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are used to execute the player control method according to the present application when executed by a terminal device processor.
In the scheme, physiological characteristic data sent by earphone equipment is received, the physiological characteristic data is generated by the earphone equipment according to collected physiological characteristic signals of a user, whether the user is in a sleep state or not is judged according to the physiological characteristic data, and if the user is detected to be in the sleep state, the player is closed, so that the control flow of the player is simplified, and the automatic closing opportunity of the player is more accurate.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a player control method provided in an embodiment of the present application;
fig. 2 is a flowchart of another player control method provided in an embodiment of the present invention;
fig. 3 is a flowchart of another player control method provided in an embodiment of the present application;
fig. 4 is a flowchart of another player control method provided in an embodiment of the present application;
fig. 5 is a flowchart of another player control method provided in an embodiment of the present application;
fig. 6 is a flowchart of another player control method provided in an embodiment of the present application;
fig. 7 is a block diagram of a structure of a player control device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a player control method provided in an embodiment of the present application, which is applicable to controlling a playing state of a player of a terminal device, where the method may be executed by the terminal device provided in the embodiment of the present application, and a player control device of the terminal device may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific scheme provided in this embodiment is as follows:
step S101, receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the collected physiological characteristic signals of the user.
The earphone equipment is a device worn by a user and used for receiving audio information, and a player installed in the terminal equipment transmits and sends the audio information through the earphone equipment when playing the audio information. In one embodiment, the earphone device can be a bluetooth earphone and is connected with the terminal device through a bluetooth network and transmits data, and in another embodiment, the earphone device can also be connected with the terminal device through a wired connection and transmits data.
The physiological characteristic data is used for representing physiological characteristic information of the user, such as heart rate, respiratory rate, body temperature and the like. The physiological characteristic data is generated by a physiological characteristic signal of a user collected by earphone equipment, and a sensor for collecting the physiological characteristic signal of the user, such as a temperature sensor and a heart rate sensor, is integrated in the earphone equipment, wherein the temperature sensor can collect the body temperature of the user, and the heart rate sensor is used for determining the heart rate value of the user.
And S102, judging whether the user is in a sleep state or not according to the physiological characteristic data.
The sleep state is a physiological state in which the user has weak perception of audio information, physiological characteristic data of the user in the sleep state is different from physiological characteristic data of the user in the active state, and whether the user enters the sleep state or not can be judged by analyzing the physiological characteristic data of the user.
In one embodiment, the physiological characteristic data may be heart rate data of the user, and accordingly, the determining whether the user is in a sleep state may be by comparing the heart rate data with a preset heart rate value to determine whether the user is in the sleep state. For example, the preset heart rate value may be 55, and when it is detected that the heart rate value of the user is less than or equal to 55 within a certain period of time (e.g. within 3 minutes), it is accordingly determined that the user is in a sleep state.
In one embodiment, the physiological characteristic data may be respiratory rate data of the user, and accordingly, the determining whether the user is in the sleep state may be by comparing the respiratory rate data with a preset respiratory rate value to determine whether the user is in the sleep state. For example, the preset breathing frequency value may be 16, and when the breathing frequency value of the user is detected to be less than or equal to 16 within a certain time period (e.g. within 3 minutes), the user is accordingly determined to be in a sleep state.
In one embodiment, the physiological characteristic data of the user is comprehensively considered to more accurately determine that the user is in the sleep state, and the physiological characteristic data is compared with data recorded in a stored sleep state data table to determine whether the user is in the sleep state. Illustratively, the heart rate data and the respiratory rate data of the user can be comprehensively considered, and simultaneously, the heart rate data and the respiratory rate data are respectively compared with data recorded in a sleep state data table, wherein the sleep state data table records a plurality of preset threshold values (such as a preset heart rate value and a preset respiratory frequency value) matched with the attribute characteristics of the user per se in different seasons, temperatures and time periods, in the comparison process, the terminal device acquires the current environmental temperature, season and time period, and compares the received physiological characteristic data of the user with the preset threshold values recorded in the corresponding environmental temperature, season and time period in the sleep state table. Therefore, the accuracy of judging whether the user is in the sleep state is improved.
Step S103, if the user is detected to be in the sleep state, the player is closed.
The player can be a player of a system integrated in the terminal device, and can also be a player of an installed application program, such as love art, soul, internet music, and the like. In an embodiment, when it is detected that the user is in the sleep state, the current running process in the terminal device is correspondingly turned off, for example, the process corresponding to the player is directly turned off. In another embodiment, the player control method can be integrated into the playing software, and the shutdown or pause of the player is controlled through a control interface reserved by the playing software.
According to the method, whether the user is in the sleep state or not is determined according to the physiological characteristic data transmitted by the earphone device, the use cost of the terminal device is reduced, the physiological characteristic signals of the user are collected when the user listens to the playing data through the earphone, additional collection equipment is not needed, the collection effect is good, the player is closed at the first time when the user is determined to be in the sleep state, the interference of the audio played by the player on the user is avoided, the electric quantity of the terminal device is saved, the control on the player is more intelligent, and the user operation is simplified.
Fig. 2 is a flowchart of another player control method provided in an embodiment of the present application, and optionally before determining whether the user is in a sleep state according to the physiological characteristic data, the method further includes: acquiring current time information, and judging whether the time information meets a preset control condition or not; correspondingly, the judging whether the user is in the sleep state according to the physiological characteristic data comprises: and if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data. As shown in fig. 2, the technical solution is as follows:
step S201, receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the collected physiological characteristic signals of the user.
Step S202, acquiring current time information, and judging whether the time information meets a preset control condition.
The time information is the current time displayed by the terminal device, for example, automatic closing control of the player may be performed after 9 pm, and the preset control condition may be between 9 pm and 3 am, that is, if the obtained current time information is after 9 pm and before 3 am, it is determined that the current time information meets the preset control condition accordingly.
Step S203, if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
And when the current time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data so as to perform subsequent automatic closing control on the player, and when the current time information does not meet the preset control condition, not judging the physiological characteristic data, namely not controlling the automatic closing of the player.
And step S204, if the user is detected to be in the sleep state, closing the player.
Therefore, when the player is controlled to be automatically closed, the current time point is evaluated, and if the time point is in the sleep time period, the player is automatically closed, so that the control mechanism of the player is perfected, and the pertinence of the sleep control scene is stronger.
Fig. 3 is a flowchart of another player control method provided in an embodiment of the present application, and optionally, if it is detected that the user is in a sleep state, turning off the player includes: and if the user is detected to be in the sleep state, acquiring the volume value of the audio played by the player, and if the volume value is greater than the preset volume value, closing the player. As shown in fig. 3, the technical solution is as follows:
step S301, receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the collected physiological characteristic signal of the user.
Step S302, acquiring current time information, and judging whether the time information meets a preset control condition.
Step S303, if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
Step S304, if the user is detected to be in the sleep state, acquiring the volume value of the player playing the audio.
In one embodiment, when it is detected that the user is in a sleep state, the volume value of the currently played audio is correspondingly acquired, if the volume value is low, the sleep of the user is not affected, the player may not be automatically turned off, and if the volume value is high and is greater than the preset volume value, the player is correspondingly turned off. Specifically, taking the android operating system as an example, the volume value of the audio played by the current terminal device can be obtained through an API interface (MediaRecorder class or AudioRecord class) provided by the android operating system.
Step S305, if the volume value is detected to be larger than the preset volume value, the player is closed.
Wherein, the preset volume value may be 20 db.
Therefore, when the playing volume of the player is determined to be greater than the preset volume value, the player is correspondingly automatically turned off so as to avoid the influence of audio playing on the sleep of the user.
Fig. 4 is a flowchart of another player control method provided in an embodiment of the present application, and optionally, if it is detected that the user is in a sleep state, turning off the player includes: and if the user is detected to be in a sleep state, determining the sleep level of the user, and gradually reducing the volume value of the audio played by the player according to the sleep level. As shown in fig. 4, the technical solution is as follows:
step S401, receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the collected physiological characteristic signals of the user.
Step S402, acquiring current time information, and judging whether the time information meets a preset control condition.
Step S403, if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
Step S404, if the user is detected to be in the sleep state, determining the sleep level of the user.
The sleep grade of the user can be divided into a deep sleep grade, a medium sleep grade and a shallow sleep grade according to different sleep degrees, and specifically, the sleep grade can be divided and determined according to the sleep time, for example, the sleep grade is determined to be in a shallow sleep state in the first 10 minutes of the sleep grade when the user is detected to fall asleep, the sleep grade is in a medium sleep state after 20-30 minutes of the user falling asleep, and the sleep grade is in a deep sleep state after 40-50 minutes of the user falling asleep.
And S405, gradually reducing the volume value of the audio played by the player according to the sleep level.
In one embodiment, after the user enters the sleep state, the volume of the audio played by the player is gradually reduced according to the sleep level of the user, specifically, the volume of the audio played by the player is reduced to 20% in the shallow sleep state, the volume of the audio played by the player is reduced to 10% in the medium sleep state, and the volume of the audio played by the player is reduced to 5% in the deep sleep state.
Therefore, when the player of the terminal equipment is controlled, the volume value is adjusted step by step according to different sleep levels of the user to control the volume of the player, so that the user can fall asleep conveniently, and the sleep quality of the user is improved.
Fig. 5 is a flowchart of another player control method provided in an embodiment of the present application, and optionally, after determining the sleep level of the user, the method further includes: and switching the audio played by the player into a preset audio corresponding to the sleep level within a preset playing time. As shown in fig. 5, the technical solution is as follows:
step S501, receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the collected physiological characteristic signals of the user.
Step S502, acquiring current time information, and judging whether the time information meets a preset control condition.
Step S503, if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
Step S504, if the user is detected to be in the sleep state, determining the sleep level of the user.
And step S505, in a preset playing time, switching the audio played by the player into a preset audio corresponding to the sleep level, and closing the player after the preset audio is played.
The preset audio can be light music set by a user or soothing music selected by a system, the preset audio is correspondingly played after the user is detected to enter a sleep state, and the player is automatically closed after the preset audio is played. In one embodiment, different sleep levels correspond to different preset audios, and when a user is in different sleep levels, the corresponding preset audios are played.
Therefore, when the player of the terminal device is controlled, the corresponding light music or soothing music is played to help the user to perform sleep transition after the user is detected to start to enter the sleep state, so that the sleep quality of the user is improved.
Fig. 6 is a flowchart of another player control method provided in an embodiment of the present application, and optionally before the receiving the physiological characteristic data sent by the earphone device, the method further includes: the method comprises the steps of obtaining motion state information of terminal equipment collected by an acceleration sensor, and sending a physiological characteristic data obtaining instruction if the motion state information meets a static condition, wherein the physiological characteristic data obtaining instruction is used for controlling earphone equipment connected with the terminal equipment to pass back physiological characteristic data of a user. As shown in fig. 6, the technical solution is as follows:
step S601, acquiring motion state information of the terminal device acquired by the acceleration sensor, and sending a physiological characteristic data acquisition instruction if the motion state information meets a static condition.
In one embodiment, the terminal device acquires motion state information of the terminal device through an integrated acceleration sensor, wherein a static condition indicates that the terminal device is in a static state, specifically, when values of an x axis, a y axis and a z axis in the acquired acceleration sensor are all 0, the motion state information is judged to meet the static condition, and at this time, a physiological characteristic data acquisition instruction is sent, and the physiological characteristic data acquisition instruction is used for controlling an earphone device connected with the terminal device to transmit back physiological characteristic data of a user.
Step S602, receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the collected physiological characteristic signal of the user.
Step S603, acquiring current time information, and determining whether the time information meets a preset control condition.
Step S604, if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
Step S605, if the user is detected to be in the sleep state, determining the sleep level of the user.
Step S606, in the preset playing time, the audio played by the player is switched to the preset audio corresponding to the sleep level, and when the preset audio is played, the player is closed.
Therefore, when the terminal device is detected to be in a static state, the physiological characteristic data acquisition instruction is sent, the terminal device can be determined to be in the use of the terminal device if in a motion state, and the user is in a non-sleep state at the moment, so that the judgment on whether the user is in the sleep state is not needed, the power consumption for judging whether the user is in the sleep state is reduced, and the player control method is further improved.
Fig. 7 is a block diagram of a player control apparatus according to an embodiment of the present application, where the apparatus is configured to execute a player control method according to the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 7, the apparatus specifically includes: an information acquisition module 101, a sleep state determination module 102, and a player control module 103, wherein,
the information acquisition module is used for receiving physiological characteristic data sent by the earphone equipment, and the physiological characteristic data is generated by the earphone equipment according to the acquired physiological characteristic signals of the user.
The earphone equipment is a device worn by a user and used for receiving audio information, and a player installed in the terminal equipment transmits and sends the audio information through the earphone equipment when playing the audio information. In one embodiment, the earphone device can be a bluetooth earphone and is connected with the terminal device through a bluetooth network and transmits data, and in another embodiment, the earphone device can also be connected with the terminal device through a wired connection and transmits data.
The physiological characteristic data is used for representing physiological characteristic information of the user, such as heart rate, respiratory rate, body temperature and the like. The physiological characteristic data is generated by a physiological characteristic signal of a user collected by earphone equipment, and a sensor for collecting the physiological characteristic signal of the user, such as a temperature sensor and a heart rate sensor, is integrated in the earphone equipment, wherein the temperature sensor can collect the body temperature of the user, and the heart rate sensor is used for determining the heart rate value of the user.
And the sleep state judging module is used for judging whether the user is in a sleep state according to the physiological characteristic data.
The sleep state is a physiological state in which the user has weak perception of audio information, physiological characteristic data of the user in the sleep state is different from physiological characteristic data of the user in the active state, and whether the user enters the sleep state or not can be judged by analyzing the physiological characteristic data of the user.
In one embodiment, the physiological characteristic data may be heart rate data of the user, and accordingly, the determining whether the user is in a sleep state may be by comparing the heart rate data with a preset heart rate value to determine whether the user is in the sleep state. For example, the preset heart rate value may be 55, and when it is detected that the heart rate value of the user is less than or equal to 55 within a certain period of time (e.g. within 3 minutes), it is accordingly determined that the user is in a sleep state.
In one embodiment, the physiological characteristic data may be respiratory rate data of the user, and accordingly, the determining whether the user is in the sleep state may be by comparing the respiratory rate data with a preset respiratory rate value to determine whether the user is in the sleep state. For example, the preset breathing frequency value may be 16, and when the breathing frequency value of the user is detected to be less than or equal to 16 within a certain time period (e.g. within 3 minutes), the user is accordingly determined to be in a sleep state.
In one embodiment, the physiological characteristic data of the user is comprehensively considered to more accurately determine that the user is in the sleep state, and the physiological characteristic data is compared with data recorded in a stored sleep state data table to determine whether the user is in the sleep state. Illustratively, the heart rate data and the respiratory rate data of the user can be comprehensively considered, and simultaneously, the heart rate data and the respiratory rate data are respectively compared with data recorded in a sleep state data table, wherein the sleep state data table records a plurality of preset threshold values (such as a preset heart rate value and a preset respiratory frequency value) matched with the attribute characteristics of the user per se in different seasons, temperatures and time periods, in the comparison process, the terminal device acquires the current environmental temperature, season and time period, and compares the received physiological characteristic data of the user with the preset threshold values recorded in the corresponding environmental temperature, season and time period in the sleep state table. Therefore, the accuracy of judging whether the user is in the sleep state is improved.
And the player control module is used for closing the player if the user is detected to be in the sleep state.
The player can be a player of a system integrated in the terminal device, and can also be a player of an installed application program, such as love art, soul, internet music, and the like. In an embodiment, when it is detected that the user is in the sleep state, the current running process in the terminal device is correspondingly turned off, for example, the process corresponding to the player is directly turned off. In another embodiment, the player control method can be integrated into the playing software, and the shutdown or pause of the player is controlled through a control interface reserved by the playing software.
According to the method, whether the user is in the sleep state or not is determined according to the physiological characteristic data transmitted by the earphone device, the use cost of the terminal device is reduced, the physiological characteristic signals of the user are collected when the user listens to the playing data through the earphone, additional collection equipment is not needed, the collection effect is good, the player is closed at the first time when the user is determined to be in the sleep state, the interference of the audio played by the player on the user is avoided, the electric quantity of the terminal device is saved, the control on the player is more intelligent, and the user operation is simplified.
In one possible embodiment, the sleep state determination module 102 is further configured to:
before judging whether the user is in a sleep state according to the physiological characteristic data, acquiring current time information, and judging whether the time information meets a preset control condition; and if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
In a possible embodiment, the physiological characteristic data includes at least one of heart rate data, respiratory rate data, and body temperature data, and the sleep state determination module 102 is specifically configured to:
and comparing the physiological characteristic data with data recorded in a stored sleep state data table to determine whether the user is in a sleep state.
In a possible embodiment, the player control module 103 is specifically configured to:
and if the user is detected to be in the sleep state, acquiring the volume value of the audio played by the player, and if the volume value is greater than the preset volume value, closing the player.
In a possible embodiment, the player control module 103 is specifically configured to:
and if the user is detected to be in a sleep state, determining the sleep level of the user, and gradually reducing the volume value of the audio played by the player according to the sleep level.
In one possible embodiment, the player control module 103 is further configured to:
and after the sleep grade of the user is determined, switching the audio played by the player into a preset audio corresponding to the sleep grade within a preset playing time.
In a possible embodiment, the information obtaining module 101 is further configured to:
the method comprises the steps of acquiring motion state information of the terminal device acquired by an acceleration sensor before receiving physiological characteristic data sent by the earphone device, and sending a physiological characteristic data acquisition instruction if the motion state information meets a static condition, wherein the physiological characteristic data acquisition instruction is used for controlling the earphone device connected with the terminal device to transmit back physiological characteristic data of a user.
In this embodiment, a terminal device is provided on the basis of the foregoing embodiments, and fig. 8 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, and as shown in fig. 8, the terminal device 200 includes: memory 201, processor (CPU) 202, peripheral interfaces 203, RF (Radio Frequency) circuitry 205, audio circuitry 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, other input/control devices 210, and external port 204, which communicate via one or more communication buses or signal lines 207.
It should be understood that the illustrated terminal device 200 is only one example of a terminal device, and that the terminal device 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 201, the memory 201 being accessible by the CPU202, the peripheral interface 203, and the like, the memory 201 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 203, said peripheral interface 203 may connect input and output peripherals of the device to the CPU202 and the memory 201.
An I/O subsystem 209, the I/O subsystem 209 may connect input and output peripherals on the device, such as a touch screen 212 and other input/control devices 210, to the peripheral interface 203. The I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling the other input/control devices 210. Where one or more input controllers 2092 receive electrical signals from or transmit electrical signals to other input/control devices 210, the other input/control devices 210 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 2092 may be coupled to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 212, the touch screen 212 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 2091 within the I/O subsystem 209 receives electrical signals from the touch screen 212 or transmits electrical signals to the touch screen 212. The touch screen 212 detects a contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 212, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 212 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 205 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 205 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203, convert the audio data into an electric signal, and transmit the electric signal to the speaker 211.
And a speaker 211 for reproducing the voice signal received by the handset from the wireless network through the RF circuit 205 into sound and playing the sound to the user.
And the power management chip 208 is used for supplying power and managing power to the hardware connected with the CPU202, the I/O subsystem and the peripheral interface.
The player control device of the terminal device and the terminal device provided in the above embodiments may execute the player control method of the terminal device provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For details of the technique not described in detail in the above embodiments, reference may be made to a player control method of a terminal device provided in any embodiment of the present invention.
Embodiments of the present application further provide a storage medium containing terminal device executable instructions, which when executed by a terminal device processor, are configured to perform a player control method, where the method includes:
receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the acquired physiological characteristic signals of the user;
judging whether the user is in a sleep state or not according to the physiological characteristic data;
and if the user is detected to be in the sleep state, closing the player.
In a possible embodiment, before the determining whether the user is in a sleep state according to the physiological characteristic data, the method further includes:
acquiring current time information, and judging whether the time information meets a preset control condition or not;
correspondingly, the judging whether the user is in the sleep state according to the physiological characteristic data comprises:
and if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
In one possible embodiment, the physiological characteristic data includes at least one of heart rate data, respiratory rate data and body temperature data, and the determining whether the user is in a sleep state according to the physiological characteristic data includes:
and comparing the physiological characteristic data with data recorded in a stored sleep state data table to determine whether the user is in a sleep state.
In one possible embodiment, said turning off the player if said user is detected to be in a sleep state comprises:
and if the user is detected to be in the sleep state, acquiring the volume value of the audio played by the player, and if the volume value is greater than the preset volume value, closing the player.
In one possible embodiment, said turning off the player if said user is detected to be in a sleep state comprises:
and if the user is detected to be in a sleep state, determining the sleep level of the user, and gradually reducing the volume value of the audio played by the player according to the sleep level.
In one possible embodiment, after determining the sleep level of the user, the method further comprises:
and switching the audio played by the player into a preset audio corresponding to the sleep level within a preset playing time.
In a possible embodiment, before the receiving the physiological characteristic data sent by the earphone device, the method further includes:
the method comprises the steps of obtaining motion state information of terminal equipment collected by an acceleration sensor, and sending a physiological characteristic data obtaining instruction if the motion state information meets a static condition, wherein the physiological characteristic data obtaining instruction is used for controlling earphone equipment connected with the terminal equipment to pass back physiological characteristic data of a user.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the player control method described above, and may also perform related operations in the player control method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A player control method, characterized by comprising:
receiving physiological characteristic data sent by earphone equipment, wherein the physiological characteristic data is generated by the earphone equipment according to the acquired physiological characteristic signals of the user;
judging whether the user is in a sleep state or not according to the physiological characteristic data, wherein the physiological characteristic data comprise heart rate data and respiratory rate data, and comparing the heart rate data and the respiratory rate data with data recorded in a sleep state data table respectively, wherein the sleep state data table records a plurality of preset thresholds matched with the attribute characteristics of the user per se in different seasons, temperatures and time periods;
if the user is detected to be in a sleep state, determining the sleep level of the user, gradually reducing the volume value of the audio played by the player according to the sleep level, dividing the sleep level of the user into a deep sleep level, a medium sleep level and a shallow sleep level according to different sleep levels, and dividing the sleep levels based on sleep time.
2. The method of claim 1, further comprising, prior to said determining whether the user is in a sleep state from the physiological characteristic data:
acquiring current time information, and judging whether the time information meets a preset control condition or not;
correspondingly, the judging whether the user is in the sleep state according to the physiological characteristic data comprises:
and if the time information meets the preset control condition, judging whether the user is in a sleep state according to the physiological characteristic data.
3. The method of claim 2, wherein the physiological characteristic data comprises at least one of heart rate data, respiratory rate data, and body temperature data, and wherein determining whether the user is in a sleep state based on the physiological characteristic data comprises:
and comparing the physiological characteristic data with data recorded in a stored sleep state data table to determine whether the user is in a sleep state.
4. The method of claim 1, after determining the sleep level of the user, further comprising:
and switching the audio played by the player into a preset audio corresponding to the sleep level within a preset playing time.
5. The method according to any of claims 1-4, further comprising, prior to the receiving the physiological characteristic data transmitted by the headset device:
the method comprises the steps of obtaining motion state information of terminal equipment collected by an acceleration sensor, and sending a physiological characteristic data obtaining instruction if the motion state information meets a static condition, wherein the physiological characteristic data obtaining instruction is used for controlling earphone equipment connected with the terminal equipment to pass back physiological characteristic data of a user.
6. Player control apparatus, characterized by comprising:
the information acquisition module is used for receiving physiological characteristic data sent by the earphone equipment, and the physiological characteristic data is generated by the earphone equipment according to the acquired physiological characteristic signals of the user;
the sleep state judging module is used for judging whether the user is in a sleep state or not according to the physiological characteristic data, wherein the physiological characteristic data comprise heart rate data and respiratory rate data, and the heart rate data and the respiratory rate data are respectively compared with data recorded in a sleep state data table, and the sleep state data table records a plurality of preset thresholds matched with the attribute characteristics of the user per se in different seasons, temperatures and time periods;
and the player control module is used for determining the sleep grade of the user if the user is detected to be in the sleep state, gradually reducing the volume value of the audio played by the player according to the sleep grade, dividing the sleep grade of the user into a deep sleep grade, a medium sleep grade and a shallow sleep grade according to different sleep degrees, and dividing the sleep degree based on sleep time.
7. A terminal device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the player control method according to any of claims 1-5 when executing the computer program.
8. A storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are for performing a player control method as claimed in any one of claims 1 to 5.
CN201810586156.0A 2018-06-08 2018-06-08 Player control method, device, terminal equipment and storage medium Expired - Fee Related CN108810749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810586156.0A CN108810749B (en) 2018-06-08 2018-06-08 Player control method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810586156.0A CN108810749B (en) 2018-06-08 2018-06-08 Player control method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108810749A CN108810749A (en) 2018-11-13
CN108810749B true CN108810749B (en) 2021-04-06

Family

ID=64087941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810586156.0A Expired - Fee Related CN108810749B (en) 2018-06-08 2018-06-08 Player control method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108810749B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109511036B (en) * 2018-12-14 2020-12-01 歌尔科技有限公司 Automatic earphone muting method and earphone capable of automatically muting
CN109714664A (en) * 2018-12-21 2019-05-03 歌尔科技有限公司 A kind of headset control method, earphone and storage medium
CN109743667B (en) * 2018-12-28 2022-06-10 歌尔科技有限公司 Earphone wearing detection method and earphone
CN109688505A (en) * 2019-01-23 2019-04-26 陕西理工大学 A kind of earphone broadcast control device and method
CN112261536B (en) * 2020-10-20 2023-08-04 深圳市凯狮博电子有限公司 Earphone control method, earphone control device, terminal equipment and storage medium
CN112667065A (en) * 2020-12-15 2021-04-16 展讯通信(上海)有限公司 Method and device for controlling intelligent playing terminal, storage medium and intelligent wearable device
CN115174739A (en) * 2021-04-07 2022-10-11 Oppo广东移动通信有限公司 User action detection method and device, electronic equipment and storage medium
CN117041807B (en) * 2023-10-09 2024-01-26 深圳市迪斯声学有限公司 Bluetooth headset play control method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010075263A (en) * 2008-09-24 2010-04-08 Yamaha Corp Portable electronic device with cord storage portion
WO2012138233A1 (en) * 2011-04-07 2012-10-11 Fisher & Paykel Healthcare Limited Electronic apparatus control using a breathing assistance apparatus
CN105812924A (en) * 2016-03-22 2016-07-27 上海斐讯数据通信技术有限公司 Method and system for controlling audio-video device
CN105895126A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Method and apparatus for indicating and controlling playing audio/audio and video data
CN105933539A (en) * 2016-06-22 2016-09-07 北京小米移动软件有限公司 Audio playing control method and device, and terminal
CN105959857A (en) * 2016-07-19 2016-09-21 华峰君 Intelligent earphone
CN106339199A (en) * 2016-08-19 2017-01-18 乐视控股(北京)有限公司 Earphone control method and device, earphone and wearable equipment
CN107614045A (en) * 2015-02-26 2018-01-19 雅马哈株式会社 Sound source controlling device, sound source control method and computer readable recording medium storing program for performing

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9011292B2 (en) * 2010-11-01 2015-04-21 Nike, Inc. Wearable device assembly having athletic functionality
CN106409236A (en) * 2015-08-03 2017-02-15 中兴通讯股份有限公司 Wearable device screen control method and apparatus
CN106196473A (en) * 2016-07-26 2016-12-07 北京小米移动软件有限公司 Control the method and device of air-conditioning
US9870689B1 (en) * 2016-08-24 2018-01-16 International Business Machines Corporation Codependent alarm device
CN106618526A (en) * 2016-11-17 2017-05-10 杭州伯仲信息科技有限公司 Method and system for monitoring sleep
CN107894064A (en) * 2017-10-09 2018-04-10 广东小天才科技有限公司 Temperature control method, device, equipment and storage medium based on Wearable

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010075263A (en) * 2008-09-24 2010-04-08 Yamaha Corp Portable electronic device with cord storage portion
WO2012138233A1 (en) * 2011-04-07 2012-10-11 Fisher & Paykel Healthcare Limited Electronic apparatus control using a breathing assistance apparatus
CN107614045A (en) * 2015-02-26 2018-01-19 雅马哈株式会社 Sound source controlling device, sound source control method and computer readable recording medium storing program for performing
CN105812924A (en) * 2016-03-22 2016-07-27 上海斐讯数据通信技术有限公司 Method and system for controlling audio-video device
CN105895126A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Method and apparatus for indicating and controlling playing audio/audio and video data
CN105933539A (en) * 2016-06-22 2016-09-07 北京小米移动软件有限公司 Audio playing control method and device, and terminal
CN105959857A (en) * 2016-07-19 2016-09-21 华峰君 Intelligent earphone
CN106339199A (en) * 2016-08-19 2017-01-18 乐视控股(北京)有限公司 Earphone control method and device, earphone and wearable equipment

Also Published As

Publication number Publication date
CN108810749A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108810749B (en) Player control method, device, terminal equipment and storage medium
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN108509176B (en) Method and device for playing audio data, storage medium and intelligent terminal
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107566618B (en) Volume adjusting method and device, terminal equipment and storage medium
WO2017181365A1 (en) Earphone channel control method, related apparatus, and system
CN106713653B (en) Audio and video playing control method and device and terminal
EP3444718A1 (en) Method and apparatus for adjusting volume, terminal device and storage medium
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
CN111033614B (en) Volume adjusting method and device, mobile terminal and storage medium
US10469937B2 (en) Volume adjustment method, storage medium and mobile terminal
CN107508983B (en) Volume adjusting method and device, storage medium and terminal equipment
CN110730948A (en) Volume adjusting method and device, storage medium and mobile terminal
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
CN110989816B (en) Application processing method and device and storage medium
CN110730946A (en) Volume control method and device of mobile terminal, storage medium and mobile terminal
CN108632713B (en) Volume control method and device, storage medium and terminal equipment
CN108260115A (en) Bluetooth equipment position information processing method, device, terminal device and storage medium
CN115774655A (en) Data processing method and device, electronic equipment and computer readable medium
CN109194987B (en) Method and device for adjusting resolution of online video, storage medium and mobile terminal
CN107682579B (en) Incoming call reminding control method and device, storage medium and mobile terminal
CN110731087B (en) Volume adjusting method and device, mobile terminal and storage medium
WO2019033434A1 (en) Volume control method and apparatus, storage medium, and mobile terminal
CN110753919A (en) Volume adjusting method and device, storage medium and mobile terminal

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210406

CF01 Termination of patent right due to non-payment of annual fee