WO2020078087A1 - Method and device for controlling music play, household appliance, terminal and medium - Google Patents

Method and device for controlling music play, household appliance, terminal and medium Download PDF

Info

Publication number
WO2020078087A1
WO2020078087A1 PCT/CN2019/100413 CN2019100413W WO2020078087A1 WO 2020078087 A1 WO2020078087 A1 WO 2020078087A1 CN 2019100413 W CN2019100413 W CN 2019100413W WO 2020078087 A1 WO2020078087 A1 WO 2020078087A1
Authority
WO
WIPO (PCT)
Prior art keywords
music file
identification information
target
sleep stage
smart home
Prior art date
Application number
PCT/CN2019/100413
Other languages
French (fr)
Chinese (zh)
Inventor
董明珠
谭建明
李绍斌
宋德超
杨苗
秦萍
连园园
Original Assignee
珠海格力电器股份有限公司
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 珠海格力电器股份有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2020078087A1 publication Critical patent/WO2020078087A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed by the present application are a method and device for controlling music play, a household appliance, a terminal and a medium, intended to provide a comfortable sleep environment for users and improve user experience. The method comprises: determining with an intelligent home appliance a first target sleep stage corresponding to the current temperature according to the current temperature and a pre-stored first corresponding relationship between the sleep stage and the temperature; determining identification information of a first target music file corresponding to the first target sleep stage according to a stored second corresponding relationship between the identification information of a first music file and the sleep stage, obtaining and playing the first target music file with the identification information. The embodiment of the present application is able to play the first target music file corresponding to the first target sleep stage, thus facilitating the provision of comfortable sleep environment for users and improving user experience.

Description

音乐播放控制方法、装置、家电设备、终端及介质Music playback control method, device, home appliance, terminal and medium
相关申请Related application
本申请要求2018年10月15日申请的,申请号为201811194813.3,名称为“一种音乐播放控制方法、装置、家电设备、终端及介质”的中国专利申请的优先权,在此将其全文引入作为参考。This application requires the priority of the Chinese patent application filed on October 15, 2018, with the application number 201811194813.3, titled "A music playback control method, device, home appliance, terminal, and medium", and the full text of which is hereby incorporated Reference.
技术领域Technical field
本申请涉及智能家电设备技术领域,尤其涉及一种音乐播放控制方法、装置、家电设备、终端及介质。The present application relates to the technical field of smart household electrical appliances, in particular to a music playback control method, device, household electrical appliances, terminals and media.
背景技术Background technique
在智能家居领域,具有能够进行音乐播放功能的智能家电设备,通过播放音乐能够达到一定的助眠效果。但是人的睡眠状态是随着时间改变的,比如刚开始是浅睡阶段、后来是深睡阶段等。当人的睡眠状态发生改变后,具有能够进行音乐播放功能的智能家电设备依旧播放之前的音乐,反而会影响人的睡眠,达不到助眠的效果。In the field of smart homes, smart home appliances with music playback capabilities can achieve certain sleep aids by playing music. However, people's sleep state changes with time, such as the light sleep stage at first, and the deep sleep stage later. When the person's sleep state changes, the smart home appliance with music playback function still plays the previous music, but it will affect the person's sleep and fail to achieve the effect of assisting sleep.
因此如何能够更好地为用户提供舒适的睡眠环境,提高用户体验,是一个亟待解决的问题。Therefore, how to better provide users with a comfortable sleeping environment and improve user experience is an urgent problem to be solved.
发明内容Summary of the invention
本申请实施例提供了一种音乐播放控制方法、装置、家电设备、终端及介质,用以为用户提供舒适的睡眠环境,提高用户体验。Embodiments of the present application provide a music playback control method, device, home appliance, terminal, and medium, to provide users with a comfortable sleeping environment and improve user experience.
本申请实施例提供了一种音乐播放控制方法,所述方法包括:An embodiment of the present application provides a music playback control method. The method includes:
智能家电设备根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;The smart home appliance device determines the first target sleep stage corresponding to the current temperature according to the current temperature, and the first correspondence relationship between the sleep stage and the temperature previously saved;
根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。Determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, obtain the first target music file of the identification information and Play.
在其中一个实施例中,所述方法还包括:In one of the embodiments, the method further includes:
判断当前的时间是否到达预设的目标闹钟的时间;Determine whether the current time reaches the preset target alarm time;
如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播放。If yes, determine the identification information of the second target music file corresponding to the target alarm clock according to the third correspondence between the stored identification information of the second music file and the alarm clock, obtain the second target music file of the identification information and play .
在其中一个实施例中,所述获取所述标识信息的目标音乐文件之前,所述方法还包括:In one of the embodiments, before acquiring the target music file of the identification information, the method further includes:
判断所述智能家电设备是否开启音乐播放功能;Judging whether the intelligent household electrical appliance is enabled with music playing function;
如果是,执行后续步骤。If yes, perform the next steps.
在其中一个实施例中,所述确定所述目标睡眠阶段对应的第一目标音乐文件的标识信息之前,所述方法还包括:In one of the embodiments, before determining the identification information of the first target music file corresponding to the target sleep stage, the method further includes:
根据保存的被设置了对应的音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;Judging whether the corresponding music file is set in the first target sleep stage according to the stored identifier of the sleep stage in which the corresponding music file is set;
如果是,进行后续步骤。If yes, proceed to the next step.
在其中一个实施例中,所述确定目标音乐文件的标识信息之前,所述方法还包括:In one of the embodiments, before determining the identification information of the target music file, the method further includes:
接收移动终端发送的第一音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的;和,Receiving a second correspondence between the identification information of the first music file sent by the mobile terminal and the sleep stage, wherein the second correspondence is set by the user through the mobile terminal; and,
接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第三对应关系为用户通过所述移动终端设置的。Receiving a third correspondence between the identification information of the second music file and the alarm clock sent by the mobile terminal, where the third correspondence is set by the user through the mobile terminal.
在其中一个实施例中,所述音乐文件的标识信息为音乐文件的链接或名称,所述方法还包括:In one of the embodiments, the identification information of the music file is a link or name of the music file, and the method further includes:
所述智能家电设备根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。The smart home appliance device downloads and saves the music file corresponding to the link or name according to the link or name of the music file.
本申请实施例提供了一种音乐播放控制方法,所述方法包括:An embodiment of the present application provides a music playback control method. The method includes:
接收用户针对智能家电设备对睡眠阶段的音乐文件进行设置的请求;Receive the user's request to set the music file of the sleep stage for the smart home appliance;
展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的第一音乐文件的标识信息;Display the music file setting interface and receive the identification information of the first music file input by the user for each sleep stage;
将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。Sending the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
在其中一个实施例中,所述方法还包括:In one of the embodiments, the method further includes:
接收用户针对智能家电设备对闹钟音乐文件进行设置的请求;Receive the user's request to set the alarm clock music file for smart home appliances;
展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息;Display the music file setting interface and obtain the identification information of the second music file set by the user for each alarm clock;
将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。Sending the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance, so that the smart home appliance plays the corresponding second music file on each alarm clock.
在其中一个实施例中,所述接收用户针对每个睡眠阶段输入的第一音乐文件的标识信息包括:In one of the embodiments, the receiving identification information of the first music file input by the user for each sleep stage includes:
接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;Receiving an operation instruction of a user selecting a second target sleep stage, and displaying a music file library corresponding to the second target sleep stage;
接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。Receiving identification information of the second target music file displayed in the music file library selected by the user, and establishing a correspondence between the second target music file of the identification information and the second target sleep stage.
在其中一个实施例中,如果所述标识信息为音乐文件的名称,所述方法还包括:In one of the embodiments, if the identification information is the name of a music file, the method further includes:
所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;The mobile terminal obtains a link to the music file of the name according to the name of the music file;
所述将音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备包括:The sending the second correspondence between the identification information of the music file and the sleep stage to the smart home appliance includes:
将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。Sending the second correspondence between the link of the music file and the sleep stage to the smart home appliance.
本申请实施例提供了一种音乐播放控制装置,所述装置包括:An embodiment of the present application provides a music playback control device. The device includes:
主控模块,用于根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;The main control module is used to determine the first target sleep stage corresponding to the current temperature according to the current temperature, and the pre-saved first correspondence between the sleep stage and the temperature;
播放模块,用于根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。The playing module is configured to determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, and obtain the third A target music file and play it.
所述播放模块,还用于判断当前的时间是否到达预设的目标闹钟的时间;如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播放。The playing module is also used to determine whether the current time reaches the preset target alarm time; if it is, according to the third correspondence between the saved identification information of the second music file and the alarm clock, determine the corresponding The identification information of the second target music file, to obtain and play the second target music file of the identification information.
所述装置还包括:第一判断模块,用于判断所述智能家电设备是否开启音乐播放功能;如果是,触发所述播放模块。The device further includes: a first judgment module for judging whether the smart household electrical appliance is enabled with a music playing function; if so, triggering the playing module.
所述装置还包括:第二判断模块,用于根据保存的被设置了对应音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;如果是,触发所述播放模块。The device further includes: a second judgment module for judging whether the corresponding music file is set for the first target sleep stage according to the stored sleep stage identifier set for the corresponding music file; Describe the playback module.
所述装置还包括:第一接收模块,用于接收移动终端发送的第一音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的;和,接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第三对应关系为用户通过所述移动终端设置的。The device further includes: a first receiving module, configured to receive a second correspondence between the identification information of the first music file sent by the mobile terminal and the sleep stage, wherein the second correspondence is set by the user through the mobile terminal ; And, receiving a third correspondence between the identification information of the second music file sent by the mobile terminal and the alarm clock, wherein the third correspondence is set by the user through the mobile terminal.
下载存储模块,用于如果所述音乐文件的标识信息为音乐文件的链接或名称,根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。The download storage module is used to download and save the music file corresponding to the link or name according to the link or name of the music file if the identification information of the music file is the link or name of the music file.
本申请实施例提供了一种音乐播放控制装置,所述装置包括:An embodiment of the present application provides a music playback control device. The device includes:
第二接收模块,用于接收用户对智能家电设备对睡眠阶段的音乐文件进行设置的请求;The second receiving module is used to receive the user's request to set the smart home appliance to the music file in the sleep stage;
展示模块,用于展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的第一音乐文件的标识信息;A display module for displaying a music file setting interface and receiving identification information of the first music file input by the user for each sleep stage;
发送模块,用于将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。The sending module is configured to send the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
在其中一个实施例中,所述第二接收模块,还用于接收用户针对智能家电设备对闹钟音乐文件进行设置的请求;所述展示模块,还用于展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息;In one of the embodiments, the second receiving module is also used to receive a user's request to set an alarm clock music file for a smart home appliance; the display module is also used to display a music file setting interface and obtain the user The identification information of the second music file set by each alarm clock;
所述发送模块,还用于将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。The sending module is further configured to send the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance, so that the smart home appliance plays the corresponding second music file on each alarm clock.
在其中一个实施例中,所述第二接收模块,具体用于接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。In one of the embodiments, the second receiving module is specifically configured to receive an operation instruction for the user to select the second target sleep stage, display the music file library corresponding to the second target sleep stage; receive the music file library selected by the user The identification information of the second target music file shown in the figure establishes a correspondence between the second target music file of the identification information and the second target sleep stage.
在其中一个实施例中,所述装置还包括:In one of the embodiments, the device further includes:
获取模块,用于所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;An obtaining module, for the mobile terminal to obtain a link to a music file of the name according to the name of the music file;
所述发送模块,具体用于将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。The sending module is specifically configured to send the second correspondence between the link of the music file and the sleep stage to the smart home appliance.
本申请实施例提供了一种智能家电设备,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An embodiment of the present application provides an intelligent household electrical appliance, including: a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
所述存储器中存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行上述任一项所述方法的步骤。A computer program is stored in the memory, and when the program is executed by the processor, the processor is caused to perform the steps of any of the above methods.
本申请实施例提供了一种计算机可读存储介质,其存储有可由智能家电设备执行的计算机程序,当所述程序在所述智能家电设备上运行时,使得所述智能家电设备执行上述任一项所述方法的步骤。An embodiment of the present application provides a computer-readable storage medium that stores a computer program that can be executed by a smart home appliance, and when the program runs on the smart home appliance, causes the smart home appliance to execute any of the above Item of the method.
本申请实施例提供了一种移动终端,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An embodiment of the present application provides a mobile terminal, including: a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
所述存储器中存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行上述任一项所述方法的步骤。A computer program is stored in the memory, and when the program is executed by the processor, the processor is caused to perform the steps of any of the above methods.
本申请实施例提供了一种计算机可读存储介质,其存储有可由智能家电设备执行的计算机程序,当所述程序在所述智能家电设备上运行时,使得所述智能家电设备执行上述任一项所述方法的步骤。An embodiment of the present application provides a computer-readable storage medium that stores a computer program that can be executed by a smart home appliance, and when the program runs on the smart home appliance, causes the smart home appliance to execute any of the above Item of the method.
由于本申请实施例提供的智能家电设备可以根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;从而播放该第一目标睡眠阶段播放对应的第一目标音乐文件,可以更好的为用户提供舒服的睡眠环境,提高了用户体验。Because the smart home appliance provided by the embodiment of the present application can determine the first target sleep stage corresponding to the current temperature according to the current temperature and the pre-saved first correspondence between the sleep stage and the temperature; thereby playing the first target sleep stage playback correspondence The first target music file can provide users with a comfortable sleeping environment and improve the user experience.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1为本申请实施例1提供的一种音乐播放控制过程的示意图;1 is a schematic diagram of a music playback control process provided by Embodiment 1 of the present application;
图2为本申请实施例6提供的一种音乐播放控制过程的示意图;2 is a schematic diagram of a music playback control process provided by Embodiment 6 of the present application;
图3为本申请实施例7提供的一种音乐播放控制过程的示意图;3 is a schematic diagram of a music playback control process provided in Embodiment 7 of the present application;
图4为本申请实施例9提供的一种音乐播放控制装置的结构示意图;4 is a schematic structural diagram of a music playback control device according to Embodiment 9 of the present application;
图5为本申请实施例10提供的一种音乐播放控制装置的结构示意图;5 is a schematic structural diagram of a music playback control device according to Embodiment 10 of the present application;
图6为本申请实施例11提供的一种智能家电设备的结构示意图;6 is a schematic structural diagram of a smart home appliance device provided in Example 11 of the present application;
图7为本申请实施例13提供了一种移动终端的结构示意图。7 is a schematic structural diagram of a mobile terminal according to Embodiment 13 of the present application.
具体实施方式detailed description
下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The present application will be described in further detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
实施例1:Example 1:
图1为本申请实施例提供的一种音乐播放控制过程的示意图,该过程包括以下步骤:FIG. 1 is a schematic diagram of a music playback control process provided by an embodiment of the present application. The process includes the following steps:
S101:智能家电设备根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段。S101: The smart home appliance device determines the first target sleep stage corresponding to the current temperature according to the current temperature and the first correspondence between the sleep stage and the temperature that have been saved in advance.
本申请实施例提供的音乐播放控制过程适用的智能家电设备包括:空调、电视、冰箱等,较佳地,智能家电设备为空调。The smart household electrical appliances applicable to the music playback control process provided by the embodiments of the present application include: air conditioners, televisions, refrigerators, etc. Preferably, the smart household electrical appliances are air conditioners.
为了给用户提供更加舒适地睡眠环境,可以为智能家电设备设置不同的睡眠阶段,其中在进行睡眠阶段设置时,是基于睡眠曲线的,不同类型和型号的智能家电设备对应的睡眠曲线可能会不同,而睡眠阶段一般情况下可以包括:入睡阶段、浅睡阶段、熟睡阶段、深睡阶段。并且该睡眠曲线是与温度有关的,不同的睡眠阶段对应不同的温度范围,并且每个睡眠阶段对应的温度不重叠。In order to provide users with a more comfortable sleeping environment, different sleep stages can be set for smart home appliances, where the sleep phase is set based on the sleep curve, and the sleep curves corresponding to different types and models of smart home appliances may be different In general, the sleep stage can include: fall asleep stage, light sleep stage, deep sleep stage, deep sleep stage. And the sleep curve is related to temperature, different sleep stages correspond to different temperature ranges, and the temperatures corresponding to each sleep stage do not overlap.
智能家电设备可以周期性地确定当前温度,该周期可以是预设的,也可以根据用户的需求进行调整,例如可以是半个小时,一个小时等,当前温度为智能家电设备所处环境的当前温度。The smart home appliance can periodically determine the current temperature, and the period can be preset or adjusted according to user needs, for example, it can be half an hour, one hour, etc. The current temperature is the current temperature of the environment in which the smart home appliance is located temperature.
因为每个睡眠阶段对应有不同的温度范围,因此智能家电设备可以根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段。Because each sleep stage corresponds to a different temperature range, the smart home appliance can determine the first target sleep stage corresponding to the current temperature according to the current temperature, and the first correspondence between the sleep stage and the temperature that are saved in advance.
例如:智能家电设备确定自身当前温度的周期性为半个小时,智能家电设备进行确定,确定当前温度可以为22度,则确定当前温度对应的目标睡眠阶段为入睡阶段;半小时之后,智能家电设备再次确定当前温度为20度,则确定此时温度对应的睡眠阶段为浅睡阶段。For example, if the smart home appliance determines that its current temperature is half an hour, the smart home appliance determines that the current temperature can be 22 degrees, and then determines that the target sleep stage corresponding to the current temperature is the sleep stage; after half an hour, the smart home appliance The device again determines that the current temperature is 20 degrees, and then determines that the sleep stage corresponding to the temperature at this time is the light sleep stage.
S102:根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。S102: Determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, and obtain the first target music of the identification information File and play.
为了能够在不同的睡眠阶段播放不同的音乐文件,本申请实施例中智能家电设备中保存有第一音乐文件的标识信息与睡眠阶段的第二对应关系,该第二对应关系可以是智能家电设备出厂前配置到智能家电设备中的,也可以是智能家电设备接收的其他智能设备发送的,例如可以是服务器将保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,发送给该智能家电设备的,或者通过移动终端设置该第二对应关系并发送给智能家电设备,智能家电设备接收到其他智能设备发送的第一音乐文件的标识信息与睡眠阶段的第二对应关系并保存。In order to be able to play different music files in different sleep stages, in the embodiment of the present application, the second correspondence between the identification information of the first music file and the sleep stage is stored in the smart home appliance, and the second correspondence may be the smart home appliance It is configured in the smart home appliance before delivery, and may also be sent by other smart devices received by the smart home appliance. For example, the server may send the second correspondence between the stored identification information of the first music file and the sleep stage to the For a smart home appliance, or the second correspondence relationship is set by a mobile terminal and sent to the smart home appliance device, the smart home appliance device receives and stores the second correspondence relationship between the identification information of the first music file sent by other smart devices and the sleep stage.
不同睡眠阶段对应的音乐文件可以不同,也可以相同,较佳地,不同睡眠阶段对应的音乐文件不同,具体的,可以是不同的睡眠阶段对应不同类型的音乐文件,例如入睡阶段播放轻音乐有助于睡眠,因此入睡阶段对应的音乐文件可以是轻音乐,在熟睡阶段对应的音乐文件可以是白噪音,白噪音可以是雨声、风声等,使用户的睡眠环境更加舒适。The music files corresponding to different sleep stages may be different or the same. Preferably, the music files corresponding to different sleep stages are different. Specifically, different sleep stages may correspond to different types of music files. For example, playing light music during the sleep stage helps For sleep, the music file corresponding to the sleep stage may be light music, and the music file corresponding to the deep sleep stage may be white noise, and the white noise may be rain sound, wind sound, etc., to make the user's sleeping environment more comfortable.
智能家电设备保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系中,音乐文件的标识信息可以是音乐文件的名称,或者音乐文件的链接等唯一标识该音乐文件的信息。并且为了实现智能家电设备及时播放目标睡眠阶段对应的该标识信息的第一目标音乐 文件,在智能家电设备本地除了保存该音乐文件的标识信息,还保存有该标识信息的音乐文件,因此当智能家电设备确定了第一目标音乐文件的标识信息后,可以根据本地保存的音乐文件,查找获取该标识信息的第一目标音乐文件并播放。In the second correspondence between the identification information of the first music file saved in the smart home appliance and the sleep stage, the identification information of the music file may be the name of the music file, or information that uniquely identifies the music file, such as a link to the music file. And in order to realize that the smart home appliance plays the first target music file of the identification information corresponding to the target sleep stage in time, in addition to storing the identification information of the music file, the music file with the identification information is also stored locally in the smart home appliance, so when the smart After determining the identification information of the first target music file, the home appliance device may search for and play the first target music file that obtains the identification information according to the locally saved music file.
由于本申请实施例提供的智能家电设备可以根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的目标睡眠阶段;从而播放该目标睡眠阶段播放对应的目标音乐文件,可以更好的为用户提供舒服的睡眠环境,提高了用户体验。Because the smart home appliance provided by the embodiment of the present application can determine the target sleep stage corresponding to the current temperature according to the current temperature and the first correspondence between the sleep stage and the temperature previously saved; thereby playing the target sleep stage and playing the corresponding target music file , Can better provide users with a comfortable sleeping environment and improve the user experience.
实施例2:Example 2:
为了能够更好的满足用户的播放需求,在上述实施例的基础上,本申请实施例中,所述方法还包括:In order to better meet the user's playback requirements, based on the foregoing embodiments, in the embodiments of the present application, the method further includes:
判断当前的时间是否到达预设的目标闹钟的时间;Determine whether the current time reaches the preset target alarm time;
如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播放。If yes, determine the identification information of the second target music file corresponding to the target alarm clock according to the third correspondence between the stored identification information of the second music file and the alarm clock, obtain the second target music file of the identification information and play .
智能家电设备为了能够在不同闹钟的时间播放对应的音乐文件,本申请实施例中保存了第二音乐文件的标识信息与闹钟的第三对应关系,该闹钟可以是某些时间点,例如20:20、21:00等。In order to enable the smart home appliance to play the corresponding music file at different alarm clock times, the embodiment of the present application stores the third correspondence between the identification information of the second music file and the alarm clock, and the alarm clock may be a certain time point, for example, 20: 20, 21:00, etc.
为了能够满足用户的播放需求,该第三对应关系可以是智能家电设备出厂前配置到该智能家电设备中的,或者通过移动终端设置并发送给智能家电设备的,智能家电设备接收到其他智能设备发送的第二音乐文件的标识信息与闹钟的第三对应关系并保存。In order to meet the user's playback requirements, the third correspondence may be that the smart home appliance is configured into the smart home appliance before leaving the factory, or is set and sent to the smart home appliance through the mobile terminal, and the smart home appliance receives the other smart devices The third correspondence between the sent identification information of the second music file and the alarm clock is saved.
为了能够在预设的目标闹钟的时间播放对应的目标音乐文件,可以判断当前的时间是否到达预设的目标闹钟的时间,如果当前的时间到达了预设的目标闹钟的时间,智能家电设备保存的第二音乐文件的标识信息与闹钟的第三对应关系中,音乐文件的标识信息可以是音乐文件的名称,或者音乐文件的链接等唯一标识该音乐文件的信息。并且为了实现智能家电设备及时播放目标闹钟对应的该标识信息的第二目标音乐文件,在智能家电设备本地除了保存该音乐文件的标识信息,还保存有该标识信息的音乐文件,因此当智能家电设备确定了第二目标音乐文件的标识信息后,可以根据本地保存的音乐文件,查找获取该标识信息的第二目标音乐文件并播放。In order to be able to play the corresponding target music file at the time of the preset target alarm clock, it can be determined whether the current time reaches the preset target alarm clock time, if the current time reaches the preset target alarm clock time, the smart home appliance device saves In the third correspondence between the identification information of the second music file and the alarm clock, the identification information of the music file may be the name of the music file, or information that uniquely identifies the music file, such as a link to the music file. And in order to realize that the smart home appliance plays the second target music file of the identification information corresponding to the target alarm clock in time, in addition to storing the identification information of the music file, the smart home appliance also saves the music file with the identification information, so when the smart home appliance After determining the identification information of the second target music file, the device may search for and play the second target music file that obtains the identification information according to the locally stored music file.
不同的闹钟对应的音乐文件可以不同,也可以相同,较佳的,不同的闹钟对应的音乐文件不同,例如,预先设置有叫醒闹钟,该叫醒闹钟的时间为7点,并保存有该闹钟对应的音乐文件,该音乐文件例如可以是比较欢快的音乐的音乐文件,如果当前的时间为7点,则到达预设的目标闹钟的时间,因此播放该目标闹钟对应的音乐文件。The music files corresponding to different alarm clocks may be different or the same. Preferably, the music files corresponding to different alarm clocks are different. For example, a wake-up alarm clock is preset, and the time for the wake-up alarm clock is 7 o'clock, and the A music file corresponding to an alarm clock, which may be, for example, a music file of relatively cheerful music. If the current time is 7 o'clock, the preset time of the target alarm clock is reached, so the music file corresponding to the target alarm clock is played.
另外,如果根据当前温度,确定了当前温度对应的第一目标睡眠阶段,获取到第一目标睡眠阶段对应的第一目标音乐文件,并且根据当前时间,确定了到达了预设的目标闹钟的时间后,获取到目标闹钟对应的第二目标音乐文件;因为闹钟的主要功能为提醒,在本申请实施例中可以优先播放目标闹钟对应的第二目标音乐文件,或者只播放该目标闹钟对应的第二目标音乐文件,也可以同时播放该第一目标音乐文件和该第二音乐目标文件。In addition, if the first target sleep stage corresponding to the current temperature is determined according to the current temperature, the first target music file corresponding to the first target sleep stage is obtained, and according to the current time, the time to reach the preset target alarm clock is determined After that, the second target music file corresponding to the target alarm clock is obtained; because the main function of the alarm clock is to remind, in this embodiment of the present application, the second target music file corresponding to the target alarm clock can be played preferentially, or only the second target music file corresponding to the target alarm clock can be played. The second target music file may also play the first target music file and the second music target file at the same time.
由于本申请实施例提供的根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,从而播放目标闹钟时间对应的第二目标音乐文件,从而满足了用户在不同闹钟的时间播放对应的音乐文件的播放需求。Due to the third correspondence between the stored identification information of the second music file and the alarm clock provided in the embodiment of the present application, the second target music file corresponding to the target alarm clock time is played, thereby satisfying the user's need to play the corresponding Requirements for playing music files.
实施例3:Example 3:
为了能够更好地满足用户的播放需求,在上述实施例的基础上,本申请实施例中,所述获取所述标识信息的目标音乐文件之前,所述方法还包括:In order to better meet the user's playback requirements, on the basis of the foregoing embodiments, in the embodiments of the present application, before the acquiring the target music file of the identification information, the method further includes:
判断所述智能家电设备是否开启音乐播放功能;Judging whether the intelligent household electrical appliance is enabled with music playing function;
如果是,执行后续步骤。If yes, perform the next steps.
本申请实施例的控制方法基于有音乐播放功能的智能家电设备,只要智能家电设备有音乐播放功能,当该智能家电设备确定了目标睡眠阶段或者目标闹钟,并且获取了该目标睡眠阶段或者目标闹钟对应的目标音乐文件即可播放该目标音乐文件。The control method of the embodiment of the present application is based on a smart home appliance with a music playback function, as long as the smart home appliance has a music playback function, when the smart home appliance determines a target sleep stage or target alarm clock, and acquires the target sleep stage or target alarm clock The corresponding target music file can play the target music file.
但是用户可能在某些情况下不想进行音乐播放,因此为了进一步提高用户体验,在智能家电设备上可以设置音乐播放功能开启和关闭的按钮,智能家电设备可以根据该按钮的状态识别该智能家电设备是否开启了音乐播放功能。智能家电设备在播放该音乐文件前,判断该智能家电设备是否开启了音乐播放功能,如果是,则播放该音乐文件,如果否,则不播放该音乐文件。However, the user may not want to play music in some cases, so in order to further improve the user experience, buttons for turning on and off the music playback function can be set on the smart home appliance, and the smart home appliance can recognize the smart home appliance according to the state of the button Whether the music playback function is turned on. Before playing the music file, the smart home appliance device determines whether the smart home appliance device has turned on the music playback function. If it is, the music file is played, and if not, the music file is not played.
具体的,智能家电设备可以在获取了该音乐文件后,播放该音乐文件前,判断该智能家电设备是否开启了音乐播放功能,但为了进一步的节省智能家电设备的资源,则智能家电设备可以在确定了目标睡眠阶段,或者确定了目标闹钟,即判断该智能家电设备是否开启了音乐播放功能,如果是,根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定该目标睡眠阶段对应的第一目标音乐文件的标识信息,根据本地保存的音乐文件的信息,查找该第一音乐文件的标识信息的第一目标音乐文件,播放该第一目标音乐文件;或根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定该目标闹钟对应的第二目标音乐文件的标识信息;查找该第二音乐文件的标识信息的第二目标音乐文件,播放该第二目标音乐文件,如果智能家电设备未开启音乐播放功能,则不进行后续处理,或者说该过程结束。Specifically, after acquiring the music file, the smart home appliance can determine whether the smart home appliance has the music playback function enabled before playing the music file, but in order to further save resources of the smart home appliance, the smart home appliance can The target sleep stage is determined, or the target alarm clock is determined, that is, whether the music playback function is turned on for the smart home appliance is determined, and if so, the target is determined according to the second correspondence between the stored identification information of the first music file and the sleep stage The identification information of the first target music file corresponding to the sleep stage, according to the information of the locally stored music file, find the first target music file of the identification information of the first music file, and play the first target music file; or according to the saved A third correspondence between the identification information of the second music file and the alarm clock, determining the identification information of the second target music file corresponding to the target alarm clock; finding the second target music file of the identification information of the second music file, and playing the second Target music file, if the smart home appliance is not turned on Music playback, subsequent processing is not performed, or the end of the process.
由于本申请实施例中可以灵活的设置音乐播放功能的开启和关闭,因此进一步提高了用户体验。Since the embodiments of the present application can flexibly set the opening and closing of the music playback function, the user experience is further improved.
实施例4:Example 4:
为了进一步满足用户的需求,可以针对睡眠阶段设置对应的音乐文件,也可以不设置,在上述各实施例的基础上,在本申请实施例中所述确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息之前,所述方法还包括:In order to further meet the user's needs, the corresponding music file may be set for the sleep stage, or may not be set. On the basis of the foregoing embodiments, in the embodiment of the present application, it is determined that the first target sleep stage corresponds to the third Before the identification information of a target music file, the method further includes:
根据保存的被设置了对应音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;Judging whether the corresponding music file is set in the first target sleep stage according to the stored identifier of the sleep stage in which the corresponding music file is set;
如果是,进行后续步骤。If yes, proceed to the next step.
因为不同的睡眠阶段表明了用户的不同睡眠状态,对于表明睡眠状态进入深睡阶段的用户,此时用户已经不需要欣赏音乐了,也就是在进入深睡阶段后,把所有音乐关闭,因此该睡眠阶段对应的音乐文件可以为空,即不设置该睡眠阶段对应的音乐文件。Because different sleep stages indicate different sleep states of the user, for users who indicate that the sleep state has entered the deep sleep stage, the user does not need to enjoy music at this time, that is, after entering the deep sleep stage, all music is turned off, so the The music file corresponding to the sleep stage may be empty, that is, the music file corresponding to the sleep stage is not set.
因为有的睡眠阶段设置了对应的音乐文件,有的睡眠阶段没有设置,为了方便后续智能家电设备进行操作,可以对被设置了对应的音乐文件的睡眠阶段进行标识,当确定了当前温度对应的第一目标睡眠阶段后,根据该标识确定第一目标睡眠阶段是否被设置了对应的音乐文件,如果无,则不进行后续操作,如果有,则根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取该标识信息的第一目标音乐文件并播放。Because some sleep stages are set with corresponding music files, and some sleep stages are not set, in order to facilitate the subsequent operation of smart home appliances, you can identify the sleep stage where the corresponding music file is set. When the current temperature is determined to correspond to After the first target sleep stage, determine whether the corresponding music file is set in the first target sleep stage according to the identifier, if not, no subsequent operation is performed, and if so, according to the saved identification information of the first music file and sleep In the second corresponding relationship of the stage, the identification information of the first target music file corresponding to the first target sleep stage is determined, and the first target music file of the identification information is acquired and played.
由于在本申请实施例中保存了被设置了对应音乐文件的睡眠阶段的标识,因此可以根据该标识,确定是否被设置了对应的音乐文件,只有被设置了对应的音乐文件,才进行后续操作,减少了智能家电设备进行音乐文件查找的工作量,提高了智能家电设备的工作效率。Since the sleep stage identifier for which the corresponding music file is set is saved in the embodiment of the present application, it can be determined according to the identifier whether the corresponding music file is set, and only the corresponding music file is set for subsequent operations , Reduce the workload of smart home appliances to find music files, improve the efficiency of smart home appliances.
实施例5:Example 5:
智能家电设备为了能够针对不同的睡眠阶段播放不同的音乐文件,在上述各实施例的基础上,本申请实施例中,所述确定目标睡眠阶段对应的目标音乐文件的标识信息之前,所述方法还包括:In order for the smart home appliance to be able to play different music files for different sleep stages, based on the above embodiments, in the embodiments of the present application, before determining the identification information of the target music file corresponding to the target sleep stage, the method Also includes:
接收移动终端发送的第一音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的。Receiving a second correspondence between the identification information of the first music file and the sleep stage sent by the mobile terminal, where the second correspondence is set by the user through the mobile terminal.
如果设置了闹钟与第二音乐文件的标识信息的第三对应关系,本申请实施例中,所述确定目标音乐文件的标识信息之前,所述方法还包括:If the third correspondence between the alarm clock and the identification information of the second music file is set, in the embodiment of the present application, before the identification information of the target music file is determined, the method further includes:
接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第 三对应关系为用户通过所述移动终端设置的。Receiving a third correspondence between the identification information of the second music file and the alarm clock sent by the mobile terminal, wherein the third correspondence is set by the user through the mobile terminal.
为了进一步提高用户体验,用户可以通过移动终端进行该第二对应关系和该第三对应关系的设置,具体的在进行设置时,用户可以通过智能家电设备对应的app进行设置,在对应的设置界面针对不同的睡眠阶段输入对应的音乐文件的标识信息,从而使移动终端保存该对应关系。In order to further improve the user experience, the user can set the second correspondence relationship and the third correspondence relationship through the mobile terminal. Specifically, during the setting, the user can set through the app corresponding to the smart home appliance device, on the corresponding setting interface The identification information of the corresponding music file is input for different sleep stages, so that the mobile terminal saves the corresponding relationship.
另外,还可以针对不同的闹钟,设置第二音乐文件的标识信息与闹钟的第三对应关系,闹钟包括叫醒闹钟,当然也可以包括其他闹钟,不同的闹钟对应的音乐文件不同。In addition, a third correspondence between the identification information of the second music file and the alarm clock can also be set for different alarm clocks. The alarm clock includes a wake-up alarm clock, and of course it can also include other alarm clocks. Different alarm clocks have different music files.
如果针对睡眠阶段输入的音乐文件的标识信息为音乐文件的名称,移动终端可以将音乐文件的名称直接发送给智能家电设备,或者根据音乐文件的名称,查找音乐文件对应的链接,将该链接发送给智能家电设备。If the identification information of the music file input for the sleep stage is the name of the music file, the mobile terminal can directly send the name of the music file to the smart home appliance, or according to the name of the music file, find the link corresponding to the music file and send the link Give smart home appliances.
随着技术的发展,智能家电设备的功能越来越齐全,对于设置了无线模块的智能家电设备,移动终端还可以直接将睡眠阶段与音乐文件的标识信息发送给智能家电设备,如果音乐文件的标识信息为音乐文件的链接或名称,所述方法还包括:With the development of technology, the functions of smart home appliances are becoming more and more complete. For smart home appliances equipped with wireless modules, the mobile terminal can also directly send the identification information of the sleep stage and music files to the smart home appliances. The identification information is the link or name of the music file, and the method further includes:
所述智能家电设备根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。The smart home appliance device downloads and saves the music file corresponding to the link or name according to the link or name of the music file.
如果智能家电设备接收的是移动终端发送的音乐文件的链接,根据该链接直接下载对应链接的音乐文件;如果智能家电设备接收的是移动终端发送的音乐文件的名称,根据音乐文件的名称,查找该音乐文件的链接,从而可以下载该音乐文件。If the smart home appliance receives the link of the music file sent by the mobile terminal, download the music file corresponding to the link directly according to the link; if the smart home appliance receives the name of the music file sent by the mobile terminal, search according to the name of the music file A link to the music file so that the music file can be downloaded.
当音乐文件的标识信息为音乐文件的链接时,例如:“www.sq.tonghua.mp3”,智能家电设备根据该链接,下载对应链接的音乐文件并保存;当音乐文件的标识信息为音乐文件的名称时,例如:“童话”,智能家电设备查找到该名称对应的链接为“www.sq.tonghua.mp3”,根据该链接,下载对应名称的音乐文件并保存。When the identification information of the music file is a link to the music file, for example: "www.sq.tonghua.mp3", the smart home appliance device downloads and saves the music file corresponding to the link according to the link; when the identification information of the music file is a music file When the name is, for example: "fairy tale", the smart home appliance finds the link corresponding to the name as "www.sq.tonghua.mp3", and downloads and saves the music file with the corresponding name according to the link.
由于本申请实施例提供的智能家电设备接收移动终端发送的第二对应关系与第三对应关系,以及音乐文件的标识信息,根据该标识信息下载并保存对应的音乐文件,从而提高了用户体验。Since the smart home appliance provided in the embodiment of the present application receives the second correspondence relationship and the third correspondence relationship sent by the mobile terminal, and the identification information of the music file, the corresponding music file is downloaded and saved according to the identification information, thereby improving the user experience.
实施例6:Example 6:
图2为本申请实施例提供的一种音乐播放控制过程的示意图,该过程包括以下步骤:FIG. 2 is a schematic diagram of a music playback control process provided by an embodiment of the present application. The process includes the following steps:
S201:接收用户针对智能家电设备对睡眠阶段的音乐文件进行设置的请求。S201: Receive a user request for setting a music file in a sleep stage for a smart home appliance.
为了能够增加用户体验,对不同睡眠阶段的音乐文件进行设置的请求可以是通过移动终端设置并发送给智能家电设备,用户可以通过移动终端对睡眠阶段的音乐文件进行设置,具体的,接收用户针对智能家电设备对睡眠阶段的音乐文件进行设置的请求,可以是 在智能家电设备对应的app上有相应的设置按钮,或者是在智能家电设备对应的app上的音乐文件的设置界面上进行相应的操作。In order to increase the user experience, the request to set the music files in different sleep stages can be set through the mobile terminal and sent to the smart home appliance. The user can set the music files in the sleep stage through the mobile terminal. Specifically, the user The request for the smart home appliance to set the music file in the sleep stage may be a corresponding setting button on the app corresponding to the smart home appliance, or a corresponding setting interface on the music file on the app corresponding to the smart home appliance operating.
S202:展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的第一音乐文件的标识信息。S202: Display a music file setting interface, and receive the identification information of the first music file input by the user for each sleep stage.
本申请实施例中,接收到用户针对智能家电设备对睡眠阶段的音乐文件进行设置的请求后,移动终端可以展示音乐文件设置界面,用户可以在该音乐文件设置界面对音乐文件进行设置。该音乐文件设置界面包含各个睡眠阶段,当用户选择了某一睡眠阶段之后,可以为该睡眠阶段设置对应的音乐文件,具体的,设置音乐文件的方式可以是用户输入音乐文件的标识信息,或者是根据音乐文件设置界面显示的不同类型的音乐文件的标识信息,直接为该睡眠阶段选择某一标识信息的音乐文件。In the embodiment of the present application, after receiving the user's request to set the music file in the sleep stage for the smart home appliance, the mobile terminal may display a music file setting interface, and the user may set the music file on the music file setting interface. The music file setting interface contains various sleep stages. After the user selects a certain sleep stage, the corresponding music file can be set for the sleep stage. Specifically, the way to set the music file can be the user input the identification information of the music file, or According to the identification information of different types of music files displayed on the music file setting interface, a music file with certain identification information is directly selected for the sleep stage.
例如:用户可以针对“深睡阶段”输入的音乐文件的标识信息为音乐文件的名称:“十年”;也可以是当用户选择了“深睡阶段”后,该音乐文件的设置界面显示不同类型的音乐文件对应的标识信息,如:有“伤感型”、“欢快型”等,每种类型对应多个音乐文件的标识信息,用户可以选择“伤感型”中某一音乐文件的标识信息“some”等。For example: the user can input the identification information of the music file for the "deep sleep stage" as the name of the music file: "ten years"; or when the user selects the "deep sleep stage", the setting interface of the music file is displayed differently The identification information corresponding to the type of music file, such as: "sad type", "happy type", etc., each type corresponds to the identification information of multiple music files, the user can select the identification information of a certain music file in "sad type" "Some" etc.
S203:将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。S203: Send the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
为了使智能家电设备能够在不同的睡眠阶段播放对应的音乐文件,用户通过移动终端设置第一音乐文件的标识信息与睡眠阶段的第二对应关系并将该第二对应关系给该智能家电设备,使该智能家电设备在每个睡眠阶段播放对应的音乐文件。具体的智能家电设备中设置有通信模块,例如可以是wifi模块,通过通信模块可以接收移动终端发送的对应关系。In order to enable the smart home appliance to play the corresponding music file in different sleep stages, the user sets the second correspondence between the identification information of the first music file and the sleep stage through the mobile terminal and gives the second correspondence to the smart home appliance, Make the smart home appliance play the corresponding music file in each sleep stage. The specific smart home appliance device is provided with a communication module, for example, a wifi module, and the correspondence relationship sent by the mobile terminal can be received through the communication module.
由于本申请实施例提供的移动终端接收用户针对智能家电对音乐文件进行设置的请求,展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的音乐文件的标识信息,将音乐文件的标识信息与睡眠阶段的第二对应关系发送给该智能家电设备,从而该智能家电设备可以在每个睡眠阶段播放对应的音乐文件。Since the mobile terminal provided by the embodiment of the present application receives a user's request for setting a music file for a smart home appliance, displays a music file setting interface, and receives the identification information of the music file input by the user for each sleep stage, and converts the identification information of the music file The second correspondence relationship with the sleep stage is sent to the smart home appliance device, so that the smart home appliance device can play the corresponding music file in each sleep stage.
实施例7:Example 7:
图3为本申请实施例提供的一种音乐播放控制过程的示意图,该过程包括以下步骤:FIG. 3 is a schematic diagram of a music playback control process provided by an embodiment of the present application. The process includes the following steps:
S301:接收用户针对智能家电设备对闹钟音乐文件进行设置的请求。S301: Receive a user request to set an alarm clock music file for a smart home appliance.
为了提高用户体验,用户可以通过移动终端进行对闹钟和音乐文件进行设置,具体的,接收用户针对智能家电设备对闹钟音乐文件进行设置的请求,可以是在智能家电设备对应的app上有相应的设置按钮,或者是在智能家电设备对应的app上的音乐文件的设置界面 上进行相应的操作。In order to improve the user experience, the user can set the alarm clock and music file through the mobile terminal. Specifically, receiving the user's request to set the alarm clock music file for the smart home appliance can be on the app corresponding to the smart home appliance. Set the button, or perform the corresponding operation on the setting interface of the music file on the app corresponding to the smart home appliance.
S302:展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息。S302: Display the music file setting interface, and obtain the identification information of the second music file set by the user for each alarm clock.
为了提高用户体验,接收用户针对智能家电设备对闹钟音乐文件进行设置的请求时,移动终端可以展示音乐文件设置界面,用户可以在该音乐文件设置界面对音乐文件进行设置。该音乐文件设置界面包含闹钟设置的界面,具体的,用户可以直接选择该音乐文件设置界面中保存的某一闹钟作为目标闹钟,针对该目标闹钟输入音乐文件的标识信息,从而使移动终端保存该目标闹钟与音乐文件的标识信息的对应关系,或者也可以在音乐文件库中选择对应的音乐文件的标识信息。例如:用户可以在音乐文件设置界面将保存的闹钟“21:00”选择为目标闹钟,为该目标闹钟设置的音乐文件的标识信息为音乐文件的名称“B”等。In order to improve the user experience, when receiving a user's request to set an alarm clock music file for a smart home appliance, the mobile terminal may display a music file setting interface, and the user may set the music file on the music file setting interface. The music file setting interface includes an interface for setting an alarm clock. Specifically, the user can directly select an alarm clock saved in the music file setting interface as a target alarm clock, and enter identification information of the music file for the target alarm clock, so that the mobile terminal saves the The correspondence relationship between the target alarm clock and the identification information of the music file, or the identification information of the corresponding music file can also be selected in the music file library. For example, the user can select the saved alarm clock "21:00" as the target alarm clock on the music file setting interface, and the identification information of the music file set for the target alarm clock is the name of the music file "B" and so on.
具体的,在针对不同的闹钟设置其对应的音乐文件时,不同的闹钟对应的音乐文件可以相同,也可以不同,一般情况下闹钟的作用为提醒,不同的闹钟对应的音乐文件可以相同。Specifically, when setting corresponding music files for different alarm clocks, the music files corresponding to different alarm clocks may be the same or different. In general, the alarm clock functions as a reminder, and the music files corresponding to different alarm clocks may be the same.
S303:将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。S303: Send the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance device, so that the smart home appliance device plays the corresponding second music file on each alarm clock.
本申请实施例中,为了能够使智能家电设备在不同的闹钟的时间播放对应的第二音乐文件,用户通过移动终端设置第二音乐文件的标识信息与闹钟的第三对应关系,移动终端可以将该第三对应关系给智能家电设备,使该智能家电在每个闹钟的时间播放对应的第二音乐文件。In the embodiment of the present application, in order to enable the smart home appliance to play the corresponding second music file at different alarm clock times, the user sets the third correspondence between the identification information of the second music file and the alarm clock through the mobile terminal, the mobile terminal may The third correspondence relationship is given to the smart home appliance, so that the smart home appliance plays the corresponding second music file at the time of each alarm clock.
具体的,智能家电设备中设置有通信模块,例如可以是wifi模块,通过通信模块可以接收移动终端发送的该第三对应关系。Specifically, the smart home appliance device is provided with a communication module, for example, a wifi module, and the third correspondence relationship sent by the mobile terminal can be received through the communication module.
例如:用户针对目标闹钟设置音乐文件,该目标闹钟的时间为20:00,移动终端获取用户设置的该目标闹钟对应的音乐文件的标识信息,该音乐文件的标识信息为a,因此保存该目标闹钟与a的第三对应关系,将该第三对应关系发送给智能家电设备,从而使智能家电设备在该目标闹钟的时间播放标识信息为a的音乐文件。For example: the user sets a music file for the target alarm clock, the time of the target alarm clock is 20:00, the mobile terminal obtains the identification information of the music file corresponding to the target alarm clock set by the user, and the identification information of the music file is a, so the target is saved The third correspondence between the alarm clock and a, and sending the third correspondence to the smart home appliance, so that the smart home appliance plays the music file with the identification information a at the time of the target alarm clock.
由于本申请实施例中用户可以通过移动终端对智能家电设备设置闹钟与音乐文件的第三对应关系,并将第三对应关系发送给智能家电设备,从而使智能家电设备可以在不同的闹钟的时间播放对应的音乐文件。In the embodiment of the present application, the user can set the third correspondence between the alarm clock and the music file on the smart home appliance through the mobile terminal, and send the third correspondence to the smart home appliance, so that the smart home appliance can operate at different alarm time Play the corresponding music file.
实施例8:Example 8:
为了能够更好地满足用户的播放需求,在上述各实施例的基础上,本申请实施例中, 所述接收用户针对每个睡眠阶段输入的音乐文件的标识信息包括:In order to better meet the user's playback requirements, on the basis of the foregoing embodiments, in the embodiments of the present application, the identification information of the music file input by the receiving user for each sleep stage includes:
接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;Receiving an operation instruction of a user selecting a second target sleep stage, and displaying a music file library corresponding to the second target sleep stage;
接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。Receiving identification information of the second target music file displayed in the music file library selected by the user, and establishing a correspondence between the second target music file of the identification information and the second target sleep stage.
为了能够根据用户的设置,使智能家电设备在不同的睡眠阶段播放不同类型的音乐文件,本申请实施例中,针对不同的睡眠阶段保存有其与不同类型的音乐文件库的对应关系,因此当移动终端接收用户选择第二目标睡眠阶段的操作指令后,根据该操作指令显示该第二目标睡眠阶段对应的音乐文件库,例如:当移动终端接收到用户选择“入睡阶段”的操作指令时,根据该操作指令显示“入睡阶段”对应的音乐文件库,其中不同睡眠阶段对应的音乐文件库不同,每一音乐文件库中可以保存相同类型的音乐文件,当然也可以是所有睡眠阶段对应同一音乐文件库,在该音乐文件库中保存有不同类型的音乐文件,并且保存有每个音乐文件的标识信息。In order to enable the smart home appliance to play different types of music files in different sleep stages according to the user's settings, in the embodiment of the present application, correspondences with different types of music file libraries are saved for different sleep stages, so when After receiving the operation instruction of the user selecting the second target sleep stage, the mobile terminal displays the music file library corresponding to the second target sleep stage according to the operation instruction, for example: when the mobile terminal receives the operation instruction of the user selecting the "sleep stage", According to the operation instruction, the music file library corresponding to the "sleeping stage" is displayed, wherein the music file library corresponding to different sleep stages is different, and each music file library can save the same type of music file, and of course, all sleep stages correspond to the same music A file library, in which music files of different types are stored, and identification information of each music file is stored.
当移动终端接收到用户针对第二目标睡眠阶段的音乐文件库展示的第二目标音乐文件,而选择的音乐文件的标识信息后,建立该标识信息的第二目标音乐文件和第二目标睡眠阶段的对应关系,从而可以将该对应关系发送给智能家电设备,使智能家电设备可以在第二目标睡眠阶段播放对应的第二目标音乐文件。After the mobile terminal receives the identification information of the selected music file displayed by the user for the music file library of the second target sleep stage, the second target music file and the second target sleep stage of the identification information are established Corresponding relationship, so that the corresponding relationship can be sent to the smart home appliance, so that the smart home appliance can play the corresponding second target music file during the second target sleep stage.
为了能够使智能家电设备在不同的睡眠阶段播放对应的音乐文件,在上述各实施例的基础上,本申请实施例中,如果所述标识信息为音乐文件的名称,所述方法还包括:In order to enable the smart home appliance to play the corresponding music file in different sleep stages, based on the above embodiments, in the embodiment of the present application, if the identification information is the name of the music file, the method further includes:
所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;The mobile terminal obtains a link to the music file of the name according to the name of the music file;
所述将音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备包括:The sending the second correspondence between the identification information of the music file and the sleep stage to the smart home appliance includes:
将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。Sending the second correspondence between the link of the music file and the sleep stage to the smart home appliance.
为了方便用户的使用,本申请实施例中,音乐文件的标识信息为音乐文件的名称,当移动终端接收到用户输入的音乐文件的名称,根据该音乐文件的名称,获取该名称的音乐文件的链接,将该链接与睡眠阶段的第二对应关系发送给智能家电设备。In order to facilitate the user's use, in the embodiment of the present application, the identification information of the music file is the name of the music file. When the mobile terminal receives the name of the music file input by the user, the music file of the name is obtained according to the name of the music file Link to send the second correspondence between the link and the sleep stage to the smart home appliance.
由于本申请实施例提供的当音乐文件的标识信息是音乐文件的名称时,移动终端根据音乐文件的名称,获取该名称的音乐文件的链接,将音乐文件的链接与睡眠阶段的对应关系发送给智能家电设备,从而使智能家电设备在不同的睡眠阶段播放对应的音乐文件。Because when the identification information of the music file is the name of the music file provided by the embodiment of the present application, the mobile terminal obtains the link of the music file of the name according to the name of the music file, and sends the correspondence between the link of the music file and the sleep stage to Smart home appliances, so that the smart home appliances play corresponding music files in different sleep stages.
实施例9:Example 9:
在上述各实施例的基础上,图4为本申请实施例提供的一种音乐播放控制装置的结构 示意图,所述装置包括:Based on the foregoing embodiments, FIG. 4 is a schematic structural diagram of a music playback control device according to an embodiment of the present application. The device includes:
主控模块401,用于根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;The main control module 401 is configured to determine the first target sleep stage corresponding to the current temperature according to the current temperature and the first correspondence between the sleep stage and the temperature previously saved;
播放模块402,用于根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。The playing module 402 is configured to determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, and obtain the identification information of the identification information The first target music file and play.
进一步地,所述播放模块402,用于判断当前的时间是否到达预设的目标闹钟的时间;如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播放。Further, the playback module 402 is used to determine whether the current time reaches the preset target alarm time; if so, determine the target according to the third correspondence between the stored identification information of the second music file and the alarm clock The identification information of the second target music file corresponding to the alarm clock, acquiring and playing the second target music file of the identification information.
进一步地,所述装置还包括:第一判断模块403,用于判断所述智能家电设备是否开启音乐播放功能;如果是,触发播放模块。Further, the device further includes: a first judgment module 403, configured to judge whether the smart home appliance has turned on the music playback function; if so, trigger the playback module.
进一步地,所述装置还包括:第二判断模块404,用于根据保存的被设置了对应的音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;如果是,触发所述播放模块。Further, the device further includes: a second judgment module 404, configured to judge whether the corresponding music file is set in the first target sleep stage according to the stored identifier of the sleep stage in which the corresponding music file is set; If yes, trigger the playback module.
进一步地,所述装置还包括:第一接收模块405,用于接收移动终端发送的音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的;和,接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第三对应关系为用户通过所述移动终端设置的。Further, the device further includes: a first receiving module 405, configured to receive a second correspondence between the identification information of the music file sent by the mobile terminal and the sleep stage, wherein the second correspondence is that the user passes the mobile Set by the terminal; and, receiving a third correspondence between the identification information of the second music file sent by the mobile terminal and the alarm clock, wherein the third correspondence is set by the user through the mobile terminal.
进一步地,所述装置还包括:下载存储模块406,用于根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。Further, the device further includes: a download storage module 406, configured to download and save a music file corresponding to the link or name according to the link or name of the music file.
由于本申请实施例提供的智能家电设备可以根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;从而播放该第一目标睡眠阶段播放对应的第一目标音乐文件,可以更好的为用户提供舒服的睡眠环境,提高了用户体验。Because the smart home appliance provided by the embodiment of the present application can determine the first target sleep stage corresponding to the current temperature according to the current temperature and the pre-saved first correspondence between the sleep stage and the temperature; thereby playing the first target sleep stage playback correspondence The first target music file can provide users with a comfortable sleeping environment and improve the user experience.
实施例10:Example 10:
在上述各实施例的基础上,图5为本申请实施例提供的一种音乐播放控制装置的结构示意图,所述装置包括:Based on the foregoing embodiments, FIG. 5 is a schematic structural diagram of a music playback control device provided by an embodiment of the present application. The device includes:
第二接收模块501,用于接收用户针对智能家电设备对音乐文件进行设置的请求;The second receiving module 501 is configured to receive a user's request for setting a music file for a smart home appliance;
展示模块502,用于展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的音乐文件的标识信息;The display module 502 is used to display a music file setting interface and receive identification information of the music file input by the user for each sleep stage;
发送模块503,用于将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所 述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。The sending module 503 is configured to send the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
进一步地,所述第二接收模块501,还用于接收用户针对智能家电设备对闹钟音乐文件进行设置的请求;所述展示模块502,还用于展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息;所述发送模块503,还用于将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。Further, the second receiving module 501 is also used to receive a user's request to set an alarm clock music file for a smart home appliance device; the display module 502 is also used to display a music file setting interface and obtain the user for each The identification information of the second music file set by the alarm clock; the sending module 503 is further configured to send the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance device, so that the smart home appliance device Each alarm clock plays a corresponding second music file.
进一步地,所述第二接收模块501,具体用于接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。Further, the second receiving module 501 is specifically configured to receive an operation instruction for the user to select the second target sleep stage, display the music file library corresponding to the second target sleep stage; receive the music file library selected by the user The identification information of the second target music file establishes a correspondence between the second target music file of the identification information and the second target sleep stage.
进一步地,所述装置还包括:获取模块504,用于所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;所述发送模块503,具体用于将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。Further, the device further includes: an obtaining module 504, which is used by the mobile terminal to obtain a link to the music file of the name according to the name of the music file; and the sending module 503, which is specifically used to link the link of the music file with The second corresponding relationship in the sleep stage is sent to the smart home appliance.
由于发明实施例提供的装置,接收用户针对智能家电设备对音乐文件进行设置的请求,展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的音乐文件的标识信息,将音乐文件的标识信息与睡眠阶段的第二对应关系发送给智能家电设备,使智能家电设备在每个睡眠阶段播放对应的音乐文件,从而满足了用户的播放需求。Due to the device provided by the embodiment of the invention, the user's request for setting the music file for the smart home appliance is received, the music file setting interface is displayed, and the identification information of the music file input by the user for each sleep stage is received to convert the identification information of the music file The second correspondence relationship with the sleep stage is sent to the smart home appliance device, so that the smart home appliance device plays the corresponding music file in each sleep stage, thereby satisfying the user's playback requirements.
实施例11:Example 11:
在上述各个实施例的基础上,本申请实施例提供了一种智能家电设备,如图6所示,包括处理器601、通信接口602、存储器603和通信总线604,其中,处理器601,通信接口602,存储器603通过通信总线604完成相互间的通信;Based on the foregoing embodiments, the embodiments of the present application provide a smart household electrical appliance, as shown in FIG. 6, which includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601 communicates Interface 602, memory 603 complete communication with each other through communication bus 604;
所述存储器603中存储有计算机程序,当所述程序被所述处理器601执行时,使得所述处理器601执行下列过程:A computer program is stored in the memory 603, and when the program is executed by the processor 601, the processor 601 is caused to perform the following process:
根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;Determine the first target sleep stage corresponding to the current temperature according to the current temperature, and the first correspondence between the previously saved sleep stage and the temperature;
根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。Determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, obtain the first target music file of the identification information and Play.
进一步地,判断当前的时间是否到达预设的目标闹钟的时间;Further, it is determined whether the current time reaches the preset target alarm time;
如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播 放。If yes, determine the identification information of the second target music file corresponding to the target alarm clock according to the third correspondence between the stored identification information of the second music file and the alarm clock, obtain the second target music file of the identification information and play .
进一步地,所述获取所述标识信息的目标音乐文件之前,判断所述智能家电设备是否开启音乐播放功能;Further, before acquiring the target music file of the identification information, it is determined whether the smart home appliance device enables the music playback function;
如果是,执行后续步骤。If yes, perform the next steps.
进一步地,所述确定所述目标睡眠阶段对应的第一目标音乐文件的标识信息之前,根据保存的被设置了对应的音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;Further, before determining the identification information of the first target music file corresponding to the target sleep stage, it is determined whether the first target sleep stage is set according to the stored sleep stage identifier set to the corresponding music file Corresponding music files;
如果是,进行后续步骤。If yes, proceed to the next step.
进一步地,所述确定第一目标睡眠阶段对应的目标音乐文件的标识信息之前,接收移动终端发送的音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的;和,Further, before determining the identification information of the target music file corresponding to the first target sleep stage, receive a second correspondence between the identification information of the music file sent by the mobile terminal and the sleep stage, wherein the second correspondence is the user Set by the mobile terminal; and,
接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第三对应关系为用户通过所述移动终端设置的。Receiving a third correspondence between the identification information of the second music file and the alarm clock sent by the mobile terminal, where the third correspondence is set by the user through the mobile terminal.
进一步地,所述音乐文件的标识信息为音乐文件的链接或名称,所述智能家电设备根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。Further, the identification information of the music file is a link or name of the music file, and the smart home appliance device downloads and saves the music file corresponding to the link or name according to the link or name of the music file.
基于同一发明构思,本申请实施例中提供了一种智能家电设备,由于上述智能家电设备解决问题的原理与音乐播放控制方法相似,因此上述智能家电设备的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, an embodiment of the present application provides a smart home appliance. Since the principle of the above smart home appliance to solve the problem is similar to the music playback control method, the implementation of the above smart home appliance can refer to the implementation of the method, and the duplications No longer.
上述家电设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned above may be a peripheral component interconnection standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, the figure is only represented by a thick line, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述家电设备与其他设备之间的通信。The communication interface is used for communication between the above household electrical appliances and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), or non-volatile memory (Non-Volatile Memory, NVM), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述处理器可以是通用处理器,包括中央处理器、网络处理器(Network Processor,NP)等;还可以是数字指令处理器(Digital Signal Processing,DSP)、专用集成电路、现场可编程门陈列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The above processor may be a general-purpose processor, including a central processor, a network processor (Network Processor, NP), etc .; it may also be a digital instruction processor (Digital Signal Processing, DSP), an application specific integrated circuit, a field programmable gate display or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
实施例12:Example 12:
本申请实施例公开了一种计算机可读存储介质,其存储有可由家电设备执行的计算机 程序,当所述程序在所述家电设备上运行时,使得所述智能家电设备执行以下步骤:An embodiment of the present application discloses a computer-readable storage medium that stores a computer program executable by a home appliance, and when the program runs on the home appliance, the smart home appliance performs the following steps:
根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;Determine the first target sleep stage corresponding to the current temperature according to the current temperature, and the first correspondence between the previously saved sleep stage and the temperature;
根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。Determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, obtain the first target music file of the identification information and Play.
进一步地,判断当前的时间是否到达预设的目标闹钟的时间;Further, it is determined whether the current time reaches the preset target alarm time;
如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播放。If yes, determine the identification information of the second target music file corresponding to the target alarm clock according to the third correspondence between the stored identification information of the second music file and the alarm clock, obtain the second target music file of the identification information and play .
进一步地,所述获取所述标识信息的目标音乐文件之前,判断所述智能家电设备是否开启音乐播放功能;Further, before acquiring the target music file of the identification information, it is determined whether the smart home appliance device enables the music playback function;
如果是,执行后续步骤。If yes, perform the next steps.
进一步地,所述确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息之前,根据保存的被设置了对应的音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;Further, before the identification information of the first target music file corresponding to the first target sleep stage is determined, whether the first target sleep stage is determined according to the stored sleep stage identifier set to the corresponding music file The corresponding music file is set;
如果是,进行后续步骤。If yes, proceed to the next step.
进一步地,所述确定所述第一目标睡眠阶段对应的目标音乐文件的标识信息之前,接收移动终端发送的音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的;和,Further, before determining the identification information of the target music file corresponding to the first target sleep stage, receive a second correspondence between the identification information of the music file and the sleep stage sent by the mobile terminal, wherein the second correspondence Set for the user through the mobile terminal; and,
接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第三对应关系为用户通过所述移动终端设置的。Receiving a third correspondence between the identification information of the second music file and the alarm clock sent by the mobile terminal, where the third correspondence is set by the user through the mobile terminal.
进一步地,所述音乐文件的标识信息为音乐文件的链接或名称,所述智能家电设备根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。Further, the identification information of the music file is a link or name of the music file, and the smart home appliance device downloads and saves the music file corresponding to the link or name according to the link or name of the music file.
上述实施例中的计算机可读存储介质可以是家电设备中的处理器能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器如软盘、硬盘、磁带、磁光盘(MO)等、光学存储器如CD、DVD、BD、HVD等、以及半导体存储器如ROM、EPROM、EEPROM、非易失性存储器(NAND FLASH)、固态硬盘(SSD)等。The computer-readable storage medium in the above embodiments may be any available medium or data storage device that can be accessed by the processor in the home appliance, including but not limited to magnetic memory such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc. Optical memory such as CD, DVD, BD, HVD, etc., and semiconductor memory such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state hard disk (SSD), etc.
实施例13:Example 13:
在上述各个实施例的基础上,本申请实施例提供了一种移动终端,如图7所示,包括处理器701、通信接口702、存储器703和通信总线704,其中,处理器701,通信接口702, 存储器703通过通信总线704完成相互间的通信;Based on the foregoing embodiments, the embodiments of the present application provide a mobile terminal, as shown in FIG. 7, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704, where the processor 701, the communication interface 702, the memory 703 completes communication with each other through the communication bus 704;
所述存储器703中存储有计算机程序,当所述程序被所述处理器701执行时,使得所述处理器701执行下列过程:A computer program is stored in the memory 703, and when the program is executed by the processor 701, the processor 701 is caused to perform the following process:
接收用户针对智能家电设备对音乐文件进行设置的请求;Receive user's request to set music files for smart home appliances;
展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的音乐文件的标识信息;Display the music file setting interface and receive the identification information of the music file input by the user for each sleep stage;
将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。Sending the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
进一步地,接收用户针对智能家电设备对闹钟音乐文件进行设置的请求;Further, receiving a user's request to set an alarm clock music file for a smart home appliance device;
展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息;Display the music file setting interface and obtain the identification information of the second music file set by the user for each alarm clock;
将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。Sending the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance, so that the smart home appliance plays the corresponding second music file on each alarm clock.
进一步地,接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;Further, receiving an operation instruction for the user to select the second target sleep stage, and displaying the music file library corresponding to the second target sleep stage;
接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。Receiving identification information of the second target music file displayed in the music file library selected by the user, and establishing a correspondence between the second target music file of the identification information and the second target sleep stage.
进一步地,如果所述标识信息为音乐文件的名称,所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;Further, if the identification information is the name of the music file, the mobile terminal obtains the link of the music file of the name according to the name of the music file;
将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。Sending the second correspondence between the link of the music file and the sleep stage to the smart home appliance.
基于同一发明构思,本申请实施例中提供了一种移动终端,由于上述移动终端解决问题的原理与音乐播放控制方法相似,因此上述移动终端的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, a mobile terminal is provided in the embodiments of the present application. Since the principle of the above mobile terminal to solve the problem is similar to the music playback control method, the implementation of the above mobile terminal may refer to the implementation of the method, and the repetition will not be repeated .
上述移动终端提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above mobile terminal may be a peripheral component interconnection (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, the figure is only represented by a thick line, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述移动终端与其他设备之间的通信。The communication interface is used for communication between the mobile terminal and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), or non-volatile memory (Non-Volatile Memory, NVM), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述处理器可以是通用处理器,包括中央处理器、网络处理器(Network Processor,NP)等;还可以是数字指令处理器(Digital Signal Processing,DSP)、专用集成电路、现 场可编程门陈列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The above processor may be a general-purpose processor, including a central processor, a network processor (Network Processor, NP), etc .; it may also be a digital instruction processor (Digital Signal Processing, DSP), an application specific integrated circuit, a field programmable gate display or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
实施例14:Example 14:
本申请实施例公开了一种计算机可读存储介质,其存储有可由服务器执行的计算机程序,当所述程序在所述服务器上运行时,使得所述服务器执行以下步骤:An embodiment of the present application discloses a computer-readable storage medium that stores a computer program that can be executed by a server, and when the program runs on the server, causes the server to perform the following steps:
接收用户针对智能家电设备对音乐文件进行设置的请求;Receive user's request to set music files for smart home appliances;
展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的音乐文件的标识信息;Display the music file setting interface and receive the identification information of the music file input by the user for each sleep stage;
将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。Sending the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
进一步地,接收用户针对智能家电设备对闹钟音乐文件进行设置的请求;Further, receiving a user's request to set an alarm clock music file for a smart home appliance device;
展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息;Display the music file setting interface and obtain the identification information of the second music file set by the user for each alarm clock;
将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。Sending the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance, so that the smart home appliance plays the corresponding second music file on each alarm clock.
进一步地,接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;Further, receiving an operation instruction for the user to select the second target sleep stage, and displaying the music file library corresponding to the second target sleep stage;
接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。Receiving identification information of the second target music file displayed in the music file library selected by the user, and establishing a correspondence between the second target music file of the identification information and the second target sleep stage.
进一步地,如果所述标识信息为音乐文件的名称,所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;Further, if the identification information is the name of the music file, the mobile terminal obtains the link of the music file of the name according to the name of the music file;
将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。Sending the second correspondence between the link of the music file and the sleep stage to the smart home appliance.
上述实施例中的计算机可读存储介质可以是移动终端中的处理器能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器如软盘、硬盘、磁带、磁光盘(MO)等、光学存储器如CD、DVD、BD、HVD等、以及半导体存储器如ROM、EPROM、EEPROM、非易失性存储器(NAND FLASH)、固态硬盘(SSD)等。The computer-readable storage medium in the foregoing embodiments may be any available medium or data storage device that can be accessed by the processor in the mobile terminal, including but not limited to magnetic memory such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), Optical memory such as CD, DVD, BD, HVD, etc., and semiconductor memory such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state hard disk (SSD), etc.
本申请实施例提供了一种音乐播放控制方法、装置、家电设备、终端及介质,该方法包括:智能家电设备根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。Embodiments of the present application provide a music playback control method, device, home appliance, terminal, and medium. The method includes: the smart home appliance determines the current temperature according to the current temperature, and the first correspondence between the sleep stage and the temperature previously saved Corresponding first target sleep stage; according to the second correspondence between the stored identification information of the first music file and the sleep stage, the identification information of the first target music file corresponding to the first target sleep stage is determined, and the identification is obtained The first target music file of information and play.
由于本申请实施例提供的智能家电设备可以根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;从而播放该第一目标睡眠阶段播放对应的第一目标音乐文件,可以更好的为用户提供舒服的睡眠环境,提高了用 户体验。Because the smart home appliance provided by the embodiment of the present application can determine the first target sleep stage corresponding to the current temperature according to the current temperature and the pre-saved first correspondence between the sleep stage and the temperature; thereby playing the first target sleep stage playback correspondence The first target music file can provide users with a comfortable sleeping environment and improve the user experience.
对于系统/装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者一个操作与另一个实体或者另一个操作区分开来,而不一定要求或者暗示这些实体或者操作之间存在任何这种实际的关系或者顺序。For the system / apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment. It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or one operation from another entity or another operation, and do not necessarily require or imply these entities Or there is any such actual relationship or order between operations.
本领域内的技术人员应明白,本申请的实施例可提供为方法、装置、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全应用实施例、或结合应用和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining applications and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the application. It should be understood that each flow and / or block in the flowchart and / or block diagram and a combination of the flow and / or block in the flowchart and / or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device A device for realizing the functions specified in one block or multiple blocks of one flow or multiple blocks of a flowchart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device The instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
尽管已描述了本申请的实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括实施例以及落入本申请范围的所有变更和修改。Although the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic inventive concept. Therefore, the appended claims are intended to be construed as including the embodiments and all changes and modifications falling within the scope of the present application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies thereof, the present application is also intended to include these modifications and variations.

Claims (24)

  1. 一种音乐播放控制方法,其特征在于,所述方法包括:A music playback control method, characterized in that the method includes:
    智能家电设备根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;The smart home appliance device determines the first target sleep stage corresponding to the current temperature according to the current temperature, and the first correspondence relationship between the sleep stage and the temperature previously saved;
    根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。Determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, obtain the first target music file of the identification information and Play.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    判断当前的时间是否到达预设的目标闹钟的时间;Determine whether the current time reaches the preset target alarm time;
    如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播放。If yes, determine the identification information of the second target music file corresponding to the target alarm clock according to the third correspondence between the stored identification information of the second music file and the alarm clock, obtain the second target music file of the identification information and play .
  3. 根据权利要求1或2所述的方法,其特征在于,所述获取所述标识信息的目标音乐文件之前,所述方法还包括:The method according to claim 1 or 2, wherein before the acquiring the target music file of the identification information, the method further comprises:
    判断所述智能家电设备是否开启音乐播放功能;Judging whether the intelligent household electrical appliance is enabled with music playing function;
    如果是,执行后续步骤。If yes, perform the next steps.
  4. 根据权利要求1所述的方法,其特征在于,所述确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息之前,所述方法还包括:The method according to claim 1, wherein before determining the identification information of the first target music file corresponding to the first target sleep stage, the method further comprises:
    根据保存的被设置了对应的音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;Judging whether the corresponding music file is set in the first target sleep stage according to the stored identifier of the sleep stage in which the corresponding music file is set;
    如果是,进行后续步骤。If yes, proceed to the next step.
  5. 根据权利要求2所述的方法,其特征在于,所述确定目标音乐文件的标识信息之前,所述方法还包括:The method according to claim 2, wherein before determining the identification information of the target music file, the method further comprises:
    接收移动终端发送的第一音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的;和,Receiving a second correspondence between the identification information of the first music file sent by the mobile terminal and the sleep stage, wherein the second correspondence is set by the user through the mobile terminal; and,
    接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第三对应关系为用户通过所述移动终端设置的。Receiving a third correspondence between the identification information of the second music file and the alarm clock sent by the mobile terminal, where the third correspondence is set by the user through the mobile terminal.
  6. 根据权利要求5所述的方法,其特征在于,所述音乐文件的标识信息为音乐文件的链接或名称,所述方法还包括:The method according to claim 5, wherein the identification information of the music file is a link or name of the music file, and the method further comprises:
    所述智能家电设备根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。The smart home appliance device downloads and saves the music file corresponding to the link or name according to the link or name of the music file.
  7. 一种音乐播放控制方法,其特征在于,所述方法包括:A music playback control method, characterized in that the method includes:
    接收用户针对智能家电设备对睡眠阶段的音乐文件进行设置的请求;Receive the user's request to set the music file of the sleep stage for the smart home appliance;
    展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的第一音乐文件的标识信息;Display the music file setting interface and receive the identification information of the first music file input by the user for each sleep stage;
    将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。Sending the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    接收用户针对智能家电设备对闹钟音乐文件进行设置的请求;Receive the user's request to set the alarm clock music file for smart home appliances;
    展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息;Display the music file setting interface and obtain the identification information of the second music file set by the user for each alarm clock;
    将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。Sending the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance, so that the smart home appliance plays the corresponding second music file on each alarm clock.
  9. 根据权利要求7所述的方法,其特征在于,所述接收用户针对每个睡眠阶段输入的第一音乐文件的标识信息包括:The method according to claim 7, wherein the receiving identification information of the first music file input by the user for each sleep stage includes:
    接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;Receiving an operation instruction of a user selecting a second target sleep stage, and displaying a music file library corresponding to the second target sleep stage;
    接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。Receiving identification information of the second target music file displayed in the music file library selected by the user, and establishing a correspondence between the second target music file of the identification information and the second target sleep stage.
  10. 根据权利要求7或9所述的方法,其特征在于,如果所述标识信息为音乐文件的名称,所述方法还包括:The method according to claim 7 or 9, wherein if the identification information is the name of a music file, the method further comprises:
    所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;The mobile terminal obtains a link to the music file of the name according to the name of the music file;
    所述将音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备包括:The sending the second correspondence between the identification information of the music file and the sleep stage to the smart home appliance includes:
    将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。Sending the second correspondence between the link of the music file and the sleep stage to the smart home appliance.
  11. 一种音乐播放控制装置,其特征在于,所述装置包括:A music playback control device, characterized in that the device includes:
    主控模块,用于根据当前温度,以及预先保存的睡眠阶段和温度的第一对应关系,确定当前温度对应的第一目标睡眠阶段;The main control module is used to determine the first target sleep stage corresponding to the current temperature according to the current temperature, and the pre-saved first correspondence between the sleep stage and the temperature;
    播放模块,用于根据保存的第一音乐文件的标识信息与睡眠阶段的第二对应关系,确定所述第一目标睡眠阶段对应的第一目标音乐文件的标识信息,获取所述标识信息的第一目标音乐文件并播放。The playing module is configured to determine the identification information of the first target music file corresponding to the first target sleep stage according to the second correspondence between the stored identification information of the first music file and the sleep stage, and obtain the third A target music file and play it.
  12. 根据权利要求11所述的装置,其特征在于,所述播放模块,还用于判断当前的时间是否到达预设的目标闹钟的时间;如果是,根据保存的第二音乐文件的标识信息与闹钟的第三对应关系,确定所述目标闹钟对应的第二目标音乐文件的标识信息,获取所述标识信息的第二目标音乐文件并播放。The device according to claim 11, wherein the playback module is further configured to determine whether the current time reaches the preset target alarm clock time; if so, according to the stored identification information of the second music file and the alarm clock In the third correspondence relationship, the identification information of the second target music file corresponding to the target alarm clock is determined, and the second target music file of the identification information is acquired and played.
  13. 根据权利要求11或12所述的装置,其特征在于,所述装置还包括:The device according to claim 11 or 12, wherein the device further comprises:
    第一判断模块,用于判断所述智能家电设备是否开启音乐播放功能;如果是,触发所述播放模块。The first judgment module is used to judge whether the smart home appliance device has turned on the music playing function; if it is, trigger the playing module.
  14. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    第二判断模块,用于根据保存的被设置了对应的音乐文件的睡眠阶段的标识,判断所述第一目标睡眠阶段是否被设置了对应的音乐文件;如果是,触发所述播放模块。The second judgment module is used to judge whether the corresponding music file is set in the first target sleep stage according to the stored sleep stage identifier of the corresponding music file; if it is, trigger the playback module.
  15. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device according to claim 12, wherein the device further comprises:
    第一接收模块,用于接收移动终端发送的第一音乐文件的标识信息与睡眠阶段的第二对应关系,其中,所述第二对应关系为用户通过所述移动终端设置的;和,接收移动终端发送的第二音乐文件的标识信息与闹钟的第三对应关系,其中,所述第三对应关系为用户通过所述移动终端设置的。A first receiving module, configured to receive a second correspondence between the identification information of the first music file sent by the mobile terminal and the sleep stage, wherein the second correspondence is set by the user through the mobile terminal; and, receives the mobile A third correspondence between the identification information of the second music file sent by the terminal and the alarm clock, where the third correspondence is set by the user through the mobile terminal.
  16. 根据权利要求15所述的装置,其特征在于,所述装置还包括:The device according to claim 15, wherein the device further comprises:
    下载存储模块,用于如果获取到的音乐文件的标识信息为音乐文件的链接或名称,根据所述音乐文件的链接或名称,下载对应链接或名称的音乐文件并保存。The download storage module is used to download and save the music file corresponding to the link or name according to the link or name of the music file if the identification information of the acquired music file is the link or name of the music file.
  17. 一种音乐播放控制装置,其特征在于,所述装置包括:A music playback control device, characterized in that the device includes:
    第二接收模块,用于接收用户对智能家电设备对睡眠阶段的音乐文件进行设置的请求;The second receiving module is used to receive the user's request to set the smart home appliance to the music file in the sleep stage;
    展示模块,用于展示音乐文件设置界面,并接收用户针对每个睡眠阶段输入的第一音乐文件的标识信息;A display module for displaying a music file setting interface and receiving identification information of the first music file input by the user for each sleep stage;
    发送模块,用于将第一音乐文件的标识信息与睡眠阶段的第二对应关系发送给所述智能家电设备,使所述智能家电设备在每个睡眠阶段播放对应的第一音乐文件。The sending module is configured to send the second correspondence between the identification information of the first music file and the sleep stage to the smart home appliance, so that the smart home appliance plays the corresponding first music file in each sleep stage.
  18. 根据权利要求17所述的装置,其特征在于,所述第二接收模块,还用于接收用户针对智能家电设备对闹钟音乐文件进行设置的请求;The apparatus according to claim 17, wherein the second receiving module is further configured to receive a user's request to set an alarm clock music file for a smart home appliance;
    所述展示模块,还用于展示音乐文件设置界面,并获取用户针对每个闹钟设置的第二音乐文件的标识信息;The display module is also used to display a music file setting interface and obtain the identification information of the second music file set by the user for each alarm clock;
    所述发送模块,还用于将第二音乐文件的标识信息与闹钟的第三对应关系发送给所述智能家电设备,使所述智能家电设备在每个闹钟播放对应的第二音乐文件。The sending module is further configured to send the third correspondence between the identification information of the second music file and the alarm clock to the smart home appliance, so that the smart home appliance plays the corresponding second music file on each alarm clock.
  19. 根据权利要求17所述的装置,其特征在于,所述第二接收模块,具体用于接收用户选择第二目标睡眠阶段的操作指令,显示所述第二目标睡眠阶段对应的音乐文件库;接收用户选择的音乐文件库中展示的第二目标音乐文件的标识信息,建立所述标识信息的第二目标音乐文件与所述第二目标睡眠阶段的对应关系。The device according to claim 17, wherein the second receiving module is specifically configured to receive a user's operation instruction to select a second target sleep stage, and display a music file library corresponding to the second target sleep stage; The identification information of the second target music file displayed in the music file library selected by the user establishes a correspondence between the second target music file of the identification information and the second target sleep stage.
  20. 根据权利要求17或19所述的装置,其特征在于,所述装置还包括:The device according to claim 17 or 19, wherein the device further comprises:
    获取模块,用于所述移动终端根据音乐文件的名称,获取所述名称的音乐文件的链接;An obtaining module, for the mobile terminal to obtain a link to a music file of the name according to the name of the music file;
    所述发送模块,具体用于将音乐文件的链接与睡眠阶段的第二对应关系发送给所述智能家电设备。The sending module is specifically configured to send the second correspondence between the link of the music file and the sleep stage to the smart home appliance.
  21. 一种智能家电设备,其特征在于,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An intelligent household electrical appliance is characterized by comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
    所述存储器中存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行权利要求1~6任一项所述方法的步骤。A computer program is stored in the memory, and when the program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 6.
  22. 一种计算机可读存储介质,其特征在于,其存储有可由智能家电设备执行的计算机程序,当所述程序在所述智能家电设备上运行时,使得所述智能家电设备执行权利要求1~6任一项所述方法的步骤。A computer-readable storage medium, characterized in that it stores a computer program that can be executed by a smart home appliance, and when the program runs on the smart home appliance, the smart home appliance executes claims 1 to 6 Any one of the steps of the method.
  23. 一种移动终端,其特征在于,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;A mobile terminal is characterized by comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
    所述存储器中存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行权利要求7~10任一项所述方法的步骤。A computer program is stored in the memory, and when the program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 7 to 10.
  24. 一种计算机可读存储介质,其特征在于,其存储有可由移动终端执行的计算机程序,当所述程序在所述移动终端上运行时,使得所述移动终端执行权利要求7~10任一项所述方法的步骤。A computer-readable storage medium, characterized in that it stores a computer program executable by a mobile terminal, and when the program is run on the mobile terminal, the mobile terminal is caused to execute any one of claims 7 to 10. The steps of the method.
PCT/CN2019/100413 2018-10-15 2019-08-13 Method and device for controlling music play, household appliance, terminal and medium WO2020078087A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811194813.3A CN109492125A (en) 2018-10-15 2018-10-15 A kind of music control method, device, household appliance, terminal and medium
CN201811194813.3 2018-10-15

Publications (1)

Publication Number Publication Date
WO2020078087A1 true WO2020078087A1 (en) 2020-04-23

Family

ID=65690271

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/100413 WO2020078087A1 (en) 2018-10-15 2019-08-13 Method and device for controlling music play, household appliance, terminal and medium

Country Status (2)

Country Link
CN (1) CN109492125A (en)
WO (1) WO2020078087A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492125A (en) * 2018-10-15 2019-03-19 珠海格力电器股份有限公司 A kind of music control method, device, household appliance, terminal and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009216818A (en) * 2008-03-07 2009-09-24 Panasonic Electric Works Co Ltd Speech and sound output device
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
CN107957118A (en) * 2017-11-24 2018-04-24 北海华源电子有限公司 Intelligent air condition
CN107965890A (en) * 2017-11-24 2018-04-27 北海华源电子有限公司 Air-conditioning with hypnosis function
CN109492125A (en) * 2018-10-15 2019-03-19 珠海格力电器股份有限公司 A kind of music control method, device, household appliance, terminal and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778170A (en) * 2010-02-01 2010-07-14 深圳市五巨科技有限公司 Method and device for music playing of mobile terminal
CN105261378A (en) * 2015-11-09 2016-01-20 广东欧珀移动通信有限公司 An audio file playing method and apparatus based on sleep states
CN106357913A (en) * 2016-09-28 2017-01-25 北京小米移动软件有限公司 Method and device for prompting information
CN107835229B (en) * 2017-10-13 2020-12-25 北京猎户星空科技有限公司 Content pushing method and device, electronic equipment and storage medium
CN108571804B (en) * 2018-04-23 2020-03-06 广东美的制冷设备有限公司 Air conditioner, parameter adjusting method and device thereof and readable storage medium
CN108490802A (en) * 2018-05-22 2018-09-04 珠海格力电器股份有限公司 A kind of control method and device of household appliance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009216818A (en) * 2008-03-07 2009-09-24 Panasonic Electric Works Co Ltd Speech and sound output device
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
CN107957118A (en) * 2017-11-24 2018-04-24 北海华源电子有限公司 Intelligent air condition
CN107965890A (en) * 2017-11-24 2018-04-27 北海华源电子有限公司 Air-conditioning with hypnosis function
CN109492125A (en) * 2018-10-15 2019-03-19 珠海格力电器股份有限公司 A kind of music control method, device, household appliance, terminal and medium

Also Published As

Publication number Publication date
CN109492125A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
US11422772B1 (en) Creating scenes from voice-controllable devices
CN109379261B (en) Control method, device, system, equipment and storage medium of intelligent equipment
US20200267221A1 (en) Method, system, and device for controlling an internet of things device
CN107852437B (en) Method and apparatus for outputting audio in electronic device
CN107294793B (en) Replacement method, device and equipment of intelligent household equipment and storage medium
WO2020228032A1 (en) Scene pushing method, apparatus and system, and electronic device and storage medium
WO2022022121A1 (en) Interactive method for establishing device linkage scene, and storage medium and electronic device
WO2020228041A1 (en) Scenario operating method and apparatus, electronic device, and computer readable medium
WO2015129372A1 (en) Audio system
CN107637028B (en) Electronic device, gateway, and control method for the same
JP2013539329A (en) Conference control hosted by mobile phone
CN110794693A (en) Device configuration method and device, electronic device and storage medium
US20160092066A1 (en) Display apparatus and system for providing ui, and method for providing ui of display apparatus
CN105898890A (en) Device searching method and electronic device for supporting the same
CN111367188B (en) Control method and device for intelligent home, electronic equipment and computer storage medium
JP6355974B2 (en) Speech apparatus, speech control apparatus, speech control system, speech apparatus control method, speech control apparatus control method, and control program
WO2014005868A1 (en) Alarm clock based applications
TW201826810A (en) Method, system and device for providing service
CN109842515B (en) Method for multi-device network distribution, server and computer storage medium
WO2020078087A1 (en) Method and device for controlling music play, household appliance, terminal and medium
CN113009842A (en) Intelligent reminding control method and device based on electric appliance, medium and electric appliance
WO2014128901A1 (en) Power source control guidance device, power source control guidance method, and power source control guidance program
CN117092926B (en) Equipment control method and electronic equipment
WO2020078085A1 (en) Electric quantity distribution method and apparatus
WO2019033314A1 (en) Control method and system for household electric appliance

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19873633

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19873633

Country of ref document: EP

Kind code of ref document: A1