CN107295193B - Ring control method, ring control device, storage medium and electronic equipment - Google Patents

Ring control method, ring control device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107295193B
CN107295193B CN201710576010.3A CN201710576010A CN107295193B CN 107295193 B CN107295193 B CN 107295193B CN 201710576010 A CN201710576010 A CN 201710576010A CN 107295193 B CN107295193 B CN 107295193B
Authority
CN
China
Prior art keywords
time
preset
audio information
ringing
user
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.)
Expired - Fee Related
Application number
CN201710576010.3A
Other languages
Chinese (zh)
Other versions
CN107295193A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710576010.3A priority Critical patent/CN107295193B/en
Publication of CN107295193A publication Critical patent/CN107295193A/en
Application granted granted Critical
Publication of CN107295193B publication Critical patent/CN107295193B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • 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/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention discloses a ring control method, which is applied to electronic equipment and comprises the following steps: when the ringing of the electronic equipment stops, acquiring a stopping time corresponding to the stopping of the ringing; when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value; if so, acquiring environmental audio information around the electronic equipment with preset duration; judging whether the environmental audio information meets a preset condition or not; and if the environmental audio information meets the preset condition, controlling the electronic equipment to ring again. According to the embodiment of the invention, the electronic equipment judges whether the user gets up or not by collecting the environmental audio information based on the getting-up habit of the user, and if the user possibly does not get up, the user rings again according to the judgment result, so that the ring control of the electronic equipment is more intelligent, and a better reminding effect is achieved.

Description

Ring control method, ring control device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of electronic device technologies, and in particular, to a ring control method and apparatus, a storage medium, and an electronic device.
Background
At present, for people, in order to get up on time to avoid delayed work or delay schedule, an alarm time is usually set on an alarm clock, and when the alarm clock reaches the preset alarm time, people can be reminded to get up in a ringing mode.
Along with intelligent Mobile terminal's development, more and more people can carry out the alarm clock setting on intelligent Mobile terminal, and intelligent Mobile terminal can be like traditional alarm clock, rings at the alarm clock time of predetermineeing. However, for some users, after the first ring, the user may intentionally or unintentionally turn off the alarm and then sleep again for a while, at this time, the alarm is turned off and does not ring again to remind the user, and the user may easily fall asleep and thus get late to work or delay the schedule of the day, which may cause great trouble to the user.
Disclosure of Invention
The invention provides a ringing control method and device, a storage medium and electronic equipment, which can improve the intelligent degree of ringing control.
In a first aspect, an embodiment of the present invention provides a ring control method, including the following steps:
when the ringing of the electronic equipment stops, acquiring a stopping time corresponding to the stopping of the ringing;
when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value;
if so, acquiring environmental audio information around the electronic equipment with preset duration;
judging whether the environmental audio information meets a preset condition or not;
and if the environmental audio information meets the preset condition, controlling the electronic equipment to ring again.
In a second aspect, an embodiment of the present invention provides a ring control device, including:
a stopping time acquiring unit, configured to acquire, when ringing of the electronic device stops, a stopping time corresponding to when the ringing stops;
the first judging unit is used for judging whether the time length from the current time to the stopping time reaches a first threshold value or not when the stopping time is detected to be within a preset time period;
the first information acquisition unit is used for acquiring environmental audio information around the electronic equipment with preset duration if the electronic equipment is in the state of being in the standby state;
the second judgment unit is used for judging whether the environmental audio information meets a preset condition or not; and
and the control unit is used for controlling the electronic equipment to ring again if the environmental audio information meets the preset condition.
In a third aspect, an embodiment of the present invention provides a storage medium, which stores a plurality of instructions, where the instructions are adapted to, when executed on a computer, cause the computer to execute the ring control method as described above.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor is configured to execute the ring control method as described above by loading the instructions in the memory.
According to the ring control method provided by the embodiment of the invention, when the stopping time is detected to be within a preset time period, whether the time length from the current time to the stopping time reaches a first threshold value is judged; if so, acquiring environmental audio information around the electronic equipment with preset duration, and judging whether the environmental audio information meets preset conditions; and if the environmental audio information meets the preset condition, controlling the electronic equipment to ring again. Electronic equipment in this scheme judges whether the user has got up through gathering environmental audio information based on the user habit of getting up, if judge that the user does not get up then can control electronic equipment once more and ring down to make electronic equipment's ring down control more intelligent, play better warning effect.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a scene schematic diagram of a ring control method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a ring control method according to an embodiment of the present invention.
Fig. 3 is another schematic view of a scenario of a ring control method according to an embodiment of the present invention.
Fig. 4 is another schematic flow chart of the ring control method according to the embodiment of the present invention.
Fig. 5 is a schematic diagram of a determination process of a preset time period according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a determining process of the environmental audio information according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of another determining process of the environmental audio information according to the embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a ring control device according to an embodiment of the present invention.
Fig. 9 is another schematic structural diagram of the ring control device according to the embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a first determining unit according to an embodiment of the present invention.
Fig. 11 is a schematic structural diagram of a ring control device according to an embodiment of the present invention.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Fig. 13 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present invention are described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, but on the contrary, it is to be understood that various steps and operations described hereinafter may be implemented in hardware.
The term "module" as used herein may be a software object that executes on the computing system. The different components, modules, engines, and services described herein may be implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present invention.
The terms "first", "second", and "third", etc. in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An embodiment of the present invention provides a ring control method, where an execution main body of the ring control method may be a ring control device provided in the embodiment of the present invention, or an electronic device (such as a smart phone, a tablet computer, a desktop computer, a notebook computer, a palmtop computer, and the like) integrated with the ring control device, where the ring control device may be implemented in a hardware or software manner.
Fig. 1 shows a scenario of a ring control method provided in an embodiment of the present invention. The execution main body of the embodiment of the present invention may be an electronic device, and the electronic device has a Microphone (Microphone), which is a transducer that converts sound into an electrical signal and can collect sound audio emitted from a surrounding sound source. The electronic device also has speakers (Loudspeakers) that can emit sound under program control to provide ring sounding. The electronic device may comprise a mobile telephone (or so-called "cellular" telephone, such as a smartphone) or a computer with a wireless communication module, e.g. a tablet computer, and may also be a portable, pocket, hand-held vehicle-mounted computer, which exchanges language and/or data with a radio access network. For example, the devices include, but are not limited to, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, and Personal Digital Assistants (PDAs).
Fig. 2 shows a flow of a ring control method provided by an embodiment of the present invention, and for convenience of description, only a part related to the content of the present invention is shown in the figure.
As shown in fig. 2, a ring control method applied to an electronic device includes the following steps:
step S101, when the ringing of the electronic device stops, obtaining a stop time corresponding to the ringing stop time.
In some embodiments, the stopping time may be a time value obtained when the user actively stops the ringing operation on the electronic device, or may be a time value obtained when the electronic device automatically stops ringing based on a certain rule.
Step S102, judging whether the stopping time is within a preset time period; if yes, continuously judging whether the time length from the current time to the stopping time reaches a first threshold value; if not, the next action is not carried out.
In some embodiments, the preset time period may be a time period manually set by the user, and the time period may correspond to the working time of the user or may be a specific schedule for which a reminder is required. Of course, which time period is set may also be obtained by statistical learning based on big data used by the user, for example, counting the time set by the alarm every day, and determining the time period based on the common setting as the preset time period. The length of the preset time period may be 1 hour, 2 hours or any time period in a day, and may be specifically set as required.
For example, the alarm time of the user on the working day every day is set to be between 7:00 and 8:00 in the morning, the electronic device can determine the time period as the working-up time of the user by obtaining the alarm time set by the user every day and inducing the alarm time by a learning algorithm, and then the preset time period related to the working-up alarm time of the user is set to be 7:00 to 8:00 in the morning. Next, when the electronic device detects that the stop time corresponding to the current ringing stop is in the time period, it may be determined that the time point corresponding to the stop time is the user's work-in-attendance time.
Of course, if it is determined that the stop time is not within the preset time period, it may be determined that the ringing time point corresponding to the stop time of the ringing may not be within the time period of the user's attendance, and then the following execution steps may be omitted, so as to ensure that the electronic device does not excessively interfere with the rest of the user outside the time period of the user's attendance.
Step S103, judging whether the time length from the current time to the stopping time reaches a first threshold value; if so, acquiring environmental audio information around the electronic equipment with preset duration; if not, continuing to wait until the time length from the current time to the stopping time reaches a first threshold value.
And when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value.
In some embodiments, detecting the duration of the current time from the stop time may specifically be triggered by acquiring a ring stop signal of the electronic device, and starting to count time by using a timer of the electronic device based on the time of acquiring the signal. The first threshold may be set to any time length, for example, 10 minutes, or may be set to other time length values, and the specific time length may be set as required to meet different use requirements. And if the result is yes, jumping to the next step, and of course, if the duration does not reach the first threshold, continuing to count time by using a timer in the electronic device until the timing result of the timer reaches the first threshold.
And step S104, collecting the environmental audio information around the electronic equipment with preset duration.
And if the time length from the current time to the stopping time reaches a first threshold value, the electronic equipment acquires the environmental audio information around the electronic equipment according to the preset time length.
In some embodiments, the electronic device collects environmental audio information around the electronic device according to a preset time length, which may be recording environmental audio information for a preset time length after the time length reaches a first threshold value, for example, recording an environmental audio recording lasting for 2 minutes; or recording the environmental audio information in a preset manner within a preset time length, for example, within a period of time after the time length reaches a first threshold, recording the recording with the decibel greater than the preset value when the decibel of the sound reaches the preset value. Of course, the specific audio information obtaining form may be set according to the specific implementation.
Step S105, judging whether the environmental audio information meets a preset condition; if the environmental audio information meets a preset condition, controlling the electronic equipment to ring again; if not, no action is performed.
In some embodiments, the environmental audio information includes speech audio information generated when the user speaks, and the preset condition includes: the environment audio information does not include the speaking voice audio information matched with the preset user voiceprint information, for example, the environment audio information can be set to not include the speaking voice of a specific person; or, the preset conditions include: the corresponding volume in the environmental audio information is smaller than a first preset value, which may be a self-defined value, and is not limited herein.
For example, when the environmental audio information does not include the speaking voice of a specific person, it is determined that the environmental audio information meets a preset condition; and when the environment audio information contains the speaking voice of a specific person, determining that the environment audio information does not meet the preset condition. Or when the volume corresponding to the environmental audio information is smaller than a preset value, determining that the environmental audio information meets a preset condition; and when the volume corresponding to the environment audio information is larger than a preset value, determining that the environment audio information does not meet a preset condition.
Referring to fig. 3, taking the determination of whether the volume corresponding to the environmental audio information is smaller than the preset value as an example, as shown in the figure, if there is a section of audio information greater than 45dB caused by the user picking up something in the environmental audio information, it may be determined that the user should get up, and at this time, the electronic device may not further perform a ringing action, and if the recorded environmental audio information does not include an audio greater than 45dB, it may be determined that the user may not get up, and then the step of controlling the electronic device to ring again may be further performed.
And step S106, controlling the electronic equipment to ring again.
And if the environmental audio information meets the preset condition, controlling the electronic equipment to ring again.
In some embodiments, when the preset condition is not satisfied in the environmental audio information, it is anticipated that the user may not have got up yet. At this point, the processor will send a ring control signal to control the ring element (e.g., speaker) of the electronic device to ring, again alerting the user to get up. The ringing can be matched with voice broadcast or vibration and other forms to remind the user, and the specific control method can be set according to scenes.
The following will illustrate the present invention in conjunction with a specific application scenario:
referring to fig. 3, the user sets the ringing time of the electronic device to 7:30 minutes in the morning, and manually turns off the ringing operation of the electronic device soon after ringing, and then the timer of the electronic device starts to operate and records the elapsed time. If the time length from the current time to the stop time reaches a first threshold, the first threshold is set to 10 minutes, namely 7:40 minutes in the morning, the electronic device starts a microphone and records a section of 2 minutes of environmental audio information, and at the moment, whether the environmental audio information contains audio information larger than a preset value (set to 45dB) or not is judged. As shown in the figure, if there is a section of audio information greater than 45dB caused by the fact that the user picks up something in the environmental audio information, it can be determined that the user should get up, and the preset condition is not satisfied, at this time, the electronic device does not further perform a ringing action, and if the sound volume in the recorded environmental audio information is not greater than 45dB, it can be determined that the user may not get up yet, and the preset condition is satisfied, the electronic device rings again, so as to further prompt the user to ring.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Based on the embodiments of the above steps, first, when the ringing of the electronic device stops, obtaining a stopping time corresponding to the stopping of the ringing, and when it is detected that the stopping time is within a preset time period, judging whether a time length from a current time to the stopping time reaches a first threshold value, so as to give a certain delay time length to a user; then, when the duration reaches a first threshold, acquiring environmental audio information around the electronic equipment with preset duration, and judging whether the environmental audio information meets a preset condition, wherein the preset condition can judge whether the user gets up by setting a volume threshold or detecting whether a speaking sound corresponding to the user exists; and then, controlling the electronic equipment to ring again after a preset condition is met. In the embodiment of the invention, the electronic equipment judges whether the user gets up or not by collecting the environmental audio information based on the getting-up habit of the user, and rings again according to the judgment result if the user possibly does not get up, so that the ring control of the electronic equipment is more intelligent, and a better reminding effect is achieved.
Fig. 4 illustrates another ring control method provided in the embodiment of the present invention, and for convenience of description, only the parts related to the contents of the present invention are illustrated in the figure.
As shown in fig. 4, the ring control method includes the steps of:
in step S201, a plurality of target ring time points in a preset number of days are acquired.
In some embodiments, the predetermined number of days may be at least 2 days or more, and even 1 month or more, and 2 months or more, to ensure that the number of data samples is sufficient. The target alarm time point may be all alarm time points set by a user in a day, or may be a required alarm time point obtained by the electronic device based on some rules.
Step S202, according to a plurality of target ringing time points, determining a preset time period according to a preset rule.
In some embodiments, the electronic device may obtain an alarm period most frequently set by the user by learning the obtained plurality of target alarm time points based on a learning algorithm, and determine the alarm period as the preset period.
Referring to fig. 5, a flow of determining a preset time period according to an embodiment of the present invention is shown, where the flow includes the following steps:
in step S301, the time of day is divided into a plurality of time periods.
Step S302, determining a ratio of the number of the target ring time points to the total number of the target ring time points in each time period.
For example, the target ring time points are all ring time points within one month (which may be calculated based on 22 working days of one month or 30 days of one month), and assuming that there are 40 all the target ring time points and 30 target ring time points in the time period of 7:00 to 8:00 in the morning, it can be known that the number of the target ring time points in the time period of 7:00 to 8:00 in the morning accounts for 75% of the total number.
Step S303, judging whether the ratio is larger than a third preset value.
The third preset value may be a preset value set according to actual conditions, for example, 60%, and when the ratio is greater than 60%, it may be determined that the time period belongs to a common waking time period, and of course, other values may also be set as the third preset value.
Step S304, if yes, determining a time period corresponding to the ratio as a preset time period.
When a time period meets the above conditions, the time period can be determined to belong to a common getting-up time period, and can be determined to be a preset time period, and the electronic device can perform intelligent ring control based on the preset time period. It can be understood that the preset time period can also adopt the existing learning algorithm to learn the target ringing time data and perform dynamic adjustment, so as to realize intelligent control of ringing.
Referring to fig. 4, in step S203, when the ringing of the electronic device stops, a stop time corresponding to the stopping of the ringing is obtained.
In some embodiments, the stopping time may be a time value obtained when the user actively stops the ringing operation on the electronic device, or may be a time value obtained when the electronic device automatically stops ringing based on a certain rule.
Step S204, judging whether the stopping time is within a preset time period; if yes, continuously judging whether the time length from the current time to the stopping time reaches a first threshold value; if not, the next action is not carried out.
In some embodiments, the preset time period may be a time period manually set by the user, and the time period may correspond to the working time of the user or may be a specific schedule for which a reminder is required. Of course, which time period is set may also be obtained by statistical learning based on big data used by the user, for example, counting the time set by the alarm every day, and determining the time period based on the common setting as the preset time period. The length of the preset time period may be 1 hour, 2 hours or any time period in a day, and may be specifically set as required.
For example, the alarm time of the user on the working day every day is set to be between 7:00 and 8:00 in the morning, the electronic device can determine the time period as the working-up time of the user by obtaining the alarm time set by the user every day and inducing the alarm time by a learning algorithm, and then the preset time period related to the working-up alarm time of the user is set to be 7:00 to 8:00 in the morning. Next, when the electronic device detects that the stop time corresponding to the current ringing stop is in the time period, it may be determined that the time point corresponding to the stop time is the user's work-in-attendance time.
Of course, if it is determined that the stop time is not within the preset time period, it may be determined that the ringing time point corresponding to the stop time of the ringing may not be within the time period of the user's attendance, and then the following execution steps may be omitted, so as to ensure that the electronic device does not excessively interfere with the rest of the user outside the time period of the user's attendance.
Step S205, judging whether the time length from the current time to the stopping time reaches a first threshold value; if yes, collecting the environmental audio information around the electronic equipment according to the duration; if not, continuing to wait until the time length from the current time to the stopping time reaches a first threshold value.
And when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value.
In some embodiments, detecting the duration of the current time from the stop time may specifically be triggered by acquiring a ring stop signal of the electronic device, and starting to count time by using a timer of the electronic device based on the time of acquiring the signal. The first threshold may be set to any time length, for example, 10 minutes, or may be set to other time length values, and the specific time length may be set as required to meet different use requirements. And if the result is yes, acquiring the ambient audio information around the electronic equipment according to the duration, and if the duration does not reach the first threshold, continuing timing by a timer in the electronic equipment until the timing result of the timer reaches the first threshold.
And step S206, collecting the environmental audio information around the electronic equipment with preset time length.
And if the time length from the current time to the stopping time reaches a first threshold value, the electronic equipment acquires the environmental audio information around the electronic equipment with preset time length.
In some embodiments, the electronic device collects environmental audio information around the electronic device according to a preset time length, which may be recording environmental audio information for a preset time length after the time length reaches a first threshold value, for example, recording an environmental audio recording lasting for 2 minutes; or recording the environmental audio information in a preset manner within a preset time length, for example, within a period of time after the time length reaches a first threshold, recording the recording with the decibel greater than the preset value when the decibel of the sound reaches the preset value. Of course, the specific audio information obtaining form may be set according to the specific implementation.
In some embodiments, the electronic device may first perform a certain denoising process on the environmental audio information to filter out a slight background sound, so as to retain the environmental audio greater than a certain decibel value, thereby improving the recognition degree of the audio.
Step S207, judging whether the environmental audio information meets a preset condition; if the environmental audio information meets a preset condition, controlling the electronic equipment to ring again; if not, no action is performed.
In some embodiments, the environmental audio information includes speech audio information generated when the user speaks, and the preset condition includes: the environmental audio information does not include the speaking voice audio information matched with the preset user voiceprint information, for example, it may be set that the environmental audio information does not include the speaking voice of a specific person, or the preset condition includes: the volume corresponding to the environmental audio information is smaller than a preset value, and the first preset value may be a self-defined value, which is not limited herein.
For example, when the environmental audio information does not include the speaking voice of a specific person, it is determined that the environmental audio information meets a preset condition; and when the environment audio information contains the speaking voice of a specific person, determining that the environment audio information does not meet the preset condition. Or when the volume corresponding to the environmental audio information is smaller than a preset value, determining that the environmental audio information meets a preset condition; and when the volume corresponding to the environment audio information is larger than a preset value, determining that the environment audio information does not meet a preset condition.
Referring to fig. 6, a flow of determining the environmental audio information according to an embodiment of the present invention is shown.
In some embodiments, the determining of the ambient audio information comprises:
step S401, collecting environmental audio information around the electronic equipment with preset duration.
Step S402, judging whether the volume corresponding to the environment audio information is smaller than a first preset value.
In some embodiments, the first preset value may be set according to actual needs, for example, to avoid misjudgment, a volume threshold corresponding to the audio information may be set to be above 40dB (a large part of the volume of sound generated by a general person in a life process is greater than the value, such as speaking, moving things, walking), so as to distinguish whether the audio information is general environmental background sound or sound generated around the electronic device after the user gets up. Meanwhile, the specific determination process may refer to the scene diagram of fig. 3 and the description of some embodiments described above. And if the volume corresponding to the environment audio information is smaller than the first preset value, executing the next step.
Referring to fig. 4, in step S208, the electronic device is controlled to ring again.
Step S209, if the environmental audio information does not satisfy the preset condition, determining a ring time point corresponding to the ring of this time as a target ring time point, and storing the target ring time point.
In some embodiments, the stored target ring time point may be used as a judgment basis for determining the preset time period by the electronic device. Based on the target ring time points, the electronic device can perform statistical learning on the target ring time points related to the user getting-up time through a learning algorithm, so that the determined preset time period is closer to the actual user getting-up time after more and more target ring time points are obtained subsequently.
In the above embodiment, the volume corresponding to the environmental audio information is judged, so that whether the user gets up after turning off the ring for a period of time can be effectively determined, and if the volume is detected to be smaller than the first preset value, the electronic device can be controlled to ring again, so that the user is further reminded to get up, and adverse consequences such as late arrival at work caused by untimely getting up are avoided.
Referring to fig. 7, another flow of determining the environmental audio information provided by the embodiment of the invention is shown.
In some embodiments, the determining of the ambient audio information comprises:
step S501, collecting environmental audio information around the electronic equipment with preset duration.
Step S502, judging whether the environment audio information contains the speaking voice audio information matched with the preset user voiceprint information; if so, carrying out voice recognition on the speaking voice audio information matched with the preset user voiceprint information; and if not, controlling the electronic equipment to ring again.
Because different people can have different vocal cavity structures, so that the speaking voices of different people can also have differences, the voice characteristics in the speaking voice of the user are called as voiceprint information, and the voiceprint information can be used as the identification basis among different users. When the environmental audio information is acquired, if a certain section of audio information in the environmental audio information can be matched with preset user voiceprint information, the section of audio information is defined as the speaking voice audio information of the user. The user voiceprint information can be stored in a preset form, and when the environmental audio information needs to be compared with the preset user voiceprint information, the user voiceprint information can be called.
In some embodiments, the preset process of the user voiceprint information may be implemented by:
acquiring user voiceprint information;
and associating and storing the user voiceprint information with a preset time period.
The user voiceprint information can be recorded and stored through a microphone of the electronic equipment, and the electronic equipment can provide a corresponding recording function to acquire the user voiceprint information of the user. After logging, the preset time period can be associated to facilitate the calling. For example, if the current time is within a predetermined time period, such as 7:00-8:00 earlier, when the environmental audio information is acquired, the user voiceprint information associated with the predetermined time period is called to be compared with the environmental audio information. It is to be understood that the user voiceprint information may be one, or two or more, and the embodiment of the present invention is not limited herein.
Step S503, if yes, performing speech recognition on the spoken voice audio information matched with the preset user voiceprint information.
Step S504, according to the voice recognition result, acquiring a ring delay instruction corresponding to the voice recognition result.
For example, in the environmental audio information, if the voice of the user is acquired as "delay ringing for 30 minutes", the keyword "delay" for controlling the delay of the electronic device and "30 minutes" may be extracted through voice recognition, and the electronic device may determine how long the delay ringing needs to be executed according to the keyword.
Step S505, judging whether the delay time corresponding to the ring delay instruction is greater than a second threshold value; if the delay time corresponding to the ring delay instruction is greater than a second threshold value, controlling the electronic equipment to ring again; if not, controlling the electronic equipment to delay the ringing to the delay time duration corresponding to the ringing delay instruction.
For example, the second threshold is set to be 20 minutes, and if the delay requirement extracted from the ringing delay instruction of the user through voice recognition is 30 minutes, it may be determined that the delay duration corresponding to the ringing delay instruction of the user is greater than the second threshold. At this time, in order to ensure that the user can be reminded in time, the ring delay instruction of the user may be defined as a pseudo instruction. Therefore, the situation that the user can delay the next ringing to a degree exceeding the controllable expectation by accident can be avoided, and intelligent control of ringing is realized.
Step S506, if the delay time corresponding to the ring delay instruction is greater than a second threshold, controlling the electronic device to ring again.
When the ring delay instruction of the user is defined as a pseudo instruction, the electronic device does not execute the delay requirement on the ring delay instruction, and controls the electronic device to ring again.
Based on the embodiments of the above steps, firstly, the electronic device determines a preset time period related to the waking time commonly used by the user based on the habit of the user, then when the ringing of the electronic device stops, a stop time corresponding to the ringing stop is obtained, and when the stop time is detected to be within the preset time period, whether the time length from the current time to the stop time reaches a first threshold value is judged so as to give the user a certain delay time length; then, when the duration reaches a first threshold, acquiring environmental audio information around the electronic equipment with preset duration, and judging whether the environmental audio information meets a preset condition, wherein the preset condition can judge whether the user gets up by setting a volume threshold or detecting whether the user voiceprint information is included; and then, controlling the electronic equipment to ring again after a preset condition is met. In the embodiment of the invention, the electronic equipment judges whether the user gets up or not by collecting the environmental audio information based on the getting-up habit of the user, and rings again according to the judgment result if the user possibly does not get up, so that the ring control of the electronic equipment is more intelligent, and a better reminding effect is achieved.
Fig. 8 shows a structure of a ring control device according to an embodiment of the present invention, and for convenience of explanation, only a part related to the contents of the present invention is shown in the drawing.
As shown in fig. 8, a ring control apparatus 500 includes a stop time acquisition unit 501, a first determination unit 502, a first information acquisition unit 503, a second determination unit 504, and wherein: control unit 505
A stopping time obtaining unit 501, configured to obtain, when the ringing of the electronic device stops, a stopping time corresponding to the stopping of the ringing.
In some embodiments, the stopping time may be a time value obtained when the user actively stops the ringing operation on the electronic device, or may be a time value obtained when the electronic device automatically stops ringing based on a certain rule.
A first determining unit 502, configured to determine, when it is detected that the stop time is within a preset time period, whether a duration between a current time and the stop time reaches a first threshold; if yes, collecting the environmental audio information around the electronic equipment according to the duration; if not, continuing to wait until whether the time length from the current time to the stopping time reaches a first threshold value.
In some embodiments, the preset time period may be a time period manually set by the user, and the time period may correspond to the working time of the user or may be a specific schedule for which a reminder is required. Of course, which time period is set may also be obtained by statistical learning based on big data used by the user, for example, counting the time set by the alarm every day, and determining the time period based on the common setting as the preset time period. The length of the preset time period may be 1 hour, 2 hours or any time period in a day, and may be specifically set as required.
For example, the alarm time of the user on the working day every day is set to be between 7:00 and 8:00 in the morning, the electronic device can determine the time period as the working-up time of the user by obtaining the alarm time set by the user every day and inducing the alarm time by a learning algorithm, and then the preset time period related to the working-up alarm time of the user is set to be 7:00 to 8:00 in the morning. Next, when the electronic device detects that the stop time corresponding to the current ringing stop is in the time period, it may be determined that the time point corresponding to the stop time is the user's work-in-attendance time.
Of course, if it is determined that the stop time is not within the preset time period, it may be determined that the ringing time point corresponding to the stop time of the ringing may not be within the time period of the user's attendance, and then the following execution steps may be omitted, so as to ensure that the electronic device does not excessively interfere with the rest of the user outside the time period of the user's attendance. And when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value.
In some embodiments, detecting the duration of the current time from the stop time may specifically be triggered by acquiring a ring stop signal of the electronic device, and starting to count time by using a timer of the electronic device based on the time of acquiring the signal. The first threshold may be set to any time length, for example, 10 minutes, or may be set to other time length values, and the specific time length may be set as required to meet different use requirements. And if the result is yes, jumping to the next step, and of course, if the duration does not reach the first threshold, continuing to count time by using a timer in the electronic device until the timing result of the timer reaches the first threshold.
The first information obtaining unit 503 is configured to collect environmental audio information around the electronic device for a preset time.
And if the time length from the current time to the stopping time reaches a first threshold value, the electronic equipment acquires the environmental audio information around the electronic equipment according to the preset time length.
In some embodiments, the electronic device collects environmental audio information around the electronic device according to a preset time length, which may be recording environmental audio information for a preset time length after the time length reaches a first threshold value, for example, recording an environmental audio recording lasting for 2 minutes; or recording the environmental audio information in a preset manner within a preset time length, for example, within a period of time after the time length reaches a first threshold, recording the recording with the decibel greater than the preset value when the decibel of the sound reaches the preset value. Of course, the specific audio information obtaining form may be set according to the specific implementation.
A second determining unit 504, configured to determine whether the environmental audio information meets a preset condition; if the environmental audio information meets a preset condition, controlling the electronic equipment to ring again; if not, no action is performed.
In some embodiments, the environmental audio information includes speech audio information generated when the user speaks, and the preset condition includes: the environmental audio information does not include the speaking voice audio information matched with the preset user voiceprint information, for example, it may be set that the environmental audio information does not include the speaking voice of a specific person, or the preset condition includes: the volume corresponding to the environmental audio information is smaller than a first preset value, and the first preset value may be a self-defined value, which is not limited herein.
For example, when the environmental audio information does not include the speaking voice of a specific person, it is determined that the environmental audio information meets a preset condition; and when the environment audio information contains the speaking voice of a specific person, determining that the environment audio information does not meet the preset condition. Or when the volume corresponding to the environmental audio information is smaller than a preset value, determining that the environmental audio information meets a preset condition; and when the volume corresponding to the environment audio information is larger than a preset value, determining that the environment audio information does not meet a preset condition.
Referring to fig. 3, taking the case that the volume corresponding to the environmental audio information is determined to be smaller than the preset value, as shown in the figure, if there is a section of audio information greater than 45dB caused by the user picking up things in the environmental audio information, it may be determined that the user should get up, and at this time, the electronic device may not further perform a ringing action, and if the recorded environmental audio information does not include audio greater than 45dB, it may be determined that the user may not get up, and then the next step may be further performed.
And a control unit 505, configured to control the electronic device to ring again.
And if the environmental audio information meets the preset condition, controlling the electronic equipment to ring again.
In some embodiments, when the preset condition is not satisfied in the environmental audio information, it is anticipated that the user may not have got up yet. At this point, the processor will send a ring control signal to control the ring element (e.g., speaker) of the electronic device to ring, again alerting the user to get up. The ringing can be matched with voice broadcast or vibration and other forms to remind the user, and the specific control method can be set according to scenes.
The following will illustrate the present invention in conjunction with a specific application scenario:
referring to fig. 3, the user sets the ringing time of the electronic device to 7:30 minutes in the morning, and manually turns off the ringing operation of the electronic device soon after ringing, and then the timer of the electronic device starts to operate and records the elapsed time. If the time length from the current time to the stop time reaches a first threshold, the first threshold is set to 10 minutes, namely 7:40 minutes in the morning, the electronic device starts a microphone and records a section of 2 minutes of environmental audio information, and at the moment, whether the environmental audio information contains audio information larger than a preset value (set to 45dB) or not is judged. As shown in the figure, if there is a section of audio information greater than 45dB caused by the fact that the user picks up something in the environmental audio information, it can be determined that the user should get up, and the preset condition is not satisfied, at this time, the electronic device does not further perform a ringing action, and if the sound volume in the recorded environmental audio information is not greater than the audio of 45dB, it can be determined that the user may not get up yet, and the preset condition is satisfied, then the electronic device rings again, so as to further prompt the user for ringing.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Based on the embodiments of the above steps, first, when the ringing of the electronic device stops, a stopping time corresponding to the stopping of the ringing is obtained, and when the first determining unit detects that the stopping time is within a preset time period, it is determined whether a time length from a current time to the stopping time reaches a first threshold value, so as to give a certain delay time length to a user; then, when the first information acquisition unit detects that the time length reaches a first threshold value, acquiring environmental audio information around the electronic equipment with preset time length, and judging whether the environmental audio information meets preset conditions through a second judgment unit, wherein the preset conditions can judge whether a user gets up by setting a volume threshold value or detecting whether speaking sound corresponding to the user exists; and then, after a preset condition is met, the control unit controls the electronic equipment to ring again. In the embodiment of the invention, the electronic equipment judges whether the user gets up or not by collecting the environmental audio information based on the getting-up habit of the user, and rings again according to the judgment result if the user possibly does not get up, so that the ring control of the electronic equipment is more intelligent, and a better reminding effect is achieved.
Fig. 9 shows a structure of another ring control device according to an embodiment of the present invention, and for convenience of explanation, only the parts related to the contents of the present invention are shown in the figure.
As shown in fig. 9, the ring control device includes a time point acquisition unit 606, a first determination unit 607, a stop time acquisition unit 601, a first judgment unit 602, a first information acquisition unit 603, a second judgment unit 604, a control unit 605, and a second determination unit 608, in which:
a time point obtaining unit 606, configured to obtain a plurality of target ring time points in a preset number of days.
In some embodiments, the predetermined number of days may be at least 2 days or more, and even 1 month or more, and 2 months or more, to ensure that the number of data samples is sufficient. The target alarm time point may be all alarm time points set by a user in a day, or may be a required alarm time point obtained by the electronic device based on some rules.
The first determining unit 607 is configured to determine a preset time period according to a preset rule according to a plurality of target ring time points.
In some embodiments, the electronic device may obtain an alarm period most frequently set by the user by learning the obtained plurality of target alarm time points based on a learning algorithm, and determine the alarm period as the preset period.
Referring to fig. 10, the structure of the first determining unit 607 provided by the embodiment of the present invention is shown, which includes a time period dividing subunit 6071, a ratio determining subunit 6072, a first determining subunit 6073, and a determining subunit 6074, where:
a time period dividing sub-unit 6071 for dividing the time of day into a plurality of time periods.
A ratio determination subunit 6072, configured to determine a ratio of the number of target ring time points to the total number of target ring time points in each time period.
For example, the target ring time points are all ring time points within one month (which may be calculated based on 22 working days of one month or 30 days of one month), and assuming that there are 40 all the target ring time points and 30 target ring time points in the time period of 7:00 to 8:00 in the morning, it can be known that the number of the target ring time points in the time period of 7:00 to 8:00 in the morning accounts for 75% of the total number.
A first determining subunit 6073, configured to determine whether the ratio is greater than a third preset value.
The third preset value may be a preset value set according to actual conditions, for example, 60%, and when the ratio is greater than 60%, it may be determined that the time period belongs to a common waking time period, and of course, other values may also be set as the third preset value.
A determining subunit 6074, configured to determine, if yes, a time period corresponding to the ratio as a preset time period.
When a time period meets the above conditions, the time period can be determined to belong to a common getting-up time period, and can be determined to be a preset time period, and the electronic device can perform intelligent ring control based on the preset time period. It can be understood that the preset time period can also adopt the existing learning algorithm to learn the target ringing time data and perform dynamic adjustment, so as to realize intelligent control of ringing.
Referring to fig. 9, a stop time acquiring unit 601 is configured to acquire, when the alarm of the electronic device stops, a stop time corresponding to when the alarm stops.
In some embodiments, the stopping time may be a time value obtained when the user actively stops the ringing operation on the electronic device, or may be a time value obtained when the electronic device automatically stops ringing based on a certain rule.
A first determining unit 602, configured to determine, when it is detected that the stop time is within a preset time period, whether a duration between a current time and the stop time reaches a first threshold; if yes, collecting the environmental audio information around the electronic equipment according to the duration; if not, continuing to wait until whether the time length from the current time to the stopping time reaches a first threshold value.
In some embodiments, the preset time period may be a time period manually set by the user, and the time period may correspond to the working time of the user or may be a specific schedule for which a reminder is required. Of course, which time period is set may also be obtained by statistical learning based on big data used by the user, for example, counting the time set by the alarm every day, and determining the time period based on the common setting as the preset time period. The length of the preset time period may be 1 hour, 2 hours or any time period in a day, and may be specifically set as required.
For example, the alarm time of the user on the working day every day is set to be between 7:00 and 8:00 in the morning, the electronic device can determine the time period as the working-up time of the user by obtaining the alarm time set by the user every day and inducing the alarm time by a learning algorithm, and then the preset time period related to the working-up alarm time of the user is set to be 7:00 to 8:00 in the morning. Next, when the electronic device detects that the stop time corresponding to the current ringing stop is in the time period, it may be determined that the time point corresponding to the stop time is the user's work-in-attendance time.
Of course, if it is determined that the stop time is not within the preset time period, it may be determined that the ringing time point corresponding to the stop time of the ringing may not be within the time period of the user's attendance, and then the following execution steps may be omitted, so as to ensure that the electronic device does not excessively interfere with the rest of the user outside the time period of the user's attendance.
And when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value.
In some embodiments, detecting the duration of the current time from the stop time may specifically be triggered by acquiring a ring stop signal of the electronic device, and starting to count time by using a timer of the electronic device based on the time of acquiring the signal. The first threshold may be set to any time length, for example, 10 minutes, or may be set to other time length values, and the specific time length may be set as required to meet different use requirements. And if the result is yes, acquiring the ambient audio information around the electronic equipment according to the duration, and if the duration does not reach the first threshold, continuing timing by a timer in the electronic equipment until the timing result of the timer reaches the first threshold.
The first information obtaining unit 603 is configured to collect environmental audio information around the electronic device for a preset time.
And if the time length from the current time to the stopping time reaches a first threshold value, the electronic equipment acquires the environmental audio information around the electronic equipment with preset time length.
In some embodiments, the electronic device collects environmental audio information around the electronic device according to a preset time length, which may be recording environmental audio information for a preset time length after the time length reaches a first threshold value, for example, recording an environmental audio recording lasting for 2 minutes; or recording the environmental audio information in a preset manner within a preset time length, for example, within a period of time after the time length reaches a first threshold, recording the recording with the decibel greater than the preset value when the decibel of the sound reaches the preset value. Of course, the specific audio information obtaining form may be set according to the specific implementation.
In some embodiments, the electronic device may first perform a certain denoising process on the environmental audio information to filter out a slight background sound, so as to retain the environmental audio greater than a certain decibel value, thereby improving the recognition degree of the audio.
A second determining unit 604, configured to determine whether the environmental audio information meets a preset condition; if the environmental audio information meets a preset condition, controlling the electronic equipment to ring again; if not, no action is performed.
In some embodiments, the environmental audio information includes speech audio information generated when the user speaks, and the preset condition includes: the environment audio information does not include the speaking voice audio information matched with the preset user voiceprint information, for example, the environment audio information can be set to not include the speaking voice of a specific person; or, the preset conditions include: the corresponding volume in the environmental audio information is smaller than a first preset value, which may be a self-defined value, and is not limited herein.
For example, when the environmental audio information does not include the speaking voice of a specific person, it is determined that the environmental audio information meets a preset condition; and when the environment audio information contains the speaking voice of a specific person, determining that the environment audio information does not meet the preset condition. Or when the volume corresponding to the environmental audio information is smaller than a first preset value, determining that the environmental audio information meets a preset condition; and when the volume corresponding to the environment audio information is larger than a preset value, determining that the environment audio information does not meet a preset condition.
In some embodiments, the second determining unit 604 is configured to determine whether the volume corresponding to the environmental audio information is smaller than a first preset value, and the ring control apparatus includes:
the first information obtaining unit 603 is configured to collect environmental audio information around the electronic device for a preset time.
The second determining unit 604 is configured to determine whether a volume corresponding to the environmental audio information is smaller than a first preset value.
In some embodiments, the first preset value may be set according to actual needs, for example, to avoid misjudgment, a volume threshold corresponding to the audio information may be set to be above 40dB (a large part of the volume of sound generated by a general person in a life process is greater than the value, such as speaking, moving things, walking), so as to distinguish whether the audio information is general environmental background sound or sound generated around the electronic device after the user gets up. Meanwhile, the specific determination process may refer to the scene diagram of fig. 3 and the description of some embodiments described above. And if the volume corresponding to the environment audio information is smaller than the first preset value, executing the next step.
A control unit 605, configured to control the electronic device to ring again.
A second determining unit 608, configured to determine a ring time point corresponding to the ring of this time as a target ring time point and store the target ring time point if the environment audio information does not meet a preset condition.
In some embodiments, the stored target ring time point may be used as a judgment basis for determining the preset time period by the electronic device. Based on the target ring time points, the electronic device can perform statistical learning on the target ring time points related to the user getting-up time through a learning algorithm, so that the determined preset time period is closer to the actual user getting-up time after more and more target ring time points are obtained subsequently.
In the above embodiment, the volume corresponding to the environmental audio information is judged, so that whether the user gets up after turning off the ring for a period of time can be effectively determined, and if the volume is detected to be smaller than the first preset value, the electronic device can be controlled to ring again, so that the user is further reminded to get up, and adverse consequences such as late arrival at work caused by untimely getting up are avoided.
Referring to fig. 11, there is shown still another configuration of the ring control apparatus according to the embodiment of the present invention, including a first information acquiring unit 603, a second judging unit 604, a control unit 605, a second information acquiring unit 609, a storage unit 610, a voice recognition unit 611, an instruction acquiring unit 612, and a third judging unit 613, where the control unit 605 includes a control sub-unit 6051, where:
in some embodiments, the second determining unit 604 is further configured to determine whether the environmental audio information includes speaking voice audio information that matches preset user voiceprint information. The ring control means then comprise:
the first information obtaining unit 603 is configured to collect, according to a preset duration, environmental audio information around the electronic device.
A second determining unit 604, configured to determine whether the environmental audio information includes audio information of a speaking voice that matches preset user voiceprint information; if so, carrying out voice recognition on the speaking voice audio information matched with the preset user voiceprint information; and if not, controlling the electronic equipment to ring again.
Because different people can have different vocal cavity structures, so that the speaking voices of different people can also have differences, the voice characteristics in the speaking voice of the user are called as voiceprint information, and the voiceprint information can be used as the identification basis among different users. When the environmental audio information is acquired, if a certain section of audio information in the environmental audio information can be matched with preset user voiceprint information, the section of audio information is defined as the speaking voice audio information of the user. The user voiceprint information can be stored in a preset form, and when the environmental audio information needs to be compared with the preset user voiceprint information, the user voiceprint information can be called.
In some embodiments, the preset process of the user voiceprint information can be implemented by the following structure:
a second information obtaining unit 609, configured to obtain user voiceprint information;
a storage unit 610, configured to associate and store the user voiceprint information with a preset time period.
The user voiceprint information can be recorded and stored through a microphone of the electronic equipment, and the electronic equipment can provide a corresponding recording function to acquire the user voiceprint information of the user. After logging, the preset time period can be associated to facilitate the calling. For example, if the current time is within a predetermined time period, such as 7:00-8:00 earlier, when the environmental audio information is acquired, the user voiceprint information associated with the predetermined time period is called to be compared with the environmental audio information. It is to be understood that the user voiceprint information may be one, or two or more, and the embodiment of the present invention is not limited herein.
The voice recognition unit 611 is configured to perform voice recognition on the audio information of the spoken voice matching the preset voiceprint information of the user if the user does not speak.
The instruction obtaining unit 612 is configured to obtain, according to the result of the voice recognition, a ring delay instruction corresponding to the result of the voice recognition.
For example, in the environmental audio information, if the voice of the user is acquired as "delay ringing for 30 minutes", the keyword "delay" for controlling the delay of the electronic device and "30 minutes" may be extracted through voice recognition, and the electronic device may determine how long the delay ringing needs to be executed according to the keyword.
A third determining unit 613, configured to determine whether a delay duration corresponding to the ring delay instruction is greater than a second threshold; if the delay time corresponding to the ring delay instruction is greater than a second threshold value, controlling the electronic equipment to ring again; if not, controlling the electronic equipment to delay the ringing to the delay time duration corresponding to the ringing delay instruction.
For example, the second threshold is set to be 20 minutes, if the delay requirement extracted from the ring delay instruction of the user through voice recognition is 30 minutes, it may be determined that the delay duration corresponding to the ring delay instruction of the user is greater than the second threshold, and at this time, in order to ensure that the user can be prompted in time, the ring delay instruction of the user may be defined as a pseudo instruction. Therefore, the situation that the user can delay the next ringing to a degree exceeding the controllable expectation by accident can be avoided, and intelligent control of ringing is realized.
The control unit 605 includes a control subunit 6051, where the control subunit 605 is configured to control the electronic device to ring again if the delay time duration corresponding to the ring delay instruction is greater than a second threshold.
When the ring delay instruction of the user is defined as a pseudo instruction, the electronic device does not execute the delay requirement on the ring delay instruction, and controls the electronic device to ring again.
Based on the embodiments of the above steps, firstly, the electronic device determines a preset time period related to the waking time commonly used by the user based on the habit of the user, then when the ringing of the electronic device stops, a stopping time corresponding to the stopping of the ringing is obtained, and when the first judging unit detects that the stopping time is within the preset time period, whether the time length from the current time to the stopping time reaches a first threshold value is judged so as to give a certain delay time length to the user; then, when the first information acquisition unit detects that the time length reaches a first threshold value, acquiring environmental audio information around the electronic equipment with preset time length, and judging whether the environmental audio information meets preset conditions through a second judgment unit, wherein the preset conditions can judge whether a user gets up by setting a volume threshold value or detecting whether the environmental audio information contains user voiceprint information; and then, after a preset condition is met, the control unit controls the electronic equipment to ring again. In the embodiment of the invention, the electronic equipment judges whether the user gets up or not by collecting the environmental audio information based on the getting-up habit of the user, and rings again according to the judgment result if the user possibly does not get up, so that the ring control of the electronic equipment is more intelligent, and a better reminding effect is achieved.
In the embodiment of the present invention, the ring control device and the ring control method in the above embodiments belong to the same concept, and any method provided in the embodiment of the ring control method may be run on the ring control device, and a specific implementation process thereof is described in detail in the embodiment of the ring control method, and is not described herein again.
The embodiment of the invention also provides electronic equipment which can be equipment such as a smart phone, a tablet computer, a desktop computer, a notebook computer, a palm computer and the like. Referring to fig. 12, an electronic device 700 includes a processor 701 and a memory 702. The processor 701 is electrically connected to the memory 702.
The processor 700 is a control center of the electronic device 700, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device 700 by running or loading an application program stored in the memory 702 and calling data stored in the memory 702, and processes the data, thereby performing overall monitoring of the electronic device 700.
The memory 702 may be used to store software programs and modules, and the processor 701 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage 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 created according to the use of the server, and the like. Further, the memory 702 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. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
In the embodiment of the present invention, the processor 701 in the electronic device 700 loads instructions corresponding to processes of one or more application programs into the memory 702 according to the following steps, and the processor 701 runs the application program stored in the memory 702, thereby implementing various functions as follows:
when the ringing of the electronic equipment stops, acquiring a stopping time corresponding to the stopping of the ringing;
when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value;
if so, acquiring environmental audio information around the electronic equipment with preset duration;
judging whether the environmental audio information meets a preset condition or not;
and if the environmental audio information meets the preset condition, controlling the electronic equipment to ring again.
In some embodiments, the processor 701 may be further configured to:
judging whether the environment audio information contains speaking voice audio information matched with preset user voiceprint information; and/or
And judging whether the volume corresponding to the environmental audio information is smaller than a first preset value.
In some embodiments, the processor 701 may be further configured to:
if the environment audio information contains the speaking voice audio information matched with the preset user voiceprint information, carrying out voice recognition on the speaking voice audio information matched with the preset user voiceprint information;
acquiring a ringing delay instruction corresponding to the voice recognition result according to the voice recognition result;
judging whether the delay time corresponding to the ringing delay instruction is greater than a second threshold value;
and if the delay time corresponding to the ring delay instruction is greater than the second threshold, controlling the electronic equipment to ring again.
In some embodiments, the processor 701 may be further configured to:
acquiring user voiceprint information;
and associating and storing the user voiceprint information with a preset time period.
In some embodiments, the processor 701 may be further configured to:
acquiring a plurality of target ringing time points in preset days;
and determining a preset time period according to a preset rule according to a plurality of target ringing time points.
In some embodiments, the processor 701 may be further configured to: and if the environment audio information does not meet the preset condition, determining the ringing time point corresponding to the current ringing as the target ringing time point and storing the target ringing time point.
In some embodiments, the processor 701 may be further configured to:
dividing the time of day into a plurality of time segments;
determining the ratio of the number of the target ring time points in each time period to the total number of the target ring time points;
judging whether the ratio is greater than a third preset value or not;
and if so, determining the time period corresponding to the ratio as a preset time period. Based on the embodiments of the above steps, first, when the ringing of the electronic device stops, obtaining a stopping time corresponding to the stopping of the ringing, and when it is detected that the stopping time is within a preset time period, judging whether a time length from a current time to the stopping time reaches a first threshold value, so as to give a certain delay time length to a user; then, when the duration reaches a first threshold, acquiring environmental audio information around the electronic equipment with preset duration, and judging whether the environmental audio information meets a preset condition, wherein the preset condition can judge whether the user gets up by setting a volume threshold or detecting whether a speaking sound corresponding to the user exists; and then, controlling the electronic equipment to ring again after a preset condition is met. In the embodiment of the invention, the electronic equipment judges whether the user gets up or not by collecting the environmental audio information based on the getting-up habit of the user, and controls the electronic equipment to ring again if the user possibly does not get up, so that the ring control of the electronic equipment is more intelligent, and a better reminding effect is achieved.
Referring to fig. 13, in some embodiments, the electronic device 700 may further include: a display 703, a radio frequency circuit 704, an audio circuit 705, a wireless fidelity module 706, and a power supply 707. The display 703, the rf circuit 704, the audio circuit 705, the wireless fidelity module 706, and the power source 707 are electrically connected to the processor 701, respectively.
The display 703 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be comprised of graphics, text, icons, video, and any combination thereof. The display 703 may include a display panel, and in some embodiments, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The radio frequency circuit 704 may be used for transceiving radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and to transceive signals with the network device or other electronic devices.
The audio circuit 705 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The wi-fi module 706 may be used for short-range wireless transmission, may assist a user in sending and receiving e-mail, browsing websites, accessing streaming media, etc., and provides wireless broadband internet access for the user.
The power supply 707 may be used to power various components of the electronic device 700. In some embodiments, the power supply 707 may be logically coupled to the processor 701 through a power management system to manage charging, discharging, and power consumption management functions through the power management system.
Although not shown in fig. 13, the electronic device 700 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are suitable for being loaded by a processor to execute the ring control method in the foregoing embodiment, where the instructions include: when the ringing of the electronic equipment stops, acquiring a stopping time corresponding to the stopping of the ringing; when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value; if so, acquiring environmental audio information around the electronic equipment with preset duration; judging whether the environmental audio information meets a preset condition or not; and if the environmental audio information meets the preset condition, controlling the electronic equipment to ring again.
In the embodiment of the present invention, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the ring control method according to the embodiment of the present invention, it can be understood by a person skilled in the art that all or part of the process of implementing the ring control method according to the embodiment of the present invention can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the ring control method may include the process of the embodiment of the ring control method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the ring control device according to the embodiment of the present invention, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The ring control method, the ring control device, the storage medium and the electronic device provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A ring control method is applied to electronic equipment and is characterized by comprising the following steps:
when the ringing of the electronic equipment stops, acquiring a stopping time corresponding to the stopping of the ringing;
when the stopping time is detected to be within a preset time period, judging whether the time length from the current time to the stopping time reaches a first threshold value or not, wherein the preset time period is obtained through statistical learning based on big data of user habits;
if the time length from the current time to the stopping time reaches the first threshold value, collecting environmental audio information around the electronic equipment with preset time length, wherein the environmental audio information comprises speaking sound audio information generated when a user speaks;
judging whether the environment audio information meets a preset condition, wherein when the environment audio information does not contain speaking voice audio information matched with preset user voiceprint information, the environment audio information is determined to meet the preset condition; and/or when the volume corresponding to the environmental audio information is smaller than a first preset value, determining that the environmental audio information meets a preset condition;
if the environmental audio information meets a preset condition, controlling the electronic equipment to ring again;
if the environment audio information contains the speaking voice audio information matched with the preset user voiceprint information, carrying out voice recognition on the speaking voice audio information matched with the preset user voiceprint information;
acquiring a ringing delay instruction corresponding to the voice recognition result according to the voice recognition result;
judging whether the delay time corresponding to the ringing delay instruction is greater than a second threshold value;
if the delay time corresponding to the ring delay instruction is greater than the second threshold, controlling the electronic equipment to ring again;
and when the stop moment is detected not to be within the preset time period, no processing is carried out.
2. The ring control method according to claim 1, wherein before the determining whether the environmental audio information satisfies a preset condition, further comprising:
acquiring user voiceprint information;
and associating and storing the user voiceprint information with a preset time period.
3. The ring control method according to claim 1, wherein before the determining whether the duration from the current time to the stop time reaches the first threshold when the stop time is detected to be within the preset time period, further comprises:
acquiring a plurality of target ringing time points in preset days;
and determining a preset time period according to a preset rule according to a plurality of target ringing time points.
4. The ring control method according to claim 3, wherein after determining whether the environmental audio information satisfies a predetermined condition, further comprising:
if not, determining the ringing time point corresponding to the current ringing as the target ringing time point and storing.
5. The ring control method according to claim 3, wherein the determining a preset time period according to a preset rule based on a plurality of the target ring time points comprises:
dividing the time of day into a plurality of time segments;
determining the ratio of the number of the target ring time points in each time period to the total number of the target ring time points;
judging whether the ratio is greater than a third preset value or not;
and if so, determining the time period corresponding to the ratio as a preset time period.
6. A ring control device applied to an electronic device, comprising:
a stopping time acquiring unit, configured to acquire, when ringing of the electronic device stops, a stopping time corresponding to when the ringing stops;
the first judging unit is used for judging whether the duration of the current time from the stopping time reaches a first threshold value or not when the stopping time is detected to be within a preset time period, wherein the preset time period is obtained by statistical learning based on big data of user habits;
the first information acquisition unit is used for acquiring environmental audio information around the electronic equipment with preset time duration if the electronic equipment is in the state of the voice, wherein the environmental audio information comprises the voice audio information generated when a user speaks;
the second judging unit is used for judging whether the environment audio information meets a preset condition or not, wherein when the environment audio information does not contain speaking voice audio information matched with preset user voiceprint information, the environment audio information is determined to meet the preset condition; and/or when the volume corresponding to the environmental audio information is smaller than a first preset value, determining that the environmental audio information meets a preset condition;
the control unit is used for controlling the electronic equipment to ring again if the environmental audio information meets a preset condition;
the voice recognition unit is used for carrying out voice recognition on the speaking voice audio information matched with the preset user voiceprint information if the environment audio information contains the speaking voice audio information matched with the preset user voiceprint information;
the instruction acquisition unit is used for acquiring a ringing delay instruction corresponding to the voice recognition result according to the voice recognition result;
the third judging unit is used for judging whether the delay time corresponding to the ringing delay instruction is greater than a second threshold value or not;
the control unit includes: the control subunit is configured to control the electronic device to ring again if the delay duration corresponding to the ring delay instruction is greater than the second threshold;
the first judging unit is further configured to not perform processing when it is detected that the stop time is not within a preset time period.
7. The ring control device according to claim 6, characterized in that it further comprises:
the second information acquisition unit is used for acquiring user voiceprint information; and
and the storage unit is used for associating and storing the user voiceprint information with a preset time period.
8. The ring control device according to claim 6, characterized in that it further comprises:
the time point acquisition unit is used for acquiring a plurality of target ring time points in preset days; and
and the first determining unit is used for determining a preset time period according to a preset rule according to a plurality of target ringing time points.
9. The ring control device according to claim 8, characterized in that it further comprises:
and the second determining unit is used for determining the ringing time point corresponding to the current ringing as the target ringing time point and storing the target ringing time point if the ringing time point is not the target ringing time point.
10. The ring control device according to claim 8, characterized in that the first determination unit comprises:
a time period dividing unit for dividing the time of day into a plurality of time periods;
a ratio determining subunit, configured to determine a ratio of the number of the target ring time points in each time period to the total number of the target ring time points;
the first judgment subunit is used for judging whether the ratio is greater than a third preset value or not; and
and the determining subunit is configured to determine, if yes, the time period corresponding to the ratio as a preset time period.
11. A storage medium storing a plurality of instructions adapted to cause a computer to perform the ring control method according to any one of claims 1 to 5 when the instructions are run on the computer.
12. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, the processor being configured to perform the ring control method of any of claims 1 to 5 by loading the instructions in the memory.
CN201710576010.3A 2017-07-14 2017-07-14 Ring control method, ring control device, storage medium and electronic equipment Expired - Fee Related CN107295193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710576010.3A CN107295193B (en) 2017-07-14 2017-07-14 Ring control method, ring control device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710576010.3A CN107295193B (en) 2017-07-14 2017-07-14 Ring control method, ring control device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107295193A CN107295193A (en) 2017-10-24
CN107295193B true CN107295193B (en) 2020-06-02

Family

ID=60100483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710576010.3A Expired - Fee Related CN107295193B (en) 2017-07-14 2017-07-14 Ring control method, ring control device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107295193B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888770A (en) * 2017-11-07 2018-04-06 合肥联宝信息技术有限公司 A kind of based reminding method and electronic equipment
CN109116978B (en) * 2018-06-06 2021-03-23 北京物灵智能科技有限公司 Light emitting device, interaction method thereof, electronic device and storage medium
CN113766062B (en) * 2020-06-04 2023-08-18 三六零科技集团有限公司 Method, device and storage medium for turning off alarm clock

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634457A (en) * 2012-08-27 2014-03-12 联想(北京)有限公司 Method for controlling alarm clock bell by using sound and electronic apparatus
WO2016128790A1 (en) * 2015-02-10 2016-08-18 Michael Rothschild Systems and methods for enhancing communication device performance during interaction with a voice response system
CN106791215A (en) * 2017-03-28 2017-05-31 广东欧珀移动通信有限公司 Alarm clock establishing method and the mobile terminal with alarm clock function

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080046966A (en) * 2006-11-24 2008-05-28 엘지전자 주식회사 Mobile terminal and method for outputting alarm
CN101571710B (en) * 2009-06-04 2012-12-26 宇龙计算机通信科技(深圳)有限公司 Alarm clock calling method, device and mobile terminal
CN103077721A (en) * 2012-12-25 2013-05-01 百度在线网络技术(北京)有限公司 Voice memorandum method of mobile terminal and mobile terminal
CN105824294A (en) * 2015-01-08 2016-08-03 富泰华工业(深圳)有限公司 System and method of intelligent alarm control
CN106060241A (en) * 2016-05-16 2016-10-26 深圳天珑无线科技有限公司 Mobile terminal having alarm clock functions and method for regulating alarm clock volume thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634457A (en) * 2012-08-27 2014-03-12 联想(北京)有限公司 Method for controlling alarm clock bell by using sound and electronic apparatus
WO2016128790A1 (en) * 2015-02-10 2016-08-18 Michael Rothschild Systems and methods for enhancing communication device performance during interaction with a voice response system
CN106791215A (en) * 2017-03-28 2017-05-31 广东欧珀移动通信有限公司 Alarm clock establishing method and the mobile terminal with alarm clock function

Also Published As

Publication number Publication date
CN107295193A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
TWI603258B (en) Dynamic thresholds for always listening speech trigger
CN109509473B (en) Voice control method and terminal equipment
JP2019117623A (en) Voice dialogue method, apparatus, device and storage medium
US20140037109A1 (en) Method and apparatus for alarm service using context awareness in portable terminal
EP2881939A1 (en) System for speech keyword detection and associated method
CN111819533B (en) Method for triggering electronic equipment to execute function and electronic equipment
JP2022534371A (en) Voice interaction method and device, terminal, and storage medium
CN109274405B (en) Data transmission method and device, electronic equipment and computer readable medium
CN103077721A (en) Voice memorandum method of mobile terminal and mobile terminal
CN107295193B (en) Ring control method, ring control device, storage medium and electronic equipment
CN108073458B (en) Memory recovery method, mobile terminal and computer-readable storage medium
WO2015043505A1 (en) Method, apparatus, and system for sending and receiving social network information
CN111063354B (en) Man-machine interaction method and device
CN109040444B (en) Call recording method, terminal and computer readable storage medium
CN110415703A (en) Voice memos information processing method and device
CN106454953B (en) Flow control method, device and terminal
CN112133302A (en) Method, device and storage medium for pre-awakening terminal
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
CN116113929A (en) Application management method, device and storage medium
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
WO2019242415A1 (en) Position prompt method, device, storage medium and electronic device
CN109923848B (en) Method and device for controlling volume of device and server
CN112435441B (en) Sleep detection method and wearable electronic device
CN112640408A (en) Call prompting method and terminal
CN104052872A (en) Electronic device with ringtone recognition function and ringtone recognition method

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200602

CF01 Termination of patent right due to non-payment of annual fee