CN108810749A - player control method, device, terminal device and storage medium - Google Patents

player control method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108810749A
CN108810749A CN201810586156.0A CN201810586156A CN108810749A CN 108810749 A CN108810749 A CN 108810749A CN 201810586156 A CN201810586156 A CN 201810586156A CN 108810749 A CN108810749 A CN 108810749A
Authority
CN
China
Prior art keywords
user
physiological characteristic
player
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.)
Granted
Application number
CN201810586156.0A
Other languages
Chinese (zh)
Other versions
CN108810749B (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

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

Abstract

The embodiment of the present application discloses a kind of player control method, device, terminal device and storage medium, this method includes the physiological characteristic data for receiving ear speaker device and sending, and the physiological characteristic data is generated by the ear speaker device according to the physiological characteristic signal of the user of acquisition;Judge whether the user is in sleep state according to the physiological characteristic data;If detecting that the user is in sleep state, close player, this programme simplifies the control flow of player so that player that opportunity is automatically closed is more accurate.

Description

Player control method, device, terminal device and storage medium
Technical field
The invention relates to computer technology more particularly to a kind of player control method, device, terminal device and Storage medium.
Background technology
With the raising of terminal device popularity, more and more users' using terminal equipment executes various work( Can be to meet self-demand, such as using terminal equipment reads word, viewing video, listens to music, plays game, wherein player It can be used for playing music as one of the critical software in terminal device, video realizes multimedia recreation for user.
In the prior art, the time can be automatically closed to realize the purpose that player is automatically closed, so by setting in player And this mode is taken to need user's manual setting, and the setting time of user, there are dynamic changes daily, it is cumbersome, together When, the opportunity that player is automatically closed, there is also defects.
Invention content
The present invention provides a kind of player control method, device, terminal device and storage mediums, simplify player Control flow so that player that opportunity is automatically closed is more accurate.
In a first aspect, the embodiment of the present application provides a kind of player control method, including:
The physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is by the ear speaker device according to acquisition User physiological characteristic signal generate;
Judge whether the user is in sleep state according to the physiological characteristic data;
If detecting that the user is in sleep state, player is closed.
Second aspect, the embodiment of the present application also provides a kind of player control devices, including:
Data obtaining module, the physiological characteristic data for receiving ear speaker device transmission, the physiological characteristic data is by institute Ear speaker device is stated to be generated according to the physiological characteristic signal of the user of acquisition;
Sleep state judgment module, for judging the user whether in sleep shape according to the physiological characteristic data State;
If player control module closes player for detecting that the user is in sleep state.
The third aspect, the embodiment of the present application also provides a kind of terminal devices, including:Processor, memory and storage On a memory and the computer program that can run on a processor, the processor are realized such as when executing the computer program Player control method described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, institutes Terminal device executable instruction is stated when being executed by terminal device processor for executing the player described in the embodiment of the present application Control method.
In the present solution, receiving the physiological characteristic data that ear speaker device is sent, the physiological characteristic data is set by the earphone The physiological characteristic signal of the standby user according to acquisition generates, and judging whether the user is according to the physiological characteristic data sleeps Dormancy state closes player, simplifies the control flow of player, make if detecting that the user is in sleep state Player that opportunity is automatically closed is more accurate.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of player control method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another player control method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another player control method provided by the embodiments of the present application;
Fig. 4 is the flow chart of another player control method provided by the embodiments of the present application;
Fig. 5 is the flow chart of another player control method provided by the embodiments of the present application;
Fig. 6 is the flow chart of another player control method provided by the embodiments of the present application;
Fig. 7 is a kind of structure diagram of player control device provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is for explaining the present invention rather than limitation of the invention.It also should be noted that for the ease of retouching It states, only the parts related to the present invention are shown in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of player control method provided by the embodiments of the present application, is applicable to terminal device The broadcast state of player controlled, this method can be executed by terminal device provided by the embodiments of the present application, the end Software can be used in the player control device of end equipment and/or the mode of hardware is realized, as shown in Figure 1, provided in this embodiment Concrete scheme is as follows:
Step S101, the physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is set by the earphone The physiological characteristic signal of the standby user according to acquisition generates.
Wherein, ear speaker device is the device for receiving audio-frequency information that user wears, the player of installing terminal equipment When playing audio-frequency information, which is transmitted and sent by ear speaker device.In one embodiment, earphone is set Standby can be bluetooth headset, be connected with terminal device by blueteeth network and transmission data, in another embodiment, the ear Machine equipment, which can also be, to be connected by way of wired connection with terminal device and transmission data.
Wherein, physiological characteristic data is used to characterize the physiological characteristic information of user, such as heart rate, respiratory rate and body temperature. The physiological characteristic signal for the user that the physiological characteristic data is acquired by ear speaker device generates, and acquisition user is integrated in ear speaker device The sensor of physiological characteristic signal, such as temperature sensor, heart rate sensor, wherein temperature sensor can acquire the body of user Temperature, heart rate sensor are used to determine the heart rate value of user.
Step S102, judge whether the user is in sleep state according to the physiological characteristic data.
Wherein, sleep state is that user perceives audio-frequency information a kind of weaker physiological status, and user is in sleep shape There are certain differences under physiological characteristic data and active state when state, are analyzed i.e. by the physiological characteristic data to user It can determine whether user enters sleep state.
In one embodiment, which can be the heart rate data of user, correspondingly, whether determining user Can be that the heart rate data and default heart rate value are compared to sleep to judge whether user is in dormant mode Dormancy state.Illustratively, default heart rate value can be 55, when detecting the heart rate value of user certain time length (such as at 3 minutes) When interior heart rate value is less than or equal to 55, then determine that the user is in sleep state accordingly.
In one embodiment, which can be the respiratory rate data of user, correspondingly, determining user It can be that the respiratory rate data and default respiratory rate value are compared to judge to use whether to be in dormant mode Whether family is in sleep state.Illustratively, it can be 16 to preset respiratory rate value, when detecting that the respiratory rate value of user exists When certain time length (such as at 3 minutes) internal respiration frequency values are less than or equal to 16, then determine that the user is in sleep state accordingly.
In one embodiment, each parameter in the physiological characteristic data of comprehensive consideration user, with more it is accurate really Determine user and be in sleep state, by comparing the data recorded in the sleep state tables of data of physiological characteristic data and storage To determining whether user is in sleep state.Illustratively, can comprehensive consideration user heart rate data and respiratory rate data, together When, heart rate data and respiratory rate data are compared with the data recorded in sleep state tables of data respectively, wherein this is slept Dormancy status data table has recorded multiple and user's self attributes characteristic matching default thresholds under Various Seasonal, temperature, period Value (such as default heart rate value, default respiratory rate value), in comparison process, terminal device obtain the environment temperature being presently in, Season and period, by corresponding environment temperature in the physiological characteristic data of the user received and sleep state table, season and The predetermined threshold value recorded under period is compared.It improves as a result, and judges whether user is in dormant precision.
If step S103, detecting that the user is in sleep state, player is closed.
Wherein, player can be integrated in the included player of the system in terminal device, can also be answering for installation With the player of program, such as iqiyi.com, youku.com, Netease's cloud music.In one embodiment, when detect user be in sleep It is corresponding to close in terminal device before currently running broadcasting when state, such as directly close the corresponding process of player.Another In a embodiment, the player control method can be also integrated in playout software, the control interface reserved by playout software Control the closing or pause of player.
As shown in the above, whether the physiological characteristic data transmitted according to ear speaker device determines user in sleep shape State reduces the use cost of terminal device, to the physiological characteristic of user while user listens to played data using earphone Signal is acquired, and is not necessarily to additional collecting device, and collection effect is good, is determining user into pass of dormant first time Player is closed, the audio for avoiding player plays causes to bother to user, terminal device electricity is saved, for player Control is more intelligent, simplifies user's operation.
Fig. 2 is the flow chart of another player control method provided by the embodiments of the present application, optionally, in the basis The physiological characteristic data judges that the user whether before sleep state, further includes:Current temporal information is obtained, is sentenced Whether the temporal information of breaking meets default control condition;Correspondingly, described judge the use according to the physiological characteristic data Family whether in sleep state include:If the temporal information meets the default control condition, according to physiology spy Sign data judge whether the user is in sleep state.As shown in Fig. 2, technical solution is specific as follows:
Step S201, the physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is set by the earphone The physiological characteristic signal of the standby user according to acquisition generates.
Step S202, current temporal information is obtained, judges whether the temporal information meets default control condition.
Wherein, which is the current time that terminal device is shown, illustratively, can be arranged after at 9 points in evening Play out device is automatically closed control, the default control condition can be at night 9 points between 3:00 AM, i.e., if obtained The current time information arrived is before 3:00 AM, to be then determined as it accordingly after 9 points and meet default control condition.
If step S203, the described temporal information meets the default control condition, according to the physiological characteristic data Judge whether the user is in sleep state.
In the case that current temporal information meets default control condition, according to physiological characteristic data judgement Whether user is in sleep state, to carry out that control subsequently is automatically closed to player, when being unsatisfactory for default control condition, Without the judgement of physiological characteristic data, i.e., being automatically closed for player is not controlled.
If step S204, detecting that the user is in sleep state, player is closed.
It can be seen from the above, being controlled to player, when it being made to be automatically closed, current time point is assessed, If time point is in sleep period, in the control that is automatically closed for playing out device, the perfect controlling mechanism of player is slept The specific aim for control scene of sleeping is stronger.
Fig. 3 is the flow chart of another player control method provided by the embodiments of the present application, optionally, if the inspection It measures the user and is in sleep state, then closing player includes:If detecting that the user is in sleep state, obtain The volume value of player plays audio is taken, if the volume value is more than default volume value, closes player.As shown in figure 3, Technical solution is specific as follows:
Step S301, the physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is set by the earphone The physiological characteristic signal of the standby user according to acquisition generates.
Step S302, current temporal information is obtained, judges whether the temporal information meets default control condition.
If step S303, the described temporal information meets the default control condition, according to the physiological characteristic data Judge whether the user is in sleep state.
If step S304, detecting that the user is in sleep state, the volume value of player plays audio is obtained.
In one embodiment, when detecting that user is in sleep state, the sound of currently playing audio is obtained accordingly Magnitude, if the volume value is relatively low, do not interfere with user sleep, then being automatically closed without player, if the sound Magnitude is higher, is more than default volume value, then closes player accordingly.Specifically, by taking Android operation system as an example, it can be passed through The api interface (MediaRecorder classes or AudioRecord classes) of offer obtains the volume of present terminal device plays audio Value.
If step S305, detecting that the volume value is more than default volume value, player is closed.
Wherein, which can be 20 decibels.
It can be seen from the above, when determining that player plays volume is more than default volume value, broadcasting is automatically closed accordingly Device plays the influence slept to user to avoid audio.
Fig. 4 is the flow chart of another player control method provided by the embodiments of the present application, optionally, if the inspection It measures the user and is in sleep state, then closing player includes:If detecting that the user is in sleep state, really The sleep level of the fixed user, the volume value of player plays audio is reduced according to the sleep level step by step.Such as Fig. 4 institutes Show, technical solution is specific as follows:
Step S401, the physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is set by the earphone The physiological characteristic signal of the standby user according to acquisition generates.
Step S402, current temporal information is obtained, judges whether the temporal information meets default control condition.
If step S403, the described temporal information meets the default control condition, according to the physiological characteristic data Judge whether the user is in sleep state.
If step S404, detecting that the user is in sleep state, it is determined that the sleep level of the user.
Wherein, the sleep level of user can be divided into deep sleep grade, moderate sleep level according to the difference of sleep degree It such as detects that user falls asleep specifically, division determination can be carried out according to time for falling asleep with either shallow sleep level and is in sleep state First 10 minutes, be determined as either shallow sleep state, sleep was moderate sleep state after 20-30 minutes, and sleep is after 40-50 minutes Deep sleep.
Step S405, the volume value of player plays audio is reduced step by step according to the sleep level.
In one embodiment, it after judging that user enters sleep state, is reduced and is broadcast step by step according to the sleep level of user The volume that device plays audio is put, specifically, player plays volume decrease is slept as low as 20% in moderate in either shallow sleep state State by player plays volume decrease as low as 10%, in deep sleep by player plays volume decrease as low as 5%.
It can be seen from the above, when the player to terminal device controls, step by step according to the different sleep levels of user Adjustment volume value plays out the volume control of device, falls asleep convenient for user, improves the sleep quality of user.
Fig. 5 is the flow chart of another player control method provided by the embodiments of the present application, optionally, described in determination After the sleep level of user, further include:In preset play time, by the Audio conversion of the player plays be and it is described The corresponding preset audio of sleep level.As shown in figure 5, technical solution is specific as follows:
Step S501, the physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is set by the earphone The physiological characteristic signal of the standby user according to acquisition generates.
Step S502, current temporal information is obtained, judges whether the temporal information meets default control condition.
If step S503, the described temporal information meets the default control condition, according to the physiological characteristic data Judge whether the user is in sleep state.
If step S504, detecting that the user is in sleep state, it is determined that the sleep level of the user.
Step S505, in preset play time, it is and the sleep level by the Audio conversion of the player plays Corresponding preset audio closes player after the preset audio finishes.
Wherein, which can be the light music or the selected music of releiving of system of user setting, when detecting After user initially enters sleep state, the preset audio is played accordingly, and after preset audio finishes, broadcasting is automatically closed Device.In one embodiment, different sleep levels corresponds to different preset audios, user be in different sleep levels be into The broadcasting of the corresponding preset audio of row.
It can be seen from the above, when the player to terminal device controls, when detecting that user initially enters sleep shape Light music is played after state accordingly or music of releiving helps user to carry out sleep transition, improves user's sleep quality.
Fig. 6 is the flow chart of another player control method provided by the embodiments of the present application, optionally, in the reception Before the physiological characteristic data that ear speaker device is sent, further include:Obtain the movement shape of the terminal device of acceleration transducer acquisition State information sends physiological characteristic data acquisition instruction if the movement state information meets quiescent conditions, and the physiology is special Physiological characteristic data of the sign data acquisition instruction for controlling the ear speaker device connected with the terminal device passback user.Such as figure Shown in 6, technical solution is specific as follows:
Step S601, the movement state information for obtaining the terminal device of acceleration transducer acquisition, if the movement shape State information meets quiescent conditions, then sends physiological characteristic data acquisition instruction.
In one embodiment, terminal device acquires the movement state information of itself by integrated acceleration transducer, Wherein quiescent conditions characterization terminal device remains static, specifically, when x-axis, y-axis in collected acceleration transducer When being 0 with the numerical value of z-axis, judge that the movement state information meets quiescent conditions, sends physiological characteristic data acquisition at this time and refer to It enables, the physiology which is used to control the ear speaker device passback user connected with the terminal device is special Levy data.
Step S602, the physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is set by the earphone The physiological characteristic signal of the standby user according to acquisition generates.
Step S603, current temporal information is obtained, judges whether the temporal information meets default control condition.
If step S604, the described temporal information meets the default control condition, according to the physiological characteristic data Judge whether the user is in sleep state.
If step S605, detecting that the user is in sleep state, it is determined that the sleep level of the user.
Step S606, in preset play time, it is and the sleep level by the Audio conversion of the player plays Corresponding preset audio closes player after the preset audio finishes.
It can be seen from the above, when under detecting that terminal device remains static, physiological characteristic data acquisition instruction is sent, Terminal device can assert that terminal device is used in user if being kept in motion, and user is in non-sleep state at this time, Without carrying out whether user is in dormant judgement, reduces and judges whether user is in dormant power consumption, Further perfect player control method.
Fig. 7 is a kind of structure diagram of player control device provided by the embodiments of the present application, and the device is for executing The player control method for stating embodiment offer, has the corresponding function module of execution method and advantageous effect.As shown in fig. 7, The device specifically includes:Data obtaining module 101, sleep state judgment module 102 and player control module 103, wherein
Data obtaining module, the physiological characteristic data for receiving ear speaker device transmission, the physiological characteristic data is by institute Ear speaker device is stated to be generated according to the physiological characteristic signal of the user of acquisition.
Wherein, ear speaker device is the device for receiving audio-frequency information that user wears, the player of installing terminal equipment When playing audio-frequency information, which is transmitted and sent by ear speaker device.In one embodiment, earphone is set Standby can be bluetooth headset, be connected with terminal device by blueteeth network and transmission data, in another embodiment, the ear Machine equipment, which can also be, to be connected by way of wired connection with terminal device and transmission data.
Wherein, physiological characteristic data is used to characterize the physiological characteristic information of user, such as heart rate, respiratory rate and body temperature. The physiological characteristic signal for the user that the physiological characteristic data is acquired by ear speaker device generates, and acquisition user is integrated in ear speaker device The sensor of physiological characteristic signal, such as temperature sensor, heart rate sensor, wherein temperature sensor can acquire the body of user Temperature, heart rate sensor are used to determine the heart rate value of user.
Sleep state judgment module, for judging the user whether in sleep shape according to the physiological characteristic data State.
Wherein, sleep state is that user perceives audio-frequency information a kind of weaker physiological status, and user is in sleep shape There are certain differences under physiological characteristic data and active state when state, are analyzed i.e. by the physiological characteristic data to user It can determine whether user enters sleep state.
In one embodiment, which can be the heart rate data of user, correspondingly, whether determining user Can be that the heart rate data and default heart rate value are compared to sleep to judge whether user is in dormant mode Dormancy state.Illustratively, default heart rate value can be 55, when detecting the heart rate value of user certain time length (such as at 3 minutes) When interior heart rate value is less than or equal to 55, then determine that the user is in sleep state accordingly.
In one embodiment, which can be the respiratory rate data of user, correspondingly, determining user It can be that the respiratory rate data and default respiratory rate value are compared to judge to use whether to be in dormant mode Whether family is in sleep state.Illustratively, it can be 16 to preset respiratory rate value, when detecting that the respiratory rate value of user exists When certain time length (such as at 3 minutes) internal respiration frequency values are less than or equal to 16, then determine that the user is in sleep state accordingly.
In one embodiment, each parameter in the physiological characteristic data of comprehensive consideration user, with more it is accurate really Determine user and be in sleep state, by comparing the data recorded in the sleep state tables of data of physiological characteristic data and storage To determining whether user is in sleep state.Illustratively, can comprehensive consideration user heart rate data and respiratory rate data, together When, heart rate data and respiratory rate data are compared with the data recorded in sleep state tables of data respectively, wherein this is slept Dormancy status data table has recorded multiple and user's self attributes characteristic matching default thresholds under Various Seasonal, temperature, period Value (such as default heart rate value, default respiratory rate value), in comparison process, terminal device obtain the environment temperature being presently in, Season and period, by corresponding environment temperature in the physiological characteristic data of the user received and sleep state table, season and The predetermined threshold value recorded under period is compared.It improves as a result, and judges whether user is in dormant precision.
If player control module closes player for detecting that the user is in sleep state.
Wherein, player can be integrated in the included player of the system in terminal device, can also be answering for installation With the player of program, such as iqiyi.com, youku.com, Netease's cloud music.In one embodiment, when detect user be in sleep It is corresponding to close in terminal device before currently running broadcasting when state, such as directly close the corresponding process of player.Another In a embodiment, the player control method can be also integrated in playout software, the control interface reserved by playout software Control the closing or pause of player.
As shown in the above, whether the physiological characteristic data transmitted according to ear speaker device determines user in sleep shape State reduces the use cost of terminal device, to the physiological characteristic of user while user listens to played data using earphone Signal is acquired, and is not necessarily to additional collecting device, and collection effect is good, is determining user into pass of dormant first time Player is closed, the audio for avoiding player plays causes to bother to user, terminal device electricity is saved, for player Control is more intelligent, simplifies user's operation.
In a possible embodiment, the sleep state judgment module 102 is additionally operable to:
Judge that the user whether before sleep state, obtains current according to the physiological characteristic data described Temporal information, judges whether the temporal information meets default control condition;If the temporal information meets the default control Condition processed then judges whether the user is in sleep state according to the physiological characteristic data.
In a possible embodiment, the physiological characteristic data includes heart rate data, respiratory rate data and body temperature At least one of data are stated sleep state judgment module 102 and are specifically used for:
The data recorded in the physiological characteristic data and the sleep state tables of data of storage are compared described in determining Whether user is in sleep state.
In a possible embodiment, the player control module 103 is specifically used for:
If detecting that the user is in sleep state, the volume value of player plays audio is obtained, if described Volume value is more than default volume value, then closes player.
In a possible embodiment, the player control module 103 is specifically used for:
If detecting that the user is in sleep state, it is determined that the sleep level of the user, according to the sleep Grade reduces the volume value of player plays audio step by step.
In a possible embodiment, the player control module 103 is additionally operable to:
After the sleep level for determining the user, in preset play time, by the audio of the player plays It is switched to preset audio corresponding with the sleep level.
In a possible embodiment, described information acquisition module 101 is additionally operable to:
Before the physiological characteristic data that the reception ear speaker device is sent, the terminal for obtaining acceleration transducer acquisition is set Standby movement state information sends physiological characteristic data acquisition instruction if the movement state information meets quiescent conditions, The physiology that the physiological characteristic data acquisition instruction is used to control the ear speaker device passback user connected with the terminal device is special Levy data.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 8 is that the embodiment of the present application carries The structural schematic diagram of a kind of terminal device supplied, as shown in figure 8, the terminal device 200 includes:Memory 201, processor (Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205, Voicefrequency circuit 206, loud speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, other Input/control devices 210 and outside port 204, these components are led to by one or more communication bus or signal wire 207 Letter.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200 Can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can be including one or more signal processings and/or special It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the terminal device of the rights management provided in this embodiment for more opening application is described in detail below, should Terminal device is by taking smart mobile phone as an example.
Memory 201, the memory 201 can be by access such as CPU202, Peripheral Interfaces 203, and the memory 201 can Can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203 Reservoir 201.
I/O subsystems 209, the I/O subsystems 209 can be by the input/output peripherals in equipment, such as touch screen 212 With other input/control devicess 210, it is connected to Peripheral Interface 203.I/O subsystems 209 may include 2091 He of display controller One or more input controllers 2092 for controlling other input/control devicess 210.Wherein, one or more input controls Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210, Other input/control devicess 210 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 2092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 212, the touch screen 212 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 2091 in I/O subsystems 209 receives electric signal from touch screen 212 or is sent out to touch screen 212 Electric signals.Touch screen 212 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 2091 The interaction of user interface object on touch screen 212, that is, realize human-computer interaction, the user interface being shown on touch screen 212 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 205 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 205 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 205 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 205 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206 is mainly used for receiving audio data from Peripheral Interface 203, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 211.
Loud speaker 211, the voice signal for receiving mobile phone from wireless network by RF circuits 205, is reduced to sound And play the sound to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered And power management.
The executable present invention of the player control device and terminal device of the terminal device provided in above-described embodiment is arbitrary The player control method for the terminal device that embodiment is provided has and executes the corresponding function module of this method and beneficial to effect Fruit.The not technical detail of detailed description in the above-described embodiments, reference can be made to the terminal device that any embodiment of the present invention is provided Player control method.
The embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, and the terminal device can It executes instruction when being executed by terminal device processor for executing a kind of player control method, this method includes:
The physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is by the ear speaker device according to acquisition User physiological characteristic signal generate;
Judge whether the user is in sleep state according to the physiological characteristic data;
If detecting that the user is in sleep state, player is closed.
In a possible embodiment, judge the user whether in sleeping according to the physiological characteristic data described Before dormancy state, further include:
Current temporal information is obtained, judges whether the temporal information meets default control condition;
Correspondingly, it is described according to the physiological characteristic data judge the user whether in sleep state include:
If the temporal information meets the default control condition, the use is judged according to the physiological characteristic data Whether family is in sleep state.
In a possible embodiment, the physiological characteristic data includes heart rate data, respiratory rate data and body temperature At least one of data, it is described according to the physiological characteristic data judge the user whether in sleep state include:
The data recorded in the physiological characteristic data and the sleep state tables of data of storage are compared described in determining Whether user is in sleep state.
In a possible embodiment, if described detect that the user is in sleep state, player is closed Including:
If detecting that the user is in sleep state, the volume value of player plays audio is obtained, if described Volume value is more than default volume value, then closes player.
In a possible embodiment, if described detect that the user is in sleep state, player is closed Including:
If detecting that the user is in sleep state, it is determined that the sleep level of the user, according to the sleep Grade reduces the volume value of player plays audio step by step.
In a possible embodiment, after the sleep level for determining the user, further include:
It is corresponding with the sleep level default by the Audio conversion of the player plays in preset play time Audio.
In a possible embodiment, before the physiological characteristic data that the reception ear speaker device is sent, further include:
The movement state information of the terminal device of acceleration transducer acquisition is obtained, if the movement state information meets Quiescent conditions then send physiological characteristic data acquisition instruction, and the physiological characteristic data acquisition instruction is for controlling and the end The physiological characteristic data of the ear speaker device passback user of end equipment connection.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the program instruction that can be executed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer The player control method operation that executable instruction is not limited to the described above, can also be performed any embodiment of the present invention and is provided Player control method in relevant operation.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. player control method, which is characterized in that including:
The physiological characteristic data that ear speaker device is sent is received, the physiological characteristic data is by the ear speaker device according to the use of acquisition The physiological characteristic signal at family generates;
Judge whether the user is in sleep state according to the physiological characteristic data;
If detecting that the user is in sleep state, player is closed.
2. according to the method described in claim 1, it is characterized in that, judging the use according to the physiological characteristic data described Whether family further includes before sleep state:
Current temporal information is obtained, judges whether the temporal information meets default control condition;
Correspondingly, it is described according to the physiological characteristic data judge the user whether in sleep state include:
If the temporal information meets the default control condition, judge that the user is according to the physiological characteristic data It is no to be in sleep state.
3. according to the method described in claim 2, it is characterized in that, the physiological characteristic data includes heart rate data, breathing frequency At least one of rate data and temperature data, it is described to judge the user whether in sleep according to the physiological characteristic data State includes:
The data recorded in the physiological characteristic data and the sleep state tables of data of storage are compared and determine the user Whether sleep state is in.
4. according to the method described in claim 1, it is characterized in that, if described detect that the user is in sleep state, Then closing player includes:
If detecting that the user is in sleep state, the volume value of player plays audio is obtained, if the volume Value is more than default volume value, then closes player.
5. according to the method described in claim 1, it is characterized in that, if described detect that the user is in sleep state, Then closing player includes:
If detecting that the user is in sleep state, it is determined that the sleep level of the user, according to the sleep level The volume value of player plays audio is reduced step by step.
6. according to the method described in claim 5, it is characterized in that, after the sleep level for determining the user, further include:
It is default sound corresponding with the sleep level by the Audio conversion of the player plays in preset play time Frequently.
7. according to the method described in any one of claim 1-6, which is characterized in that in the life that the reception ear speaker device is sent Before managing characteristic, further include:
Obtain acceleration transducer acquisition terminal device movement state information, if the movement state information meet it is static Condition, then send physiological characteristic data acquisition instruction, and the physiological characteristic data acquisition instruction is set for controlling with the terminal The physiological characteristic data of the ear speaker device passback user of standby connection.
8. player control device, which is characterized in that including:
Data obtaining module, the physiological characteristic data for receiving ear speaker device transmission, the physiological characteristic data is by the ear Machine equipment is generated according to the physiological characteristic signal of the user of acquisition;
Sleep state judgment module, for judging whether the user is in sleep state according to the physiological characteristic data;
If player control module closes player for detecting that the user is in sleep state.
9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-7 institutes The player control method stated.
10. a kind of storage medium including terminal device executable instruction, which is characterized in that the terminal device executable instruction When being executed by terminal device processor for executing the player control method as described in any one of claim 1-7.
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 true CN108810749A (en) 2018-11-13
CN108810749B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109511036A (en) * 2018-12-14 2019-03-22 歌尔科技有限公司 A kind of earphone automatic mute method and can automatic mute earphone
CN109688505A (en) * 2019-01-23 2019-04-26 陕西理工大学 A kind of earphone broadcast control device and method
CN109714664A (en) * 2018-12-21 2019-05-03 歌尔科技有限公司 A kind of headset control method, earphone and storage medium
CN109743667A (en) * 2018-12-28 2019-05-10 歌尔科技有限公司 Earphone wears detection method and earphone
CN112261536A (en) * 2020-10-20 2021-01-22 Tcl通讯(宁波)有限公司 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
CN117041807A (en) * 2023-10-09 2023-11-10 深圳市迪斯声学有限公司 Bluetooth headset play control method

Citations (14)

* 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
CN106021904A (en) * 2012-01-18 2016-10-12 耐克创新有限合伙公司 Wearable Device Assembly Having Athletic Functionality
CN106196473A (en) * 2016-07-26 2016-12-07 北京小米移动软件有限公司 Control the method and device of air-conditioning
CN106339199A (en) * 2016-08-19 2017-01-18 乐视控股(北京)有限公司 Earphone control method and device, earphone and wearable equipment
CN106409236A (en) * 2015-08-03 2017-02-15 中兴通讯股份有限公司 Wearable device screen control method and apparatus
CN106618526A (en) * 2016-11-17 2017-05-10 杭州伯仲信息科技有限公司 Method and system for monitoring sleep
US9870689B1 (en) * 2016-08-24 2018-01-16 International Business Machines Corporation Codependent alarm device
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
CN107894064A (en) * 2017-10-09 2018-04-10 广东小天才科技有限公司 Temperature control method, device, equipment and storage medium based on Wearable

Patent Citations (14)

* 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
CN106021904A (en) * 2012-01-18 2016-10-12 耐克创新有限合伙公司 Wearable Device Assembly Having Athletic Functionality
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
CN106409236A (en) * 2015-08-03 2017-02-15 中兴通讯股份有限公司 Wearable device screen control method and 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
CN106196473A (en) * 2016-07-26 2016-12-07 北京小米移动软件有限公司 Control the method and device of air-conditioning
CN106339199A (en) * 2016-08-19 2017-01-18 乐视控股(北京)有限公司 Earphone control method and device, earphone and wearable equipment
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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
林政宏编著: "《身体养护手册:睡出健康来》", 31 May 2017, 广东科技出版社 *
王琛磊: "基于DSP的睡眠监测系统设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109511036A (en) * 2018-12-14 2019-03-22 歌尔科技有限公司 A kind of earphone automatic mute method and can automatic mute earphone
CN109714664A (en) * 2018-12-21 2019-05-03 歌尔科技有限公司 A kind of headset control method, earphone and storage medium
CN109743667A (en) * 2018-12-28 2019-05-10 歌尔科技有限公司 Earphone wears detection method and earphone
CN109688505A (en) * 2019-01-23 2019-04-26 陕西理工大学 A kind of earphone broadcast control device and method
CN112261536A (en) * 2020-10-20 2021-01-22 Tcl通讯(宁波)有限公司 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
CN117041807A (en) * 2023-10-09 2023-11-10 深圳市迪斯声学有限公司 Bluetooth headset play control method
CN117041807B (en) * 2023-10-09 2024-01-26 深圳市迪斯声学有限公司 Bluetooth headset play control method

Also Published As

Publication number Publication date
CN108810749B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN108810749A (en) player control method, device, terminal device and storage medium
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
TWI551267B (en) Sleep aid system and operation method thereof
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
US11632621B2 (en) Method for controlling volume of wireless headset, and computer-readable storage medium
CN112712803A (en) Voice awakening method and electronic equipment
CN109413537A (en) Audio signal playback method, device and earphone
CN107566618B (en) Volume adjusting method and device, terminal equipment and storage medium
CN111033614B (en) Volume adjusting method and device, mobile terminal and storage medium
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
CN109918039A (en) A kind of volume adjusting method and mobile terminal
US11068230B2 (en) Bluetooth speaker, and intelligent control method for playing audio
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
WO2019033941A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN113596657A (en) Earphone in-ear detection method, terminal and computer readable storage medium
EP4319116A1 (en) Volume adjustment method and terminal device
CN108287605A (en) charge control method, device, terminal device and storage medium
CN110799936A (en) Volume adjusting method and device, terminal equipment and storage medium
CN108234738A (en) volume adjusting method, device, terminal and storage medium
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
CN110730948A (en) Volume adjusting method and device, storage medium and mobile terminal
WO2023093113A1 (en) Mode switching method and apparatus, and audio playing device and computer-readable medium
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
CN108632713A (en) Method for controlling volume, device, storage medium and terminal device

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

Granted publication date: 20210406