CN107423950B - Alarm clock setting method and device - Google Patents

Alarm clock setting method and device Download PDF

Info

Publication number
CN107423950B
CN107423950B CN201710550079.9A CN201710550079A CN107423950B CN 107423950 B CN107423950 B CN 107423950B CN 201710550079 A CN201710550079 A CN 201710550079A CN 107423950 B CN107423950 B CN 107423950B
Authority
CN
China
Prior art keywords
date
prompt
alarm clock
classification
time
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.)
Active
Application number
CN201710550079.9A
Other languages
Chinese (zh)
Other versions
CN107423950A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710550079.9A priority Critical patent/CN107423950B/en
Publication of CN107423950A publication Critical patent/CN107423950A/en
Application granted granted Critical
Publication of CN107423950B publication Critical patent/CN107423950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • 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
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Electric Clocks (AREA)

Abstract

The disclosure relates to an alarm clock setting method and device, wherein the method comprises the following steps: receiving a voice instruction for setting an alarm clock; and acquiring the prompting date and prompting time of the alarm clock carried in the voice instruction, determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and prompting time. Therefore, through the voice instruction, the alarm clock is not only set for the prompting date, but is repeatedly set according to the date classification and the prompting time of the prompting date; the problem of can only set up the alarm clock once according to voice command among the prior art is solved to alarm clock setting efficiency has been improved, user experience has been improved.

Description

Alarm clock setting method and device
Technical Field
The disclosure relates to the technical field of alarm clocks, in particular to an alarm clock setting method and device.
Background
With the development of voice technology, more and more voice interaction products are available, and people are also used to setting some common functions in a voice mode. For example, a user can set an alarm clock by voice, when the user sets the alarm clock, the user can say that the user reminds me of getting up at 7 am tomorrow, and the alarm clock of the Chinese user, which is used to a common workday, is fixed, so that the user needs to say the alarm clock once before going to sleep every day.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an alarm clock setting method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided an alarm clock setting method, including:
receiving a voice instruction for setting an alarm clock;
acquiring the prompting date and the prompting time of an alarm clock carried in the voice instruction;
and determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and the prompting time.
Optionally, the determining the date classification of the reminder date includes:
determining a date attribute of the prompt date;
determining the date classification with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
Optionally, the date attribute of the prompt date is a working day or a non-working day.
Optionally, the setting the alarm clock according to the determined date classification and the prompt time includes: and setting an alarm clock with the prompting time for the date in the date classification.
Optionally, before setting the alarm clock according to the determined date classification and the prompt time, the method further includes:
outputting prompt inquiry information, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
acquiring prompt confirmation information based on the prompt inquiry information;
the setting the alarm clock according to the determined date classification and the prompt time comprises:
and when the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time, setting the alarm clock according to the determined date classification and the prompt time.
Optionally, the method further comprises:
and when the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time, setting the alarm clock with the prompt time for the prompt date.
Optionally, at least one of the prompt inquiry information and the prompt confirmation information is voice.
According to a second aspect of the embodiments of the present disclosure, there is provided an alarm clock setting apparatus including:
a receiving module configured to receive a voice instruction to set an alarm clock;
the first acquisition module is configured to acquire the prompting date and the prompting time of the alarm clock carried in the voice instruction;
a determination module configured to determine a date classification of the reminder date;
a setting module configured to set the alarm clock according to the determined date classification and the reminder time.
Optionally, the determining module includes: a first determination submodule and a second determination submodule;
the first determination submodule is configured to determine a date attribute of the prompt date;
the second determination submodule is configured to classify the date with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
Optionally, the date attribute of the prompt date is a working day or a non-working day.
Optionally, the setting module is configured to set an alarm clock with the reminder time for the date in the date classification.
Optionally, the apparatus further comprises: the output module and the second acquisition module;
the output module is configured to output prompt inquiry information before the setting module sets the alarm clock according to the determined date classification and the prompt time, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
the second obtaining module is configured to obtain prompt confirmation information based on the prompt inquiry information;
the setting module includes: a judgment submodule and a setting submodule;
the judging submodule is configured to judge whether the prompt confirmation information is used for indicating whether the alarm clock needs to be set according to the determined date classification and the prompt time;
the setting submodule is configured to set the alarm clock according to the determined date classification and the prompt time when the judging submodule judges that the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time.
Optionally, the setting sub-module is further configured to set an alarm clock with the prompting time for the prompting date when the judging sub-module judges that the prompting confirmation information indicates that the alarm clock is not required to be set according to the determined date classification and the prompting time.
Optionally, at least one of the prompt inquiry information and the prompt confirmation information is voice.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including: a memory, a processor and a computer program, the processor running the computer program to perform the method of:
receiving a voice instruction for setting an alarm clock;
acquiring the prompting date and the prompting time of an alarm clock carried in the voice instruction;
and determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and the prompting time.
Optionally, the determining the date classification of the reminder date includes:
determining a date attribute of the prompt date;
determining the date classification with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
Optionally, the date attribute of the prompt date is a working day or a non-working day.
Optionally, the setting the alarm clock according to the determined date classification and the prompt time includes: and setting an alarm clock with the prompting time for the date in the date classification.
Optionally, before setting the alarm clock according to the determined date classification and the prompt time, the method further includes:
outputting prompt inquiry information, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
acquiring prompt confirmation information based on the prompt inquiry information;
the setting the alarm clock according to the determined date classification and the prompt time comprises:
and when the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time, setting the alarm clock according to the determined date classification and the prompt time.
Optionally, the method further comprises:
and when the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time, setting the alarm clock with the prompt time for the prompt date.
Optionally, at least one of the prompt inquiry information and the prompt confirmation information is voice.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of:
receiving a voice instruction for setting an alarm clock;
acquiring the prompting date and the prompting time of an alarm clock carried in the voice instruction;
and determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and the prompting time.
Optionally, the determining the date classification of the reminder date includes:
determining a date attribute of the prompt date;
determining the date classification with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
Optionally, the date attribute of the prompt date is a working day or a non-working day.
Optionally, the setting the alarm clock according to the determined date classification and the prompt time includes: and setting an alarm clock with the prompting time for the date in the date classification.
Optionally, before setting the alarm clock according to the determined date classification and the prompt time, the method further includes:
outputting prompt inquiry information, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
acquiring prompt confirmation information based on the prompt inquiry information;
the setting the alarm clock according to the determined date classification and the prompt time comprises:
and when the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time, setting the alarm clock according to the determined date classification and the prompt time.
Optionally, the method further comprises:
and when the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time, setting the alarm clock with the prompt time for the prompt date.
Optionally, at least one of the prompt inquiry information and the prompt confirmation information is voice.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: receiving a voice instruction for setting an alarm clock; and acquiring the prompting date and prompting time of the alarm clock carried in the voice instruction, determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and prompting time. Therefore, through the voice instruction, the alarm clock is not only set for the prompting date, but is repeatedly set according to the date classification and the prompting time of the prompting date; the problem of can only set up the alarm clock once according to voice command among the prior art is solved to alarm clock setting efficiency has been improved, user experience has been improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of alarm setting according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an alarm clock setting method according to another exemplary embodiment.
Fig. 3 is a flowchart illustrating an alarm clock setting method according to another exemplary embodiment.
Fig. 4 is a block diagram illustrating an alarm clock setting apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an alarm clock setting apparatus according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating an alarm clock setting apparatus according to another exemplary embodiment.
Fig. 7 is a block diagram illustrating an alarm clock setting apparatus 800 according to an exemplary embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating an alarm clock setting method according to an exemplary embodiment, where the alarm clock setting method is used in a terminal, as shown in fig. 1, and includes the following steps.
In step S11, a voice instruction to set an alarm clock is received.
In step S12, the prompting date and the prompting time of the alarm clock carried in the voice instruction are acquired.
In step S13, the date classification of the reminder date is determined, and the alarm clock is set according to the determined date classification and the reminder time.
In this embodiment, a voice instruction for setting an alarm clock is received, where the voice instruction carries a prompting date and a prompting time of the alarm clock to be set, and the voice instruction is used to set the prompting date and the prompting time of the alarm clock, where the prompting date is, for example, information of year, month and day, and the prompting time is, for example, information of time, minute and second, and this embodiment is not limited thereto. And then acquiring the prompting date and prompting time of the alarm clock carried in the voice instruction, and determining the date classification of the prompting date according to the acquired prompting date. And then setting an alarm clock according to the determined date classification and the acquired prompt time.
In summary, the alarm clock setting method provided in this embodiment receives a voice instruction for setting an alarm clock; and acquiring the prompting date and prompting time of the alarm clock carried in the voice instruction, determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and prompting time. Therefore, through the voice instruction, the alarm clock is not only set for the prompting date, but is repeatedly set according to the date classification and the prompting time of the prompting date; the problem of can only set up the alarm clock once according to voice command among the prior art is solved to alarm clock setting efficiency has been improved, user experience has been improved.
Fig. 2 is a flowchart illustrating an alarm clock setting method according to another exemplary embodiment, and as shown in fig. 2, the alarm clock setting method is used in a terminal and includes the following steps.
In step S21, a voice instruction to set an alarm clock is received.
In step S22, the prompting date and the prompting time of the alarm clock carried in the voice instruction are acquired.
In this embodiment, the specific implementation process of S21-S22 may refer to the related description of the embodiment shown in fig. 1, and is not described herein again.
In the following, the above steps are described by way of example, and the voice instruction for setting the alarm clock is, for example, a piece of voice "call me to get up at 7 am in the next morning", which may be the voice of the user speaking collected in real time in this embodiment. Correspondingly, tomorrow is the prompting date of the alarm clock, and 7 o' clock in the morning is the prompting time of the alarm clock, wherein if today is 1 month and 1 day, tomorrow is 1 month and 2 days. Therefore, the prompting date of the alarm clock carried in the acquired voice instruction is 1 month and 2 days, and the prompting time is 7 click.
The voice instruction for setting the alarm clock is, for example, a voice "1 month and 2 days remind me at 7 pm", accordingly, 1 month and 2 days are the prompting date of the alarm clock, and 7 pm completes the prompting time of the alarm clock. Therefore, the prompting date of the alarm clock carried in the acquired voice instruction is 1 month and 2 days, and the prompting time is 19 click.
Alternatively, one possible implementation of determining a date classification for a reminder date may include: steps S23 and S24.
In step S23, the date attribute of the cue date is determined.
In step S24, the date having the date attribute is classified and determined as the date classification of the presentation date.
In the present embodiment, each date has a date attribute corresponding to the date, and dates belonging to the same category have the same date attribute, that is, dates having the same date attribute belong to the same category date. Therefore, the present embodiment determines the date attribute of the cue date based on the cue date, and then determines the date classification having the date attribute, so that the cue date belongs to the date classification, and thus the present embodiment determines the date classification having the date attribute as the date classification of the cue date.
Optionally, the date attribute of the reminder date is a weekday or a non-weekday. In this embodiment, the date attribute of the date is divided into two types, one is a workday, and the other is a non-workday, if 1 month and 2 days are workdays, the present embodiment determines that the date attribute of the 1 month and 2 days is a workday, determines the date classification with the date attribute as a workday, that is, the date classification is a workday classification, and then determines that the date classification with the date prompting is a workday classification. If 1 month and 2 days are non-workdays, the present embodiment determines that the date attribute of 1 month and 2 days is non-workdays, determines the date classification with the date attribute of non-workdays, that is, the date classification is non-workday classification, and then determines that the date classification with the reminder date is non-workday classification. The non-workdays can include legal holidays and weekends, among others.
Optionally, the date attribute of the reminder date is one of monday to day. The date attribute of the date in this embodiment is divided into seven types, which are monday, tuesday, wednesday, thursday, friday, saturday, and sunday, respectively. If 1 month 2 day is monday, the present embodiment determines that the date attribute of 1 month 2 day is monday, determines the date classification having the date attribute of monday, i.e., the date classification is monday classification, and then determines that the date classification as the reminder date is monday classification.
Optionally, the date attribute of the reminder date is an even date or an odd date. The date attribute of the date in this embodiment is divided into two types, one is an even date, and the other is an odd date. For example, if the date of 1 month and 2 days is an even date, the present embodiment determines that the date attribute of the date of 1 month and 2 days is an even date, determines that the date category having the date attribute of an even date, that is, the date category is an even date category, and then determines that the date category that is the reminder date is an even date category.
Note that the date attribute in the present embodiment is not limited to the above example.
Alternatively, the date attribute may be set by the user according to the preference of the user, or may be a default date attribute.
Optionally, one possible implementation of setting the alarm clock according to the determined date classification and the prompting time may include: step S25.
In step S25, an alarm clock having the cue time is set for the date in the date classification.
In this embodiment, after determining the date classification of the prompt date, an alarm clock with the prompt time is set for the date in the date classification, for example: and setting the alarm clock at 7 am for the dates in the date classification, so that the purpose of repeatedly setting the same alarm clock for the dates classified on the same date is achieved.
If the date classification is a workday classification, alarm clocks 7 am are set for all workdays.
If the date is classified as Monday, then for all Mondays, an alarm clock of 7 am is set.
If the date is classified as an even date, then for all even dates, an alarm clock of 7 am is set.
In summary, the alarm clock setting method provided in this embodiment receives a voice instruction for setting an alarm clock; acquiring the prompting date and prompting time of an alarm clock carried in the voice instruction, and determining the date attribute of the prompting date; and classifying the dates with the date attributes, determining the dates as the date classification of the prompting dates, and setting the alarm clock with the prompting time for the dates in the date classification. Therefore, through the voice instruction, the same alarm clock is set for the dates belonging to the same date classification with the prompting date; the problem of can only set up the alarm clock once according to voice command among the prior art is solved to alarm clock setting efficiency has been improved, user experience has been improved.
Fig. 3 is a flowchart illustrating an alarm clock setting method according to another exemplary embodiment, and the alarm clock setting method is used in a terminal as illustrated in fig. 3, and includes the following steps.
In step S31, a voice instruction to set an alarm clock is received.
In step S32, the prompting date and the prompting time of the alarm clock carried in the voice instruction are acquired.
In step S33, the date classification of the cue date is determined.
In this embodiment, for a specific implementation process of S31-S32, reference may be made to the related description of the embodiment shown in fig. 1 or fig. 2, and details are not repeated here.
In step S34, prompt inquiry information is output.
In this embodiment, after determining the date classification of the reminder date according to the reminder date, prompt inquiry information is output, where the prompt inquiry information is used to prompt whether the alarm clock needs to be set according to the determined date classification and the prompt time. In this embodiment, the prompt query information may be output by voice, or the prompt query information may be output by text.
In step S35, prompt confirmation information is acquired based on the prompt inquiry information.
In this embodiment, after outputting the prompt query information, the user may determine whether to set the alarm clock according to the determined date classification and the prompt time according to the prompt query information, and then input the prompt confirmation information, and accordingly, the present embodiment obtains the prompt confirmation information. In this embodiment, the prompt confirmation information may be, for example, voice information.
In step S36, it is determined whether or not the reminder confirmation information indicates that the alarm clock needs to be set according to the determined date classification and the reminder time. If so, go to S37, otherwise, go to S38.
In this embodiment, after the prompt confirmation information is acquired, whether the prompt confirmation information indicates that the alarm clock needs to be set according to the determined date classification and the prompt time is judged. And executing S37 when the alarm clock needs to be set according to the determined date classification and the prompting time according to the judgment of the prompting confirmation information, and executing S38 when the alarm clock does not need to be set according to the determined date classification and the prompting time according to the judgment of the prompting confirmation information.
In step S37, the alarm clock is set according to the determined date classification and the prompting time.
In this embodiment, for a specific implementation process of S37, refer to the description related to the embodiment shown in fig. 1 or fig. 2, and details are not described here again.
In step S38, an alarm clock having the cue time is set for the cue date.
In this embodiment, when the prompt confirmation information is used to indicate that the alarm clock does not need to be set according to the determined date classification and the prompt time, an alarm clock with the prompt time is set for the prompt date, for example: the alarm clock of 7 am is set for day 2 of 1 month, and the alarm clock of 7 am is not set for other dates belonging to the same date category as day 2 of 1 month.
For example: the voice instruction collected in this embodiment is the voice of the user, "call me to get up at 7 am tomorrow", and this embodiment, for example, divides the date classification into a working day classification and a non-working day classification, and if the present embodiment determines that tomorrow is 1 month and 2 days and belongs to the working day classification, this embodiment outputs voice prompt inquiry information "whether to call you to get up at seven am every working day. If the user needs to set an alarm clock of 7 am for each working day, the user can input voice "good", the voice of "good" is used for indicating that an alarm clock of 7 am needs to be set for each working day, and then the embodiment sets an alarm clock of 7 am for each working day. If the user does not need to set the alarm clock of 7 am to each working day, the user can input voice "not good", the voice that is not good is used for indicating and confirming that the alarm clock of 7 am is not set to the working day, and then the embodiment only sets the alarm clock of 7 am to tomorrow.
In summary, the alarm clock setting method provided in this embodiment receives a voice instruction for setting an alarm clock; and acquiring the prompting date and prompting time of the alarm clock carried in the voice instruction, determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and the prompting time when the acquired prompting confirmation information indicates that the determined date classification and the prompting time are required. Therefore, through the voice instruction, the alarm clock is not only set for the prompting date, but is repeatedly set according to the date classification and the prompting time of the prompting date; the problem of can only set up an alarm clock according to voice command among the prior art is solved to improve alarm clock and set up efficiency, improved user experience, and just can set up a lot of alarm clocks through pronunciation once when the user agrees, guaranteed user's nature controlled.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a block diagram illustrating an alarm clock setting apparatus according to an exemplary embodiment. The alarm clock setting device can be realized by software, hardware or a combination of the software and the hardware to be part or all of an electronic device comprising a touch display screen. Referring to fig. 4, the apparatus includes a receiving module 410, a first obtaining module 420, a determining module 430, and a setting module 440.
A receiving module 410 configured to receive a voice instruction to set an alarm clock.
A first obtaining module 420 configured to obtain a prompting date and a prompting time of an alarm clock carried in the voice instruction.
A determining module 430 configured to determine a date classification of the reminder date.
A setting module 440 configured to set the alarm clock according to the date classification determined by the determining module 430 and the prompt time acquired by the first acquiring module 420.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an alarm clock setting apparatus according to another exemplary embodiment. The alarm clock setting device can be realized by software, hardware or a combination of the software and the hardware to be part or all of an electronic device comprising a touch display screen. Referring to fig. 5, in the apparatus of this embodiment, based on the embodiment of the apparatus shown in fig. 4, the determining module 430 includes: a first determination submodule 431 and a second determination submodule 432.
The first determining submodule 431 is configured to determine a date attribute of the reminder date.
The second determining submodule 432 is configured to determine the date category having the date attribute as the date category of the reminder date.
Wherein dates belonging to the same category have the same date attribute.
Optionally, the date attribute of the prompt date is a working day or a non-working day.
Optionally, the setting module 440 is configured to set an alarm clock with the reminder time for the date in the date classification.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an alarm clock setting apparatus according to another exemplary embodiment. The alarm clock setting device can be realized by software, hardware or a combination of the software and the hardware to be part or all of an electronic device comprising a touch display screen. Referring to fig. 6, the apparatus of this embodiment is based on the embodiment of the apparatus shown in fig. 4 or fig. 5, and the apparatus further includes: an output module 450 and a second acquisition module 460.
The output module 450 is configured to output prompt query information before the setting module 440 sets the alarm clock according to the determined date classification and the prompt time, where the prompt query information is used to prompt whether the alarm clock needs to be set according to the determined date classification and the prompt time.
The second obtaining module 460 is configured to obtain prompt confirmation information based on the prompt inquiry information output by the output module 450.
The setup module 440 includes: a judgment sub-module 441 and a setting sub-module 442.
The determining sub-module 441 is configured to determine that the prompt confirmation information obtained by the second obtaining module 460 is used to indicate whether the alarm clock needs to be set according to the determined date classification and the prompt time.
The setting sub-module 442 is configured to set the alarm clock according to the determined date classification and the prompt time when the judging sub-module 441 judges that the prompt confirmation information indicates that the alarm clock needs to be set according to the determined date classification and the prompt time.
Optionally, the setting sub-module 442 is further configured to set an alarm clock with the prompting time for the prompting date when the judging sub-module 441 judges that the prompting confirmation information indicates that the alarm clock is not required to be set according to the determined date classification and the prompting time.
Optionally, at least one of the prompt inquiry information and the prompt confirmation information is voice.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In addition, according to an embodiment of the present disclosure, there is also provided a terminal including: a memory, a processor and a computer program, the processor running the computer program to perform the method of:
receiving a voice instruction for setting an alarm clock;
acquiring the prompting date and the prompting time of an alarm clock carried in the voice instruction;
and determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and the prompting time.
Optionally, the determining the date classification of the reminder date includes:
determining a date attribute of the prompt date;
determining the date classification with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
Optionally, the date attribute of the prompt date is a working day or a non-working day.
Optionally, the setting the alarm clock according to the determined date classification and the prompt time includes:
and setting an alarm clock with the prompting time for the date in the date classification.
Optionally, before setting the alarm clock according to the determined date classification and the prompt time, the method further includes:
outputting prompt inquiry information, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
acquiring prompt confirmation information based on the prompt inquiry information;
the setting the alarm clock according to the determined date classification and the prompt time comprises:
and when the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time, setting the alarm clock according to the determined date classification and the prompt time.
Optionally, at least one of the prompt inquiry information and the prompt confirmation information is voice.
Optionally, the method further comprises:
and when the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time, setting the alarm clock with the prompt time for the prompt date.
Fig. 7 is a block diagram illustrating an alarm clock setting apparatus 800 according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a device 800, enable the device 800 to perform a method of alarm setting, the method comprising:
receiving a voice instruction for setting an alarm clock;
acquiring the prompting date and the prompting time of an alarm clock carried in the voice instruction;
and determining the date classification of the prompting date, and setting the alarm clock according to the determined date classification and the prompting time.
Optionally, the determining the date classification of the reminder date includes:
determining a date attribute of the prompt date;
determining the date classification with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
Optionally, the date attribute of the prompt date is a working day or a non-working day.
Optionally, the setting the alarm clock according to the determined date classification and the prompt time includes:
and setting an alarm clock with the prompting time for the date in the date classification.
Optionally, before setting the alarm clock according to the determined date classification and the prompt time, the method further includes:
outputting prompt inquiry information, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
acquiring prompt confirmation information based on the prompt inquiry information;
the setting the alarm clock according to the determined date classification and the prompt time comprises:
and when the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time, setting the alarm clock according to the determined date classification and the prompt time.
Optionally, at least one of the prompt inquiry information and the prompt confirmation information is voice.
Optionally, the method further comprises:
and when the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time, setting the alarm clock with the prompt time for the prompt date.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An alarm clock setting method is characterized by comprising the following steps:
receiving a voice instruction for setting an alarm clock;
acquiring the prompting date and the prompting time of an alarm clock carried in the voice instruction;
determining date classification of the prompting date, and setting the alarm clock according to the determined date classification and the prompting time;
before the alarm clock is set according to the determined date classification and the prompt time, the method further comprises the following steps:
outputting prompt inquiry information, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
acquiring prompt confirmation information based on the prompt inquiry information;
wherein at least one of the prompt inquiry information and the prompt confirmation information is voice;
the setting the alarm clock according to the determined date classification and the prompt time comprises:
and when the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time, setting the alarm clock for all dates in the determined date classification according to the determined date classification and the prompt time.
2. The method of claim 1, wherein determining the date classification for the reminder date comprises:
determining a date attribute of the prompt date;
determining the date classification with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
3. The method of claim 2, wherein the date attribute of the reminder date is a weekday or a non-weekday.
4. The method of claim 1, wherein setting the alarm clock according to the determined date classification and the reminder time comprises:
and setting an alarm clock with the prompting time for the date in the date classification.
5. The method of claim 1, further comprising:
when the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time, setting the alarm clock with the prompt time for the prompt date;
or at least one of the prompt inquiry information and the prompt confirmation information is voice, and when the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time, the alarm clock with the prompt time is set for the prompt date.
6. An alarm clock setting device, comprising:
a receiving module configured to receive a voice instruction to set an alarm clock;
the first acquisition module is configured to acquire the prompting date and the prompting time of the alarm clock carried in the voice instruction;
a determination module configured to determine a date classification of the reminder date;
a setting module configured to set the alarm clock according to the determined date classification and the reminder time;
the device further comprises: the output module and the second acquisition module;
the output module is configured to output prompt inquiry information before the setting module sets the alarm clock according to the determined date classification and the prompt time, wherein the prompt inquiry information is used for prompting whether the alarm clock needs to be set according to the determined date classification and the prompt time;
the second obtaining module is configured to obtain prompt confirmation information based on the prompt inquiry information;
wherein at least one of the prompt inquiry information and the prompt confirmation information is voice;
the device further comprises:
the setting module includes: a judgment submodule and a setting submodule;
the judging submodule is configured to judge whether the prompt confirmation information is used for indicating whether the alarm clock needs to be set according to the determined date classification and the prompt time;
the setting submodule is configured to set the alarm clock for all dates in the determined date classification according to the determined date classification and the prompt time when the judging submodule judges that the prompt confirmation information is used for indicating that the alarm clock needs to be set according to the determined date classification and the prompt time.
7. The apparatus of claim 6, wherein the determining module comprises: a first determination submodule and a second determination submodule;
the first determination submodule is configured to determine a date attribute of the prompt date;
the second determination submodule is configured to classify the date with the date attribute as the date classification of the prompt date;
wherein dates belonging to the same category have the same date attribute.
8. The apparatus of claim 7, wherein the date attribute of the reminder date is a weekday or a non-weekday.
9. The apparatus of claim 6, wherein the setting module is configured to set an alarm clock having the reminder time for a date in the date classification.
10. The apparatus according to claim 6, wherein the setting sub-module is further configured to set an alarm clock having the reminder time for the reminder date when the judgment sub-module judges that the reminder confirmation information indicates that the alarm clock does not need to be set according to the determined date classification and the reminder time;
or, at least one of the prompt inquiry information and the prompt confirmation information is voice, and the setting sub-module is further configured to set an alarm clock having the prompt time for the prompt date when the judging sub-module judges that the prompt confirmation information is used for indicating that the alarm clock is not required to be set according to the determined date classification and the prompt time.
11. A terminal, comprising: memory, a processor and a computer program, the processor running the computer program to perform the method of any one of claims 1-5.
12. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201710550079.9A 2017-07-07 2017-07-07 Alarm clock setting method and device Active CN107423950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710550079.9A CN107423950B (en) 2017-07-07 2017-07-07 Alarm clock setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710550079.9A CN107423950B (en) 2017-07-07 2017-07-07 Alarm clock setting method and device

Publications (2)

Publication Number Publication Date
CN107423950A CN107423950A (en) 2017-12-01
CN107423950B true CN107423950B (en) 2021-07-23

Family

ID=60427034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710550079.9A Active CN107423950B (en) 2017-07-07 2017-07-07 Alarm clock setting method and device

Country Status (1)

Country Link
CN (1) CN107423950B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989401B (en) * 2018-07-02 2020-11-24 百度在线网络技术(北京)有限公司 Alarm clock setting method, device, terminal, server and storage medium
CN111276136A (en) * 2018-12-04 2020-06-12 北京京东尚科信息技术有限公司 Method, apparatus, system, and medium for controlling electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082855A (en) * 2010-12-30 2011-06-01 东莞宇龙通信科技有限公司 Method for realizing alarm clock reminding on electronic terminal and electronic terminal
CN104951077A (en) * 2015-06-24 2015-09-30 百度在线网络技术(北京)有限公司 Man-machine interaction method and device based on artificial intelligence and terminal equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040066710A1 (en) * 2002-10-03 2004-04-08 Yuen Wai Man Voice-commanded alarm clock system, and associated methods
CN101859093B (en) * 2010-06-01 2011-12-28 华为终端有限公司 Realizing method and device of alarm clock in electronic equipment
CN102957771A (en) * 2011-08-31 2013-03-06 深圳富泰宏精密工业有限公司 Method and system for setting alarm clock
CN102750630B (en) * 2012-07-09 2016-05-18 宇龙计算机通信科技(深圳)有限公司 Automatically adjust the method and apparatus of alarm clock
US20140074535A1 (en) * 2012-09-10 2014-03-13 Vee-How Philip WOO-KWAN-CHUNG System and method for alarm and calendar event management
CN103475786A (en) * 2013-09-25 2013-12-25 上海斐讯数据通信技术有限公司 Method and system for setting mobile terminal alarm clock
TWI493300B (en) * 2013-11-22 2015-07-21 Acer Inc System and method for managing alarm clock
CN104853031A (en) * 2015-03-19 2015-08-19 惠州Tcl移动通信有限公司 Method and terminal for controlling alarm clock
CN106409295B (en) * 2015-07-31 2020-06-16 腾讯科技(深圳)有限公司 Method and device for recognizing time information from natural voice information
CN105872204A (en) * 2016-03-17 2016-08-17 北京百纳威尔科技有限公司 Alarm clock control method and apparatus and electronic equipment
CN106921794B (en) * 2017-02-09 2020-08-14 歌尔股份有限公司 Method and device for realizing alarm clock on intelligent equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082855A (en) * 2010-12-30 2011-06-01 东莞宇龙通信科技有限公司 Method for realizing alarm clock reminding on electronic terminal and electronic terminal
CN104951077A (en) * 2015-06-24 2015-09-30 百度在线网络技术(北京)有限公司 Man-machine interaction method and device based on artificial intelligence and terminal equipment

Also Published As

Publication number Publication date
CN107423950A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
KR101750666B1 (en) Method and device for intelligent alert on vehicle restriction
CN106325674B (en) Message prompting method and device
CN105898032B (en) method and device for adjusting prompt tone
KR102257792B1 (en) Off-screen display method and device
US9661132B2 (en) Method, apparatus, and storage medium for displaying a conversation interface
EP3041204A1 (en) Method for prompting calling request and device for the same
CN111240779A (en) Calendar display method, device and storage medium
EP2977945A1 (en) Method and device for agenda management
US11194297B2 (en) Method and apparatus for controlling alarm clock
EP3016048A1 (en) Method and device for displaying a reminder based on geographic criteria
US20170289808A1 (en) Method and device for information presentation and computer-readable medium
CN106843627B (en) Recording method, device and equipment of calendar event
US9924334B1 (en) Message pushing method, terminal equipment and computer-readable storage medium
CN105611048A (en) Alarm clock prompt method and device, and mobile terminal
US11507264B2 (en) Method and device for managing information
CN107423950B (en) Alarm clock setting method and device
CN106921797A (en) Information prompting method and device
EP3125514A1 (en) Method and device for state notification
CN107132908B (en) Image updating method and device
CN105786561B (en) Method and device for calling process
US20170147593A1 (en) Contact managing method and apparatus, and storage medium
CN107809538B (en) Alarm clock reminding method and device and computer readable storage medium
CN107896277B (en) Method and device for setting alarm clock reminding mode and computer readable storage medium
CN111182154B (en) Schedule processing method, device and system
CN106210320A (en) Time prompting method and device

Legal Events

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