CN111026357A - Audio playing control method, storage medium and air conditioner - Google Patents

Audio playing control method, storage medium and air conditioner Download PDF

Info

Publication number
CN111026357A
CN111026357A CN201911337390.0A CN201911337390A CN111026357A CN 111026357 A CN111026357 A CN 111026357A CN 201911337390 A CN201911337390 A CN 201911337390A CN 111026357 A CN111026357 A CN 111026357A
Authority
CN
China
Prior art keywords
audio
playing
preset
sleep state
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911337390.0A
Other languages
Chinese (zh)
Inventor
唐杰
仝磊
李喜林
朱建垣
巫锦辉
余晨星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911337390.0A priority Critical patent/CN111026357A/en
Publication of CN111026357A publication Critical patent/CN111026357A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/011Emotion or mood input determined on the basis of sensed human body parameters such as pulse, heart rate or beat, temperature of skin, facial expressions, iris, voice pitch, brain activity patterns

Abstract

The invention relates to a control method for audio playing, a storage medium and an air conditioner, wherein the control method is applied to intelligent equipment and comprises the following steps: controlling the playing of the audio in a first manner or a second manner, wherein: the first mode includes: acquiring sleep state information of a preset user; adjusting the playing volume of the audio according to the parameter value or the preset instruction of the sleep state information of the preset user acquired each time; judging whether parameter values of the sleep state information of the continuously acquired preset times are all within a preset threshold range, and stopping the audio playing when the parameter values are all within the preset threshold range, wherein the second mode comprises the following steps: receiving a first instruction sent by a preset receiving end, wherein the first instruction comprises a time length for playing the audio and playing volume respectively corresponding to each sub-time period in a plurality of sub-time periods forming the time length; and for each sub-time period, playing according to the playing volume corresponding to the sub-time period.

Description

Audio playing control method, storage medium and air conditioner
Technical Field
The invention relates to the technical field of smart home, in particular to a control method for audio playing, a storage medium and an air conditioner.
Background
With the increasing influence of science and technology on the life of people, people are eager for more convenient life brought by technical skills. For some users, there is a habit of listening to audio while falling asleep, for example with a mild music. Especially for children, almost every child has a habit of listening to a story while falling asleep, with the hope that the story falls asleep. However, on the one hand, most parents do not have time to tell a story to a child after work every day due to the compact pace of social development at present, and there are problems that the user who is a parent is stressed and the child cannot hear the story while falling asleep; on the other hand, when the control of the audio playing volume and the audio playing time is not good, the sleep quality of the user is affected. For example, when the audio playback volume is always maintained at a high volume, or the audio playback time is too long, it may cause difficulty in falling asleep and poor sleep quality for the user.
Therefore, how to help a user with children to relieve stress and how to control the playing of audio so that the user has a better sleep environment is a technical problem to be solved urgently in the field of smart homes at present.
Disclosure of Invention
In order to solve the technical problems that the existing user who is a parent has high stress and the user is difficult to fall asleep and has poor sleep quality when the audio playing control is not good, the invention provides an audio playing control method, a storage medium and an air conditioner, wherein the method is applied to intelligent equipment which can play audio (such as stories) and play favorite stories for children, thereby relieving the stress of the user with children; in addition, the method can control the playing volume and the playing time of the audio in various ways, can achieve the effects that the volume is gradually reduced along with the parameter value of the sleep state information or along with the change of time, and the audio is closed when the user is detected to be asleep or reaches the preset duration, thereby helping the user fall asleep better and faster and improving the sleep quality of the user.
According to a first aspect of the present invention, there is provided a control method for audio playing, which is applied to an intelligent device, the control method including:
controlling the playing of the audio in a first manner or a second manner, wherein:
the first mode includes:
acquiring sleep state information of a preset user;
adjusting the playing volume of the audio according to the parameter value or the preset instruction of the sleep state information of the preset user acquired each time;
judging whether parameter values of the sleep state information of the continuously acquired preset times are all in a preset threshold range, stopping playing the audio when the parameter values are all in the preset threshold range,
the second mode includes:
receiving a first instruction sent by a preset receiving end, wherein the first instruction comprises a time length for playing the audio and playing volume respectively corresponding to each sub-time period in a plurality of sub-time periods forming the time length;
and for each sub-time period, playing according to the playing volume corresponding to the sub-time period.
Preferably, adjusting the playing volume of the audio according to the sleep state information includes:
and according to the parameter value of the sleep state information, inquiring audio playing volume corresponding to the parameter value of the sleep state information from a knowledge base and playing audio according to the inquired audio playing volume, wherein the knowledge base stores the mapping relation between the parameter value of the sleep state information and the audio playing volume.
Preferably, the preset instruction includes a playing volume corresponding to each sub-period,
adjusting the playing volume of the audio according to a preset instruction, comprising:
and playing the audio according to the playing volume corresponding to each sub-time period specified in the preset instruction.
Preferably, the acquiring of the sleep state information of the preset user includes:
pre-binding third party equipment for detecting the sleep state information;
and receiving the sleep state information output by the third-party equipment or receiving the sleep state information output by the third-party equipment transferred by a preset receiving end.
Preferably, the third party device comprises: the sleep state detection device comprises a user portable device or a bed device, wherein the user portable device can detect the sleep state information, the user portable device comprises an intelligent bracelet or an intelligent watch, and the bed device comprises an intelligent mattress.
Preferably, the sleep state information of the preset user comprises a heart rate of the preset user, and the parameter value comprises a heart rate value.
Preferably, the adjusting the playing volume of the audio according to the sleep state information specifically includes:
and according to the acquired heart rate value of the preset user, inquiring audio playing volume corresponding to the acquired heart rate value of the preset user from a knowledge base and playing audio according to the inquired audio playing volume, wherein the knowledge base stores the mapping relation between the heart rate value of the preset user and the audio playing volume.
Preferably, when the parameter values are all within a preset threshold range, stopping the playing of the audio, including:
when the parameter value is within a preset threshold range, sending request information for closing the audio to a preset receiving end;
and stopping the audio playing when receiving an instruction of closing the audio fed back by the preset receiving end in response to the request information or when not receiving the instruction within preset time.
Preferably, the control method further includes:
receiving a second instruction sent by a preset receiving end for switching audio, stopping playing, changing volume or closing the intelligent equipment;
when a second instruction is received, the second instruction is executed.
Preferably, the smart device comprises an air conditioner.
Preferably, the audio comprises at least one of: stories, songs, reviews and articles,
the audio is the audio content stored in the intelligent device or the audio content sent to the intelligent device by the preset receiving end.
According to a second aspect of the present invention, there is provided a storage medium having stored thereon executable code which, when executed by a processor, implements the method of controlling audio playback described above.
According to a third aspect of the present invention, there is provided an air conditioner comprising:
a communication device;
a processor;
an audio playing device controlled by the processor; and
a memory having stored thereon executable code which, when executed by the processor, implements the above-described method of controlling audio playback.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
by applying the control method for audio playing, the storage medium and the air conditioner provided by the embodiment of the invention, the method is applied to the intelligent equipment, and the intelligent equipment can play audio (such as stories) and can play favorite stories for children, so that the pressure of users with children is relieved; in addition, the method can control the playing volume and the playing time of the audio in various ways, can achieve the effects that the volume is gradually reduced along with the parameter value of the sleep state information or along with the change of time, and the audio is closed when the user is detected to be asleep or reaches the preset duration, thereby helping the user fall asleep better and faster and improving the sleep quality of the user.
Further, the intelligent device is preferably an air conditioner, compared with the ordinary story telling device, the air conditioner with the story playing function provided by the invention is far away from children, the influence of generated radiation on the children is less, the healthy development of the children is facilitated, the healthy and happy growth of the children is ensured while the stress of a user who is a parent is relieved, and the habit of listening to stories and learning is helped for the children.
Furthermore, the invention makes full use of other devices (third-party devices) and resources in the family, and increases the satisfaction degree of the user on family life.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart illustrating a method for controlling audio playback according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method for controlling audio playback according to a second embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
The invention provides a control method for audio playing, a storage medium and an air conditioner, and aims to solve the technical problems that the pressure of a user as a parent is high, the user is difficult to fall asleep and the sleep quality is poor when the audio playing control is not good.
Example one
First, an embodiment of the present invention provides a method for controlling audio playing, which is applied to an intelligent device. Fig. 1 is a flowchart illustrating a method for controlling audio playback according to a first embodiment of the present invention. As shown in fig. 1, the control method includes:
step S11: acquiring sleep state information of a preset user;
step S12: adjusting the playing volume of the audio according to the parameter value or the preset instruction of the sleep state information of the preset user acquired each time;
step S13: and judging whether the parameter values of the sleep state information of the continuously acquired preset times are all in a preset threshold range, and stopping the audio playing when the parameter values are all in the preset threshold range.
In the embodiment of the invention, in order to solve the technical problems that the pressure of the user as a parent is high, the user is difficult to fall asleep and the sleep quality is poor when the audio playing control is not good, a control method of audio playing is provided, and the control method is applied to intelligent equipment.
The intelligent device is preferably an air conditioner, that is, an air conditioner with an audio playing function, which applies the audio playing control method. Through the control method of the audio playing, for example, the air conditioner can play a preset story for the child, so that the child can fall asleep better, and the pressure of parents is relieved. In addition, compared with the common storytelling equipment, the air conditioner is far away from the user, the generated radiation has less influence on the user, and the health of the user is favorably ensured.
It should be noted that the intelligent device may also be other devices, and the present invention is not limited thereto.
In step S11, it is preferable that the sleep state information of the preset user is detected by the third party device, for example, by binding the third party device for detecting the sleep state information in advance by the smart device.
The third-party device includes, for example, a user's portable device or a bed device capable of detecting the sleep state information, the user's portable device includes, for example, a smart bracelet or a smart watch, and the bed device includes, for example, a smart mattress. That is, if it is desired to obtain the sleep state information of the preset user, for example, it is desired to obtain the sleep state information of the user a, the third-party device being used by the user a may be bound by the smart device.
The specific binding process is, for example, to complete the binding between the smart device and the third-party device through a preset receiving end (e.g., a client). After the binding is completed, for example, in a direct receiving manner, the intelligent device receives the sleep state information of the preset user output by the third-party device, or for example, in a relay manner of the preset receiving terminal, the intelligent device receives the sleep state information of the preset user output by the third-party device relayed by the preset receiving terminal.
In the embodiment of the present invention, the sleep state information of the preset user includes, for example, a heart rate of the preset user, and the parameter value of the sleep state information includes, for example, a heart rate value.
In step S12, the playing volume of the audio is adjusted according to the parameter value of the preset user sleep state information acquired each time.
Specifically, according to the parameter value of the sleep state information, the audio playing volume corresponding to the parameter value of the sleep state information is inquired from a local or cloud knowledge base of the intelligent device, and the audio is played according to the inquired audio playing volume, wherein the knowledge base stores the mapping relation between the parameter value of the sleep state information and the audio playing volume.
More specifically, the embodiment of the present invention adjusts the audio playing volume according to the acquired heart rate value of the preset user. Research shows that the heart rate value of a person is reduced to a certain extent when the person sleeps and is fixed in a small range when the person sleeps. The embodiment of the invention is based on the above finding, and aims to achieve the effect of reducing the playing volume of the audio along with the reduction of the heart rate value of the user, so that the user can fall asleep better.
Specifically, according to the acquired heart rate value of the preset user, an audio playing volume corresponding to the acquired heart rate value of the preset user is inquired from a local or cloud knowledge base of the intelligent device, and the audio is played according to the inquired audio playing volume, wherein the knowledge base stores a mapping relation between the heart rate value of the preset user and the audio playing volume.
In the embodiment of the present invention, for example, the heart rate value of the user is obtained once every preset time interval or is obtained in real time.
Taking the example of obtaining the heart rate value of the user at preset time intervals, for example, the heart rate value of the user obtained this time is 60 times per minute, then the audio playing volume corresponding to 60 times per minute, for example, 40%, is queried from the knowledge base according to 60 times per minute, and then the current audio playing volume is set to 40% according to the query result this time. For another example, the next time the heart rate value of the user is obtained is 58 times/minute, then the audio playing volume corresponding to 58 times/minute is queried from the knowledge base according to 58 times/minute, for example, 30%, and then the current audio playing volume is set to 30% according to the query result of this time.
It should be noted that, in consideration of the difference between the heart rate values of different users, the knowledge base may store the mapping relationship between the heart rate value and the audio playing volume for each user, or may be divided according to age and gender, for example, the mapping relationship between the heart rate value and the audio playing volume for boys aged 5 to 10 years old and the mapping relationship between the heart rate value and the audio playing volume for women aged 20 to 30 years old are included. Before querying, the mapping relationship between the heart rate value and the audio playing volume of the user is marked by using the user information of the user or the device information of a third-party device used by the user. And during query, querying the audio playing volume corresponding to the heart rate value of the user from the mapping relation between the heart rate value of the user and the audio playing volume by using the heart rate value of the user and the user information of the user or the equipment information of the third-party equipment used by the user.
In step S13, it is determined whether the parameter values of the sleep state information obtained continuously for the preset number of times are all within the preset threshold range, and when the parameter values are all within the preset threshold range, the audio playing is stopped.
From the above studies, it is found that the value of the heart rate of a human body during sleep is fixed in a small range. In the embodiment of the present invention, for example, whether the heart rate values of the preset user obtained three times continuously are all within the preset threshold range is determined.
Taking this time and two times before this time as an example, when the heart rate values of the preset user obtained this time and two times before this time are both within the preset threshold range, it is determined that the user is asleep, and the playing of the audio is stopped. And when at least one of the obtained preset user heart rate values at this time and two times before this time is not in the preset threshold range, returning to the step S11, and circulating the steps S11 to S13 until the audio stops playing and ends.
It should be noted that the preset number is not limited to three times, and may be smaller than or larger than three times, and the preset number and the preset threshold range may be flexibly set according to the actual situation, which is not limited to this invention.
In addition to the above automatic control of audio playing by the smart device itself, as another implementation manner, in the embodiment of the present invention, the audio playing is controlled by using a combination manner of a preset receiving end and the smart device.
In the process of controlling audio playing by using the combination of the preset receiving terminal and the intelligent device, for example, the priority of the instruction sent by the preset receiving terminal is set to be the highest.
Specifically, the method comprises the following steps: in step S12, if the smart device receives a preset instruction including the playing volume corresponding to each sub-time period sent by the preset receiving end, the playing volume of the audio is adjusted according to the preset instruction. For example, provision is made in the preset instructions for: the volume of 0:00 to 5:00 (minutes) is 50%, the volume of 5:01 to 10:00 (minutes) is 25%, and the volume of 10:01 to 20:00 (minutes) is 15%, and the volume can be flexibly set according to the actual situation, and the present invention is not limited thereto.
When the preset instruction is received, the intelligent device (such as an air conditioner) plays audio according to the playing volume corresponding to each sub-time period specified in the preset instruction.
If the smart device does not receive a preset instruction which is sent by a preset receiving end and contains the playing volume corresponding to each sub-time period, the playing volume of the audio is adjusted according to the parameter value of the sleep state information of the preset user, which is obtained each time, and the details are not repeated herein.
In step S13, the smart device determines whether the parameter values of the sleep state information obtained continuously for a preset number of times are all within a preset threshold range:
when the parameter value of the sleep state information of the preset times is in the preset threshold range, sending request information for closing the audio frequency to a preset receiving end;
and stopping the audio playing when receiving an instruction for closing the audio fed back by a preset receiving end in response to the request information or when not receiving the instruction for closing the audio within preset time.
Specifically, taking this time and two times before this time as an example, when the heart rate values of the preset user obtained this time and two times before this time are both within the preset threshold range, it is determined that the user is asleep, and request information for closing the audio is sent to the preset receiving end. And stopping the audio playing when receiving an instruction for closing the audio fed back by the preset receiving end in response to the request information or not receiving the instruction for closing the audio for more than two minutes.
Preferably, the smart device (e.g., air conditioner) has audio content stored therein. When the audio to be played is selected, the audio to be played may be selected from the audio contents stored in the smart device, or may be selected on-line, for example, by a preset receiving terminal, the audio to be played may be selected on-line or locally, and sent to the smart device, and the smart device plays the selected audio.
Preferably, the audio comprises at least one of: stories, songs, reviews, and articles, but may also include other types of audio, and the invention is not limited in this regard.
Preferably, the user can perform operations of switching audio, stopping playing, changing volume or closing the intelligent device on the preset receiving end, and the intelligent device receives a second instruction sent by the preset receiving end to switch audio, stop playing, change volume or close the intelligent device;
and when the intelligent device receives the second instruction, executing the second instruction, and performing operations of correspondingly switching audio, stopping playing, changing volume or closing the intelligent device.
In summary, the embodiment of the present invention provides a control method for audio playing, which is applied to an intelligent device, where the intelligent device can play audio (such as a story) and can play a favorite story for a child, so as to relieve the stress of a user with the child; in addition, the method can control the playing volume and the playing time of the audio in various ways, can achieve the effects that the volume is gradually reduced along with the parameter value of the sleep state information or along with the change of time, and the audio is closed when the user is detected to be asleep or reaches the preset duration, thereby helping the user fall asleep better and faster and improving the sleep quality of the user.
Further, the intelligent device is preferably an air conditioner, compared with the ordinary story telling device, the air conditioner with the story playing function provided by the invention is far away from children, the influence of generated radiation on the children is less, the healthy development of the children is facilitated, the healthy and happy growth of the children is ensured while the stress of a user who is a parent is relieved, and the habit of listening to stories and learning is helped for the children.
Furthermore, the invention makes full use of other devices (third-party devices) and resources in the family, and increases the satisfaction degree of the user on family life.
Example two
The second embodiment of the invention provides a control method for audio playing, which is applied to intelligent equipment. Different from the audio playing control method provided in the first embodiment, the audio playing control method provided in the second embodiment of the present invention is controlled by a preset receiving end.
Fig. 2 is a flowchart illustrating a method for controlling audio playback according to a second embodiment of the present invention. As shown in fig. 2, the control method includes:
step S21: receiving a first instruction sent by a preset receiving end, wherein the first instruction comprises a time length for playing the audio and playing volume respectively corresponding to each sub-time period in a plurality of sub-time periods forming the time length;
step S22: and for each sub-time period, playing according to the playing volume corresponding to the sub-time period.
In step S21, the duration of playing audio refers to the duration from the start of playing audio to the stop of playing audio. For example, the audio is played for 20 minutes, and when the audio is played for 20 minutes, the audio is stopped.
The first instruction comprises playing volume corresponding to each sub-time period in a plurality of sub-time periods forming the time length of playing the audio. For example, the 20-minute period for playing the audio is divided into 3 sub-periods, such as 0:00 to 5:00 (minute), 5:01 to 10:00 (minute), and 10:01 to 20:00 (minute), and the volume of the first period 0:00 to 5:00 (minute) is defined as 50%, the volume of the second period 5:01 to 10:00 (minute) is defined as 25%, and the volume of the third period 10:01 to 20:00 (minute) is defined as 15%, but the present invention is not limited thereto.
Besides, the first instruction may also include set audio to be played, such as one or more pieces of music, stories, reviews, articles, and the like, or combinations thereof, for example, chose "ugly duckling", which is flexibly set according to the actual situation, and the present invention is not limited thereto.
In step S22, the audio to be played set in the first instruction is played. And in the volume control, for each sub-time period, playing according to the playing volume corresponding to the sub-time period. And when the time for playing the audio is reached, stopping playing the audio.
Preferably, the intelligent device is an air conditioner, that is, an air conditioner with an audio playing function to which the audio playing control method is applied. Through the control method of the audio playing, for example, the air conditioner can play a preset story for the child, so that the child can fall asleep better, and the pressure of parents is relieved. In addition, compared with the common storytelling equipment, the air conditioner is far away from the user, the generated radiation has less influence on the user, and the health of the user is favorably ensured.
Preferably, the smart device (e.g., air conditioner) has audio content stored therein. When the audio to be played is selected, the audio to be played may be selected from the audio contents stored in the smart device, or may be selected on-line, for example, by a preset receiving terminal, the audio to be played may be selected on-line or locally, and sent to the smart device, and the smart device plays the selected audio.
Preferably, the audio comprises at least one of: stories, songs, reviews, and articles, but may also include other types of audio, and the invention is not limited in this regard.
Preferably, the user can perform operations of switching audio, stopping playing, changing volume or closing the intelligent device on the preset receiving end, and the intelligent device receives a second instruction sent by the preset receiving end to switch audio, stop playing, change volume or close the intelligent device;
and when the intelligent device receives the second instruction, executing the second instruction, and performing operations of correspondingly switching audio, stopping playing, changing volume or closing the intelligent device.
In summary, the embodiment of the present invention provides a control method for audio playing, which is applied to an intelligent device, where the intelligent device can play audio (such as a story) and can play a favorite story for a child, so as to relieve the stress of a user with the child; in addition, the method can control the playing volume and the playing time of the audio in various ways, can achieve the effects that the volume is gradually reduced along with the parameter value of the sleep state information or along with the change of time, and the audio is closed when the user is detected to be asleep or reaches the preset duration, thereby helping the user fall asleep better and faster and improving the sleep quality of the user.
Further, the intelligent device is preferably an air conditioner, compared with the ordinary story telling device, the air conditioner with the story playing function provided by the invention is far away from children, the influence of generated radiation on the children is less, the healthy development of the children is facilitated, the healthy and happy growth of the children is ensured while the stress of a user who is a parent is relieved, and the habit of listening to stories and learning is helped for the children.
Furthermore, the invention makes full use of other devices (third-party devices) and resources in the family, and increases the satisfaction degree of the user on family life.
EXAMPLE III
Accordingly, an embodiment of the present invention provides a storage medium, on which executable codes are stored, and when the executable codes are executed by a processor, the method for controlling audio playing provided in the first embodiment or the second embodiment is implemented.
Correspondingly, the embodiment of the invention also provides an air conditioner, which comprises:
a communication device;
a processor;
an audio playing device controlled by the processor; and
a memory, on which executable codes are stored, and when the executable codes are executed by the processor, the method for controlling audio playing provided by the first embodiment or the second embodiment is implemented.
In summary, embodiments of the present invention provide a control method for audio playing, a storage medium, and an air conditioner, where the method is applied to an intelligent device, and the intelligent device can play audio (e.g., a story) and can play a favorite story for a child, so as to relieve the stress of a user with the child; in addition, the method can control the playing volume and the playing time of the audio in various ways, can achieve the effects that the volume is gradually reduced along with the parameter value of the sleep state information or along with the change of time, and the audio is closed when the user is detected to be asleep or reaches the preset duration, thereby helping the user fall asleep better and faster and improving the sleep quality of the user.
Further, the intelligent device is preferably an air conditioner, compared with the ordinary story telling device, the air conditioner with the story playing function provided by the invention is far away from children, the influence of generated radiation on the children is less, the healthy development of the children is facilitated, the healthy and happy growth of the children is ensured while the stress of a user who is a parent is relieved, and the habit of listening to stories and learning is helped for the children.
Furthermore, the invention makes full use of other devices (third-party devices) and resources in the family, and increases the satisfaction degree of the user on family life.
Those skilled in the art will appreciate that the modules or steps of the invention described above can be implemented in a general purpose computing device, centralized on a single computing device or distributed across a network of computing devices, and optionally implemented in program code that is executable by a computing device, such that the modules or steps are stored in a memory device and executed by a computing device, fabricated separately into integrated circuit modules, or fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (13)

1. A control method for audio playing is characterized in that the control method is applied to intelligent equipment and comprises the following steps:
controlling the playing of the audio in a first manner or a second manner, wherein:
the first mode includes:
acquiring sleep state information of a preset user;
adjusting the playing volume of the audio according to the parameter value or the preset instruction of the sleep state information of the preset user acquired each time;
judging whether parameter values of the sleep state information of the continuously acquired preset times are all in a preset threshold range, stopping playing the audio when the parameter values are all in the preset threshold range,
the second mode includes:
receiving a first instruction sent by a preset receiving end, wherein the first instruction comprises a time length for playing the audio and playing volume respectively corresponding to each sub-time period in a plurality of sub-time periods forming the time length;
and for each sub-time period, playing according to the playing volume corresponding to the sub-time period.
2. The control method of claim 1, wherein adjusting the playing volume of the audio according to the sleep state information comprises:
and according to the parameter value of the sleep state information, inquiring audio playing volume corresponding to the parameter value of the sleep state information from a knowledge base and playing audio according to the inquired audio playing volume, wherein the knowledge base stores the mapping relation between the parameter value of the sleep state information and the audio playing volume.
3. The method according to claim 1, wherein the preset instruction includes a playing volume corresponding to each sub-period, and adjusting the playing volume of the audio according to the preset instruction includes:
and playing the audio according to the playing volume corresponding to each sub-time period specified in the preset instruction.
4. The control method according to claim 1, wherein the obtaining of the sleep state information of the preset user comprises:
pre-binding third party equipment for detecting the sleep state information;
and receiving the sleep state information output by the third-party equipment or receiving the sleep state information output by the third-party equipment transferred by a preset receiving end.
5. The control method according to claim 4, wherein the third-party device includes: the sleep state detection device comprises a user portable device or a bed device, wherein the user portable device can detect the sleep state information, the user portable device comprises an intelligent bracelet or an intelligent watch, and the bed device comprises an intelligent mattress.
6. The control method of claim 2, wherein the sleep state information of the preset user comprises a heart rate of the preset user, and the parameter value comprises a heart rate value.
7. The method of claim 6, wherein adjusting the playback volume of the audio according to the sleep state information specifically comprises:
and according to the acquired heart rate value of the preset user, inquiring audio playing volume corresponding to the acquired heart rate value of the preset user from a knowledge base and playing audio according to the inquired audio playing volume, wherein the knowledge base stores the mapping relation between the heart rate value of the preset user and the audio playing volume.
8. The control method of claim 1, wherein stopping the audio from being played when the parameter values are all within a preset threshold range comprises:
when the parameter value is within a preset threshold range, sending request information for closing the audio to a preset receiving end;
and stopping the audio playing when receiving an audio closing instruction fed back by the preset receiving end in response to the request information or when not receiving the audio closing instruction within preset time.
9. The control method according to claim 1, characterized by further comprising:
receiving a second instruction sent by a preset receiving end for switching audio, stopping playing, changing volume or closing the intelligent equipment;
when a second instruction is received, the second instruction is executed.
10. The control method of claim 1, wherein the smart device comprises an air conditioner.
11. The control method of claim 1, wherein the audio comprises at least one of: stories, songs, reviews and articles,
the audio is audio content stored in the intelligent device or audio content sent to the intelligent device by a preset receiving end.
12. A storage medium having stored thereon executable code which, when executed by a processor, implements a method of controlling audio playback according to any one of claims 1 to 11.
13. An air conditioner, comprising:
a communication device;
a processor;
an audio playing device controlled by the processor; and
memory having stored thereon executable code which, when executed by the processor, implements a method of controlling audio playback according to any one of claims 1 to 11.
CN201911337390.0A 2019-12-23 2019-12-23 Audio playing control method, storage medium and air conditioner Pending CN111026357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911337390.0A CN111026357A (en) 2019-12-23 2019-12-23 Audio playing control method, storage medium and air conditioner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911337390.0A CN111026357A (en) 2019-12-23 2019-12-23 Audio playing control method, storage medium and air conditioner

Publications (1)

Publication Number Publication Date
CN111026357A true CN111026357A (en) 2020-04-17

Family

ID=70211639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911337390.0A Pending CN111026357A (en) 2019-12-23 2019-12-23 Audio playing control method, storage medium and air conditioner

Country Status (1)

Country Link
CN (1) CN111026357A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515255A (en) * 2021-05-17 2021-10-19 英华达(上海)科技有限公司 Audio playing control method, system, electronic equipment and storage medium
CN114484814A (en) * 2022-01-04 2022-05-13 青岛海尔空调器有限总公司 Method and device for controlling air conditioner voice, air conditioner and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102198301A (en) * 2011-05-20 2011-09-28 哈尔滨工业大学 Music playing system based on body feature monitoring
CN102261718A (en) * 2010-05-31 2011-11-30 珠海格力电器股份有限公司 Air conditioning system and control method thereof
CN103673196A (en) * 2012-08-31 2014-03-26 珠海格力电器股份有限公司 Air conditioner and control method thereof
CN105225679A (en) * 2015-09-23 2016-01-06 广东小天才科技有限公司 A kind of method and device adjusting music
CN105249948A (en) * 2015-09-11 2016-01-20 上海卓易科技股份有限公司 Electric appliance control system and method based on sleep monitoring
CN105590640A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Playing control method and device for mobile terminal
CN106792166A (en) * 2016-12-07 2017-05-31 广州视源电子科技股份有限公司 The control method and system of playback equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102261718A (en) * 2010-05-31 2011-11-30 珠海格力电器股份有限公司 Air conditioning system and control method thereof
CN102198301A (en) * 2011-05-20 2011-09-28 哈尔滨工业大学 Music playing system based on body feature monitoring
CN103673196A (en) * 2012-08-31 2014-03-26 珠海格力电器股份有限公司 Air conditioner and control method thereof
CN105590640A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Playing control method and device for mobile terminal
CN105249948A (en) * 2015-09-11 2016-01-20 上海卓易科技股份有限公司 Electric appliance control system and method based on sleep monitoring
CN105225679A (en) * 2015-09-23 2016-01-06 广东小天才科技有限公司 A kind of method and device adjusting music
CN106792166A (en) * 2016-12-07 2017-05-31 广州视源电子科技股份有限公司 The control method and system of playback equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515255A (en) * 2021-05-17 2021-10-19 英华达(上海)科技有限公司 Audio playing control method, system, electronic equipment and storage medium
CN114484814A (en) * 2022-01-04 2022-05-13 青岛海尔空调器有限总公司 Method and device for controlling air conditioner voice, air conditioner and storage medium

Similar Documents

Publication Publication Date Title
CN107743289B (en) Intelligent sound box control method in intelligent household scene
CN110347367B (en) Volume adjusting method, terminal device, storage medium and electronic device
US8353843B2 (en) Method for providing contents and electronic device having function therefor
CN111026357A (en) Audio playing control method, storage medium and air conditioner
CN108369805A (en) Voice interaction method and device and intelligent terminal
CN113189884A (en) Multimedia playing system and method based on smart home
CN107659710B (en) Intelligent terminal, playing control method thereof and device with storage function
CN110347366B (en) Volume adjusting method, terminal device, storage medium and electronic device
US20240041344A1 (en) Utilization of infant activated audio player
CN108052306A (en) A kind of method, apparatus, playback equipment and storage medium for adjusting broadcast sound volume
US7834740B2 (en) Audible command method for handing off messages between two appliances
CN112487235A (en) Audio resource playing method and device, intelligent terminal and storage medium
CN105261378A (en) An audio file playing method and apparatus based on sleep states
JP2021015266A (en) Voice interaction method and device
CN113375316A (en) Control method and device for air conditioner and air conditioner
CN111324041A (en) Household appliance alarm clock control method and device, storage medium and household appliance
JP3625410B2 (en) Hearing aid fitting device
WO2022126734A1 (en) Voice interaction processing method and apparatus, electronic device, and storage medium
EP1911027B1 (en) Media player with popularity ranking generated by babies
CN213030397U (en) Intelligent pillow
CN114512142A (en) Volume adjusting method and device, electronic equipment and storage medium
US20140336803A1 (en) Time management and task persistence method, apparatus and system
US20240057238A1 (en) Adjusting a routine in dependence on a difference between current and expected states
KR102285883B1 (en) Stereo sound source analyzing method
CN104505106B (en) A kind of 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200417

RJ01 Rejection of invention patent application after publication