CN111526244A - Alarm clock processing method and electronic equipment - Google Patents

Alarm clock processing method and electronic equipment Download PDF

Info

Publication number
CN111526244A
CN111526244A CN202010256478.6A CN202010256478A CN111526244A CN 111526244 A CN111526244 A CN 111526244A CN 202010256478 A CN202010256478 A CN 202010256478A CN 111526244 A CN111526244 A CN 111526244A
Authority
CN
China
Prior art keywords
voice
alarm clock
mode
response
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010256478.6A
Other languages
Chinese (zh)
Inventor
董秋敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010256478.6A priority Critical patent/CN111526244A/en
Publication of CN111526244A publication Critical patent/CN111526244A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • 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
    • G10L2015/223Execution procedure of a spoken command
    • 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
    • G10L2015/225Feedback of the input speech

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Electric Clocks (AREA)

Abstract

The invention provides an alarm clock processing method and electronic equipment, and belongs to the technical field of communication. The alarm clock control method comprises the steps of acquiring preset awakening modes of the alarm clock when the current time reaches the preset time of the alarm clock, outputting corresponding awakening voices according to different awakening modes, and turning off the alarm clock when the corresponding responding voices and the awakening voices meet preset matching conditions after receiving the corresponding responding voices of the awakening voices. The embodiment of the invention can simplify the operation process of the alarm clock, improve the efficiency of the user for operating the alarm clock and the user experience, and ensure the timeliness for awakening the user.

Description

Alarm clock processing method and electronic equipment
Technical Field
The invention belongs to the technical field of communication, and particularly relates to an alarm clock processing method and electronic equipment.
Background
In order to better manage time, people often use electronic devices to set functions of an alarm clock for schedule reminding, sleep wakeup, and the like, after the alarm clock is set to ring time, the alarm can ring when the set ring time arrives, so as to remind a user, the user can manually turn off the alarm, or after the alarm clock rings for more than preset time, the alarm is automatically turned off.
However, in the conventional alarm, while waking up the user, the user may fall into a sleep state again after turning off the alarm during the half sleep. Meanwhile, at present, a delayed ringing mode that the alarm rings again after 10 minutes or 15 minutes is set is usually adopted to wake up the user for multiple times, but the delayed ringing mode needs to be set when the user turns off the alarm, so that the operation is complicated, the user feels dislike when the alarm rings are waken up for multiple times in a short time, and the user cannot be waken up on time; there are also ways to notify relatives and friends to contact the user for waking up through short messages, social platforms, etc., but this way is inconvenient to communicate, resulting in difficulty in ensuring effectiveness and timeliness of waking up the user.
Disclosure of Invention
The invention provides an alarm clock processing method and electronic equipment, which are used for solving the problems that the existing alarm clock is complicated in operation process and effectiveness and timeliness of awakening a user are difficult to guarantee.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an alarm clock processing method, which is applied to an electronic device, and the method may include:
acquiring an awakening mode of an alarm clock under the condition that the current time reaches the preset time of the alarm clock;
starting the alarm clock to output a wake-up voice corresponding to the wake-up mode;
receiving a response voice of a user for the wake-up voice input;
and under the condition that the response voice and the awakening voice meet a preset matching condition, closing the alarm clock.
In a second aspect, an embodiment of the present invention provides an electronic device, which may include:
the wake-up mode acquisition module is used for acquiring the wake-up mode of the alarm clock under the condition that the current time reaches the preset time of the alarm clock;
the awakening voice output module is used for starting the alarm clock to output awakening voice corresponding to the awakening mode;
a response voice receiving module for receiving a response voice of the user for the wake-up voice input;
and the alarm clock closing module is used for closing the alarm clock under the condition that the response voice and the awakening voice meet the preset matching condition.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the alarm clock processing method according to the first aspect.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the alarm clock processing method according to the first aspect.
In the embodiment of the invention, the preset awakening mode of the alarm clock can be acquired when the current time reaches the preset time of the alarm clock, the corresponding awakening voice is output according to different awakening modes, and the alarm clock is closed when the response voice corresponding to the awakening voice is received and meets the preset matching condition with the awakening voice. According to the embodiment of the invention, the operation of the alarm clock is realized in a voice interaction mode, the user can turn off the alarm clock by inputting the response voice matched with the awakening voice without manually operating the electronic equipment, the operation process of the alarm clock can be simplified, and the efficiency of the user for operating the alarm clock and the user experience are improved. In addition, the alarm clock can be turned off only when the response voice input by the user and the awakening voice meet the preset matching condition, so that the condition that the user falls into sleep again can be avoided, the effectiveness and timeliness of awakening the user are guaranteed, and the user experience is improved.
Drawings
FIG. 1 is a flowchart illustrating steps of an alarm clock processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps of another alarm clock processing method provided by the embodiment of the invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments 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 some, not all, embodiments of the present invention. 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.
Example one
Fig. 1 is a flowchart of steps of a method for applying an alarm clock according to an embodiment of the present invention, where the method may be applied to an electronic device, and as shown in fig. 1, the method may include:
step 101, acquiring a wake-up mode of an alarm clock when the current time reaches the preset time of the alarm clock.
In the embodiment of the present invention, an alarm clock function may be implemented by an electronic device, where the electronic device includes but is not limited to: a server, a smart phone, a recording pen, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a car computer, a desktop computer, a set-top box, a smart tv, a wearable device, and the like.
The electronic equipment can realize functions of timing, reminding, outputting voice, receiving voice and the like. Optionally, the preset time of the alarm clock may include an alarm clock start time point such as day, hour, minute, second, or may include an alarm clock start frequency such as daily, weekday, and weekend, and may be preset when the alarm clock is created or may be changed after the alarm clock is created.
The alarm clock can be started when the current time reaches the preset time of the alarm clock, optionally, the current time can be determined by acquiring the system time of the electronic device, or by connecting a world clock to a network. In addition, the alarm clocks with different preset times can correspond to the same or different awakening modes, the awakening modes can be preset when the alarm clocks are created, and can also be changed after the alarm clocks are created, and different awakening voices can be output according to different awakening modes to awaken the user.
And 102, starting the alarm clock to output the awakening voice corresponding to the awakening mode.
In this embodiment of the present invention, the wake-up voice may be an output voice of the electronic device, where the voice content, the volume, the output frequency, and the like are determined according to the wake-up mode, and optionally, the wake-up voice may be a voice of a preset text content, or a voice of a currently generated text content according to the setting of the wake-up mode, or may also be a song, a pure music, and the like.
And 103, receiving a response voice of the user for the awakening voice input.
In the embodiment of the invention, the response voice refers to voice input by a user aiming at the awakening voice and received by the microphone after the awakening voice is output by the electronic equipment. Optionally, the embodiment of the present invention may perform preprocessing operations such as filtering on the voice input by the user, and use the obtained voice with clear content and capable of being recognized as the response voice, and filter the meaningless beep 22228sounds, complaint sounds and the like emitted by the user without waking up, and the voices which cannot be recognized as clear, coherent and clear in meaning are not determined as the response voice. In addition, the electronic equipment can also perform voiceprint recognition on voice input by the user so as to determine whether the identity of the actual speaker is the user for creating the alarm clock, and avoid influence of voice of other people for speaking, talking and the like on the awakening process of the alarm clock.
And step 104, under the condition that the response voice and the awakening voice meet preset matching conditions, closing the alarm clock.
In the embodiment of the present invention, after the response voice corresponding to the wake-up voice is obtained, whether a preset matching condition is met between the response voice and the wake-up voice can be determined through analysis, where the preset matching condition may be that a correlation between a recognition text content of the response voice and a text content of the wake-up voice reaches a preset threshold, or that an interval between a time of receiving the response voice and an interval of outputting the wake-up voice is within a preset time interval, or that the recognition text content of the response voice includes similar contents such as "cancel alarm clock", "close alarm clock", "delay alarm clock", and the like. After the fact that the preset matching condition is met between the response voice and the awakening voice is determined, the alarm clock can be turned off, and the awakening voice is stopped being output, so that unnecessary interference to a user is avoided.
Optionally, different preset response times may be set for different wake-up modes, and a process of outputting the wake-up voice once and receiving the response voice correspondingly may be regarded as a response once. After the alarm clock is started, whether the current response times reach the preset response times or not can be judged in real time, and if not, the awakening voice can be output again according to the current awakening mode. Optionally, the awakening voice output again and the awakening voice output for the first time may or may not be related, and the alarm clock is turned off when the awakening voice with the preset response times and the response voice meet the preset matching condition, so that the user can be confirmed to keep awake in multiple responses, the situation that the user falls into sleep after one successful response is avoided, the user can be awakened simply, conveniently and timely, and the orderliness of time arrangement in work and life of the user is ensured.
In summary, in the embodiments of the present invention, a preset wake-up mode of an alarm clock can be obtained when the current time reaches the preset time of the alarm clock, corresponding wake-up voices are output according to different wake-up modes, and after a response voice corresponding to the wake-up voice is received, the alarm clock is turned off when the response voice and the wake-up voice satisfy a preset matching condition. According to the embodiment of the invention, the operation of the alarm clock is realized in a voice interaction mode, the user can turn off the alarm clock by inputting the response voice matched with the awakening voice without manually operating the electronic equipment, the operation process of the alarm clock can be simplified, and the efficiency of the user for operating the alarm clock is improved. In addition, the alarm clock can be turned off only when the response voice input by the user and the awakening voice meet the preset matching condition, so that the condition that the user falls into sleep again can be avoided, and the effectiveness and timeliness of awakening the user can be guaranteed. Furthermore, the embodiment of the invention can set different awakening modes for the alarm clock and receive different response voices, so that the awakening mode and the setting mode of the alarm clock are more diversified and intelligent, and the user experience in the use process of the alarm clock is improved.
Fig. 2 is a flowchart of steps of another alarm clock processing method provided in an embodiment of the present invention, where the method may be applied to an electronic device, and as shown in fig. 2, the method may include:
step 201, receiving setting information of an alarm clock, wherein the setting information comprises preset time, a wake-up mode and a close mode; the awakening mode comprises any one of a ring mode, a question-answer mode and a conversation mode; the closing mode comprises a prohibition mode or an allowance mode.
In the embodiment of the invention, the setting information of the alarm clock can be received, and the setting information comprises the preset time, the awakening mode, the closing mode and the like of the alarm clock. Optionally, the preset time is the ringing time of the alarm clock, and may include the ringing time, frequency, number of times, and the like of the alarm clock; the awakening mode is a mode of awakening voice output and can comprise any one of a ring mode, a question-answering mode and a conversation mode; the closing mode may be a mode of closing the alarm clock, including a suspension prohibition mode or a suspension permission mode, and when the setting information of the alarm clock does not include the closing mode, the default closing mode may be the suspension prohibition mode.
In the embodiment of the invention, the setting information of the past alarm clock can be stored as the alarm clock template and directly applied in the subsequent alarm clock creating process, for example, the alarm clock template is obtained according to the setting information of the past alarm clock, the preset time is modified, so that the new setting information of the alarm clock is obtained, and other awakening modes and closing modes can continue to use the setting information of the alarm clock template, so that the setting time of the alarm clock is saved, and the alarm clock creating efficiency is improved.
Step 202, creating the alarm clock according to the setting information.
In the embodiment of the invention, the corresponding alarm clock can be created according to the setting information of the alarm clock, different alarm clocks correspond to different preset time, but the corresponding awakening mode and closing mode can be the same or different.
Optionally, the wake-up mode includes a dialog mode, and after step 205, the method further includes:
selecting a preset question bank corresponding to the question answering mode, wherein the preset question bank comprises: at least one of a self-built question bank, an interesting knowledge question bank and a professional knowledge question bank.
In the embodiment of the invention, when the wake-up mode comprises a dialogue mode, a corresponding preset question bank can be further set, wherein the preset question bank can comprise a self-built question bank, can be a self-built question bank for a user to input a question by himself, can also be a self-built question bank selected by the user according to a plurality of questions provided by the electronic equipment, or can also be a preset question bank provided by the electronic equipment, such as an interesting knowledge question bank, a professional knowledge question bank and the like, the interesting knowledge question bank can comprise related problems of riddles, brainstorming, cold knowledge and the like, and the professional knowledge question bank can be a question bank of professional examinations such as driving examinations and doctors. In addition, the same preset question bank can be shared and commonly maintained among different users, and the problem that only users in a circle know answers to each other can be input into the question bank, so that the privacy of the preset question bank is guaranteed. Optionally, the topic in the preset topic library may also be used as a topic in a conversation mode, which is not specifically limited in this embodiment of the present invention.
Optionally, the closing mode includes a termination prohibition mode, and after step 201, the method further includes:
and a substep 2011 of setting a preset ringing time of the ringing mode.
And a substep 2012 for setting a preset response time corresponding to the question answering mode or the dialogue mode.
In the embodiment of the invention, when the closing mode comprises a pause forbidding mode, the alarm clock cannot be closed through a preset password or preset operation of a user according to the pause forbidding mode, at the moment, preset ringing time can be set for the ringing mode, and according to the setting of the preset response time, the alarm clock is closed after the preset response time of the awakening voice of the ring is output; the corresponding preset response times can also be set for the question answering mode or the dialogue mode, and according to the setting of the preset response times, the alarm clock is turned off under the condition that the times that the awakening voice and the corresponding response voice meet the preset matching condition meet the preset response times.
Optionally, the wake-up mode includes a question-answering mode or a dialogue mode, and after step 205, the method may further include:
and a substep 2013 of receiving the sound template corresponding to the awakening mode.
In the embodiment of the present invention, when the wake-up mode is set as a question and answer mode or a dialogue mode when the alarm clock is created, the setting of the sound template corresponding to the wake-up mode may be received, where the sound template is used to synthesize a virtual wake-up voice, and optionally, the sound template may be a sound template publicly available to public personals such as a star and a host, or may be a sound template obtained by inputting the own sound of a user and performing feature extraction, or may be a sound template obtained by inputting the sound of a parent and a friend of the user, such as a parent, a friend, a child, and the like, and the source of the sound template is not particularly limited in the embodiment of the present invention.
And 203, acquiring the awakening mode of the alarm clock when the current time reaches the preset time of the alarm clock.
And 204, starting the alarm clock to output the awakening voice corresponding to the awakening mode.
Step 205, receiving a response voice for the wake-up voice input.
And step 206, under the condition that the response voice and the awakening voice meet preset matching conditions, closing the alarm clock.
In the embodiment of the present invention, the descriptions of step 203 to step 206 are similar to the descriptions of step 101 to step 104, and may be referred to correspondingly, and are not repeated herein to avoid repetition.
In the case of sub-step 2013, the step 204 specifically includes starting the alarm clock to output a wake-up voice corresponding to the wake-up mode according to the sound template.
In the embodiment of the invention, the corresponding voice template corresponding to the awakening mode can be adopted to synthesize the corresponding awakening voice, so that more personalized service can be provided for the user in the awakening process of the alarm clock, the awakening voice is synthesized through different voice templates set by the user, the sensitivity of the user to the awakening voice can be enhanced, and the awakening probability of the user is further enhanced.
Optionally, the wake-up mode includes a conversation mode, the wake-up voice includes a topic initiating voice related to a preset topic, and the response voice includes a topic reply voice of the user initiating voice input for the topic.
In the embodiment of the present invention, the wake-up mode may include a conversation mode, the conversation mode may be a conversation scene simulating a topic initiated between people and a topic replied in an actual life, and optionally, a conversation robot technology may be adopted to realize the simulation of the conversation scene. The conversation robot is applied to the field of artificial intelligence, can be applied to a man-machine conversation scene which takes human topics as guidance topics, can take electronic equipment as a topic guidance main body in the application, and awakens a user through a scene simulating man-to-man conversation. At this time, the wake-up voice may include a topic-initiated voice related to a preset topic, the alarm clock may initiate a conversation in a conversation mode by outputting the topic-initiated voice, optionally, the preset topic may be a topic set when the alarm clock is created, and one alarm clock may correspond to more than one preset topic, including weather, schedule, traffic road condition, news information, and the like. According to the preset topics with different alarm clock conversation modes, the electronic equipment can output different topic initiating voices, for example, when the preset topic is weather, the electronic equipment can acquire weather information of the current time, such as 'cloudy' and light rain ', and the like, and can output the topic initiating voices according to the weather information, for example, the voice of' getting up after the time of getting up, now at X days, and then at X days, the weather outside is relatively cloudy, and then there is light rain ', or' now at X days, and then at today, the weather is relatively cloudy, and then there may be light rain, and then 'getting up' and the like are played.
In the embodiment of the invention, after the electronic equipment outputs the topic initiating voice related to the preset topic, the topic reply voice of the user initiating voice input aiming at the topic can be received. Alternatively, the method may include recording and collecting environmental sounds around the electronic device within a preset time period after the topic initiates voice output through a microphone, separating the voice of the user from the environmental sounds, and determining that topic reply voice input by the user for the topic is received when logically clear and semantically coherent text content is identified from the voice of the user. The method can adopt a pre-trained text recognition model to separate and recognize the voice of the user, and carry out semantic confirmation on the recognized text content. If voice is initiated for the weather-related topic, when the text content identified in the voice of the user is "do it need to take umbrella", "what places rain", "what influence on traffic", or "call me again after ten minutes", "delay alarm clock for half an hour", or the like, it may be considered that the topic reply voice is received, and when the voice of the user is not separated from the environmental sound, or the text content identified by the voice of the user is "what", "take a good luck", or the like, it may be considered that the topic reply voice of the user is not received.
In the embodiment of the invention, one time of output topic initiating voice and one time of corresponding input topic reply voice can also be regarded as one time of conversation, at the moment, the preset response times can comprise preset conversation times, and the alarm clock is closed under the condition that the topic initiating voice and the topic reply voice with the preset conversation times in multiple conversations meet the preset matching conditions. The topic initiating voice in the next conversation can be related to the topic replying voice in the previous conversation. For example, the preset topic in the first conversation is a weather topic initiating voice, including "when it is time to get up, X points X of X months, there is little rain if the weather is relatively negative", and the topic reply voice is "how to go to XXX road condition", at this time, the preset topic in the second conversation may be determined as the road condition according to the first topic reply voice, the topic initiating voice may be "there is a relatively block on the XXX road, it is recommended to go out 10 minutes ahead", and the like, or the preset topic in the second conversation may be whether the weather, the initiating voice may be "the air quality is good today, there may be rain in areas a, B, and C", or the preset topic in the second conversation may be news information and the like, which is not specifically limited in this embodiment of the present invention.
Optionally, the wake-up mode includes a question-answering mode, the wake-up voice includes a question initiating voice in a preset question bank, and the response voice includes a question reply voice input by the user for the question initiating voice.
In the embodiment of the invention, the awakening mode can comprise a question-answer mode, and the question-answer mode can be a question-answer scene in which a question is asked through the electronic equipment and an answer corresponding to a question of a user is received. At this time, the wake-up voice may include a question initiating voice in a preset question bank, and the alarm clock may initiate a question and answer in a question and answer mode by outputting the question initiating voice. Optionally, the preset question bank may be a question bank set when the alarm clock is created, and one alarm clock may correspond to more than one preset question bank. In the process of setting up the question bank, a specific question is not specified but only a corresponding question bank is specified, a plurality of question initiating voices of the same type or different types may be included in the question bank, and each question initiating voice has a uniquely determined answer. For example, each time the preset question bank is the math question bank, the electronic device can obtain a question initiating voice "1 +1 is equal to what? "or" is now X hours, X minutes, let us do a mathematical question, ask 1+1 how much? ".
In the embodiment of the present invention, similar to receiving topic reply voice, the corresponding question reply voice may be received after the question initiating voice is output, for example, the question reply voice "equal to 2", "answer is 2", etc. is obtained by initiating voice for the above-mentioned question; when the user cannot confirm the answer corresponding to the question in the question initiating voice, the question answering voice may also be "unknown", "unable to calculate", "change one question", and the like, and at this time, the electronic device may repeatedly output the question initiating voice, or may reselect the question initiating voice from the preset question bank or another preset question bank and output the selected question initiating voice.
In the embodiment of the invention, one-time output question initiating voice and one-time corresponding input question answering voice can also be regarded as one question answering, at the moment, the preset response times can comprise preset question answering times, and when the question initiating voice and the question answering voice with the preset question answering times in multiple question answering meet the preset matching conditions, the alarm clock is turned off. The problem-initiating speech of different questions in multiple conversations may belong to the same preset question bank or different preset question banks, which is not specifically limited in the embodiment of the present invention.
In the embodiment of the present invention, optionally, the wake-up mode may also include a conventional ring mode, that is, when the current time reaches the preset time of the alarm clock, the corresponding song segment, pure music segment, natural sound segment, and the like are output as the wake-up voice, and the ring mode may not receive the response voice of the user and stop after the wake-up voice outputs the preset response time, or may also receive the response voice of the user, such as "stop alarm clock", "have got up", and the like, so as to stop outputting the wake-up voice.
Optionally, the step 206 includes:
and step S11, performing voice recognition processing on the response voice to obtain a response text corresponding to the response voice.
In the embodiment of the invention, after the response voice of the user is obtained, the voice recognition processing can be carried out on the response voice, wherein the voice recognition processing comprises the response voice recognition of the user, so that the response voice of the user who creates the alarm clock is determined in the collected voice data, the influence of noise and the voice of other users on the response voice recognition is avoided, and the response text can be obtained by carrying out text recognition on the response voice after the response voice is determined. Optionally, in the text recognition process, a pre-trained text recognition model may be used to recognize the response speech to obtain a response text, where the response text may include chinese characters, numbers, english, punctuations, and the like.
And step S12, performing semantic matching on the response text and the preset text corresponding to the awakening voice to obtain semantic similarity.
In the embodiment of the invention, after the response text is obtained, the response text can be semantically matched with the preset text corresponding to the awakening voice, so that the semantic similarity is obtained. Optionally, when the wake-up mode includes a conversation mode, the preset text corresponding to the wake-up voice may be text content corresponding to a preset topic, such as a text "yin, light rain, and good air quality" corresponding to a preset topic weather, and further may also include a derivative text, such as a derivative text of the preset topic weather, "yin" derived "warm keeping," "clothing adding," etc., "light rain" derived "umbrella," "road condition," and "good air quality" derived "mask," "visibility," "air purifier," and so on. In the dialog mode, the semantic similarity may be a semantic correlation degree between the response text and the preset text, for example, whether the response text includes content related to the preset text, whether weather is related to rain gear, whether clothing is put on or taken off, road conditions, and the like, or specific conditions of weather, such as specific time periods and areas of rain, and it may be considered that the more the content related to the preset text is included in the response text, the higher the semantic similarity is, or semantic similarities of different related contents may be predefined, for example, the semantic similarity defining "rainstorm" and "umbrella" is higher than the semantic similarity defining "rainstorm" and "road conditions", and the like.
In this embodiment of the present invention, optionally, when the wake-up mode includes a question-answering mode, the preset text corresponding to the wake-up voice may be a text content of an answer corresponding to the question-initiating voice, for example, an answer is "ask 1+ 1? The answer corresponding to the time is the number "2", at this time, the number "2" is the preset text of the question initiating voice, and the semantic similarity may be the similarity between the response text recognized in the question replying voice and the preset text.
Step S13, if the semantic similarity exceeds a preset similarity threshold, determining that the response voice and the awakening voice meet a preset matching condition.
In the embodiment of the invention, the semantic similarity threshold can be a threshold set in alarm clock creation, and when the semantic similarity reaches the semantic similarity threshold, the response voice and the awakening voice can be considered to meet the preset matching condition. When the semantic similarity threshold is low, the response voice and the awakening voice can meet the preset matching condition under the condition of low semantic similarity; when the semantic similarity threshold is high, the response voice and the awakening voice meet the preset matching condition under the condition of high semantic similarity, and the semantic similarity threshold can be adjusted according to the requirements of the user.
In the embodiment of the present invention, the semantic similarity in the process of multiple responses may further include whether the content of the wake-up speech in the current response and the content of the response speech in the previous responses are similar, that is, whether the user can remember the content of the previous responses in the multiple responses is considered, optionally, the user may be asked for the content of the previous responses, or the user may be guided to review the content of the previous responses in the response in a dialog manner, and when it is confirmed that the user can remember the content of the previous responses, the user may further be considered to be in a wake-up state and successfully wakened up.
For example, asking for content in the first few responses could be to output a wake-up voice at the previous time such as "owner, which city you are now in? When response voice of a user such as Shenzhen is received, semantic similarity between the response voice and the wake-up voice can be determined according to whether the positioning information of the electronic device is located in Shenzhen; in the case that the location information of the electronic device is located in shenzhen, outputting the wake-up speech this time can acquire "how many room prices in shenzhen city are at least more than per square meter? A: 3000 yuan; b: 3 ten thousand yuan; c: the problem of 5 ten thousand yuan, output "how many per square meter the room price is at least in that city when the wake-up voice is output? A: 3000 yuan; b: 3 ten thousand yuan; c: 5 ten thousand yuan, so that when a user inputs response voice, the user needs to firstly determine that an object pointed by the city is Shenzhen in the previous dialogue, and then inputs corresponding response voice, thereby investigating the consistency of the user pointing to the object in multiple responses.
As another example, guiding the user to review the content of the first few responses in the response voice by means of a dialog may be that the wake-up voice was output at the previous time such as "how is the owner, weather outside today? When response voice input by a user is received, such as 'rainy outside today', current real-time weather information can be acquired to determine semantic similarity between the response voice and the awakening voice; when the current real-time weather information is rain, the output awakening voice can be' is suitable for playing basketball outdoors today? If the response voice input by the user is "suitable", the response voice does not conform to the content of "raining outside today" in the previous dialogue, that is, the user may not remember the weather information in the previous response, and thus, the user may be considered to remember the content of the previous responses among the responses.
Optionally, the step 206 includes:
and step S21, acquiring the closing mode of the alarm clock.
In the embodiment of the invention, a closing mode of the alarm clock can be set when the alarm clock is created, wherein the closing mode can comprise a pause forbidding mode and a pause allowing mode, and under the condition of the pause allowing mode, a preset password of a user can be received, such as closing the alarm clock, delaying the alarm clock and the like, to close the current alarm clock, or preset operation of the user can be received, such as sliding operation of a display interface when the alarm clock outputs a wake-up voice and the like, to close the current alarm clock, without judging whether the response voice and the wake-up voice meet a preset matching condition.
And step S22, if the closing mode is a suspension prohibition mode, acquiring preset response times and current response times corresponding to the awakening mode.
In the embodiment of the invention, when the closing mode is the pause forbidding mode, namely the current alarm clock cannot be closed under the condition that whether the response voice and the awakening voice meet the preset matching condition is not judged. At this moment, the preset response times corresponding to the awakening mode can be acquired, wherein the preset response times can be set according to requirements when the alarm clock is created, and the times threshold value that the awakening voice and the response voice meet the preset matching condition in multiple responses is represented, so that the user can be completely awakened, the orderliness of work and life arrangement of the user is guaranteed, meanwhile, the waste of time and energy of the user due to the excessive times of responses is avoided, and the efficiency is improved. In addition, the current times can be counted after the awakening voice is output, and 1 is added to the current times every time the response voice aiming at the awakening voice is received, so that the accuracy of counting the current times is ensured.
And step S23, if the current response times are determined to reach the preset response times and the response voice and the awakening voice of the preset response times meet the preset matching conditions, closing the alarm clock.
In the embodiment of the invention, the current response times reach the preset response times, which can be considered that the current response times are greater than or equal to the preset response times, at this time, the response voice and the awakening voice with the preset response times in the current response times meet the preset matching condition, the alarm clock is closed, if the times that the response voice and the awakening voice meet the preset matching condition in the current response times are less than the preset response times, the awakening voice is continuously output and received, until the times that the response voice and the awakening voice meet the preset matching condition are equal to the preset response times. If the current response times are 4 times, the times that the response voice and the awakening voice meet the preset matching condition are 2 times, and the preset response times are 3 times, at the moment, the electronic equipment continues to output the awakening voice and receive the response voice until the times that the response voice and the awakening voice meet the preset matching condition are 3 times, and the alarm clock is turned off.
Optionally, the step 206 includes:
step S31, obtaining the current non-response times and/or the current response failure times of the alarm clock, wherein the current non-response times indicate the times that the corresponding response voice is not received within the preset time after the awakening voice is output, and the response failure times indicate the times that the received response voice and the corresponding awakening voice do not meet the preset matching conditions.
In the embodiment of the present invention, a situation that the user does not reply in a dialog mode, or there is no correlation between the replied content and the topic, or the user does not answer in a question-and-answer mode, or the answer similarity between the replied content and the question is low may also occur, at this time, the above situation may be counted by obtaining the current unresponsive number of times of the alarm clock and/or the current response failure number of times, where the current unresponsive number indicates the number of times that the corresponding response voice is not received within a preset time after the output of the wake-up voice, that is, the user does not reply or does not answer; the response failure times indicate the times that the received response voice and the corresponding awakening voice do not meet the preset matching conditions, that is, there is no correlation between the content replied by the user and the topic or the similarity between the content replied by the user and the answer of the question is low.
Step S32, acquiring the current state of the target object when the current unresponsive times satisfy a preset unresponsive threshold and/or the current response failure times satisfy a preset response failure threshold.
In the embodiment of the invention, a preset non-response threshold and/or a preset response failure threshold can be set when the alarm clock is created, and the current state of the target object can be obtained under the condition that the current non-response times meet the preset non-response threshold and/or the current response failure times meet the preset response failure threshold, wherein the current state of the target object can include the state of the environment where the target object is located and the state of the target object corresponding to a user, and optionally, the current state can be reflected by light change, sound change and a moving track of electronic equipment in the current environment, or whether the target object is a user for creating the alarm clock is identified through face identification and the like, and whether the posture of the target object is a lying posture, a sitting posture, a standing posture and the like is identified.
Step S33, if the current state of the target object is the first state, outputting the wake-up voice.
And step S34, if the current state of the target object is a second state, the alarm clock is turned off.
In the embodiment of the present invention, the current state of the target object may be distinguished as a first state or a second state, where the first state is used to indicate that the target object is in a sleep state, and the second state is used to indicate that the target object is in an awake state. For example, the first state may include: when the brightness in the current environment is lower than the brightness threshold, the decibel of the environmental noise is lower than the noise threshold, the electronic equipment is in a static state, the posture of the target object is recognized as a lying posture and the like, at the moment, the user may still be in a sleep state, and a wake-up voice can be output to wake up the user; the second state may include: the brightness in the current environment is greater than or equal to the brightness threshold, the decibel of the environmental noise is greater than or equal to the noise threshold, the electronic device is in a moving state, the posture of the target object is recognized as a sitting posture, a standing posture and the like, at this time, the user may be in an awakening state, and the alarm clock can be turned off. The method comprises the steps of obtaining the current state of a target object, namely whether the target object is in a light-on state or not and whether the target object is in a quiet state or not, whether the target object uses electronic equipment or not, whether the target object starts to move or not and the like, and judging whether the target object is in a waking state or not, so that an alarm clock is timely turned off, and the influence on normal work and activity of a user is avoided. Alternatively, the current state of the target object may be determined by various sensors on the electronic device, such as light sensors, sound receivers, gyroscopes, vibration sensors, and the like. In addition, the preset time of different alarm clocks can also be used for judging that the target object is in the first state or the second state in different modes, for example, when a user sleeps afternoon, the detection of the ambient brightness can be omitted, so that the interference of the ambient brightness in the daytime on the state of the target object is avoided, and the like.
If the current unresponsive times of the alarm clock is 5, and the preset unresponsive threshold is 5, the electronic device acquires that the electronic device is in a static state through a gyroscope, or acquires image data of a target object through a camera, and recognizes the posture of the target object as a lying posture and the like according to the influence data of the target object, and at the moment, the target object can be considered to be in a first state, namely, the user still stays in sleep, so that the awakening voice is continuously output to realize the function of awakening the alarm clock;
if the current response failure frequency of the alarm clock is 5 and the preset response failure threshold is 5, the electronic device obtains that the brightness of the environment where the target object is located is greater than the brightness threshold through the light sensor, or obtains that the noise decibel of the environment where the target object is located is greater than the noise threshold through the sound receiver, and then the target object can be considered to be in the second state, that is, the user is already awakened, and therefore the alarm clock can be turned off.
In summary, in the embodiment of the present invention, the preset wake-up mode of the alarm clock can be obtained when the current time reaches the preset time of the alarm clock, the corresponding wake-up voice is output according to different wake-up modes, and after the response voice corresponding to the wake-up voice is received, the alarm clock is turned off when the response voice and the wake-up voice satisfy the preset matching condition. According to the embodiment of the invention, the operation of the alarm clock is realized in a voice interaction mode, the user can turn off the alarm clock by inputting the response voice matched with the awakening voice without manually operating the electronic equipment, the operation process of the alarm clock can be simplified, and the efficiency of the user for operating the alarm clock and the user experience are improved. In addition, the alarm clock can be turned off only when the response voice input by the user and the awakening voice meet the preset matching condition, so that the condition that the user falls into sleep again can be avoided, and the timeliness of awakening the user can be guaranteed. Furthermore, the embodiment of the invention can set different awakening modes for the alarm clock and receive different response voices, so that the awakening mode and the setting mode of the alarm clock are more diversified and intelligent, and the interestingness of the alarm clock in the using process is improved.
EXAMPLE III
Fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device 300 may include:
a wake-up mode obtaining module 301, configured to obtain a wake-up mode of an alarm clock when a current time reaches a preset time of the alarm clock.
And a wake-up voice output module 302, configured to start the alarm clock to output a wake-up voice corresponding to the wake-up mode.
A response voice receiving module 303, configured to receive a response voice of the user for the wake-up voice input.
And an alarm clock closing module 304, configured to close the alarm clock when the response voice and the wake-up voice meet a preset matching condition.
Optionally, the wake-up mode includes a conversation mode, and the wake-up voice output module 302 specifically includes a conversation scheduling module, where the wake-up voice includes a topic initiating voice related to a preset topic, and the response voice includes a topic reply voice of the user initiating voice input for the topic.
Optionally, the wake-up mode acquiring module includes a question-answer mode, the wake-up voice output module 302 specifically includes a question-answer scheduling module, the wake-up voice includes a question initiating voice in a preset question bank, and the response voice includes a question reply voice input by the user for the question initiating voice.
Optionally, the alarm clock turning-off module 304 includes:
the response text recognition submodule is used for carrying out voice recognition processing on the response voice to obtain a response text corresponding to the response voice;
the text semantic analysis submodule is used for performing semantic matching on the response text and a preset text corresponding to the awakening voice to obtain semantic similarity;
and the matching condition judgment sub-module is used for determining that the response voice and the awakening voice meet the preset matching condition if the semantic similarity exceeds a preset similarity threshold.
Optionally, the alarm clock turning-off module 304 includes:
the closing mode obtaining submodule is used for obtaining the closing mode of the alarm clock;
a response time determining submodule, configured to obtain a preset response time and a current response time corresponding to the wake-up mode if the close mode is a suspend-prohibited mode;
and the alarm clock tube wall submodule is used for closing the alarm clock if the current response times are determined to reach the preset response times and the response voice of the preset response times and the awakening voice meet the preset matching condition.
Optionally, the alarm clock turning-off module 304 includes:
the response time obtaining sub-module is used for obtaining the current non-response times and/or the current response failure times of the alarm clock, the current non-response times indicate the times that the corresponding response voice is not received within the preset time after the awakening voice is output, and the response failure times indicate the times that the received response voice and the corresponding awakening voice do not meet the preset matching conditions;
the target object monitoring submodule is used for acquiring the current state of the target object under the condition that the current unresponsive times meet a preset unresponsive threshold and/or the current response failure times meet a preset response failure threshold;
a first state submodule, configured to output the wake-up voice if the current state of the target object is a first state;
and the second state submodule is used for closing the alarm clock if the current state of the target object is the second state.
Optionally, the electronic device further comprises:
the alarm clock setting module is used for receiving the setting information of the alarm clock, wherein the setting information comprises preset time, an awakening mode and a closing mode; the awakening mode comprises any one of a ring mode, a question-answer mode and a conversation mode; the closing mode comprises a prohibition mode or an allowance mode;
and the alarm clock creating module is used for creating the alarm clock according to the setting information.
Optionally, the electronic device further comprises:
the question bank module is used for selecting a preset question bank corresponding to the question answering mode, and the preset question bank comprises: at least one of a self-built question bank, an interesting knowledge question bank and a professional knowledge question bank.
Optionally, the electronic device further comprises:
and the ringing time setting module is used for setting the preset ringing time of the ringing mode.
And the response time setting module is used for setting the preset response times corresponding to the question answering mode or the dialogue mode.
Optionally, the electronic device further comprises:
the voice template recording module is used for receiving the voice template corresponding to the awakening mode;
the wake-up voice output module 302 is specifically configured to start the alarm clock to output the wake-up voice corresponding to the wake-up mode according to the sound template.
In summary, the electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to 2, and for avoiding repetition, details are not described here again.
The electronic device provided by the embodiment of the invention can acquire the preset awakening mode of the alarm clock when the current time reaches the preset time of the alarm clock, output the corresponding awakening voice according to different awakening modes, and close the alarm clock when the response voice and the awakening voice meet the preset matching condition after receiving the response voice corresponding to the awakening voice. According to the embodiment of the invention, the operation of the alarm clock is realized in a voice interaction mode, the user can turn off the alarm clock by inputting the response voice matched with the awakening voice without manually operating the electronic equipment, the operation process of the alarm clock can be simplified, and the efficiency of the user for operating the alarm clock and the user experience are improved. In addition, the alarm clock can be turned off only when the response voice input by the user and the awakening voice meet the preset matching condition, so that the condition that the user falls into sleep again can be avoided, and the timeliness of awakening the user can be guaranteed. Furthermore, the embodiment of the invention can set different awakening modes for the alarm clock and receive different response voices, so that the awakening mode and the setting mode of the alarm clock are more diversified and intelligent, and the interestingness of the alarm clock in the using process is improved.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The processor 410 is configured to obtain an awakening mode of an alarm clock when a current time reaches a preset time of the alarm clock; starting the alarm clock to output a wake-up voice corresponding to the wake-up mode; receiving a response voice of a user for the wake-up voice input; and under the condition that the response voice and the awakening voice meet a preset matching condition, closing the alarm clock.
The electronic device provided by the embodiment of the invention can acquire the preset awakening mode of the alarm clock when the current time reaches the preset time of the alarm clock, output the corresponding awakening voice according to different awakening modes, and close the alarm clock when the response voice and the awakening voice meet the preset matching condition after receiving the response voice corresponding to the awakening voice. According to the embodiment of the invention, the operation of the alarm clock is realized in a voice interaction mode, the user can turn off the alarm clock by inputting the response voice matched with the awakening voice without manually operating the electronic equipment, the operation process of the alarm clock can be simplified, and the efficiency of the user for operating the alarm clock and the user experience are improved. In addition, the alarm clock can be turned off only when the response voice input by the user and the awakening voice meet the preset matching condition, so that the condition that the user falls into sleep again can be avoided, and the effectiveness and timeliness of awakening the user can be guaranteed. Furthermore, the embodiment of the invention can set different awakening modes for the alarm clock and receive different response voices, so that the awakening mode and the setting mode of the alarm clock are more diversified and intelligent, and the interestingness of the alarm clock in the using process is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 106 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned embodiment of the alarm clock processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above alarm clock processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An alarm clock processing method is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring an awakening mode of an alarm clock under the condition that the current time reaches the preset time of the alarm clock;
starting the alarm clock to output a wake-up voice corresponding to the wake-up mode;
receiving a response voice of a user for the wake-up voice input;
and under the condition that the response voice and the awakening voice meet a preset matching condition, closing the alarm clock.
2. The method of claim 1, wherein the wake pattern comprises a dialogue pattern, wherein the wake pattern comprises a topic initiating voice related to a preset topic, and wherein the response voice comprises a topic reply voice of a user initiating a voice input for the topic; or
The awakening mode comprises a question answering mode, the awakening voice comprises question initiating voice in a preset question bank, and the response voice comprises question reply voice input by a user aiming at the question initiating voice.
3. The method of claim 1, wherein the determining that the response voice and the wake-up voice satisfy a preset matching condition comprises:
performing voice recognition processing on the response voice to obtain a response text corresponding to the response voice;
semantic matching is carried out on the response text and a preset text corresponding to the awakening voice to obtain semantic similarity;
and if the semantic similarity exceeds a preset similarity threshold, determining that the response voice and the awakening voice meet a preset matching condition.
4. The method according to claim 1, wherein turning off the alarm clock in the case that it is determined that the response voice and the wake-up voice satisfy a preset matching condition comprises:
acquiring a closing mode of the alarm clock;
if the closing mode is a suspension prohibition mode, acquiring preset response times and current response times corresponding to the awakening mode;
and if the current response times are determined to reach the preset response times and the response voice and the awakening voice of the preset response times meet the preset matching condition, closing the alarm clock.
5. The method according to claim 1, wherein turning off the alarm clock in the case that it is determined that the response voice and the wake-up voice satisfy a preset matching condition comprises:
acquiring current unresponsive times and/or current response failure times of the alarm clock, wherein the current unresponsive times indicate the times that corresponding response voices are not received within preset time after the awakening voices are output, and the response failure times indicate the times that the received response voices and the corresponding awakening voices do not meet preset matching conditions;
acquiring the current state of the target object under the condition that the current unresponsive times meet a preset unresponsive threshold and/or the current response failure times meet a preset response failure threshold;
if the current state of the target object is a first state, outputting the awakening voice;
and if the current state of the target object is a second state, closing the alarm clock.
6. The method of claim 1, wherein before the current time reaches a preset time of an alarm clock, the method further comprises:
receiving setting information of an alarm clock, wherein the setting information comprises preset time, a wake-up mode and a close mode; the awakening mode comprises any one of a ring mode, a question-answer mode and a conversation mode; the closing mode comprises a prohibition mode or an allowance mode;
and creating the alarm clock according to the setting information.
7. The method of claim 6, wherein the wake-up mode comprises a dialog mode, and wherein after receiving the setting information of the alarm clock, the method further comprises:
selecting a preset question bank corresponding to the question answering mode, wherein the preset question bank comprises: at least one of a self-built question bank, an interesting knowledge question bank and a professional knowledge question bank.
8. The method of claim 6, wherein the off mode comprises a disable termination mode, and wherein after receiving the setting information of the alarm clock, the method further comprises:
setting preset ringing time of the ringing mode; or
And setting the preset response times corresponding to the question answering mode or the dialogue mode.
9. The method according to claim 6, wherein the wake-up mode comprises a question and answer mode or a dialogue mode, and after receiving the setting information of the alarm clock, the method further comprises:
receiving a sound template corresponding to the awakening mode;
the starting the alarm clock to output the awakening voice corresponding to the awakening mode comprises the following steps:
and starting the alarm clock to output the awakening voice corresponding to the awakening mode according to the sound template.
10. An electronic device, characterized in that the electronic device comprises:
the wake-up mode acquisition module is used for acquiring the wake-up mode of the alarm clock under the condition that the current time reaches the preset time of the alarm clock;
the awakening voice output module is used for starting the alarm clock to output awakening voice corresponding to the awakening mode;
a response voice receiving module for receiving a response voice for the wake-up voice input;
and the alarm clock closing module is used for closing the alarm clock under the condition that the response voice and the awakening voice meet the preset matching condition.
CN202010256478.6A 2020-04-02 2020-04-02 Alarm clock processing method and electronic equipment Pending CN111526244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010256478.6A CN111526244A (en) 2020-04-02 2020-04-02 Alarm clock processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010256478.6A CN111526244A (en) 2020-04-02 2020-04-02 Alarm clock processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111526244A true CN111526244A (en) 2020-08-11

Family

ID=71901587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010256478.6A Pending CN111526244A (en) 2020-04-02 2020-04-02 Alarm clock processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111526244A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486011A (en) * 2020-11-17 2021-03-12 长沙学院 Method for waking up user based on alarm clock trolley
CN115334196A (en) * 2021-04-23 2022-11-11 深圳市万普拉斯科技有限公司 Alarm clock control method and device and mobile terminal

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369129A (en) * 2007-08-15 2009-02-18 鹏智科技(深圳)有限公司 Electronic equipment with alarm clock function and method for closing the alarm clock
CN102082855A (en) * 2010-12-30 2011-06-01 东莞宇龙通信科技有限公司 Method for realizing alarm clock reminding on electronic terminal and electronic terminal
KR20150059180A (en) * 2013-11-17 2015-06-01 임종원 specific word alarm system in mobile messenger
CN105554273A (en) * 2015-12-15 2016-05-04 魅族科技(中国)有限公司 Alarm clock reminding method and terminal
CN105798918A (en) * 2016-04-29 2016-07-27 北京光年无限科技有限公司 Interactive method and device for intelligent robot
CN105976163A (en) * 2016-05-04 2016-09-28 上海卓易云汇智能技术有限公司 Alarm clock reminding method and system
CN107277233A (en) * 2017-06-01 2017-10-20 深圳天珑无线科技有限公司 Method, equipment and the readable storage medium storing program for executing of intelligent Matching ring of alarm clock
CN107632813A (en) * 2017-09-21 2018-01-26 珠海格力电器股份有限公司 Method and device for turning off alarm clock function
CN107872579A (en) * 2017-11-08 2018-04-03 青岛司晨信息科技有限公司 A kind of setting of intelligent alarm clock and ringing method and its system for use in carrying
CN108140383A (en) * 2016-07-19 2018-06-08 门箱股份有限公司 Display device, topic selection method, topic option program, image display method and image show program

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369129A (en) * 2007-08-15 2009-02-18 鹏智科技(深圳)有限公司 Electronic equipment with alarm clock function and method for closing the alarm clock
CN102082855A (en) * 2010-12-30 2011-06-01 东莞宇龙通信科技有限公司 Method for realizing alarm clock reminding on electronic terminal and electronic terminal
KR20150059180A (en) * 2013-11-17 2015-06-01 임종원 specific word alarm system in mobile messenger
CN105554273A (en) * 2015-12-15 2016-05-04 魅族科技(中国)有限公司 Alarm clock reminding method and terminal
CN105798918A (en) * 2016-04-29 2016-07-27 北京光年无限科技有限公司 Interactive method and device for intelligent robot
CN105976163A (en) * 2016-05-04 2016-09-28 上海卓易云汇智能技术有限公司 Alarm clock reminding method and system
CN108140383A (en) * 2016-07-19 2018-06-08 门箱股份有限公司 Display device, topic selection method, topic option program, image display method and image show program
CN107277233A (en) * 2017-06-01 2017-10-20 深圳天珑无线科技有限公司 Method, equipment and the readable storage medium storing program for executing of intelligent Matching ring of alarm clock
CN107632813A (en) * 2017-09-21 2018-01-26 珠海格力电器股份有限公司 Method and device for turning off alarm clock function
CN107872579A (en) * 2017-11-08 2018-04-03 青岛司晨信息科技有限公司 A kind of setting of intelligent alarm clock and ringing method and its system for use in carrying

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486011A (en) * 2020-11-17 2021-03-12 长沙学院 Method for waking up user based on alarm clock trolley
CN112486011B (en) * 2020-11-17 2021-09-14 长沙学院 Method for waking up user based on alarm clock trolley
CN115334196A (en) * 2021-04-23 2022-11-11 深圳市万普拉斯科技有限公司 Alarm clock control method and device and mobile terminal

Similar Documents

Publication Publication Date Title
CN108735209B (en) Wake-up word binding method, intelligent device and storage medium
CN108711430B (en) Speech recognition method, intelligent device and storage medium
CN111372119B (en) Multimedia data recording method and device and electronic equipment
CN109712621B (en) Voice interaction control method and terminal
CN108183853A (en) Message prompt method, mobile terminal and readable storage medium storing program for executing
CN105556595A (en) Method and apparatus for adjusting detection threshold for activating voice assistant function
CN106200886A (en) A kind of intelligent movable toy manipulated alternately based on language and toy using method
CN110825226A (en) Message viewing method and terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN109065060B (en) Voice awakening method and terminal
CN108494945B (en) Sun-proof reminding method and mobile terminal
CN109040444B (en) Call recording method, terminal and computer readable storage medium
CN108989558A (en) The method and device of terminal call
CN109167884A (en) A kind of method of servicing and device based on user speech
CN111415722B (en) Screen control method and electronic equipment
CN108877780A (en) Voice question searching method and family education equipment
CN111526244A (en) Alarm clock processing method and electronic equipment
CN108133708B (en) Voice assistant control method and device and mobile terminal
CN110865858A (en) Screen awakening method and electronic equipment
CN114333774B (en) Speech recognition method, device, computer equipment and storage medium
CN110154048B (en) Robot control method and device and robot
CN113160815B (en) Intelligent control method, device, equipment and storage medium for voice wakeup
CN111354460B (en) Information output method, electronic equipment and medium
CN110602314B (en) Operation control method, electronic device and computer readable storage medium
CN110111795B (en) Voice processing method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200811