CN115268248A - Alarm clock control method and device, electronic equipment and storage medium - Google Patents

Alarm clock control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115268248A
CN115268248A CN202210833860.8A CN202210833860A CN115268248A CN 115268248 A CN115268248 A CN 115268248A CN 202210833860 A CN202210833860 A CN 202210833860A CN 115268248 A CN115268248 A CN 115268248A
Authority
CN
China
Prior art keywords
music
alarm clock
audio
wake
awakening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210833860.8A
Other languages
Chinese (zh)
Other versions
CN115268248B (en
Inventor
潘小健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kunhong Intelligent Electronics Co ltd
Original Assignee
Shenzhen Kunhong Intelligent Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kunhong Intelligent Electronics Co ltd filed Critical Shenzhen Kunhong Intelligent Electronics Co ltd
Priority to CN202210833860.8A priority Critical patent/CN115268248B/en
Publication of CN115268248A publication Critical patent/CN115268248A/en
Application granted granted Critical
Publication of CN115268248B publication Critical patent/CN115268248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G13/00Producing acoustic time signals
    • G04G13/02Producing acoustic time signals at preselected times, e.g. alarm clocks
    • G04G13/025Producing acoustic time signals at preselected times, e.g. alarm clocks acting only at one preselected time
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G13/00Producing acoustic time signals
    • G04G13/02Producing acoustic time signals at preselected times, e.g. alarm clocks
    • G04G13/026Producing acoustic time signals at preselected times, e.g. alarm clocks acting at a number of different times
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The embodiment of the invention provides an alarm clock control method, which comprises the following steps: setting alarm clock wake-up time; generating a wake-up audio according to music materials in a music library, wherein the music library comprises preset types of music materials; and when the alarm clock wake-up time is reached, controlling the alarm clock equipment to play the wake-up audio. The music materials are obtained from the music library to generate new awakening audios, so that the diversity nature of the awakening audios is improved, a user can play the new awakening audios without manually changing the awakening music of the alarm clock equipment, and the user experience is improved.

Description

Alarm clock control method and device, electronic equipment and storage medium
Technical Field
The invention relates to the field of intelligent control, in particular to an alarm clock control method and device, electronic equipment and a storage medium.
Background
An alarm clock (clock) is a device with a time-alarming function, can be a clock with a movement structure in a mechanical sense, and can also be an electronic function module which has a function of prompting people to get up in an electronic sense, such as an alarm clock module in an intelligent alarm clock or a mobile phone, and can indicate time and send out sound signals or other signals according to the preset time of people. The existing alarm clock starts to ring and play according to a preset fixed alarm clock or music after reaching the corresponding set time. Because the music of storage is fixed for the alarm clock is the same music ringtone every day of repetition, and the user wants to change the music ringtone, needs manual the selection, can only select existing music ringtone moreover, consequently, current alarm clock has the variety degree of music ringtone low, influences user experience's problem.
Disclosure of Invention
The embodiment of the invention provides an alarm clock control method, and aims to solve the problems that the existing alarm clock is low in music ringtone diversity degree and affects user experience. The music materials are obtained from the music library to generate new awakening audios, so that the diversity nature of the awakening audios is improved, a user can play the new awakening audios without manually changing the awakening music of the alarm clock equipment, and the user experience is improved.
In a first aspect, an embodiment of the present invention provides an alarm clock control method, where the method includes:
setting alarm clock wake-up time;
generating a wake-up audio according to music materials in a music library, wherein the music library comprises preset types of music materials;
and when the alarm clock wake-up time is reached, controlling the alarm clock equipment to play the wake-up audio.
Optionally, the generating a wake-up audio according to the music material in the music library includes:
randomly acquiring music materials from the music library to obtain random music materials;
and generating the random music materials into awakening audio by a preset audio generation method.
Optionally, the generating the random music material into the wake-up audio by using a preset audio generating method includes:
slicing the random music material to obtain music slices;
aiming at a current music slice, acquiring a next music slice matched with the tail of the current music slice;
and splicing the current music slice and the next music slice, and smoothing the spliced part to obtain the awakening audio.
Optionally, the generating a wake-up audio according to the music material in the music library includes:
acquiring preference music of a user;
determining the music preference type of the user according to the preference music;
and acquiring corresponding music materials based on the music preference type, and adding the corresponding music materials into the music library according to the type.
Optionally, when the alarm clock wake-up time is reached, controlling the alarm clock device to play the wake-up audio includes:
when the alarm clock wake-up time is reached, acquiring a preset volume curve;
and adjusting the awakening audio based on the volume curve, and controlling alarm clock equipment to play the adjusted awakening audio.
Optionally, before the preset volume curve is obtained when the alarm clock wake-up time is reached, the method further includes:
determining the sleep quality of a user according to the sleep time and the sleep environment of the user;
and generating a corresponding volume curve before the alarm clock wake-up time is reached according to the sleep quality.
Optionally, when the alarm clock wake-up time is reached, after the alarm clock device is controlled to play the wake-up audio, the method further includes:
acquiring the playing time of the awakening audio;
determining the awakening effect of the awakening audio according to the playing duration;
when the awakening effect reaches a preset condition, sending a prompt for judging whether the awakening audio is reserved to a user;
if the user replies the reservation, reserving the generated information of the awakening audio and deleting the awakening audio;
and if the user response is not reserved, deleting the generation information of the awakening audio and deleting the awakening audio.
In a second aspect, an embodiment of the present invention provides an alarm clock control apparatus, where the apparatus includes:
the setting module is used for setting the alarm clock wake-up time;
the generating module is used for generating awakening audio according to music materials in a music library, wherein the music library comprises preset types of music materials;
and the control module is used for controlling the alarm clock equipment to play the awakening audio when the alarm clock awakening time is reached.
In a third aspect, an embodiment of the present invention provides an electronic device, including: the alarm clock control method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps in the alarm clock control method provided by the embodiment of the invention are realized when the processor executes the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements steps in an alarm clock control method provided in an embodiment of the present invention.
In the embodiment of the invention, the alarm clock wake-up time is set; generating a wakeup audio according to music materials in a music library, wherein the music library comprises preset types of music materials; and when the alarm clock wake-up time is reached, controlling the alarm clock equipment to play the wake-up audio. The music materials are obtained from the music library to generate new awakening audios, so that the diversity nature of the awakening audios is improved, a user can play the new awakening audios without manually changing the awakening music of the alarm clock equipment, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an alarm clock control method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an alarm clock control device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an alarm clock control method according to an embodiment of the present invention, and as shown in fig. 1, the alarm clock control method includes the following steps:
101. and setting alarm clock wake-up time.
In the embodiment of the present invention, the alarm clock control method may be applied to an alarm clock device providing an alarm clock function, where the alarm clock device may be an electronic device having a memory and a processor, such as an intelligent alarm clock, a mobile phone, an intelligent household appliance, and an intelligent home, and may set an alarm clock wake-up time according to an alarm clock time set by a user.
The user sets the alarm clock time through an interactive interface or a setting button provided by the alarm clock equipment, and the alarm clock equipment sets the alarm clock wake-up time according to the alarm clock time set by the user.
102. And generating awakening audio according to the music materials in the music library.
In an embodiment of the present invention, the music library includes preset types of music materials. The music library can be any music library in the market, or a music library established by a user, and the music materials in the music library can be preset music materials or music materials downloaded by the user. Preferably, the musical material may be glacier musical material. The glaimers music materials are soft and gentle, so that the enjoyment of beauty is achieved, and the user experience is further improved. Of course, the user may also create a corresponding music library according to his own music preferences, add music materials of corresponding types to the corresponding music library, such as adding music materials of a pop type to the pop music library, adding music materials of a classical type to the classical music library, and so on.
The musical material may be synthesized by the AI algorithm of music synthesis to generate a new wake-up audio.
Specifically, the music materials are stored in a memory of the alarm clock device, read by a processor, and then synthesized by an AI algorithm, thereby generating a new wake-up audio.
Further, a plurality of music materials can be randomly acquired from the music library, and the randomly acquired music materials are synthesized by using an AI algorithm, so as to generate a new wake-up audio. The new wake-up audio may be temporarily stored in memory.
The versatile nature of the wake-up audio is increased by generating new wake-up audio using the music material in the music library.
103. And when the alarm clock wake-up time is reached, controlling the alarm clock equipment to play wake-up audio.
In the embodiment of the invention, when the current time reaches the alarm clock wake-up time, the processor reads the wake-up audio from the memory, and the read wake-up audio is played through the player in the alarm clock device, so that the user is awakened through the play of the wake-up audio.
Above-mentioned alarm clock equipment can set up the loudspeaker system of high-fidelity and awaken up the broadcast of audio frequency, through the sound chamber that front and back plank and aluminum alloy center constitute, improves the broadcast effect of awakening up the audio frequency.
In the embodiment of the invention, the alarm clock wake-up time is set; generating a wake-up audio according to music materials in a music library, wherein the music library comprises preset types of music materials; and when the alarm clock awakening time is reached, controlling the alarm clock equipment to play the awakening audio. The music materials are obtained from the music library to generate new awakening audios, so that the diversity nature of the awakening audios is improved, a user can play the new awakening audios without manually changing the awakening music of the alarm clock equipment, and the user experience is improved.
Optionally, in the step of generating the wake-up audio according to the music materials in the music library, the music materials may be randomly acquired in the music library to obtain random music materials; and generating the random music materials into awakening audio by a preset audio generation method.
In the embodiment of the present invention, the processor may randomly acquire music materials from the music library, and the number of the acquired music materials may be preset or random. By randomly acquiring the music materials, the diversity of the awakening audio can be further improved, and the probability of the awakening audio repetition is reduced.
In the embodiment of the present invention, the preset audio generation method may be an AI generation method, and specifically, the AI generation method may be implemented based on splicing of music materials, or based on generation of a generative confrontation network, or based on other music generation methods.
In the generation based on the generative confrontation network, the acquired random music material can be input into a trained generator, and the corresponding wake-up audio is automatically generated. Further, the generative confrontation network comprises a generator and a discriminator in the training process, wherein the generator is used for generating generated audio according to the sample music material, the discriminator is used for discriminating whether the generated audio belongs to music, if the discriminator discriminates that the generated audio is not the music, the parameters of the generator are adjusted, when the discriminator discriminates that the generated audio is the music, the parameters of the discriminator are adjusted, the above process is iterated until the preset iteration number, and the trained generator is obtained. The random musical material is generated by a generator into a wake-up audio.
Optionally, in the step of generating the random music material into the wake-up audio by using the preset audio generation method, the random music material may be sliced to obtain music slices; aiming at the current music slice, acquiring a next music slice matched with the tail of the current music slice; and splicing the current music slice with the next music slice, and smoothing the spliced part to obtain the awakening audio.
In the embodiment of the present invention, as an audio generation manner, random music materials may be sliced to obtain music slices, the music slices are spliced according to the playing duration of an alarm clock to obtain a spliced audio with an audio duration equal to the playing duration of the alarm clock, and the spliced portion of the music slices is smoothed to obtain an awakening audio.
The smoothing may be performed in the form of mean filtering or bilateral filtering, and the transition between music slices may be natural through the smoothing.
Furthermore, two adjacent music slices do not belong to the same music material, when the music slices are spliced, the tail of the current music slice can be matched with the head of any one music slice, and the music slice with the matching degree of more than 85% and less than 95% is used as the next music slice of the current music slice and is spliced at the tail of the current music slice. The matching degree can be the similarity degree of the tail part and the head part, the matching degree can be obtained through the similarity degree of the music frequency spectrum corresponding to the music slices, the matching degree is larger than 85%, the smoothness and unsmooth caused by the over-small similarity degree in the smoothing treatment can be avoided, the matching degree is smaller than 95%, the direct splicing of the two music slices of the same music material can be avoided, and the awakening audio frequency formed by the same music material can be spliced.
Optionally, in the step of generating the wake-up audio according to the music material in the music library, the preferred music of the user may be acquired; determining the music preference type of the user according to the preference music; and acquiring corresponding music materials based on the music preference type, and adding the corresponding music materials into the music library according to the type.
In the embodiment of the invention, music can be played through the history of the music player of the user, and the preferred music of the user is obtained, wherein the preferred music of the user represents the music which the user likes to listen to. According to the user preference music, the music preference type of the user can be determined, for example, if the user preference music is more classical music, the music preference type of the user can be classical music, and if the user preference music is more popular music, the music preference type of the user can be popular music.
Further, music of a user's music preference type can be downloaded through existing various music retrieval approaches and added to the music library as music materials.
Optionally, in the step of controlling the alarm clock device to play the wake-up audio when the alarm clock wake-up time is reached, a preset volume curve is obtained when the alarm clock wake-up time is reached; and adjusting the awakening audio based on the volume curve, and controlling the alarm clock equipment to play the adjusted awakening audio.
In the embodiment of the present invention, the volume curve is used to control the playing volume of the wake-up audio, and the volume curve may be an increasing curve with an initial small volume and a subsequent gradually increasing volume; or the volume can be initially larger, and the straight curve of the volume is maintained all the time subsequently; but also a periodic curve with a plurality of band undulations.
And adjusting the awakening audio frequency through the volume curve so that the alarm clock equipment can perform corresponding playing according to the adjusted awakening audio frequency. Specifically, the user can be awakened softly at the awakening initial stage through the gradual increase curve, when the user does not close the action of the alarm clock, the user is not awakened, the playing volume can be increased through the gradual increase curve until the user is awakened, and the awakening experience of the user is improved. The user can be strongly awakened in the early awakening period through the flat curve, so that the user is prompted to awaken as early as possible. The user can be awakened periodically through the periodic curve, and the awakening experience of the user is improved.
Optionally, when the alarm clock wake-up time is reached and before the step of acquiring the preset volume curve, the sleep quality of the user can be determined according to the sleep time and the sleep environment of the user; and generating a corresponding volume curve before the alarm clock wake-up time is reached according to the sleep quality.
In the embodiment of the invention, the alarm clock device may be provided with a light sensor, and the sleep time of the user is determined through light sensing data of the light sensor. The alarm clock equipment can also be provided with a sound sensor, the sleep environment of the user is determined according to the sound sensor, and the larger the sound is, the worse the sleep environment is. The earlier the sleep time is, the better the sleep environment is, which means that the quality of sleep of the user is higher, and the higher the quality of sleep is, the softer the generated volume curve is, such as an increasing curve. The later the sleep time is, the worse the sleep environment is, the lower the sleep quality of the user is, and the lower the sleep quality is, the more aggressive the generated volume curve, such as a flat curve of high volume.
In one possible embodiment, the music library may be provided in a plurality, each music library corresponds to one type of music material, and different music libraries may be selected to randomly acquire the music materials according to the sleep quality of the user. Specifically, the sleep quality of the user at the night can be acquired N minutes before the wake-up time, a music library is determined according to the sleep quality, and corresponding music materials are randomly acquired from the music library to synthesize the wake-up audio. Wherein N is greater than 0.
Optionally, when the alarm clock wake-up time is reached, after the alarm clock device is controlled to play the wake-up audio, the playing duration of the wake-up audio can be obtained; determining the awakening effect of the awakening audio according to the playing time length; when the awakening effect reaches a preset condition, sending a prompt for judging whether to reserve the awakening audio to the user; if the user replies the reservation, reserving the generated information of the awakening audio and deleting the awakening audio; and if the user does not reserve the reply, deleting the generation information of the awakening audio and deleting the awakening audio.
In the embodiment of the present invention, the playing duration may be determined by the starting playing time and the ending playing time of the wake-up audio, and may be obtained by subtracting the starting playing time from the ending playing time. The shorter the playing time, the better the awakening effect of the awakening audio, and the longer the playing time, the worse the awakening effect of the awakening audio.
Specifically, when the playing time is less than a first preset threshold, it may be determined that the wake-up effect is good; when the playing time is longer than a first preset threshold and shorter than a second preset threshold, the awakening effect can be determined to be normal; when the playing time length is greater than a second preset threshold, the awakening effect can be determined to be poor. The first preset threshold is smaller than the second preset threshold.
When the awakening effect is good, a prompt can be sent to the user to inquire whether the user reserves the current awakening audio, the inquiry mode can be voice or words or an indicator lamp, for example, when the user turns off the alarm clock device, the awakening effect is good, whether the current alarm clock ring is reserved can be displayed to the user in the form of voice or words, the LED indicator lamp can also flash, and the meaning of the flash LED indicator lamp is explained through a product specification. The user can reply to yes or no, and the user can reply in the form of an interactive interface or voice or in the form of a button.
When the user replies "yes", the wake-up audio can be directly stored, and the generated information of the wake-up audio can also be reserved, wherein the generated information comprises a generation path, specifically comprises an identifier of random music materials, an identifier of music slices, a splicing sequence of the music slices and a volume curve. The data volume of the generated information is far smaller than that of the awakening audio, and the same awakening audio can be generated again through the generated information by storing the generated information, so that the storage pressure caused by directly storing the awakening audio is avoided.
When the user replies 'no', the awakening audio and the generated information can be directly deleted, and the storage pressure of the memory is reduced. Further, if the user does not reply, the default is that the user replies with 'no'.
Furthermore, when the awakening effect is normal or poor, the awakening audio and the generated information can be directly deleted, and the storage pressure of the memory is reduced.
In a possible embodiment, the wake-up effect of the wake-up audio may be determined according to the playing time and the sleep quality of the user, specifically, the sleep quality may be divided into three levels according to the sleep time and the sleep environment, the sleep time is earlier than a first preset time, the first level is a sleep environment sound lower than a first preset decibel, the second level is a sleep environment sound lower than a second preset time, the third level is a sleep environment sound lower than a second preset decibel, and the rest of the sleep environment sound is the second level. The first preset time is earlier than the second preset time, and the first preset decibel is smaller than the second preset decibel. Setting different quality coefficients for the sleep quality of different gears, multiplying the quality coefficients by a first preset threshold and a second preset threshold to obtain a new first preset threshold and a new second preset threshold, comparing the playing time with the new first preset threshold and the new second preset threshold, and determining the awakening effect of the awakening audio.
Specifically, when the playing time length is less than a new first preset threshold, it may be determined that the wake-up effect is good; when the playing time length is greater than a new first preset threshold and less than a new second preset threshold, the awakening effect can be determined to be general; when the playing time length is greater than the new second preset threshold, it may be determined that the wake-up effect is poor. Wherein the new first preset threshold is smaller than the new second preset threshold.
In the embodiment of the invention, the music materials can be randomly read from the memory, the music of the alarm clock equipment is randomly synthesized through an AI algorithm, and then the music is written back to the memory. When the user presets to turn on the alarm clock, corresponding playing is started by the time. The synthesized AI music uses a random algorithm to obtain music materials, so that the generated music can not be repeated, and the generated music has a difference in tone and volume, thereby achieving the effect of having an opportunity to hear different alarm music every day.
The music materials are obtained from the music library to generate new awakening audios, so that the diversity nature of the awakening audios is improved, a user can play the new awakening audios without manually changing the awakening music of the alarm clock equipment, and the user experience is improved.
It should be noted that the alarm clock control method provided by the embodiment of the invention can be applied to devices such as an intelligent alarm clock, a mobile phone, an intelligent household appliance and an intelligent home, which can perform alarm clock control.
It should be noted that the alarm clock control method provided by the embodiment of the present invention can be applied to devices such as a smart phone, a computer, and a server that can perform alarm clock control.
Optionally, referring to fig. 2, fig. 2 is a schematic structural diagram of an alarm clock control device provided in an embodiment of the present invention, and as shown in fig. 2, the alarm clock control device includes:
a setting module 201, configured to set an alarm clock wake-up time;
the generating module 202 is configured to generate a wake-up audio according to music materials in a music library, where the music library includes preset types of music materials;
and the control module 203 is configured to control the alarm clock device to play the wake-up audio when the alarm clock wake-up time is reached.
Optionally, the generating module 202 includes:
the first obtaining sub-module is used for obtaining the music materials in the music library at random to obtain random music materials;
and the generation submodule is used for generating the random music material into a wake-up audio through a preset audio generation method.
Optionally, the generating sub-module includes:
the slicing unit is used for slicing the random music material to obtain music slices;
the matching unit is used for acquiring a next music slice matched with the tail of the current music slice aiming at the current music slice;
and the splicing module is used for splicing the current music slice and the next music slice and performing smoothing processing on the spliced part to obtain the awakening audio.
Optionally, the apparatus includes:
the first acquisition module is used for acquiring preference music of a user;
the first determining module is used for determining the music preference type of the user according to the preference music;
and the adding module is used for acquiring corresponding music materials based on the music preference type and adding the corresponding music materials into the music library according to the type.
Optionally, the control module 203 includes:
the second obtaining submodule is used for obtaining a preset volume curve when the alarm clock wake-up time is reached;
and the adjusting submodule is used for adjusting the awakening audio based on the volume curve and controlling the alarm clock equipment to play the adjusted awakening audio.
Optionally, the control module 203 further includes:
the determining submodule is used for determining the sleep quality of the user according to the sleep time and the sleep environment of the user;
and the generation submodule is used for generating a corresponding volume curve before the alarm clock wake-up time is reached according to the sleep quality.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the playing time length of the awakening audio;
the second determining module is used for determining the awakening effect of the awakening audio according to the playing duration;
the sending module is used for sending a prompt for judging whether the awakening audio is reserved or not to a user when the awakening effect reaches a preset condition;
the first processing module is used for reserving the generated information of the awakening audio and deleting the awakening audio if the user replies the reservation;
and the second processing module is used for deleting the generation information of the awakening audio and deleting the awakening audio if the user response is not reserved.
It should be noted that the alarm clock control device provided by the embodiment of the invention can be applied to devices such as an intelligent alarm clock, a mobile phone, an intelligent household appliance and an intelligent home, which can perform alarm clock control.
The alarm clock control device provided by the embodiment of the invention can realize each process realized by the alarm clock control method in the method embodiment, and can achieve the same beneficial effect. To avoid repetition, further description is omitted here.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 3, including: memory 302, processor 301 and a computer program of an alarm clock control method stored on said memory 302 and executable on said processor 301, wherein:
the processor 301 is configured to call the computer program stored in the memory 302, and perform the following steps:
setting alarm clock wake-up time;
generating a wakeup audio according to music materials in a music library, wherein the music library comprises preset types of music materials;
and when the alarm clock wake-up time is reached, controlling the alarm clock equipment to play the wake-up audio.
Optionally, the generating the wake-up audio according to the music materials in the music library by the processor 301 includes:
randomly acquiring music materials from the music library to obtain random music materials;
and generating the random music material into a wake-up audio by a preset audio generation method.
Optionally, the step of generating the random musical material into a wake-up audio by the processor 301 through a preset audio generating method includes:
slicing the random music material to obtain music slices;
aiming at a current music slice, acquiring a next music slice matched with the tail of the current music slice;
and splicing the current music slice and the next music slice, and smoothing the spliced part to obtain the awakening audio.
Optionally, before generating the wake-up audio according to the music material in the music library, the processor 301 performs the following steps:
acquiring preference music of a user;
determining the music preference type of the user according to the preference music;
and acquiring corresponding music materials based on the music preference type, and adding the corresponding music materials into the music library according to the type.
Optionally, when the alarm clock wake-up time is reached, the processor 301 controls the alarm clock device to play the wake-up audio, including:
when the alarm clock wake-up time is reached, acquiring a preset volume curve;
and adjusting the awakening audio based on the volume curve, and controlling alarm clock equipment to play the adjusted awakening audio.
Optionally, before acquiring the preset volume curve when the alarm clock wake-up time is reached, the method executed by the processor 301 further includes:
determining the sleep quality of a user according to the sleep time and the sleep environment of the user;
and generating a corresponding volume curve before the alarm clock wake-up time is reached according to the sleep quality.
Optionally, when the alarm clock wake-up time is reached, after the alarm clock device is controlled to play the wake-up audio, the method executed by the processor 301 further includes:
acquiring the playing time of the awakening audio;
determining the awakening effect of the awakening audio according to the playing duration;
when the awakening effect reaches a preset condition, sending a prompt for judging whether the awakening audio is reserved to a user;
if the user replies the reservation, reserving the generated information of the awakening audio and deleting the awakening audio;
and if the user response is not reserved, deleting the generation information of the awakening audio and deleting the awakening audio.
The electronic equipment provided by the embodiment of the invention can realize each process realized by the alarm clock control method in the method embodiment, and can achieve the same beneficial effect. To avoid repetition, further description is omitted here.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program realizes each process of the alarm clock control method or the application-side alarm clock control method provided by the embodiment of the invention, can achieve the same technical effect, and is not repeated here in order to avoid repetition.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. An alarm clock control method is characterized by comprising the following steps:
setting alarm clock wake-up time;
generating a wake-up audio according to music materials in a music library, wherein the music library comprises preset types of music materials;
and when the alarm clock wake-up time is reached, controlling the alarm clock equipment to play the wake-up audio.
2. Alarm clock control method according to claim 1, wherein said generating wake-up audio from music material in a music library comprises:
randomly acquiring music materials from the music library to obtain random music materials;
and generating the random music materials into awakening audio by a preset audio generation method.
3. An alarm clock control method according to claim 2, wherein said generating the random music material into a wake-up audio by a preset audio generation method comprises:
slicing the random music material to obtain music slices;
aiming at a current music slice, acquiring a next music slice matched with the tail of the current music slice;
and splicing the current music slice and the next music slice, and smoothing the spliced part to obtain the awakening audio.
4. Alarm clock control method according to claim 1, characterized in that before said generating of wake-up audio from music material in a music library, it comprises:
acquiring preference music of a user;
determining the music preference type of the user according to the preference music;
and acquiring corresponding music materials based on the music preference type, and adding the corresponding music materials into the music library according to the type.
5. The alarm clock control method of claim 1, wherein controlling an alarm clock device to play the wake-up audio when the alarm clock wake-up time is reached comprises:
when the alarm clock wake-up time is reached, acquiring a preset volume curve;
and adjusting the awakening audio based on the volume curve, and controlling alarm clock equipment to play the adjusted awakening audio.
6. The alarm clock control method according to claim 5, wherein before acquiring a preset volume curve when the alarm clock wake-up time is reached, the method further comprises:
determining the sleep quality of a user according to the sleep time and the sleep environment of the user;
and generating a corresponding volume curve before the alarm clock wake-up time is reached according to the sleep quality.
7. Alarm clock control method according to any of the claims 1 to 6, wherein after controlling an alarm clock device to play the wake-up audio when the alarm clock wake-up time is reached, the method further comprises:
acquiring the playing time length of the awakening audio;
determining the awakening effect of the awakening audio according to the playing duration;
when the awakening effect reaches a preset condition, sending a prompt for judging whether the awakening audio is reserved to a user;
if the user replies the reservation, reserving the generated information of the awakening audio and deleting the awakening audio;
and if the user response is not reserved, deleting the generation information of the awakening audio and deleting the awakening audio.
8. An alarm clock control apparatus, characterized in that the alarm clock control apparatus comprises:
the setting module is used for setting the alarm clock wake-up time;
the generating module is used for generating awakening audio according to music materials in a music library, wherein the music library comprises preset types of music materials;
and the control module is used for controlling the alarm clock equipment to play the awakening audio when the alarm clock awakening time is reached.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the alarm clock control method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps in the alarm clock control method according to any of the claims 1 to 7.
CN202210833860.8A 2022-07-14 2022-07-14 Alarm clock control method and device, electronic equipment and storage medium Active CN115268248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210833860.8A CN115268248B (en) 2022-07-14 2022-07-14 Alarm clock control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210833860.8A CN115268248B (en) 2022-07-14 2022-07-14 Alarm clock control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115268248A true CN115268248A (en) 2022-11-01
CN115268248B CN115268248B (en) 2024-04-30

Family

ID=83765988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210833860.8A Active CN115268248B (en) 2022-07-14 2022-07-14 Alarm clock control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115268248B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1276307A1 (en) * 2001-07-09 2003-01-15 Sony International (Europe) GmbH Self modifying ringer melodies
CN1525268A (en) * 2003-02-28 2004-09-01 北京中星微电子有限公司 Alarm clock capable of uploading ring or music and method thereof
JP2008267964A (en) * 2007-04-19 2008-11-06 Matsushita Electric Ind Co Ltd Alarm clock
CN105657171A (en) * 2016-01-13 2016-06-08 广东欧珀移动通信有限公司 Ring tone setting method and system
US20160165038A1 (en) * 2014-12-05 2016-06-09 Microsoft Technology Licensing, Llc Digital assistant alarm system
CN105933515A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Alarm reminding method, device and mobile terminal
CN106161714A (en) * 2015-04-03 2016-11-23 中兴通讯股份有限公司 A kind of ring playing method and device, terminal
CN106357886A (en) * 2016-08-26 2017-01-25 努比亚技术有限公司 Method and device for managing alarm of intelligent watch
CN106681123A (en) * 2016-11-10 2017-05-17 浙江舒眠科技有限公司 Intelligent alarm clock adaptive control wake-up method and sleep monitoring system
CN106707727A (en) * 2016-12-31 2017-05-24 肇庆高新区黑阳科技有限公司 Electron alarm clock with function of playing random voice frequency
CN107018238A (en) * 2017-05-15 2017-08-04 硕诺科技(深圳)有限公司 A kind of music quarter-bell and its application method
CN107179678A (en) * 2017-07-19 2017-09-19 无锡西橙创星科技有限公司 A kind of intelligent alarm clock control system and method
CN107248415A (en) * 2017-07-10 2017-10-13 珠海格力电器股份有限公司 Alarm clock ringtone generation method and device and user terminal
CN107888752A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of based reminding method and device
WO2019056354A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Method and system for automatically adjusting alarm notification manner according to weather conditions
CN110430326A (en) * 2019-09-10 2019-11-08 Oppo广东移动通信有限公司 The tinkle of bells edit methods, device, mobile terminal and storage medium
CN110881074A (en) * 2018-09-06 2020-03-13 中兴通讯股份有限公司 Ring tone setting method, terminal and computer readable storage medium
CN111558120A (en) * 2020-05-07 2020-08-21 上海闻泰电子科技有限公司 Sleep wake-up method, device, computer equipment and computer readable storage medium
CN212214354U (en) * 2019-12-19 2020-12-25 应微智能科技(上海)有限公司 Intelligent awakening device and system
CN112235457A (en) * 2020-10-09 2021-01-15 珠海格力电器股份有限公司 Alarm clock reminding information playing method, device, equipment and medium
CN112487235A (en) * 2020-11-27 2021-03-12 珠海格力电器股份有限公司 Audio resource playing method and device, intelligent terminal and storage medium

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1276307A1 (en) * 2001-07-09 2003-01-15 Sony International (Europe) GmbH Self modifying ringer melodies
CN1525268A (en) * 2003-02-28 2004-09-01 北京中星微电子有限公司 Alarm clock capable of uploading ring or music and method thereof
JP2008267964A (en) * 2007-04-19 2008-11-06 Matsushita Electric Ind Co Ltd Alarm clock
US20160165038A1 (en) * 2014-12-05 2016-06-09 Microsoft Technology Licensing, Llc Digital assistant alarm system
CN106161714A (en) * 2015-04-03 2016-11-23 中兴通讯股份有限公司 A kind of ring playing method and device, terminal
CN105657171A (en) * 2016-01-13 2016-06-08 广东欧珀移动通信有限公司 Ring tone setting method and system
CN105933515A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Alarm reminding method, device and mobile terminal
CN106357886A (en) * 2016-08-26 2017-01-25 努比亚技术有限公司 Method and device for managing alarm of intelligent watch
CN107888752A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of based reminding method and device
CN106681123A (en) * 2016-11-10 2017-05-17 浙江舒眠科技有限公司 Intelligent alarm clock adaptive control wake-up method and sleep monitoring system
CN106707727A (en) * 2016-12-31 2017-05-24 肇庆高新区黑阳科技有限公司 Electron alarm clock with function of playing random voice frequency
CN107018238A (en) * 2017-05-15 2017-08-04 硕诺科技(深圳)有限公司 A kind of music quarter-bell and its application method
CN107248415A (en) * 2017-07-10 2017-10-13 珠海格力电器股份有限公司 Alarm clock ringtone generation method and device and user terminal
CN107179678A (en) * 2017-07-19 2017-09-19 无锡西橙创星科技有限公司 A kind of intelligent alarm clock control system and method
WO2019056354A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Method and system for automatically adjusting alarm notification manner according to weather conditions
CN110881074A (en) * 2018-09-06 2020-03-13 中兴通讯股份有限公司 Ring tone setting method, terminal and computer readable storage medium
CN110430326A (en) * 2019-09-10 2019-11-08 Oppo广东移动通信有限公司 The tinkle of bells edit methods, device, mobile terminal and storage medium
CN212214354U (en) * 2019-12-19 2020-12-25 应微智能科技(上海)有限公司 Intelligent awakening device and system
CN111558120A (en) * 2020-05-07 2020-08-21 上海闻泰电子科技有限公司 Sleep wake-up method, device, computer equipment and computer readable storage medium
CN112235457A (en) * 2020-10-09 2021-01-15 珠海格力电器股份有限公司 Alarm clock reminding information playing method, device, equipment and medium
CN112487235A (en) * 2020-11-27 2021-03-12 珠海格力电器股份有限公司 Audio resource playing method and device, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN115268248B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US10790919B1 (en) Personalized real-time audio generation based on user physiological response
CN110347367B (en) Volume adjusting method, terminal device, storage medium and electronic device
US8436241B2 (en) Beat enhancement device, sound output device, electronic apparatus and method of outputting beats
EP3085115A2 (en) Adapting audio based upon detected environmental acoustics
KR102346669B1 (en) Audio signal processing method and apparatus for controlling loudness level
WO2016063879A1 (en) Speech synthesis device and method
CN105390144B (en) A kind of audio-frequency processing method and apparatus for processing audio
KR20080011831A (en) Apparatus and method for controlling equalizer equiped with audio reproducing apparatus
CN109360558B (en) Voice response method and device
CN111895631A (en) Air conditioning system control method, air conditioner, computer device, and computer-readable storage medium
JP2017021125A (en) Voice interactive apparatus
US7571104B2 (en) Dynamic real-time cross-fading of voice prompts
JP2009093779A (en) Content reproducing device and contents reproducing method
WO2013127297A1 (en) Mobile terminal and sound chamber adjusting method
CN110832830A (en) Volume adjusting method and electronic equipment
CN105828254B (en) A kind of voice frequency regulating method and device
CN105989824B (en) Karaoke system of mobile equipment and mobile equipment
CN113531844A (en) Control method and system for noise reduction of air conditioner, electronic equipment and storage medium
CN109510907B (en) Ring tone setting method and device
CN109829075A (en) Method and device for intelligently playing music
CN115268248B (en) Alarm clock control method and device, electronic equipment and storage medium
EP4088478A1 (en) A computer implemented method, device and computer program product for setting a playback speed of media content comprising audio
KR20060083862A (en) System and method for synthesizing music and voice, and service system and method thereof
JP2007256456A (en) Content providing apparatus and content providing method
CN115177956A (en) Music game score generation method, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant