WO2018076444A1 - 一种终端声音的关闭方法及装置 - Google Patents

一种终端声音的关闭方法及装置 Download PDF

Info

Publication number
WO2018076444A1
WO2018076444A1 PCT/CN2016/107838 CN2016107838W WO2018076444A1 WO 2018076444 A1 WO2018076444 A1 WO 2018076444A1 CN 2016107838 W CN2016107838 W CN 2016107838W WO 2018076444 A1 WO2018076444 A1 WO 2018076444A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
distance
initial state
state
distance sensor
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.)
Ceased
Application number
PCT/CN2016/107838
Other languages
English (en)
French (fr)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2018076444A1 publication Critical patent/WO2018076444A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • the present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for shutting down a terminal sound.
  • a terminal sound such as an alarm, an incoming call ring tone
  • the smartphone alarm sounds you need to pick up the smart phone and then tap the screen option or swipe the screen to turn off the alarm;
  • the smart phone ringing it needs to be from the pocket, Take out the smartphone or other places, pick up the smartphone from a table, etc., and then press the side button or slide the screen to turn off the ringtone; although the above method turns off the terminal sound, the operation is cumbersome and time consuming.
  • a technical problem to be solved by the embodiments of the present invention is to provide a method and apparatus for shutting down a terminal sound.
  • the terminal sound can be quickly turned off.
  • an embodiment of the present invention provides a method for shutting down a terminal sound, including:
  • the distance sensor set on the terminal is called
  • the distance initial state of the terminal is detected by the distance sensor, and the distance initial state of the terminal is a distance state between the distance sensor and the obstructing object;
  • the terminal sound is turned off when it is detected that the distance initial state of the terminal satisfies the shutdown condition.
  • the detecting the distance initial state of the terminal by using the distance sensor includes:
  • the method when detecting that the initial state of the distance of the terminal meets the shutdown condition, the method includes:
  • the distance sensor is disposed on a front side or a back side of the terminal.
  • the method further includes:
  • the terminal sound is automatically turned off.
  • the embodiment of the invention further provides a device for closing the sound of the terminal, comprising:
  • a detecting module configured to detect whether the terminal sound is sounding, and the terminal sound includes an alarm and an incoming call ringtone
  • Calling a module configured to call a distance sensor set on the terminal when detecting that the terminal sounds up;
  • the detecting module is further configured to detect an initial state of the distance of the terminal by using the distance sensor, where a distance initial state of the terminal is a distance state between the distance sensor and the obstructing object;
  • the sound shutoff module is configured to turn off the terminal sound when it is detected that the distance initial state of the terminal satisfies the close condition.
  • the detecting module is specifically configured to detect whether a distance between the distance sensor and the obstructing object is within a preset range
  • the detecting module is specifically configured to: when detecting that the initial state of the distance of the terminal is changed from the first state to the second state, determining that the distance initial state of the terminal meets the closing condition;
  • the distance initial state of the terminal when it is detected that the distance initial state of the terminal changes from the second state to the first state, it is determined that the distance initial state of the terminal satisfies the shutdown condition.
  • the detecting module is specifically configured to detect whether a distance between the distance sensor and the obstructing object changes if the initial state of the distance of the terminal is not changed, and detect the distance sensor. When the distance between the obstruction changes, it is determined that the distance initial state of the terminal satisfies the closing condition.
  • the distance sensor is disposed on a front side or a back side of the terminal.
  • the detecting module triggers the sound to be turned off if the distance initial state change of the terminal is not detected within a preset time period, and the distance between the distance sensor and the obstructing object is not detected to be changed.
  • the module automatically turns off the terminal sound.
  • the embodiment of the present invention can detect the initial state of the distance of the terminal by calling a distance sensor provided on the terminal when detecting the sound of the terminal, and turn off the sound of the terminal when detecting the change of the initial state of the terminal, thereby enabling Quickly turn off the terminal sound, and realize the automation and intelligence of turning off the terminal sound.
  • FIG. 1 is a schematic flowchart of a method for shutting down a terminal sound according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for shutting down a terminal sound according to another embodiment of the present invention
  • FIG. 3 is a schematic block diagram of a device for turning off a terminal sound according to an embodiment of the present invention
  • FIG. 4 is a schematic block diagram of an intelligent terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for shutting down a terminal sound according to an embodiment of the present invention.
  • the method may be implemented by a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, or a mobile Internet device. (Mobile Internet Devices, MID) or a wearable device, such as a terminal, as shown in FIG. 1, a method for shutting down the terminal sound may include the following steps:
  • the alarm and the incoming call ringtone may be, for example, a system ringtone or a customized ringtone, and the customized ringtone includes an online ringtone and local music.
  • the distance sensor set on the terminal is called.
  • the distance sensor may be, for example, disposed on the front or the back of the terminal.
  • the distance sensor disposed on the terminal when detecting an alarm included in the sound of the terminal or an incoming call ringing, the distance sensor disposed on the terminal is invoked, and the distance sensor may be, for example, an infrared pulse sensor.
  • detecting an alarm included by the terminal sound or an incoming call ringing detecting a state of the distance sensor set on the terminal, if the distance sensor is detected to be in an open state, directly calling the The distance sensor; if the distance sensor is detected to be in the off state, the distance sensor is first turned on, and the distance sensor is called after the distance sensor is turned on.
  • the distance between the distance sensor and the obstructing object is detected by a distance sensor preset on the terminal, and if the distance between the distance sensor and the obstructing object is within a preset range, the terminal is determined.
  • the initial state of the distance is the first state; if not, the distance initial state of the terminal is determined to be the second state.
  • the preset range may be, for example, 0 to 10 cm. If the distance between the distance sensor and the obstruction is less than or equal to 10 cm, the initial state of the terminal is determined to be the first state; The distance between the distance sensor and the obstruction is greater than 10 cm, and it is determined that the distance initial state of the terminal is the second state.
  • the detecting that the distance initial state of the terminal meets the closing condition comprises: detecting whether the initial state of the terminal is changed, and detecting that the distance initial state of the terminal is changed from the first state to the second state, or by When the second state becomes the first state, it is determined that the distance initial state of the terminal satisfies the shutdown condition, and when it is determined that the distance initial state of the terminal satisfies the shutdown condition, the terminal sound is turned off. If it is detected that the distance initial state of the terminal has not changed, detecting whether the distance between the distance sensor and the obstructing object changes, and detecting that the distance of the terminal changes, determining that the distance initial state of the terminal meets the closing condition, And turn off the terminal sound.
  • the terminal sound is automatically turned off.
  • the smart phone when the smart phone is placed on a table, a sofa, a cabinet, or the like, the smart phone may be placed face up, It may be placed face down, whether the smartphone is facing up or face down, as long as the smartphone's alarm or incoming call ringer sounds, the distance sensor detects the distance between the distance sensor and the obstruction. Within the range, it is determined that the initial state of the distance of the smart phone is the first state; if the distance between the distance sensor and the obstructing object is detected to be outside the preset range, determining the initial state of the distance of the smart phone is Two states.
  • the initial state of the distance of the smart phone is changed from the first state by picking up the smart phone or bringing the handle closer to the distance sensor of the smart phone.
  • the second state is changed from the second state to the first state, or when the distance between the distance sensor and the obstruction is changed, the alarm or ringtone of the smart phone is turned off.
  • the distance between the distance sensor and the obstruction is usually within a preset range because the space in the pocket, the handbag, and the like is relatively narrow, so
  • the initial distance state of the smart phone is usually in a first state, and when the alarm of the smart phone or the incoming call ringing sounds, the user of the smart phone takes out the smart phone from the pocket, the handbag, and the like.
  • the method further causes the distance between the distance sensor and the obstructing object to become outside the preset range, so that the distance initial state of the smart phone changes to the second state, and the distance sensor detects the initial state of the smart phone by the first When the state changes to the second state, the alarm or ringtone of the smartphone is turned off. It can be understood that when the user of the smartphone takes out the smartphone from the pocket, the handbag, etc., the distance sensor and the distance sensor are caused. When the distance between the obstructions changes, the closing condition is also met, and when it is determined that the closing condition is met, the smartphone is turned off. Alarm or ringtones.
  • the embodiment of the present invention can detect the initial state of the distance of the terminal by calling a distance sensor provided on the terminal when detecting the sound of the terminal, and turn off the sound of the terminal when detecting the change of the initial state of the terminal, thereby enabling Quickly turn off the terminal sound, and realize the automation and intelligence of turning off the terminal sound.
  • FIG. 2 is a schematic flowchart of a method for shutting down a terminal sound according to another embodiment of the present invention.
  • the method may be performed by a smart phone (such as an Android phone, an iOS phone, a Windows Phone, etc.), a tablet, and a mobile device.
  • a terminal device such as an Internet device or a wearable device is implemented.
  • a method for shutting down a terminal sound may include the following steps:
  • the alarm and the incoming call ringtone may be, for example, a system ringtone or a customized ringtone, and the customized ringtone includes an online ringtone and local music.
  • the distance sensor may be, for example, disposed on the front or the back of the terminal.
  • the distance sensor disposed on the terminal when detecting an alarm included in the sound of the terminal or an incoming call ringing, the distance sensor disposed on the terminal is invoked, and the distance sensor may be, for example, an infrared pulse sensor.
  • detecting an alarm included by the terminal sound or an incoming call ringing detecting a state of the distance sensor set on the terminal, if the distance sensor is detected to be in an open state, directly calling the The distance sensor; if the distance sensor is detected to be in the off state, the distance sensor is first turned on, and the distance sensor is called after the distance sensor is turned on.
  • the distance sensor detects whether the distance between the distance sensor and the obstructing object is within a preset range. If yes, determining that the distance initial state of the terminal is the first state; if not, determining the The distance initial state of the terminal is the second state.
  • the distance initial state of the terminal is a distance state between the distance sensor and the obstructing object, and if the distance sensor preset on the terminal detects that the distance between the distance sensor and the obstructing object is within a preset range, Then, it is determined that the initial state of the terminal is the first state; if not, the distance initial state of the terminal is determined to be the second state.
  • the preset range may be, for example, 0 to 10 cm. If the distance between the distance sensor and the obstruction is less than or equal to 10 cm, the initial state of the terminal is determined to be the first state; The distance between the distance sensor and the obstruction is greater than 10 cm, and it is determined that the distance initial state of the terminal is the second state.
  • S204 detecting whether the initial state of the distance of the terminal is changed, and if yes, turning off the terminal sound; if not, detecting whether a distance between the distance sensor and the obstructing object is changed, and detecting the When the distance changes, the terminal sound is turned off.
  • the detecting whether the initial state of the terminal is changed comprises: detecting whether the initial state of the terminal is changed from the first state to the second state, or whether the second state is changed to the first state, and if so, Then, it is determined that the distance initial state of the terminal satisfies the closing condition, and when it is determined that the distance initial state of the terminal satisfies the closing condition, the terminal sound is turned off. If it is detected that the distance initial state of the terminal has not changed, detecting whether the distance between the distance sensor and the obstructing object changes, and detecting that the distance of the terminal changes, determining that the distance initial state of the terminal meets the closing condition, And turn off the terminal sound.
  • the terminal sound is automatically turned off.
  • the smart phone when the smart phone is placed on a table, a sofa, a cabinet, or the like, the smart phone may be placed face up, It may be placed face down, whether the smartphone is facing up or face down, as long as the smartphone's alarm or incoming call ringer sounds, the distance sensor detects the distance between the distance sensor and the obstruction. Within the range, it is determined that the initial state of the distance of the smart phone is the first state; if the distance between the distance sensor and the obstructing object is detected to be outside the preset range, determining the initial state of the distance of the smart phone is Two states.
  • the initial state of the distance of the smart phone is changed from the first state by picking up the smart phone or bringing the handle closer to the distance sensor of the smart phone.
  • the second state is changed from the second state to the first state, or when the distance between the distance sensor and the obstruction is changed, the alarm or ringtone of the smart phone is turned off.
  • the distance between the distance sensor and the obstruction is usually within a preset range because the space in the pocket, the handbag, and the like is relatively narrow, so
  • the initial distance state of the smart phone is usually in a first state, and when the alarm of the smart phone or the incoming call ringing sounds, the user of the smart phone takes out the smart phone from the pocket, the handbag, and the like.
  • the method further causes the distance between the distance sensor and the obstructing object to become outside the preset range, so that the distance initial state of the smart phone changes to the second state, and the distance sensor detects the initial state of the smart phone by the first When the state changes to the second state, the alarm or ringtone of the smartphone is turned off. It can be understood that when the user of the smartphone takes out the smartphone from the pocket, the handbag, etc., the distance sensor and the distance sensor are caused. When the distance between the obstructions changes, the closing condition is also met, and when it is determined that the closing condition is met, the smartphone is turned off. Alarm or ringtones.
  • the embodiment of the present invention can detect the initial state of the distance of the terminal by calling a distance sensor provided on the terminal when detecting the sound of the terminal, and turn off the sound of the terminal when detecting the change of the initial state of the terminal, thereby enabling Quickly turn off the terminal sound, and realize the automation and intelligence of turning off the terminal sound.
  • FIG. 3 is a schematic block diagram of a device for shutting down a terminal sound according to an embodiment of the present invention.
  • the device may be set, for example, on a smart phone (such as an Android phone, an iOS phone, a Windows Phone, etc.), a tablet, and a mobile device.
  • a device for shutting down a terminal sound according to the embodiment of the present invention including:
  • the detecting module 301 is configured to detect whether the terminal sound is ringing, and the terminal sound includes an alarm and an incoming call ringtone.
  • the detecting module 301 detects whether an alarm or an incoming call ringtone included in the terminal sound is ringing, and the alarm and the incoming call ringtone may be, for example, a system ringtone or a customized ringtone, and the customized ringtone includes an online ringtone and local music.
  • the calling module 302 is configured to call the distance sensor set on the terminal when detecting that the terminal sounds.
  • the distance sensor may be, for example, disposed on the front or the back of the terminal.
  • the calling module 302 calls a distance sensor disposed on the terminal, and the distance sensor may be, for example, an infrared pulse sensor.
  • the detecting module 301 first detects the state of the distance sensor set on the terminal when detecting the alarm included by the terminal sound or the ringing tone of the incoming call, if the detecting module 301 detects the distance sensor If the detection module 301 detects that the distance sensor is in the off state, the distance sensor is first turned on, and the calling module 302 is triggered after the distance sensor is turned on. The distance sensor.
  • the detecting module 301 is further configured to detect a distance initial state of the terminal by using the distance sensor, where a distance initial state of the terminal is a distance state between the distance sensor and the obstructing object.
  • the detecting module 301 detects a distance between the distance sensor and the obstructing object by using a distance sensor preset on the terminal, and if the detecting module 301 detects that the distance between the distance sensor and the obstructing object is preset Within the range, it is determined that the initial state of the terminal is the first state; if not, the distance initial state of the terminal is determined to be the second state.
  • the preset range may be, for example, 0 to 10 cm. If the detecting module 301 detects that the distance between the distance sensor and the obstructing object is less than or equal to 10 cm, determining that the distance initial state of the terminal is the first state; If the detecting module 301 detects that the distance between the distance sensor and the obstructing object is greater than 10 cm, it is determined that the distance initial state of the terminal is the second state.
  • the sound shutoff module 303 is configured to turn off the terminal sound when it is detected that the distance initial state of the terminal satisfies the close condition.
  • the detecting module 301 is further configured to detect whether the initial state of the distance of the terminal satisfies the closing condition. If the detection module 301 detects that the distance initial state of the terminal changes from the first state to the second state, or changes from the second state to the first state, determining that the distance initial state of the terminal meets the shutdown condition, And when it is determined that the distance initial state of the terminal meets the closing condition, the sound closing module 303 is triggered to close the terminal sound.
  • the detection module 301 detects that the distance initial state of the terminal has not changed, detecting whether the distance between the distance sensor and the occlusion object changes, and determining the distance initial state of the terminal when detecting the change of the distance
  • the shutdown condition is met and the sound shutdown module 303 is triggered to turn off the terminal sound.
  • the detection module 301 if the detection module 301 does not detect the distance initial state change of the terminal within a preset duration (for example, 30 s), and does not detect the distance between the distance sensor and the obstruction When a change occurs, the sound shutdown module 303 is triggered to automatically turn off the terminal sound.
  • a preset duration for example, 30 s
  • the smart phone when the smart phone is placed on a table, a sofa, a cabinet, or the like, the smart phone may be placed face up, It may be placed face down, whether the smartphone is face up or face down, as long as the alarm of the smartphone or the incoming call ringing, the detection module 301 detects the distance sensor and the obstruction by the distance sensor.
  • the distance between the smart phones is determined to be the first state; if the detecting module 301 detects that the distance between the distance sensor and the obstructing object is outside the preset range, then determining The distance state of the smartphone is the second state.
  • the initial state of the distance of the smart phone is changed from the first state by picking up the smart phone or bringing the handle closer to the distance sensor of the smart phone.
  • the sound closing module 303 is triggered to turn off the alarm of the smart phone or ring.
  • the distance between the distance sensor and the obstruction is usually within a preset range because the space in the pocket, the handbag, and the like is relatively narrow, so
  • the initial distance state of the smart phone is usually in a first state, and when the alarm of the smart phone or the incoming call ringing sounds, the user of the smart phone takes out the smart phone from the pocket, the handbag, and the like.
  • the method further causes the distance between the distance sensor and the obstructing object to become outside the preset range, so that the distance initial state of the smart phone changes to the second state, and the detecting module 301 detects the initial state of the smart phone by the first
  • the sound closing module 303 is triggered to turn off the alarm or ringtone of the smart phone. It can be understood that when the user of the smart phone takes out the smart phone from the pocket, the handbag, and the like.
  • the closing condition is also satisfied, and is determined at the detecting module 301. When close enough to the conditions that triggered the sound off module 303 to close the smart phone alarm or ringtones.
  • the embodiment of the present invention can detect the initial state of the distance of the terminal by calling a distance sensor provided on the terminal when detecting the sound of the terminal, and turn off the sound of the terminal when detecting the change of the initial state of the terminal, thereby enabling Quickly turn off the terminal sound, and realize the automation and intelligence of turning off the terminal sound.
  • FIG. 4 is a schematic block diagram of an intelligent terminal according to an embodiment of the present invention.
  • the smart terminal in this embodiment as shown in FIG. 4 may include: at least one input device 401; at least one output device 402; at least one processor 403, such as a CPU; and a memory 404, the input device 401, the output device 402, Processor 403 and memory 404 are coupled by bus 405.
  • the memory 404 is used to store instructions, and the processor 403 is used to execute programs stored in the memory 404. among them:
  • the processor 403 is configured to detect whether the terminal sound is sounded, and the terminal sound includes an alarm and an incoming call ringtone.
  • the processor 403 is further configured to invoke a distance sensor disposed on the terminal when detecting that the terminal sounds.
  • the processor 403 is further configured to detect, by the distance sensor, a distance initial state of the terminal, where a distance initial state of the terminal is a distance state between the distance sensor and the obstruction.
  • the processor 403 is further configured to: when detecting that the distance initial state of the terminal meets a shutdown condition, turn off the terminal sound.
  • the terminal sound includes an alarm and an incoming call ringtone
  • the alarm and the incoming call ringtone may be, for example, a system ringtone or a customized ringtone
  • the customized ringtone includes an online ringtone and local music.
  • the distance sensor may be, for example, disposed on the front or the back of the terminal; the distance sensor may be, for example, an infrared pulse sensor.
  • the processor 403 detects the state of the distance sensor set on the terminal when detecting the alarm included in the terminal sound or the ringing tone of the incoming call, and if the processor 403 detects the distance.
  • the distance sensor When the sensor is in the on state, the distance sensor is directly called; if the processor 403 detects that the distance sensor is in the off state, the distance sensor is first turned on, and the distance sensor is called after the distance sensor is turned on.
  • the processor 403 is further configured to: detect, by the distance sensor, a distance initial state of the terminal:
  • Detecting whether the distance between the distance sensor and the obstructing object is within a preset range if yes, determining that the distance initial state of the terminal is the first state; if not, determining that the distance initial state of the terminal is the second state .
  • the preset range may be, for example, 0 to 10 cm. If the processor 403 detects that the distance between the distance sensor and the obstruction is less than or equal to 10 cm, determining that the distance initial state of the terminal is the first state; If the processor 403 detects that the distance between the distance sensor and the obstruction is greater than 10 cm, it is determined that the distance initial state of the terminal is the second state.
  • the processor 403 is further configured to: when detecting that the distance initial state of the terminal meets the shutdown condition, the specific manner of turning off the terminal sound is:
  • the terminal sound is turned off. If it is detected that the distance initial state of the terminal has not changed, detecting whether the distance between the distance sensor and the obstructing object changes, and detecting that the distance of the terminal changes, determining that the distance initial state of the terminal meets the closing condition, And turn off the terminal sound.
  • the processor 403 if the processor 403 does not detect the distance initial state change of the terminal within a preset duration (eg, 30 s), and does not detect the distance between the distance sensor and the obstruction When a change occurs, the terminal sound is automatically turned off.
  • a preset duration eg, 30 s
  • the bus 405 can be divided into an address bus, a data bus, a control bus, and the like.
  • the storage 404 may include a volatile memory such as a random-access memory (RAM); the memory may also include a non-volatile memory such as a flash memory (flash) Memory), hard disk drive or solid-state drive; the memory 404 may also include a combination of the above types of memory.
  • the processor 403 may be a central processing unit (CPU). The processor 403 may further include a hardware chip.
  • the input device 401, the output device 402, and the processor 403, which are described in the embodiments of the present invention, may be used in the first embodiment and the second embodiment of the method for shutting down the terminal sound provided by the embodiment of the present invention.
  • the implementation of the device described in the first embodiment of the apparatus for shutting down the terminal provided by the embodiment of the present invention may be implemented, and details are not described herein.
  • the embodiment of the present invention can detect the initial state of the distance of the terminal by calling a distance sensor provided on the terminal when detecting the sound of the terminal, and turn off the sound of the terminal when detecting the change of the initial state of the terminal, thereby enabling Quickly turn off the terminal sound, and realize the automation and intelligence of turning off the terminal sound.
  • the modules in the apparatus of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种终端声音的关闭方法,包括:检测终端声音是否响起,所述终端声音包括闹铃和来电铃声;在检测到所述终端声音响起时,调用所述终端上设置的距离传感器;通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态;在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。本发明实施例还公开了一种终端声音的关闭装置。采用本发明,可快速关闭终端声音。

Description

一种终端声音的关闭方法及装置
本申请要求于2016年10月31日提交中国专利局,申请号为201610942762.2、发明名称为“一种终端声音的关闭方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机应用技术领域,尤其涉及一种终端声音的关闭方法及装置。
背景技术
现有技术中,当终端声音(例如闹铃、来电铃声)响起时,通常需要通过点击屏幕选项、按侧键或者滑动屏幕的方式来关闭终端声音。以终端为智能手机为例,当该智能手机闹铃响起时,需要先拿起该智能手机然后点击屏幕选项或者滑动屏幕才能关闭闹铃;当该智能手机来电铃声响起时,需先从口袋、手提包等地方拿出或者从桌子等地方拿起该智能手机,然后按侧键或者滑动屏幕才能关闭来电铃声;以上方式虽然关闭了终端声音,但操作繁琐且耗时过长。
发明内容
本发明实施例所要解决的技术问题在于,提供一种终端声音的关闭方法及装置。可快速关闭终端声音。
为了解决上述技术问题,本发明实施例提供了一种终端声音的关闭方法,包括:
检测终端声音是否响起,所述终端声音包括闹铃和来电铃声;
在检测到所述终端声音响起时,调用所述终端上设置的距离传感器;
通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态;
在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。
其中,所述通过所述距离传感器检测所述终端的距离初始状态,包括:
检测所述距离传感器与所述遮挡物之间的距离是否在预设范围之内;
若是,则确定所述终端的距离初始状态为第一状态;
若否,则确定所述终端的距离初始状态为第二状态。
其中,所述在检测到所述终端的距离初始状态满足关闭条件时,包括:
在检测到所述终端的距离初始状态由所述第一状态变为所述第二状态时,确定所述终端的距离初始状态满足所述关闭条件;
或者;
在检测到所述终端的距离初始状态由所述第二状态变为所述第一状态时,确定所述终端的距离初始状态满足所述关闭条件。
其中,若检测到所述终端的距离初始状态未改变,则检测所述距离传感器与所述遮挡物之间的距离是否发生改变,并在检测到所述距离传感器与所述遮挡物之间的距离发生改变时,确定所述终端的距离初始状态满足所述关闭条件。
其中,所述距离传感器设置在所述终端的正面或者背面。
其中,所述方法还包括:
若在预设时长内未检测到所述终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则自动关闭所述终端声音。
相应地,本发明实施例还提供了一种终端声音的关闭装置,包括:
检测模块,设置为检测终端声音是否响起,所述终端声音包括闹铃和来电铃声;
调用模块,设置为在检测到所述终端声音响起时,调用所述终端上设置的距离传感器;
所述检测模块,还设置为通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态;
声音关闭模块,设置为在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。
其中,所述检测模块,具体设置为检测所述距离传感器与所述遮挡物之间的距离是否在预设范围之内;
若是,则确定所述终端的距离初始状态为第一状态;
若否,则确定所述终端的距离初始状态为第二状态。
其中,所述检测模块,具体设置为在检测到所述终端的距离初始状态由所述第一状态变为所述第二状态时,确定所述终端的距离初始状态满足所述关闭条件;
或者,在检测到所述终端的距离初始状态由所述第二状态变为所述第一状态时,确定所述终端的距离初始状态满足所述关闭条件。
其中,所述检测模块,具体设置为若检测到所述终端的距离初始状态未改变,则检测所述距离传感器与所述遮挡物之间的距离是否发生改变,并在检测到所述距离传感器与所述遮挡物之间的距离发生改变时,确定所述终端的距离初始状态满足所述关闭条件。
其中,所述距离传感器设置在所述终端的正面或者背面。
其中,所述检测模块若在预设时长内未检测到所述终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则触发所述声音关闭模块自动关闭所述终端声音。
实施本发明实施例,具有如下有益效果:
本发明实施例能够在检测到终端声音响起时,通过调用该终端上设置的距离传感器检测该终端的距离初始状态,并在检测到该终端的距离初始状态改变时,关闭该终端声音,从而能够快速关闭终端声音,实现了关闭终端声音的自动化以及智能化。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种终端声音的关闭方法的示意流程图;
图 2是本发明另一实施例提供的一种终端声音的关闭方法的示意流程图;
图 3是本发明实施例提供的一种终端声音的关闭装置的示意性框图;
图 4是本发明实施例提供的一种智能终端的示意性框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,是本发明实施例提供的一种终端声音的关闭方法的示意流程图,所述方法可以由智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、移动互联网设备(Mobile Internet Devices,MID)或穿戴式设备等终端来实现,如图1所示一种终端声音的关闭方法可包括以下步骤:
S101、检测终端声音是否响起,所述终端声音包括闹铃和来电铃声。
具体的,检测该终端声音包括的闹铃或者来电铃声是否响起,该闹铃和来电铃声例如可以是系统铃声或者自定义铃声,该自定义铃声包括在线铃声和本地音乐。
S102、在检测到所述终端声音响起时,调用所述终端上设置的距离传感器。
其中,该距离传感器例如可以是设置在该终端的正面或者背面。
具体的,在检测到该终端声音包括的闹铃或者来电铃声响起时,调用该终端上设置的距离传感器,该距离传感器例如可以是红外脉冲传感器。
在一些可行的实施方式中,在检测到该终端声音包括的闹铃或者来电铃声响起时,先检测该终端上设置的距离传感器的状态,若检测到该距离传感器处于开启状态,则直接调用该距离传感器;若检测到该距离传感器处于关闭状态,则先开启该距离传感器,并在开启该距离传感器之后调用该距离传感器。
S103、通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态。
具体的,通过该终端上预置的距离传感器检测该距离传感器与该遮挡物之间的距离,若检测到该距离传感器与该遮挡物之间的距离在预设范围之内,则确定该终端的距离初始状态为第一状态;若否,则确定该终端的距离初始状态为第二状态。
举例来说,该预设范围例如可以是0~10cm,若检测到该距离传感器与该遮挡物之间的距离小于等于10cm,则确定该终端的距离初始状态为第一状态;若检测到该距离传感器与该遮挡物之间的距离大于10cm,则确定该终端的距离初始状态为第二状态。
S104、在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。
其中,检测到该终端的距离初始状态满足关闭条件,包括:检测该终端的距离初始状态是否改变,并在检测到该终端的距离初始状态由该第一状态变为该第二状态,或者由该第二状态变为该第一状态时,确定该终端的距离初始状态满足关闭条件,并在确定该终端的距离初始状态满足该关闭条件时,关闭该终端声音。若检测到该终端的距离初始状态未改变,则检测该距离传感器与该遮挡物之间的距离是否发生改变,并在检测到该距离发生改变时,确定该终端的距离初始状态满足关闭条件,并关闭所述终端声音。
在一些可行的实施方式中,若在预设时长(例如30s)内未检测到该终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则自动关闭该终端声音。
举例来说,以该终端为智能手机且该距离传感器设置在该终端的正面为例,当该智能手机放置在桌子、沙发、柜子等物体上时,该智能手机可能正面朝上放着,也可能正面朝下放着,无论该智能手机是正面朝上还是正面朝下,只要当该智能手机的闹铃或者来电铃声响起时,该距离传感器检测到该距离传感器与遮挡物之间的距离在预设范围之内,则确定该智能手机的距离初始状态为第一状态;若检测到该距离传感器与遮挡物之间的距离在预设范围之外,则确定该智能手机的距离初始状态为第二状态。当该终端的用户在该智能手机的闹铃或者来电铃声响起时,通过将该智能手机拿起或者把手靠近该智能手机的距离传感器等方式导致该智能手机的距离初始状态由该第一状态变为该第二状态,或者由该第二状态变为该第一状态,又或者导致该距离传感器与遮挡物之间的距离发生改变时,关闭该智能手机的闹铃或者来电铃声。当该智能手机是放在口袋、手提包等物品里时,由于口袋、手提包等物品里的空间比较狭窄,该距离传感器与遮挡物之间的距离通常在预设范围之内,因此在这种情况下,该智能手机的初始距离状态通常为第一状态,当该智能手机的闹铃或者来电铃声响起时,该智能手机的用户通过将该智能手机从口袋、手提包等物品里拿出等方式导致该距离传感器与遮挡物之间的距离变为预设范围之外,从而该智能手机的距离初始状态变为第二状态,该距离传感器在检测到该智能手机的初始状态由第一状态变为第二状态时关闭该智能手机的闹铃或者来电铃声,可以理解的是,当该智能手机的用户从口袋、手提包等物品里拿出该智能手机的过程中导致该距离传感器和遮挡物之间的距离发生改变时,同样满足该关闭条件,并在确定满足该关闭条件时,关闭该智能手机的闹铃或者来电铃声。
本发明实施例能够在检测到终端声音响起时,通过调用该终端上设置的距离传感器检测该终端的距离初始状态,并在检测到该终端的距离初始状态改变时,关闭该终端声音,从而能够快速关闭终端声音,实现了关闭终端声音的自动化以及智能化。
参见图2,是本发明另一实施例提供的一种终端声音的关闭方法的示意流程图,所述方法可以由智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、移动互联网设备或穿戴式设备等终端来实现,如图2所示一种终端声音的关闭方法可包括以下步骤:
S201、检测终端声音是否响起,所述终端声音包括闹铃和来电铃声。
具体的,检测该终端声音包括的闹铃或者来电铃声是否响起,该闹铃和来电铃声例如可以是系统铃声或者自定义铃声,该自定义铃声包括在线铃声和本地音乐。
S202、在检测到所述终端声音响起时,调用所述终端上设置的距离传感器。
其中,该距离传感器例如可以是设置在该终端的正面或者背面。
具体的,在检测到该终端声音包括的闹铃或者来电铃声响起时,调用该终端上设置的距离传感器,该距离传感器例如可以是红外脉冲传感器。
在一些可行的实施方式中,在检测到该终端声音包括的闹铃或者来电铃声响起时,先检测该终端上设置的距离传感器的状态,若检测到该距离传感器处于开启状态,则直接调用该距离传感器;若检测到该距离传感器处于关闭状态,则先开启该距离传感器,并在开启该距离传感器之后调用该距离传感器。
S203、通过所述距离传感器检测所述距离传感器与遮挡物之间的距离是否在预设范围之内,若是,则确定所述终端的距离初始状态为第一状态;若否,则确定所述终端的距离初始状态为第二状态。
具体的,该终端的距离初始状态为该距离传感器和遮挡物之间的距离状态,若通过该终端上预置的距离传感器检测到该距离传感器与该遮挡物之间的距离在预设范围之内,则确定该终端的距离初始状态为第一状态;若否,则确定该终端的距离初始状态为第二状态。
举例来说,该预设范围例如可以是0~10cm,若检测到该距离传感器与该遮挡物之间的距离小于等于10cm,则确定该终端的距离初始状态为第一状态;若检测到该距离传感器与该遮挡物之间的距离大于10cm,则确定该终端的距离初始状态为第二状态。
S204、检测所述终端的距离初始状态是否改变,若是,则关闭所述终端声音;若否,则检测所述距离传感器与所述遮挡物之间的距离是否发生改变,并在检测到所述距离发生改变时,关闭所述终端声音。
其中,检测该终端的距离初始状态是否改变,包括:检测该终端的距离初始状态是否由该第一状态变为该第二状态,或者是否由该第二状态变为该第一状态,若是,则确定该终端的距离初始状态满足关闭条件,并在确定该终端的距离初始状态满足关闭条件时,关闭该终端声音。若检测到该终端的距离初始状态未改变,则检测该距离传感器与该遮挡物之间的距离是否发生改变,并在检测到该距离发生改变时,确定该终端的距离初始状态满足关闭条件,并关闭所述终端声音。
在一些可行的实施方式中,若在预设时长(例如30s)内未检测到该终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则自动关闭该终端声音。
举例来说,以该终端为智能手机且该距离传感器设置在该终端的正面为例,当该智能手机放置在桌子、沙发、柜子等物体上时,该智能手机可能正面朝上放着,也可能正面朝下放着,无论该智能手机是正面朝上还是正面朝下,只要当该智能手机的闹铃或者来电铃声响起时,该距离传感器检测到该距离传感器与遮挡物之间的距离在预设范围之内,则确定该智能手机的距离初始状态为第一状态;若检测到该距离传感器与遮挡物之间的距离在预设范围之外,则确定该智能手机的距离初始状态为第二状态。当该终端的用户在该智能手机的闹铃或者来电铃声响起时,通过将该智能手机拿起或者把手靠近该智能手机的距离传感器等方式导致该智能手机的距离初始状态由该第一状态变为该第二状态,或者由该第二状态变为该第一状态,又或者导致该距离传感器与遮挡物之间的距离发生改变时,关闭该智能手机的闹铃或者来电铃声。当该智能手机是放在口袋、手提包等物品里时,由于口袋、手提包等物品里的空间比较狭窄,该距离传感器与遮挡物之间的距离通常在预设范围之内,因此在这种情况下,该智能手机的初始距离状态通常为第一状态,当该智能手机的闹铃或者来电铃声响起时,该智能手机的用户通过将该智能手机从口袋、手提包等物品里拿出等方式导致该距离传感器与遮挡物之间的距离变为预设范围之外,从而该智能手机的距离初始状态变为第二状态,该距离传感器在检测到该智能手机的初始状态由第一状态变为第二状态时关闭该智能手机的闹铃或者来电铃声,可以理解的是,当该智能手机的用户从口袋、手提包等物品里拿出该智能手机的过程中导致该距离传感器和遮挡物之间的距离发生改变时,同样满足该关闭条件,并在确定满足该关闭条件时,关闭该智能手机的闹铃或者来电铃声。
本发明实施例能够在检测到终端声音响起时,通过调用该终端上设置的距离传感器检测该终端的距离初始状态,并在检测到该终端的距离初始状态改变时,关闭该终端声音,从而能够快速关闭终端声音,实现了关闭终端声音的自动化以及智能化。
参见图3,是本发明实施例提供的一种终端声音的关闭装置的示意性框图,所述装置例如可以设置在智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、移动互联网设备或穿戴式设备等终端上,本发明实施例中描述的一种终端声音的关闭装置,包括:
检测模块301,设置为检测终端声音是否响起,所述终端声音包括闹铃和来电铃声。
具体的,该检测模块301检测该终端声音包括的闹铃或者来电铃声是否响起,该闹铃和来电铃声例如可以是系统铃声或者自定义铃声,该自定义铃声包括在线铃声和本地音乐。
调用模块302,设置为在检测到所述终端声音响起时,调用所述终端上设置的距离传感器。
其中,该距离传感器例如可以是设置在该终端的正面或者背面。
具体的,在检测到该终端声音包括的闹铃或者来电铃声响起时,该调用模块302调用该终端上设置的距离传感器,该距离传感器例如可以是红外脉冲传感器。
在一些可行的实施方式中,该检测模块301在检测到该终端声音包括的闹铃或者来电铃声响起时,先检测该终端上设置的距离传感器的状态,若该检测模块301检测到该距离传感器处于开启状态,则触发该调用模块302直接调用该距离传感器;若该检测模块301检测到该距离传感器处于关闭状态,则先开启该距离传感器,并在开启该距离传感器之后触发该调用模块302调用该距离传感器。
所述检测模块301,还设置为通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态。
具体的,该检测模块301通过该终端上预置的距离传感器检测该距离传感器与该遮挡物之间的距离,若该检测模块301检测到该距离传感器与该遮挡物之间的距离在预设范围之内,则确定该终端的距离初始状态为第一状态;若否,则确定该终端的距离初始状态为第二状态。
举例来说,该预设范围例如可以是0~10cm,若该检测模块301检测到该距离传感器与该遮挡物之间的距离小于等于10cm,则确定该终端的距离初始状态为第一状态;若该检测模块301检测到该距离传感器与该遮挡物之间的距离大于10cm,则确定该终端的距离初始状态为第二状态。
声音关闭模块303,设置为在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。
具体的,该检测模块301,还设置为检测所述终端的距离初始状态是否满足该关闭条件。若该检测模块301检测到该终端的距离初始状态由该第一状态变为该第二状态,或者由该第二状态变为该第一状态,则确定该终端的距离初始状态满足关闭条件,并在确定该终端的距离初始状态满足关闭条件时,触发该声音关闭模块303关闭该终端声音。若该检测模块301检测到该终端的距离初始状态未改变,则检测该距离传感器与该遮挡物之间的距离是否发生改变,并在检测到该距离发生改变时,确定该终端的距离初始状态满足关闭条件,并触发该声音关闭模块303关闭所述终端声音。
在一些可行的实施方式中,若该检测模块301在预设时长(例如30s)内未检测到该终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则触发该声音关闭模块303自动关闭该终端声音。
举例来说,以该终端为智能手机且该距离传感器设置在该终端的正面为例,当该智能手机放置在桌子、沙发、柜子等物体上时,该智能手机可能正面朝上放着,也可能正面朝下放着,无论该智能手机是正面朝上还是正面朝下,只要当该智能手机的闹铃或者来电铃声响起时,该检测模块301通过该距离传感器检测到该距离传感器与遮挡物之间的距离在预设范围之内,则确定该智能手机的距离初始状态为第一状态;若该检测模块301检测到该距离传感器与遮挡物之间的距离在预设范围之外,则确定该智能手机的距离初始状态为第二状态。当该终端的用户在该智能手机的闹铃或者来电铃声响起时,通过将该智能手机拿起或者把手靠近该智能手机的距离传感器等方式导致该智能手机的距离初始状态由该第一状态变为该第二状态,或者由该第二状态变为该第一状态,又或者导致该距离传感器与遮挡物之间的距离发生改变时,触发该声音关闭模块303关闭该智能手机的闹铃或者来电铃声。当该智能手机是放在口袋、手提包等物品里时,由于口袋、手提包等物品里的空间比较狭窄,该距离传感器与遮挡物之间的距离通常在预设范围之内,因此在这种情况下,该智能手机的初始距离状态通常为第一状态,当该智能手机的闹铃或者来电铃声响起时,该智能手机的用户通过将该智能手机从口袋、手提包等物品里拿出等方式导致该距离传感器与遮挡物之间的距离变为预设范围之外,从而该智能手机的距离初始状态变为第二状态,该检测模块301在检测到该智能手机的初始状态由第一状态变为第二状态时触发该声音关闭模块303关闭该智能手机的闹铃或者来电铃声,可以理解的是,当该智能手机的用户从口袋、手提包等物品里拿出该智能手机的过程中导致该距离传感器和遮挡物之间的距离发生改变时,同样满足该关闭条件,并在该检测模块301确定满足该关闭条件时,触发该声音关闭模块303关闭该智能手机的闹铃或者来电铃声。
需要说明的是,本发明实施例的一种终端声音的关闭装置的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本发明实施例能够在检测到终端声音响起时,通过调用该终端上设置的距离传感器检测该终端的距离初始状态,并在检测到该终端的距离初始状态改变时,关闭该终端声音,从而能够快速关闭终端声音,实现了关闭终端声音的自动化以及智能化。
参见图4,是本发明实施例提供的一种智能终端的示意性框图。如图4所示的本实施例中的智能终端可以包括:至少一个输入设备401;至少一个输出设备402;至少一个处理器403,例如CPU;和存储器404,上述输入设备401、输出设备402、处理器403和存储器404通过总线405连接。
存储器404用于存储指令,处理器403用于执行存储器404存储的程序。其中:
上述处理器403,用于检测终端声音是否响起,所述终端声音包括闹铃和来电铃声。
上述处理器403,还用于在检测到所述终端声音响起时,调用所述终端上设置的距离传感器。
上述处理器403,还用于通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态。
上述处理器403,还用于在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。
其中,该终端声音包括闹铃和来电铃声,该闹铃和来电铃声例如可以是系统铃声或者自定义铃声,该自定义铃声包括在线铃声和本地音乐。
其中,该距离传感器例如可以是设置在该终端的正面或者背面;该距离传感器例如可以是红外脉冲传感器。
在一些可行的实施方式中,上述处理器403在检测到该终端声音包括的闹铃或者来电铃声响起时,先检测该终端上设置的距离传感器的状态,若上述处理器403,检测到该距离传感器处于开启状态,则直接调用该距离传感器;若上述处理器403检测到该距离传感器处于关闭状态,则先开启该距离传感器,并在开启该距离传感器之后调用该距离传感器。
在一些可行的实施方式中,上述处理器403,还用于通过所述距离传感器检测所述终端的距离初始状态的具体方式为:
检测该距离传感器与该遮挡物之间的距离是否在预设范围之内,若是,则确定该终端的距离初始状态为第一状态;若否,则确定该终端的距离初始状态为第二状态。
举例来说,该预设范围例如可以是0~10cm,若上述处理器403检测到该距离传感器与该遮挡物之间的距离小于等于10cm,则确定该终端的距离初始状态为第一状态;若上述处理器403检测到该距离传感器与该遮挡物之间的距离大于10cm,则确定该终端的距离初始状态为第二状态。
在一些可行的实施方式中,上述处理器403,还用于在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音的具体方式为:
检测该终端的距离初始状态是否由该第一状态变为该第二状态,或者是否由该第二状态变为该第一状态,若是,则确定该终端的距离初始状态满足关闭条件,并在确定该终端的距离初始状态满足关闭条件时,关闭该终端声音。若检测到该终端的距离初始状态未改变,则检测该距离传感器与该遮挡物之间的距离是否发生改变,并在检测到该距离发生改变时,确定该终端的距离初始状态满足关闭条件,并关闭所述终端声音。
在一些可行的实施方式中,若上述处理器403在预设时长(例如30s)内未检测到该终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则自动关闭该终端声音。
上述总线405可以分为地址总线、数据总线、控制总线等。
上述存储404可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive)或固态硬盘(solid-state drive);存储器404还可以包括上述种类的存储器的组合。上述处理器403可以是中央处理器(central processing unit,CPU)。所述处理器403还可以进一步包括硬件芯片。
具体实现中,本发明实施例中所描述的输入设备401、输出设备402和处理器403可执行本发明实施例提供的一种终端声音的关闭方法的第一实施例、第二实施例中所描述的实现方式,也可执行本发明实施例提供的一种终端声音的关闭装置的第一实施例中所描述的装置的实现方式,在此不再赘述。
本发明实施例能够在检测到终端声音响起时,通过调用该终端上设置的距离传感器检测该终端的距离初始状态,并在检测到该终端的距离初始状态改变时,关闭该终端声音,从而能够快速关闭终端声音,实现了关闭终端声音的自动化以及智能化。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例装置中的模块可以根据实际需要进行合并、划分和删减。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。

Claims (12)

  1. 一种终端声音的关闭方法,其特征在于,包括:
    检测终端声音是否响起,所述终端声音包括闹铃和来电铃声;
    在检测到所述终端声音响起时,调用所述终端上设置的距离传感器;
    通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态;
    在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。
  2. 如权利要求1所述的方法,其特征在于,所述通过所述距离传感器检测所述终端的距离初始状态,包括:
    检测所述距离传感器与所述遮挡物之间的距离是否在预设范围之内;
    若是,则确定所述终端的距离初始状态为第一状态;
    若否,则确定所述终端的距离初始状态为第二状态。
  3. 如权利要求2所述的方法,其特征在于,所述在检测到所述终端的距离初始状态满足关闭条件时,包括:
    在检测到所述终端的距离初始状态由所述第一状态变为所述第二状态时,确定所述终端的距离初始状态满足所述关闭条件;
    或者;
    在检测到所述终端的距离初始状态由所述第二状态变为所述第一状态时,确定所述终端的距离初始状态满足所述关闭条件。
  4. 如权利要求3所述的方法,其特征在于,
    若检测到所述终端的距离初始状态未改变,则检测所述距离传感器与所述遮挡物之间的距离是否发生改变,并在检测到所述距离传感器与所述遮挡物之间的距离发生改变时,确定所述终端的距离初始状态满足所述关闭条件。
  5. 如权利要求1~4任一项所述的方法,其特征在于,
    所述距离传感器设置在所述终端的正面或者背面。
  6. 如权利要求1~4任一项所述的方法,其特征在于,所述方法还包括:
    若在预设时长内未检测到所述终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则自动关闭所述终端声音。
  7. 一种终端声音的关闭装置,其特征在于,包括:
    检测模块,设置为检测终端声音是否响起,所述终端声音包括闹铃和来电铃声;
    调用模块,设置为在检测到所述终端声音响起时,调用所述终端上设置的距离传感器;
    所述检测模块,还设置为通过所述距离传感器检测所述终端的距离初始状态,所述终端的距离初始状态为所述距离传感器和遮挡物之间的距离状态;
    声音关闭模块,设置为在检测到所述终端的距离初始状态满足关闭条件时,关闭所述终端声音。
  8. 如权利要求7所述的装置,其特征在于,
    所述检测模块,具体设置为检测所述距离传感器与所述遮挡物之间的距离是否在预设范围之内;若是,则确定所述终端的距离初始状态为第一状态;若否,则确定所述终端的距离初始状态为第二状态。
  9. 如权利要求8所述的装置,其特征在于,
    所述检测模块,具体设置为在检测到所述终端的距离初始状态由所述第一状态变为所述第二状态时,确定所述终端的距离初始状态满足所述关闭条件;或者,在检测到所述终端的距离初始状态由所述第二状态变为所述第一状态时,确定所述终端的距离初始状态满足所述关闭条件。
  10. 如权利要求9所述的装置,其特征在于,
    所述检测模块,具体设置为若检测到所述终端的距离初始状态未改变,则检测所述距离传感器与所述遮挡物之间的距离是否发生改变,并在检测到所述距离传感器与所述遮挡物之间的距离发生改变时,确定所述终端的距离初始状态满足所述关闭条件。
  11. 如权利要求7~10任一项所述的装置,其特征在于,所述距离传感器设置在所述终端的正面或者背面。
  12. 如权利要求7~10任一项所述的装置,其特征在于,
    所述检测模块,还设置为若在预设时长内未检测到所述终端的距离初始状态改变,且未检测到所述距离传感器与所述遮挡物之间的距离发生改变,则触发所述声音关闭模块自动关闭所述终端声音。
PCT/CN2016/107838 2016-10-31 2016-11-30 一种终端声音的关闭方法及装置 Ceased WO2018076444A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610942762.2 2016-10-31
CN201610942762.2A CN106528039A (zh) 2016-10-31 2016-10-31 一种终端声音的关闭方法及装置

Publications (1)

Publication Number Publication Date
WO2018076444A1 true WO2018076444A1 (zh) 2018-05-03

Family

ID=58293063

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/107838 Ceased WO2018076444A1 (zh) 2016-10-31 2016-11-30 一种终端声音的关闭方法及装置

Country Status (2)

Country Link
CN (1) CN106528039A (zh)
WO (1) WO2018076444A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500728A (zh) * 2020-11-13 2022-05-13 华为终端有限公司 来电铃声设置方法、来电提示方法和电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427531A (zh) * 2020-03-17 2020-07-17 北京字节跳动网络技术有限公司 提示方法、装置和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002153A (zh) * 2012-12-10 2013-03-27 广东欧珀移动通信有限公司 便携式终端设备及其关闭闹钟的方法
CN202998242U (zh) * 2012-12-10 2013-06-12 广东欧珀移动通信有限公司 方便关闭闹钟的便携式终端设备
CN105120057A (zh) * 2015-06-26 2015-12-02 小米科技有限责任公司 闹钟控制方法及装置
CN105407212A (zh) * 2015-10-21 2016-03-16 畅索软件科技(上海)有限公司 一种控制终端闹钟的方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102630070A (zh) * 2012-04-24 2012-08-08 天津三星电子有限公司 一种声音播放控制方法及其装置
CN103516889A (zh) * 2013-01-10 2014-01-15 深圳市中兴移动通信有限公司 移动终端静音的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002153A (zh) * 2012-12-10 2013-03-27 广东欧珀移动通信有限公司 便携式终端设备及其关闭闹钟的方法
CN202998242U (zh) * 2012-12-10 2013-06-12 广东欧珀移动通信有限公司 方便关闭闹钟的便携式终端设备
CN105120057A (zh) * 2015-06-26 2015-12-02 小米科技有限责任公司 闹钟控制方法及装置
CN105407212A (zh) * 2015-10-21 2016-03-16 畅索软件科技(上海)有限公司 一种控制终端闹钟的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500728A (zh) * 2020-11-13 2022-05-13 华为终端有限公司 来电铃声设置方法、来电提示方法和电子设备
CN114500728B (zh) * 2020-11-13 2023-07-18 华为终端有限公司 来电铃声设置方法、来电提示方法和电子设备

Also Published As

Publication number Publication date
CN106528039A (zh) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2017113974A1 (zh) 一种语音处理的方法、装置以及终端
WO2018040830A1 (zh) 一种自动存储手机中陌生号码的方法及系统
WO2018076434A1 (zh) 声音信号的输出方法及装置、耳机状态的检测方法及装置
WO2016074386A1 (zh) 一种基于移动终端实现通话灭屏防误触的方法及系统
WO2017161883A1 (zh) 一种数据传输处理的方法、装置以及终端
WO2011150814A1 (zh) 信息处理方法及用户设备
WO2014090013A1 (zh) 来电呼叫信息展示方法及装置
WO2016123898A1 (zh) 一种短信管理方法及其移动终端
WO2018086219A1 (zh) 通话的记录方法、装置和终端
WO2017107561A1 (zh) 一种基于多关联设备的事件提醒方法及系统
WO2015135255A1 (zh) 移动终端及其防止误拨的方法
WO2017067259A1 (zh) 一种指纹传感器的校准参数的获取方法、装置及移动终端
WO2015043173A1 (zh) 一种在通话过程中发送联系人信息的方法及系统
WO2017219665A1 (zh) 移动终端、及其未接来电的处理方法及系统
WO2018054160A1 (zh) 一种移动终端及其实现自定义应用的方法
WO2018035929A1 (zh) 一种验证码的处理方法及装置
WO2017107557A1 (zh) 一种基于移动终端的快捷菜单弹出方法及系统
WO2017067290A1 (zh) 指纹录入方法、装置及终端设备
WO2015081697A1 (zh) 一种终端及终端的录音方法
WO2018040269A1 (zh) 一种图像处理方法及终端
WO2018090465A1 (zh) 视频监控方法、系统以及监控装置
WO2014180150A1 (en) Method, terminal and computer storage medium for triggering a communication with a contact
WO2018058835A1 (zh) 一种通话模式监控方法、系统及通信终端
WO2018076444A1 (zh) 一种终端声音的关闭方法及装置
WO2016086558A1 (zh) 智能终端信息显示方法及智能终端

Legal Events

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

Ref document number: 16919757

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16919757

Country of ref document: EP

Kind code of ref document: A1