WO2017032030A1 - Volume adjusting method and user terminal - Google Patents

Volume adjusting method and user terminal Download PDF

Info

Publication number
WO2017032030A1
WO2017032030A1 PCT/CN2016/080574 CN2016080574W WO2017032030A1 WO 2017032030 A1 WO2017032030 A1 WO 2017032030A1 CN 2016080574 W CN2016080574 W CN 2016080574W WO 2017032030 A1 WO2017032030 A1 WO 2017032030A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
preset
target
touch
pressure value
Prior art date
Application number
PCT/CN2016/080574
Other languages
French (fr)
Chinese (zh)
Inventor
李建林
李家达
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017032030A1 publication Critical patent/WO2017032030A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a volume adjustment method and a user terminal.
  • the embodiment of the invention discloses a volume adjustment method and a user terminal, which can conveniently adjust the volume.
  • a first aspect of the embodiments of the present invention discloses a volume adjustment method, where the method includes:
  • the target pressure value is greater than the first preset pressure value, acquiring a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount;
  • the current volume is adjusted according to the target volume adjustment amount.
  • the touch area includes a first preset touch area and a second preset touch area, where the first preset touch area and the second preset touch area are non-coincident two touch areas, when the touch operation is in the
  • the target volume adjustment amount is a target volume reduction amount
  • the adjusting the current volume according to the target volume adjustment amount includes:
  • the target volume adjustment amount is a target volume increase amount
  • the adjusting the current volume according to the target volume adjustment amount includes:
  • the current volume is increased according to the target volume increase amount.
  • the method further includes: after determining that the target pressure value is greater than the first preset pressure value, the method further includes:
  • the step of acquiring the target volume adjustment amount corresponding to the target touch duration according to the correspondence between the preset touch duration and the volume adjustment amount is performed.
  • the preset fingerprint information includes a first preset fingerprint information and a first The second preset fingerprint information, the first preset fingerprint information and the second preset fingerprint information are different, and when the target fingerprint information matches the first preset fingerprint information, the target volume adjustment amount For the target volume reduction amount, the adjusting the current volume according to the target volume adjustment amount includes:
  • the target volume adjustment amount is a target volume increase amount
  • the adjusting the current volume according to the target volume adjustment amount includes:
  • the current volume is increased according to the target volume increase amount.
  • the method further includes:
  • the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
  • the method further includes:
  • the current volume is adjusted according to the synchronized volume adjustment amount.
  • a second aspect of the embodiment of the present invention discloses a user terminal, where the user terminal includes:
  • a first detecting module configured to detect a target pressure value and a target touch duration applied when the user touches the touch area
  • a first determining module configured to determine whether the target pressure value is greater than a first preset pressure value
  • a first acquiring module when the first determining module determines that the target pressure value is greater than the first preset pressure value, acquiring a time duration of the target touch according to a preset relationship between a touch duration and a volume adjustment amount Corresponding target volume adjustment amount;
  • the first adjustment module is configured to adjust the current volume according to the target volume adjustment amount.
  • the touch area includes a first preset touch area and a second preset touch area, the first preset touch area and the second The preset touch area is two touch areas that are not coincident.
  • the target volume adjustment amount is a target volume reduction amount
  • the An adjustment module is specifically used to:
  • the target The volume adjustment amount is a target volume increase amount
  • the first adjustment module is specifically configured to:
  • the current volume is increased according to the target volume increase amount.
  • the user terminal further includes:
  • a second determining module configured to determine, after the first determining module determines that the target pressure value is greater than the first preset pressure value, whether the target fingerprint information input by the touch operation matches the preset fingerprint information
  • the first acquiring module is triggered to acquire the target according to the preset relationship between the touch duration and the volume adjustment amount. The amount of target volume adjustment corresponding to the touch duration.
  • the preset fingerprint information includes a first preset fingerprint information and a first The second preset fingerprint information, the first preset fingerprint information and the second preset fingerprint information are different, and when the target fingerprint information matches the first preset fingerprint information, the target volume adjustment amount For the target volume reduction amount, the first adjustment module is specifically configured to:
  • the target volume adjustment amount is a target volume increase amount
  • the first adjustment module is specifically configured to:
  • the current volume is increased according to the target volume increase amount.
  • the user terminal further includes:
  • a second detecting module configured to detect, after the first adjusting module adjusts the current volume according to the target volume adjustment amount, whether the adjusted volume is greater than the first preset volume value
  • a third detecting module configured to detect whether there is a headset access when the second detecting module detects that the adjusted volume is greater than the first preset volume value
  • a second adjustment module configured to adjust a current volume value to a second preset volume value when the third detection module detects that the earphone is accessed, where the second preset volume value is smaller than the first preset Volume value.
  • the user terminal further includes:
  • a second acquiring module configured to acquire a first noise volume of the current environment after the first adjusting module adjusts the current volume according to the target volume adjustment amount
  • a fourth detecting module configured to detect a multi-point sliding operation performed by the user in the touch area to slide in a preset direction
  • a third determining module configured to determine whether a pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value
  • a third acquiring module configured to acquire a second noise volume of the current environment when the third determining module determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, And using an absolute value of the difference between the second noise volume and the first noise volume as a synchronous volume adjustment amount;
  • the third adjustment module is configured to adjust the current volume according to the synchronous volume adjustment amount.
  • a third aspect of the embodiments of the present invention discloses a user terminal, where the user terminal includes a processor, and a memory connected to the processor, wherein the memory stores a set of program codes, and the processing The program is used to call the program code stored in the memory, and performs the following operations:
  • the target pressure value is greater than the first preset pressure value, acquiring a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount;
  • the current volume is adjusted according to the target volume adjustment amount.
  • the touch area includes a first preset touch area and a second preset touch area, the first preset touch area and the second The preset touch area is two touch areas that are not coincident, and when the touch operation is a touch operation performed on the first preset touch area, the target volume adjustment amount is a target volume reduction amount, and the processing
  • the manner in which the current volume is adjusted according to the target volume adjustment amount is specifically as follows:
  • the target volume adjustment amount is a target volume increase amount
  • the processor adjusts the current volume according to the target volume adjustment amount.
  • the current volume is increased according to the target volume increase amount.
  • the processor may further perform the following operations:
  • the processor acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
  • the preset fingerprint information includes a first preset fingerprint information and a first The second preset fingerprint information, the first preset fingerprint information and the second preset fingerprint information are different, and when the target fingerprint information matches the first preset fingerprint information, the target volume adjustment amount For the target volume reduction amount, the manner in which the processor adjusts the current volume according to the target volume adjustment amount is specifically:
  • the target volume adjustment amount is a target volume increase amount
  • the processor adjusts the current volume according to the target volume adjustment amount.
  • the current volume is increased according to the target volume increase amount.
  • the processor adjusts the volume according to the target volume. After adjusting the current volume, you can also do the following:
  • the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
  • the processor adjusts the volume according to the target volume After adjusting the current volume, you can also do the following:
  • the current volume is adjusted according to the synchronized volume adjustment amount.
  • the user terminal after the user terminal detects the target pressure value and the target touch duration applied when the touch operation is performed on the touch area, the user terminal determines whether the target pressure value is greater than the first preset pressure value; when the target pressure value is greater than the first When the pressure value is preset, the user terminal acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount, and adjusts the current volume according to the target volume adjustment amount. It can be seen that by implementing the embodiments of the present invention, the volume can be conveniently adjusted.
  • FIG. 1 is a schematic flow chart of a volume adjustment method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a user terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
  • the embodiment of the invention discloses a volume adjustment method and a user terminal, which can conveniently adjust the volume. The details are described below separately.
  • FIG. 1 is a schematic flowchart diagram of a volume adjustment method according to an embodiment of the present invention. As shown in FIG. 1, the volume adjustment method may include the following steps.
  • the target pressure value and the target touch duration applied when the user touches the touch area are detected by the user terminal.
  • the user terminal may include, but is not limited to, a user terminal having a pressure detection function such as a smart phone, a palmtop computer, a notebook computer, and a desktop computer.
  • the operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows Phone 8 operating system, and the like.
  • the user when the user wants to adjust the volume, the user can perform a touch operation on the touch area of the touch screen.
  • the user terminal detects that the user performs a touch operation in the touch area, the user terminal detects the target pressure value applied by the user for the touch operation, and detects the target touch duration of the touch operation.
  • the user terminal determines whether the target pressure value is greater than the first preset pressure value.
  • step S103 is performed; when the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect the current Whether the pressure value applied by the user for the touch operation is greater than the first preset pressure value until the user's finger leaves the touch area (ie, the touch operation ends).
  • the user terminal is preset with a correspondence relationship between the touch duration and the volume adjustment amount.
  • the volume adjustment amount may be a volume increase amount or a volume decrease amount, which is not limited in the embodiment of the present invention.
  • the volume increase amount corresponding to the touch duration of 2 seconds may be set to 5 decibels in advance
  • the volume increase amount corresponding to the touch duration of 3 seconds may be set to 6 decibels or the like.
  • the user terminal when the user terminal determines that the target pressure value is greater than the first preset pressure value, the user terminal acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount. Specifically, the user terminal may acquire a target volume increase amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume increase amount, or the user terminal may according to a preset correspondence between the touch duration and the volume decrease amount. And acquire the target volume reduction amount corresponding to the target touch duration.
  • the volume of the user terminal is adjusted according to the target volume adjustment amount. Specifically, if the target volume adjustment amount is the target volume increase amount, the user terminal increases the volume according to the target volume increase amount; if the target volume adjustment amount is the target volume decrease amount, the user terminal decreases according to the target volume. The amount reduces the volume.
  • the user terminal determines whether the target pressure value is greater than the first preset pressure value; when the target pressure value is greater than When the first preset pressure value is used, the user terminal acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount, and adjusts the current volume according to the target volume adjustment amount. It can be seen that by implementing the embodiments of the present invention, the volume can be conveniently adjusted.
  • FIG. 2 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 2, the volume adjustment method may include the following steps.
  • the user terminal detects a target pressure value and a target touch duration applied when the user performs a touch operation on the touch area.
  • the touch area includes a first preset touch area and a second preset touch area, wherein the first preset touch area and the second preset touch area are two touch areas that are not coincident.
  • the user terminal determines whether the target pressure value is greater than a first preset pressure value.
  • step S203 when the touch operation is a touch operation performed in the first preset touch area, if the user terminal determines that the target pressure value is greater than the first preset pressure value, step S203 is performed. If the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect whether the pressure value applied by the current user to perform the touch operation is greater than the first preset pressure value until the user's finger Leave the touch area (ie, the touch operation ends).
  • step S205 when the touch operation is a touch operation performed in the second preset touch area, if the user terminal determines that the target pressure value is greater than the first preset pressure value, step S205 is performed. If the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect whether the pressure value applied by the current user to perform the touch operation is greater than the first preset pressure value until the user's finger Leave the touch area (ie, the touch operation ends).
  • the user terminal acquires a target volume reduction amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
  • the touch operation is a touch operation performed in the first preset touch area
  • the user terminal determines that the target pressure value is greater than the first preset pressure value
  • the user terminal reduces the touch time and volume according to the preset touch time. A small amount of correspondence, obtaining a target volume reduction amount corresponding to the target touch duration. After the user terminal acquires the target volume reduction amount, step S204 is performed.
  • the user terminal decreases the current volume according to the target volume reduction amount.
  • the user terminal after the user terminal acquires the target volume reduction amount, the user terminal reduces the volume according to the target volume reduction amount.
  • the user terminal acquires a target volume increase amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
  • the touch operation is a touch operation performed in the second preset touch area
  • the user terminal determines that the target pressure value is greater than the first preset pressure value
  • the user terminal increases according to the preset touch duration and volume.
  • the corresponding relationship of the quantities acquires the target volume increase amount corresponding to the target touch duration.
  • step S206 is performed.
  • the user terminal increases the current volume according to the target volume increase amount.
  • the user terminal after the user terminal acquires the target volume increase amount, the user terminal increases the volume according to the target volume increase amount.
  • the volume of the user terminal when the user makes a touch in one touch area, the volume of the user terminal can be enhanced; when the user touches in another touch area, the volume of the user terminal can be reduced. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 3, the volume adjustment method may include the following steps.
  • the user terminal detects a target pressure value and a target touch duration applied when the user touches the touch area.
  • the user terminal determines whether the target pressure value is greater than the first preset pressure value.
  • step S303 if the user terminal determines that the target pressure value is greater than the first preset pressure value, step S303 is performed. If the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect whether the pressure value applied by the current user to perform the touch operation is greater than the first preset pressure value until the user's finger Leave the touch area (ie, the touch operation ends).
  • the user terminal determines whether the target fingerprint information input by the touch operation matches the preset fingerprint information.
  • the preset fingerprint information includes first preset fingerprint information and second preset fingerprint information.
  • the first preset fingerprint information and the second preset fingerprint information are different.
  • step S304 when the target fingerprint information does not match the first preset fingerprint information, the user terminal determines whether the target fingerprint information matches the second preset fingerprint information; when the target fingerprint information When the second preset fingerprint information is matched, step S306 is performed; when the target fingerprint information does not match the second preset fingerprint information, optionally, the process ends.
  • the user terminal may first determine whether the target fingerprint information matches the second preset fingerprint information; and when the target fingerprint information and the second preset fingerprint information When matching, step S306 is performed; when the target fingerprint information and the second preset fingerprint letter When the information does not match, the user terminal determines whether the target fingerprint information matches the first preset fingerprint information; when the target fingerprint information matches the first preset fingerprint information, step S304 is performed; when the target fingerprint information and the first preset If the fingerprint information does not match, optional, the process ends.
  • the user terminal acquires the target volume reduction amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount.
  • the user terminal determines that the target fingerprint information matches the first preset fingerprint information, the user terminal acquires the target volume corresponding to the target touch duration according to the preset relationship between the touch duration and the volume reduction amount. Reduce the amount. After the user terminal acquires the target volume reduction amount, step S305 is performed.
  • the user terminal decreases the current volume according to the target volume reduction amount.
  • the user terminal after the user terminal acquires the target volume reduction amount, the user terminal reduces the volume according to the target volume reduction amount.
  • the user terminal acquires the target volume increase amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount.
  • step S307 is performed.
  • the user terminal increases the current volume according to the target volume increase amount.
  • the user terminal after the user terminal acquires the target volume increase amount, the user terminal increases the volume according to the target volume increase amount.
  • the volume of the user terminal when the user performs a touch operation on the touch area using one finger, the volume of the user terminal can be enhanced; when the user performs a touch operation using another finger, the volume of the user terminal can be reduced. And by identifying the user's fingerprint, other users can be prevented from performing the user terminal. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
  • FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 4, the volume adjustment method may include the following steps.
  • the user terminal detects a target pressure value and a target touch duration applied when the user performs a touch operation on the touch area.
  • the user terminal determines whether the target pressure value is greater than a first preset pressure value.
  • the user terminal determines whether the target pressure value is greater than the first preset pressure value.
  • step S403 is performed; when the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect the current Whether the pressure value applied by the user for the touch operation is greater than the first preset pressure value until the user's finger leaves the touch area (ie, the touch operation ends).
  • the user terminal acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
  • the user terminal adjusts the current volume according to the target volume adjustment amount.
  • the user terminal may increase the current volume according to the target volume increase amount, or decrease the current volume according to the target volume decrease amount.
  • the user terminal detects whether the adjusted volume is greater than the first preset volume value.
  • the user terminal after the user terminal adjusts the current volume according to the target volume adjustment amount, the user terminal detects whether the volume after the adjustment is greater than the first preset volume value. If the user terminal detects that the adjusted volume is greater than the first preset volume value, step S406 is performed; if the user terminal detects that the adjusted volume is less than the first preset volume value, optionally, the process ends.
  • the user terminal detects whether there is a headset access.
  • the user terminal determines that the adjusted volume is greater than the first preset volume value, the user terminal detects whether there is a headset access.
  • the headset may be a wired headset or a wireless Bluetooth headset, which is not limited in the embodiment of the present invention.
  • step S407 is performed; when no earphone access is detected, optionally, whether to detect earphone access is continued until the current volume value is less than the first preset volume value.
  • the user terminal adjusts the current volume value to a second preset volume value.
  • the current volume value is adjusted to the first And a second preset volume value, wherein the second preset volume value is smaller than the first preset volume value.
  • the damage to the user's hearing can be reduced, which is beneficial to improving the user experience.
  • FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 5, the volume adjustment method may include the following steps.
  • the user terminal detects a target pressure value and a target touch duration applied when the user touches the touch area.
  • the user terminal determines whether the target pressure value is greater than the first preset pressure value.
  • the user terminal determines whether the target pressure value is greater than the first preset pressure value.
  • step S503 is performed; when the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect the current Whether the pressure value applied by the user for the touch operation is greater than the first preset pressure value until the user's finger leaves the touch area (ie, the touch operation ends).
  • the user terminal acquires a target volume adjustment amount corresponding to the target touch duration according to a correspondence relationship between the preset touch duration and the volume adjustment amount.
  • the user terminal adjusts the current volume according to the target volume adjustment amount.
  • the user terminal acquires a first noise volume of the current environment.
  • the sound acquiring device is started to acquire the sound signal of the current environment; after the sound signal is acquired, the user terminal analyzes the strength of the sound signal to obtain the current The first noise level of the environment.
  • the sound acquiring device may be a device such as a microphone.
  • the user terminal detects a multi-point sliding operation performed by the user in the touch area to slide in a preset direction.
  • the multi-point sliding operation of the user sliding in the preset direction in the touch area is detected.
  • the multi-point sliding operation may be a two-point sliding operation, a three-point sliding operation, a four-point sliding operation, or the like, which is not limited in the embodiment of the present invention.
  • the sliding multi-point sliding operation may be a multi-point sliding operation of sliding to the left, a multi-point sliding operation of sliding to the right, a multi-point sliding operation of sliding upwards, or a multi-point sliding operation of sliding downward, etc., etc. Make a limit.
  • the user terminal determines whether the pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value.
  • the user terminal when the user terminal detects that the user performs a multi-point sliding operation in the touch area to slide in the preset direction, the user terminal detects the pressure value of each touch point of the multi-point sliding operation, and determines the multiple Whether the pressure value of each touch point of the point sliding operation is greater than the second preset pressure value.
  • step S508 is performed; if the user terminal determines that the pressure value of any touch point of the multi-point sliding operation is less than the first
  • the preset pressure value is optional, and the user terminal continues to detect the pressure value of each touch point of the multi-point sliding operation, and determines whether each touch point of the multi-point sliding operation is greater than the second preset pressure value.
  • the user terminal acquires a second noise volume of the current environment, and uses an absolute value of a difference between the second noise volume and the first noise volume as a synchronous volume adjustment amount.
  • the user terminal when the user terminal determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, the user terminal acquires the sound signal of the current environment again through the sound acquiring device, to The sound signal is parsed to obtain a second noise level of the current environment.
  • the difference between the second noise volume and the first noise volume is calculated, and the absolute value of the difference is used as the synchronous volume adjustment amount.
  • the synchronized volume adjustment amount is 5 decibels. If the second noise volume is 6 decibels and the first noise volume is 7 decibels, the synchronized volume adjustment amount is 1 decibel.
  • the user terminal adjusts the current volume according to the synchronized volume adjustment amount.
  • the current volume is adjusted according to the synchronized volume adjustment amount.
  • the user terminal when the first noise volume is less than the second noise volume, the user terminal increases the current volume according to the synchronous volume adjustment amount.
  • the user terminal decreases the current volume according to the synchronized volume adjustment amount.
  • the synchronization volume adjustment amount is 1 decibel
  • the user terminal is currently The volume is adjusted to 16 decibels.
  • the current volume of the user terminal is 15 decibels
  • the first noise volume is 7 decibels
  • the second noise volume is 6 decibels
  • the synchronization volume adjustment amount is 1 decibel
  • the user terminal is used.
  • the current volume is adjusted to 14 decibels.
  • FIG. 6 is a schematic structural diagram of a user terminal according to an embodiment of the present invention.
  • the user terminal shown in FIG. 6 may include a first detecting module 601, a first determining module 602, a first obtaining module 603, and a first adjusting module 604. among them:
  • the first detecting module 601 is configured to detect a target pressure value and a target touch duration applied when the user touches the touch area.
  • the first detection module 601 of the user terminal detects the target pressure value and the target touch duration applied when the user touches the touch area.
  • the user terminal may include, but is not limited to, a user terminal having a pressure detection function such as a smart phone, a palmtop computer, a notebook computer, and a desktop computer.
  • the operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows Phone 8 operating system, and the like.
  • the user when the user wants to adjust the volume, the user can perform a touch operation on the touch area of the touch screen.
  • the first detecting module 601 detects the target pressure value applied by the user for the touch operation, and detects the target touch duration of the touch operation.
  • the first determining module 602 is configured to determine whether the target pressure value is greater than the first preset pressure value.
  • the first determining module 602 determines whether the target pressure value is greater than the first preset pressure value.
  • the user terminal is preset with a correspondence relationship between the touch duration and the volume adjustment amount.
  • the volume adjustment amount may be a volume increase amount or a volume decrease amount, which is not limited in the embodiment of the present invention.
  • the volume increase amount corresponding to the touch duration of 2 seconds may be set to 5 decibels in advance
  • the volume increase amount corresponding to the touch duration of 3 seconds may be set to 6 decibels or the like.
  • the first acquiring module 603 acquires the corresponding touch duration according to the preset relationship between the touch duration and the volume adjustment amount.
  • the amount of target volume adjustment may be acquired.
  • the first obtaining module 603 may acquire the target volume increase amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume increase amount, or the first acquisition module 603 may be according to the preset touch duration and volume. The correspondence of the amount is reduced, and the target volume reduction amount corresponding to the target touch duration is acquired.
  • the first adjustment module 604 is configured to adjust the current volume according to the target volume adjustment amount.
  • the first adjustment module 604 adjusts the volume of the user terminal according to the target volume adjustment amount. Specifically, if the target volume adjustment amount is the target volume increase amount, the first adjustment module 604 increases the volume according to the target volume increase amount; if the target volume adjustment amount is the target volume decrease amount, the first adjustment module 604 reduces the volume according to the target volume reduction amount.
  • the touch area includes a first preset touch area and a second preset touch area, where the first preset touch area and the second preset touch area are two touch areas that are not coincident.
  • the target volume adjustment amount is the target volume reduction amount
  • the first adjustment module 604 is specifically configured to:
  • the target volume adjustment amount is the target volume increase amount
  • the first adjustment module 604 is specifically configured to:
  • the current volume is increased according to the target volume increase amount.
  • the volume of the user terminal when the user makes a touch in one touch area, the volume of the user terminal can be enhanced; when the user touches in another touch area, the volume of the user terminal can be reduced. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
  • the user terminal shown in FIG. 7 is optimized by the user terminal shown in FIG. 6.
  • the user terminal shown in FIG. 7 may further include a second judging module 605 in addition to all the modules of the user terminal shown in FIG. 6. among them:
  • the second determining module 605 is configured to determine, after the first determining module 602 determines that the target pressure value is greater than the first preset pressure value, whether the target fingerprint information input by the touch operation matches the preset fingerprint information.
  • the triggering first acquiring module 603 acquires the target volume adjusting amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount. .
  • the preset fingerprint information includes the first preset fingerprint information and the second preset fingerprint information, where the first preset fingerprint information and the second preset fingerprint information are different, when the target fingerprint information is first When the preset fingerprint information is matched, the target volume adjustment amount is the target volume reduction amount, and the first adjustment module 604 is specifically configured to:
  • the target volume adjustment amount is the target volume increase amount
  • the first adjustment module 604 is specifically configured to:
  • the current volume is increased according to the target volume increase amount.
  • the volume of the user terminal when the user performs a touch operation in the touch area using one finger, the volume of the user terminal can be enhanced; when the user performs a touch operation using another finger, the volume of the user terminal can be reduced. And by identifying the user's fingerprint, other users can be prevented from performing the user terminal. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
  • the user terminal shown in FIG. 8 is optimized by the user terminal shown in FIG. 6.
  • the user terminal shown in FIG. 8 may further include a second detecting module 606, a third detecting module 607, and a second, in addition to all the modules of the user terminal shown in FIG. Adjustment module 608. among them:
  • the second detecting module 606 is configured to detect, after the first adjusting module 604 adjusts the current volume according to the target volume adjustment amount, whether the adjusted volume is greater than the first preset volume value.
  • the third detecting module 607 is configured to detect whether there is earphone access when the second detecting module 606 detects that the adjusted volume is greater than the first preset volume value.
  • the third detecting module 607 detects whether there is a headset access.
  • the headset may be a wired headset or a wireless Bluetooth headset, which is not limited in the embodiment of the present invention.
  • the second adjustment module 608 is configured to adjust the current volume value to the second preset volume value when the third detection module 607 detects that the earphone is accessed.
  • the second adjusting module 608 adjusts the current volume value to a second preset volume value, where the second preset volume value is smaller than the first preset. Set the volume value.
  • the damage to the user's hearing can be reduced, which is beneficial to improving the user experience.
  • FIG. 9 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
  • the user terminal shown in FIG. 9 is optimized by the user terminal shown in FIG. 6.
  • the user terminal shown in FIG. 9 may include a second acquiring module 609, a fourth detecting module 610, and a third, in addition to all the modules of the user terminal shown in FIG.
  • the judging module 611, the third obtaining module 612, and the third adjusting module 613 among them:
  • the second obtaining module 609 is configured to acquire the first noise volume of the current environment after the first adjusting module 604 adjusts the current volume according to the target volume adjustment amount.
  • the first adjustment module 604 performs the current volume according to the target volume adjustment amount.
  • the second acquisition module 609 will start the sound acquisition device to acquire the sound signal of the current environment; after acquiring the sound signal, the second acquisition module 609 will analyze the intensity of the sound signal to obtain the first noise volume of the current environment.
  • the sound acquiring device may be a device such as a microphone.
  • the fourth detecting module 610 is configured to detect a multi-point sliding operation performed by the user in the touch area to slide in a preset direction.
  • the fourth detecting module 610 detects a multi-point sliding operation of the user sliding in the preset direction in the touch area.
  • the multi-point sliding operation may be a two-point sliding operation, a three-point sliding operation, a four-point sliding operation, or the like, which is not limited in the embodiment of the present invention.
  • the multi-point sliding operation sliding in the preset direction may be a multi-point sliding operation of sliding to the left, a multi-point sliding operation of sliding to the right, a multi-point sliding operation of sliding upward, or a multi-point sliding operation of sliding downward, etc.
  • the embodiments of the invention are not limited.
  • the third determining module 611 is configured to determine whether the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value.
  • the third determining module 611 detects the pressure of each touch point of the multi-point sliding operation. And determining whether the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value. If the third determining module 611 determines that the pressure value of any touch point of the multi-point sliding operation is less than the second preset pressure value, the third determining module 611 continues to detect each touch point of the multi-point sliding operation. The pressure value is determined, and it is determined whether each touch point of the multi-point sliding operation is greater than the second preset pressure value.
  • the third obtaining module 612 is configured to: when the third determining module 611 determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, acquire the second noise volume of the current environment, and obtain the second The absolute value of the difference between the noise volume and the first noise volume is used as the synchronized volume adjustment amount.
  • the third obtaining module 612 acquires the current environment again through the sound acquiring device.
  • the sound signal is parsed to obtain a second noise level of the current environment.
  • the difference between the second noise volume and the first noise volume is calculated, and the absolute value of the difference is used as the synchronization volume adjustment. the amount.
  • the synchronized volume adjustment amount is 5 decibels. If the second noise volume is 6 decibels and the first noise volume is 7 decibels, the synchronized volume adjustment amount is 1 decibel.
  • the third adjustment module 613 is configured to adjust the current volume according to the synchronized volume adjustment amount.
  • the third adjusting module 613 adjusts the current volume according to the synchronized volume adjustment amount.
  • the third adjustment module 613 when the first noise volume is less than the second noise volume, the third adjustment module 613 increases the current volume according to the synchronized volume adjustment amount. When the first noise volume is greater than the second noise volume, the third adjustment module 613 decreases the current volume according to the synchronized volume adjustment amount.
  • the synchronization volume adjustment amount is 1 decibel
  • the third acquisition module 612 acquires the synchronized volume adjustment amount
  • the third The three adjustment module 613 adjusts the current volume of the user terminal to 16 decibels.
  • the synchronization volume adjustment amount is 1 decibel
  • the third acquisition module 612 obtains the synchronization volume adjustment amount
  • the third adjustment module 613 adjusts the current volume of the user terminal to 14 decibels.
  • the first determining module determines whether the target pressure value is greater than the first. a preset pressure value; when the target pressure value is greater than the first preset pressure value, the first acquisition module acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount; The adjustment module adjusts the current volume according to the target volume adjustment amount. It can be seen that by implementing the embodiments of the present invention, the volume can be conveniently adjusted.
  • FIG. 10 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
  • the user terminal includes a processor 1001 and a memory 1003 coupled to the processor 1001 via a bus 1002.
  • the memory 1003 stores a set of program codes, and the processor 1001 is configured to call the program code stored in the memory 1003 to perform the following operations:
  • the target volume adjustment amount corresponding to the target touch duration is acquired according to the preset relationship between the touch duration and the volume adjustment amount;
  • the current volume is adjusted according to the target volume adjustment amount.
  • the touch area includes a first preset touch area and a second preset touch area, where the first preset touch area and the second preset touch area are non-coincident two touch areas when the touch
  • the target volume adjustment amount is the target volume reduction amount
  • the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
  • the target volume adjustment amount is the target volume increase amount
  • the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
  • the current volume is increased according to the target volume increase amount.
  • the processor 1001 calls the program code stored in the memory 1003, and after determining that the target pressure value is greater than the first preset pressure value, the following operations may also be performed:
  • the processor 1001 acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount.
  • the preset fingerprint information includes the first preset fingerprint information and the second preset fingerprint information, where the first preset fingerprint information and the second preset fingerprint information are different, when the target fingerprint information is first
  • the target volume adjustment amount is the target volume reduction amount
  • the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
  • the target volume adjustment amount is the target volume increase amount
  • the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
  • the current volume is increased according to the target volume increase amount.
  • the processor 1001 calls the program code stored in the memory 1003, and after adjusting the current volume according to the target volume adjustment amount, the following operations may also be performed:
  • the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
  • the processor 1001 calls the program code stored in the memory 1003, and after adjusting the current volume according to the target volume adjustment amount, the following operations may also be performed:
  • the current volume is adjusted according to the amount of synchronized volume adjustment.
  • the modules in the user terminal of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the program may be programmed by the terminal device related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may include: a flash disk, a read-only memory (ROM), and a random memory. Random Access Memory (RAM), disk or CD.
  • a computer readable storage medium may include: a flash disk, a read-only memory (ROM), and a random memory. Random Access Memory (RAM), disk or CD.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a volume adjusting method and a user terminal. The method comprises: detecting a target pressure value applied by and a target touch duration of a user when performing a touch operation with respect to a touch area; determining whether or not the target pressure value is greater than a first preset pressure value; when the target pressure value is greater than the first preset pressure value, acquiring, on the basis of preset correlations between touch durations and volume adjustment magnitudes, a target volume adjustment magnitude corresponding to the target touch duration; and adjusting a current volume on the basis of the target volume adjustment magnitude. This shows that the implementation of embodiments of the present invention allows convenient volume adjustment.

Description

一种音量调节方法及用户终端Volume adjustment method and user terminal
本发明要求2015年08月27日递交的发明名称为“一种音量调节方法及用户终端”的申请号为201510541545.8的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application filed on August 27, 2015, entitled "A Volume Adjustment Method and User Terminal", No. 201510541545.8, the contents of which are incorporated herein by reference. in.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种音量调节方法及用户终端。The present invention relates to the field of communications technologies, and in particular, to a volume adjustment method and a user terminal.
背景技术Background technique
随着智能终端(如智能手机、PAD等)的发展,智能终端已成为人们生活中必不可少的物品。在日常生活中,人们经常使用智能终端播放音乐或观看视频。在用户使用智能终端播放音乐或观看视频的过程中,经常会对智能终端的播放音量进行调节。在现有技术中,用户可通过拖动音量控制滑动条上的滑标至音量控制滑动条上不同的位置,来增大或减小音量。在实践中发现,由于音量控制滑动条中的滑标太小,用户并不容易拖动滑标在音量控制滑动条上进行滑动,往往用户需要几次拖动滑标才能将音量调节至用户想要的音量。因此,现有的音量调节方法便利性较低。With the development of smart terminals (such as smart phones, PAD, etc.), smart terminals have become an indispensable item in people's lives. In daily life, people often use smart terminals to play music or watch videos. In the process of the user playing the music or watching the video using the smart terminal, the playback volume of the smart terminal is often adjusted. In the prior art, the user can increase or decrease the volume by dragging the slider on the volume control slider to a different position on the volume control slider. In practice, it is found that since the slider in the volume control slider is too small, the user does not easily drag the slider to slide on the volume control slider, and often the user needs to drag the slider several times to adjust the volume to the user's desire. The volume you want. Therefore, the existing volume adjustment method is less convenient.
发明内容Summary of the invention
本发明实施例公开了一种音量调节方法及用户终端,能够便利地调节音量。The embodiment of the invention discloses a volume adjustment method and a user terminal, which can conveniently adjust the volume.
本发明实施例第一方面公开了一种音量调节方法,所述方法包括:A first aspect of the embodiments of the present invention discloses a volume adjustment method, where the method includes:
检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长;Detecting a target pressure value and a target touch duration applied when the user touches the touch area;
判断所述目标压力值是否大于第一预设压力值;Determining whether the target pressure value is greater than a first preset pressure value;
当所述目标压力值大于所述第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量;When the target pressure value is greater than the first preset pressure value, acquiring a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount;
根据所述目标音量调节量对当前音量进行调节。The current volume is adjusted according to the target volume adjustment amount.
在本发明实施例第一方面的第一种可能的实现方式中,所述触摸区域包括 第一预设触摸区域和第二预设触摸区域,所述第一预设触摸区域和所述第二预设触摸区域为不重合的两个触摸区域,当所述触摸操作为在所述第一预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量减小量,所述根据所述目标音量调节量对当前音量进行调节包括:In a first possible implementation manner of the first aspect of the embodiment, the touch area includes a first preset touch area and a second preset touch area, where the first preset touch area and the second preset touch area are non-coincident two touch areas, when the touch operation is in the When the touch operation is performed by a preset touch area, the target volume adjustment amount is a target volume reduction amount, and the adjusting the current volume according to the target volume adjustment amount includes:
根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
当所述触摸操作为在所述第二预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量增加量,所述根据所述目标音量调节量对当前音量进行调节包括:When the touch operation is a touch operation performed on the second preset touch area, the target volume adjustment amount is a target volume increase amount, and the adjusting the current volume according to the target volume adjustment amount includes:
根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
在本发明实施例第一方面的第二种可能的实现方式中,所述在判断所述目标压力值大于所述第一预设压力值之后,所述方法还包括:In a second possible implementation manner of the first aspect of the embodiment, the method further includes: after determining that the target pressure value is greater than the first preset pressure value, the method further includes:
判断所述触摸操作输入的目标指纹信息是否与预设指纹信息相匹配;Determining whether the target fingerprint information input by the touch operation matches the preset fingerprint information;
当所述目标指纹信息与所述预设指纹信息相匹配时,执行所述根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量的步骤。When the target fingerprint information is matched with the preset fingerprint information, the step of acquiring the target volume adjustment amount corresponding to the target touch duration according to the correspondence between the preset touch duration and the volume adjustment amount is performed.
结合本发明实施例第一方面的第二种可能的实现方式,在本发明实施例第一方面的第三种可能的实现方式中,所述预设指纹信息包括第一预设指纹信息和第二预设指纹信息,所述第一预设指纹信息和所述第二预设指纹信息不同,当所述目标指纹信息与所述第一预设指纹信息相匹配时,所述目标音量调节量为目标音量减小量,所述根据所述目标音量调节量对当前音量进行调节包括:With reference to the second possible implementation manner of the first aspect of the embodiment of the present invention, in a third possible implementation manner of the first aspect of the embodiments, the preset fingerprint information includes a first preset fingerprint information and a first The second preset fingerprint information, the first preset fingerprint information and the second preset fingerprint information are different, and when the target fingerprint information matches the first preset fingerprint information, the target volume adjustment amount For the target volume reduction amount, the adjusting the current volume according to the target volume adjustment amount includes:
根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
当所述目标指纹信息与所述第二预设指纹信息相匹配时,所述目标音量调节量为目标音量增加量,所述根据所述目标音量调节量对当前音量进行调节包括:When the target fingerprint information matches the second preset fingerprint information, the target volume adjustment amount is a target volume increase amount, and the adjusting the current volume according to the target volume adjustment amount includes:
根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
结合本发明实施例第一方面或第一方面的第二种可能的实现方式,在本发明实施例第一方面的第四种可能的实现方式中,所述根据所述目标音量调节量对当前音量进行调节之后,所述方法还包括:With reference to the first aspect of the embodiments of the present invention or the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect of the embodiments, After the volume is adjusted, the method further includes:
检测调节后的音量是否大于第一预设音量值; Detecting whether the adjusted volume is greater than the first preset volume value;
当所述调节后的音量大于所述第一预设音量值时,检测是否有耳机接入;When the adjusted volume is greater than the first preset volume value, detecting whether there is a headset access;
当检测到有耳机接入时,将当前音量值调节为第二预设音量值,所述第二预设音量值小于所述第一预设音量值。When it is detected that there is a headset access, the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
结合本发明实施例第一方面或第一方面的第二种可能的实现方式,在本发明实施例第一方面的第五种可能的实现方式中,所述根据所述目标音量调节量对当前音量进行调节之后,所述方法还包括:With reference to the first aspect of the embodiment of the present invention or the second possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect of the embodiment, After the volume is adjusted, the method further includes:
获取当前环境的第一噪声音量;Obtaining the first noise level of the current environment;
检测用户在触摸区域进行的向预设方向滑动的多点滑动操作;Detecting a multi-point sliding operation of the user sliding in a preset direction in the touch area;
判断所述多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;Determining whether the pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value;
当所述多点滑动操作的每一触摸点的压力值均大于所述第二预设压力值时,获取当前环境的第二噪声音量,并将所述第二噪声音量与所述第一噪声音量的差值的绝对值作为同步音量调节量;Obtaining a second noise volume of the current environment when the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, and the second noise volume and the first noise The absolute value of the difference in volume is used as the synchronous volume adjustment amount;
根据所述同步音量调节量对当前音量进行调节。The current volume is adjusted according to the synchronized volume adjustment amount.
本发明实施例第二方面公开了一种用户终端,所述用户终端包括:A second aspect of the embodiment of the present invention discloses a user terminal, where the user terminal includes:
第一检测模块,用于检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长;a first detecting module, configured to detect a target pressure value and a target touch duration applied when the user touches the touch area;
第一判断模块,用于判断所述目标压力值是否大于第一预设压力值;a first determining module, configured to determine whether the target pressure value is greater than a first preset pressure value;
第一获取模块,当所述第一判断模块判断所述目标压力值大于所述第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量;a first acquiring module, when the first determining module determines that the target pressure value is greater than the first preset pressure value, acquiring a time duration of the target touch according to a preset relationship between a touch duration and a volume adjustment amount Corresponding target volume adjustment amount;
第一调节模块,用于根据所述目标音量调节量对当前音量进行调节。The first adjustment module is configured to adjust the current volume according to the target volume adjustment amount.
在本发明实施例第二方面的第一种可能的实现方式中,所述触摸区域包括第一预设触摸区域和第二预设触摸区域,所述第一预设触摸区域和所述第二预设触摸区域为不重合的两个触摸区域,当所述触摸操作为在所述第一预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量减小量,所述第一调节模块具体用于:In a first possible implementation manner of the second aspect of the embodiment, the touch area includes a first preset touch area and a second preset touch area, the first preset touch area and the second The preset touch area is two touch areas that are not coincident. When the touch operation is a touch operation performed on the first preset touch area, the target volume adjustment amount is a target volume reduction amount, and the An adjustment module is specifically used to:
根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
当所述触摸操作为在所述第二预设触摸区域进行的触摸操作时,所述目标 音量调节量为目标音量增加量,所述第一调节模块具体用于:When the touch operation is a touch operation performed on the second preset touch area, the target The volume adjustment amount is a target volume increase amount, and the first adjustment module is specifically configured to:
根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
在本发明实施例第二方面的第二种可能的实现方式中,所述用户终端还包括:In a second possible implementation manner of the second aspect of the embodiment, the user terminal further includes:
第二判断模块,用于在所述第一判断模块判断所述目标压力值大于所述第一预设压力值之后,判断所述触摸操作输入的目标指纹信息是否与预设指纹信息相匹配;a second determining module, configured to determine, after the first determining module determines that the target pressure value is greater than the first preset pressure value, whether the target fingerprint information input by the touch operation matches the preset fingerprint information;
当所述第二判断模块判断所述目标指纹信息与所述预设指纹信息相匹配时,触发所述第一获取模块根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量。When the second determining module determines that the target fingerprint information matches the preset fingerprint information, the first acquiring module is triggered to acquire the target according to the preset relationship between the touch duration and the volume adjustment amount. The amount of target volume adjustment corresponding to the touch duration.
结合本发明实施例第二方面的第二种可能的实现方式,在本发明实施例第二方面的第三种可能的实现方式中,所述预设指纹信息包括第一预设指纹信息和第二预设指纹信息,所述第一预设指纹信息和所述第二预设指纹信息不同,当所述目标指纹信息与所述第一预设指纹信息相匹配时,所述目标音量调节量为目标音量减小量,所述第一调节模块具体用于:With reference to the second possible implementation manner of the second aspect of the embodiment of the present invention, in a third possible implementation manner of the second aspect of the embodiments, the preset fingerprint information includes a first preset fingerprint information and a first The second preset fingerprint information, the first preset fingerprint information and the second preset fingerprint information are different, and when the target fingerprint information matches the first preset fingerprint information, the target volume adjustment amount For the target volume reduction amount, the first adjustment module is specifically configured to:
根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
当所述目标指纹信息与所述第二预设指纹信息相匹配时,所述目标音量调节量为目标音量增加量,所述第一调节模块具体用于:When the target fingerprint information is matched with the second preset fingerprint information, the target volume adjustment amount is a target volume increase amount, and the first adjustment module is specifically configured to:
根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
结合本发明实施例第二方面或第二方面的第二种可能的实现方式,在本发明实施例第二方面的第四种可能的实现方式中,所述用户终端还包括:With reference to the second aspect of the embodiment of the present invention or the second possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect of the embodiment, the user terminal further includes:
第二检测模块,用于在所述第一调节模块根据所述目标音量调节量对当前音量进行调节之后,检测调节后的音量是否大于第一预设音量值;a second detecting module, configured to detect, after the first adjusting module adjusts the current volume according to the target volume adjustment amount, whether the adjusted volume is greater than the first preset volume value;
第三检测模块,用于当所述第二检测模块检测所述调节后的音量大于所述第一预设音量值时,检测是否有耳机接入;a third detecting module, configured to detect whether there is a headset access when the second detecting module detects that the adjusted volume is greater than the first preset volume value;
第二调节模块,用于当所述第三检测模块检测到有耳机接入时,将当前音量值调节为第二预设音量值,所述第二预设音量值小于所述第一预设音量值。a second adjustment module, configured to adjust a current volume value to a second preset volume value when the third detection module detects that the earphone is accessed, where the second preset volume value is smaller than the first preset Volume value.
结合本发明实施例第二方面或第二方面的第二种可能的实现方式,在本发明实施例第二方面的第五种可能的实现方式中,所述用户终端还包括: With reference to the second aspect of the embodiment of the present invention or the second possible implementation manner of the second aspect, in the fifth possible implementation manner of the second aspect of the embodiment, the user terminal further includes:
第二获取模块,用于在所述第一调节模块根据所述目标音量调节量对当前音量进行调节之后,获取当前环境的第一噪声音量;a second acquiring module, configured to acquire a first noise volume of the current environment after the first adjusting module adjusts the current volume according to the target volume adjustment amount;
第四检测模块,用于检测用户在触摸区域进行的向预设方向滑动的多点滑动操作;a fourth detecting module, configured to detect a multi-point sliding operation performed by the user in the touch area to slide in a preset direction;
第三判断模块,用于判断所述多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;a third determining module, configured to determine whether a pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value;
第三获取模块,用于当所述第三判断模块判断所述多点滑动操作的每一触摸点的压力值均大于所述第二预设压力值时,获取当前环境的第二噪声音量,并将所述第二噪声音量与所述第一噪声音量的差值的绝对值作为同步音量调节量;a third acquiring module, configured to acquire a second noise volume of the current environment when the third determining module determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, And using an absolute value of the difference between the second noise volume and the first noise volume as a synchronous volume adjustment amount;
第三调节模块,用于根据所述同步音量调节量对当前音量进行调节。The third adjustment module is configured to adjust the current volume according to the synchronous volume adjustment amount.
本发明实施例第三方面公开了一种用户终端,所述用户终端包括处理器,以及与所述处理器相连接的存储器,其特征在于,所述存储器中存储一组程序代码,所述处理器用于调用所述存储器中存储的程序代码,执行以下操作:A third aspect of the embodiments of the present invention discloses a user terminal, where the user terminal includes a processor, and a memory connected to the processor, wherein the memory stores a set of program codes, and the processing The program is used to call the program code stored in the memory, and performs the following operations:
检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长;Detecting a target pressure value and a target touch duration applied when the user touches the touch area;
判断所述目标压力值是否大于第一预设压力值;Determining whether the target pressure value is greater than a first preset pressure value;
当所述目标压力值大于所述第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量;When the target pressure value is greater than the first preset pressure value, acquiring a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount;
根据所述目标音量调节量对当前音量进行调节。The current volume is adjusted according to the target volume adjustment amount.
在本发明实施例第三方面的第一种可能的实现方式中,所述触摸区域包括第一预设触摸区域和第二预设触摸区域,所述第一预设触摸区域和所述第二预设触摸区域为不重合的两个触摸区域,当所述触摸操作为在所述第一预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量减小量,所述处理器根据所述目标音量调节量对当前音量进行调节的方式具体为:In a first possible implementation manner of the third aspect of the embodiment, the touch area includes a first preset touch area and a second preset touch area, the first preset touch area and the second The preset touch area is two touch areas that are not coincident, and when the touch operation is a touch operation performed on the first preset touch area, the target volume adjustment amount is a target volume reduction amount, and the processing The manner in which the current volume is adjusted according to the target volume adjustment amount is specifically as follows:
根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
当所述触摸操作为在所述第二预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量增加量,所述处理器根据所述目标音量调节量对当前音量进行调节的方式具体为:When the touch operation is a touch operation performed on the second preset touch area, the target volume adjustment amount is a target volume increase amount, and the processor adjusts the current volume according to the target volume adjustment amount. The method is specifically as follows:
根据所述目标音量增加量对当前音量进行增大。 The current volume is increased according to the target volume increase amount.
在本发明实施例第三方面的第二种可能的实现方式中,所述处理器在判断所述目标压力值大于所述第一预设压力值之后,还可执行以下操作:In a second possible implementation manner of the third aspect of the embodiment of the present invention, after determining that the target pressure value is greater than the first preset pressure value, the processor may further perform the following operations:
判断所述触摸操作输入的目标指纹信息是否与预设指纹信息相匹配;Determining whether the target fingerprint information input by the touch operation matches the preset fingerprint information;
当所述目标指纹信息与所述预设指纹信息相匹配时,所述处理器根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量。When the target fingerprint information matches the preset fingerprint information, the processor acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
结合本发明实施例第三方面的第二种可能的实现方式,在本发明实施例第三方面的第三种可能的实现方式中,所述预设指纹信息包括第一预设指纹信息和第二预设指纹信息,所述第一预设指纹信息和所述第二预设指纹信息不同,当所述目标指纹信息与所述第一预设指纹信息相匹配时,所述目标音量调节量为目标音量减小量,所述处理器根据所述目标音量调节量对当前音量进行调节的方式具体为:With reference to the second possible implementation manner of the third aspect of the embodiments of the present invention, in a third possible implementation manner of the third aspect of the embodiments, the preset fingerprint information includes a first preset fingerprint information and a first The second preset fingerprint information, the first preset fingerprint information and the second preset fingerprint information are different, and when the target fingerprint information matches the first preset fingerprint information, the target volume adjustment amount For the target volume reduction amount, the manner in which the processor adjusts the current volume according to the target volume adjustment amount is specifically:
根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
当所述目标指纹信息与所述第二预设指纹信息相匹配时,所述目标音量调节量为目标音量增加量,所述处理器根据所述目标音量调节量对当前音量进行调节的方式具体为:When the target fingerprint information matches the second preset fingerprint information, the target volume adjustment amount is a target volume increase amount, and the processor adjusts the current volume according to the target volume adjustment amount. for:
根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
结合本发明实施例第三方面或第三方面的第二种可能的实现方式,在本发明实施例第三方面的第四种可能的实现方式中,所述处理器根据所述目标音量调节量对当前音量进行调节之后,还可执行以下操作:With reference to the third aspect of the embodiment of the present invention or the second possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect of the embodiment, the processor adjusts the volume according to the target volume. After adjusting the current volume, you can also do the following:
检测调节后的音量是否大于第一预设音量值;Detecting whether the adjusted volume is greater than the first preset volume value;
当所述调节后的音量大于所述第一预设音量值时,检测是否有耳机接入;When the adjusted volume is greater than the first preset volume value, detecting whether there is a headset access;
当检测到有耳机接入时,将当前音量值调节为第二预设音量值,所述第二预设音量值小于所述第一预设音量值。When it is detected that there is a headset access, the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
结合本发明实施例第三方面或第三方面的第二种可能的实现方式,在本发明实施例第三方面的第五种可能的实现方式中,所述处理器根据所述目标音量调节量对当前音量进行调节之后,还可执行以下操作:With reference to the third aspect of the embodiment of the present invention or the second possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect of the embodiment, the processor adjusts the volume according to the target volume After adjusting the current volume, you can also do the following:
获取当前环境的第一噪声音量;Obtaining the first noise level of the current environment;
检测用户在触摸区域进行的向预设方向滑动的多点滑动操作; Detecting a multi-point sliding operation of the user sliding in a preset direction in the touch area;
判断所述多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;Determining whether the pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value;
当所述多点滑动操作的每一触摸点的压力值均大于所述第二预设压力值时,获取当前环境的第二噪声音量,并将所述第二噪声音量与所述第一噪声音量的差值的绝对值作为同步音量调节量;Obtaining a second noise volume of the current environment when the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, and the second noise volume and the first noise The absolute value of the difference in volume is used as the synchronous volume adjustment amount;
根据所述同步音量调节量对当前音量进行调节。The current volume is adjusted according to the synchronized volume adjustment amount.
在本发明实施例中,用户终端检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长之后,将判断目标压力值是否大于第一预设压力值;当目标压力值大于第一预设压力值时,用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量,并根据目标音量调节量对当前音量进行调节。可见,通过实施本发明实施例,能够便利地对音量进行调节。In the embodiment of the present invention, after the user terminal detects the target pressure value and the target touch duration applied when the touch operation is performed on the touch area, the user terminal determines whether the target pressure value is greater than the first preset pressure value; when the target pressure value is greater than the first When the pressure value is preset, the user terminal acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount, and adjusts the current volume according to the target volume adjustment amount. It can be seen that by implementing the embodiments of the present invention, the volume can be conveniently adjusted.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例公开的一种音量调节方法的流程示意图;1 is a schematic flow chart of a volume adjustment method according to an embodiment of the present invention;
图2是本发明实施例公开的另一种音量调节方法的流程示意图;2 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
图3是本发明实施例公开的另一种音量调节方法的流程示意图;3 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
图4是本发明实施例公开的另一种音量调节方法的流程示意图;4 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
图5是本发明实施例公开的另一种音量调节方法的流程示意图;FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention; FIG.
图6是本发明实施例公开的一种用户终端的结构示意图;FIG. 6 is a schematic structural diagram of a user terminal according to an embodiment of the present disclosure;
图7是本发明实施例公开的另一种用户终端的结构示意图;FIG. 7 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure;
图8是本发明实施例公开的另一种用户终端的结构示意图;FIG. 8 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure;
图9是本发明实施例公开的另一种用户终端的结构示意图;FIG. 9 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure;
图10是本发明实施例公开的另一种用户终端的结构示意图。 FIG. 10 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例公开了一种音量调节方法及用户终端,能够便利地调节音量。以下分别进行详细说明。The embodiment of the invention discloses a volume adjustment method and a user terminal, which can conveniently adjust the volume. The details are described below separately.
请参见图1,图1为本发明实施例公开的一种音量调节方法的流程示意图。如图1所示,该音量调节方法可以包括以下步骤。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a volume adjustment method according to an embodiment of the present invention. As shown in FIG. 1, the volume adjustment method may include the following steps.
S101、检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。S101. Detect a target pressure value and a target touch duration applied when the user touches the touch area.
本发明实施例中,由用户终端检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。其中,该用户终端可包括但不限于智能手机、掌上电脑、笔记本电脑和台式电脑等具有压力检测功能的用户终端。该用户终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、Windows Phone8操作系统等等,本发明实施例不做限定。In the embodiment of the present invention, the target pressure value and the target touch duration applied when the user touches the touch area are detected by the user terminal. The user terminal may include, but is not limited to, a user terminal having a pressure detection function such as a smart phone, a palmtop computer, a notebook computer, and a desktop computer. The operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows Phone 8 operating system, and the like.
本发明实施例中,当用户想要调节音量时,用户可在触摸屏的触摸区域进行触摸操作。当用户终端检测到用户在触摸区域进行触摸操作时,用户终端将检测用户进行该触摸操作施加的目标压力值,并检测该触摸操作的目标触摸时长。In the embodiment of the present invention, when the user wants to adjust the volume, the user can perform a touch operation on the touch area of the touch screen. When the user terminal detects that the user performs a touch operation in the touch area, the user terminal detects the target pressure value applied by the user for the touch operation, and detects the target touch duration of the touch operation.
S102、判断目标压力值是否大于第一预设压力值。S102. Determine whether the target pressure value is greater than the first preset pressure value.
本发明实施例中,用户终端检测到用户对触摸区域进行触摸操作所施加的目标压力值之后,将判断目标压力值是否大于第一预设压力值。当用户终端判断目标压力值大于第一预设压力值时,执行步骤S103;当用户终端判断目标压力值小于第一预设压力值时,可选的,结束本流程,或用户终端继续检测当前用户进行该触摸操作施加的压力值是否大于第一预设压力值,直到用户手指离开触摸区域(即该触摸操作结束)。In the embodiment of the present invention, after the user terminal detects the target pressure value applied by the touch operation on the touch area, the user terminal determines whether the target pressure value is greater than the first preset pressure value. When the user terminal determines that the target pressure value is greater than the first preset pressure value, step S103 is performed; when the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect the current Whether the pressure value applied by the user for the touch operation is greater than the first preset pressure value until the user's finger leaves the touch area (ie, the touch operation ends).
S103、根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触 摸时长对应的目标音量调节量。S103. Acquire a target touch according to a preset relationship between a touch duration and a volume adjustment amount. Touch the target volume adjustment amount corresponding to the duration.
本发明实施例中,用户终端预先设置有触摸时长与音量调节量的对应关系。可选的,该音量调节量可以为音量增加量或音量减小量,本发明实施例不做限定。例如,可预先设置2秒的触摸时长对应的音量增加量为5分贝,可预先设置3秒的触摸时长对应的音量增加量为6分贝等。In the embodiment of the present invention, the user terminal is preset with a correspondence relationship between the touch duration and the volume adjustment amount. Optionally, the volume adjustment amount may be a volume increase amount or a volume decrease amount, which is not limited in the embodiment of the present invention. For example, the volume increase amount corresponding to the touch duration of 2 seconds may be set to 5 decibels in advance, and the volume increase amount corresponding to the touch duration of 3 seconds may be set to 6 decibels or the like.
本发明实施例中,当用户终端判断目标压力值大于第一预设压力值时,用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量。具体地,用户终端可根据预先设置的触摸时长与音量增加量的对应关系,获取与目标触摸时长对应的目标音量增加量,或用户终端可根据预先设置的触摸时长与音量减小量的对应关系,获取与目标触摸时长对应的目标音量减小量。In the embodiment of the present invention, when the user terminal determines that the target pressure value is greater than the first preset pressure value, the user terminal acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount. Specifically, the user terminal may acquire a target volume increase amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume increase amount, or the user terminal may according to a preset correspondence between the touch duration and the volume decrease amount. And acquire the target volume reduction amount corresponding to the target touch duration.
S104、根据目标音量调节量对当前音量进行调节。S104. Adjust the current volume according to the target volume adjustment amount.
本发明实施例中,用户终端获取目标音量调节量之后,将根据目标音量调节量对用户终端的音量进行调节。具体地,若该目标音量调节量为目标音量增加量,则用户终端根据目标音量增加量对音量进行增大;若该目标音量调节量为目标音量减小量,则用户终端根据目标音量减小量对音量进行减小。In the embodiment of the present invention, after the user terminal acquires the target volume adjustment amount, the volume of the user terminal is adjusted according to the target volume adjustment amount. Specifically, if the target volume adjustment amount is the target volume increase amount, the user terminal increases the volume according to the target volume increase amount; if the target volume adjustment amount is the target volume decrease amount, the user terminal decreases according to the target volume. The amount reduces the volume.
在图1所描述的方法中,用户终端检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长之后,将判断目标压力值是否大于第一预设压力值;当目标压力值大于第一预设压力值时,用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量,并根据目标音量调节量对当前音量进行调节。可见,通过实施本发明实施例,能够便利地对音量进行调节。In the method described in FIG. 1 , after the user terminal detects the target pressure value and the target touch duration applied when the touch operation is performed on the touch area, the user terminal determines whether the target pressure value is greater than the first preset pressure value; when the target pressure value is greater than When the first preset pressure value is used, the user terminal acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount, and adjusts the current volume according to the target volume adjustment amount. It can be seen that by implementing the embodiments of the present invention, the volume can be conveniently adjusted.
请参见图2,图2为本发明实施例公开的另一种音量调节方法的流程示意图。如图2所示,该音量调节方法可以包括以下步骤。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 2, the volume adjustment method may include the following steps.
S201、用户终端检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。S201. The user terminal detects a target pressure value and a target touch duration applied when the user performs a touch operation on the touch area.
本发明实施例中,该触摸区域包括第一预设触摸区域和第二预设触摸区域,其中,第一预设触摸区域和第二预设触摸区域为不重合的两个触摸区域。 In the embodiment of the present invention, the touch area includes a first preset touch area and a second preset touch area, wherein the first preset touch area and the second preset touch area are two touch areas that are not coincident.
S202、用户终端判断目标压力值是否大于第一预设压力值。S202. The user terminal determines whether the target pressure value is greater than a first preset pressure value.
本发明实施例中,当触摸操作为在第一预设触摸区域进行的触摸操作时,若用户终端判断目标压力值大于第一预设压力值,则执行步骤S203。若用户终端判断目标压力值小于第一预设压力值,可选的,结束本流程,或用户终端继续检测当前用户进行该触摸操作施加的压力值是否大于第一预设压力值,直到用户手指离开触摸区域(即该触摸操作结束)。In the embodiment of the present invention, when the touch operation is a touch operation performed in the first preset touch area, if the user terminal determines that the target pressure value is greater than the first preset pressure value, step S203 is performed. If the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect whether the pressure value applied by the current user to perform the touch operation is greater than the first preset pressure value until the user's finger Leave the touch area (ie, the touch operation ends).
本发明实施例中,当触摸操作为在第二预设触摸区域进行的触摸操作时,若用户终端判断目标压力值大于第一预设压力值,则执行步骤S205。若用户终端判断目标压力值小于第一预设压力值,可选的,结束本流程,或用户终端继续检测当前用户进行该触摸操作施加的压力值是否大于第一预设压力值,直到用户手指离开触摸区域(即该触摸操作结束)。In the embodiment of the present invention, when the touch operation is a touch operation performed in the second preset touch area, if the user terminal determines that the target pressure value is greater than the first preset pressure value, step S205 is performed. If the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect whether the pressure value applied by the current user to perform the touch operation is greater than the first preset pressure value until the user's finger Leave the touch area (ie, the touch operation ends).
S203、当触摸操作为在第一预设触摸区域进行的触摸操作时,用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量减小量。S203. When the touch operation is a touch operation performed on the first preset touch area, the user terminal acquires a target volume reduction amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
本发明实施例中,当触摸操作为在第一预设触摸区域进行的触摸操作时,若用户终端判断目标压力值大于第一预设压力值,则用户终端根据预先设置的触摸时长与音量减小量的对应关系,获取与目标触摸时长对应的目标音量减小量。在用户终端获取目标音量减小量之后,执行步骤S204。In the embodiment of the present invention, when the touch operation is a touch operation performed in the first preset touch area, if the user terminal determines that the target pressure value is greater than the first preset pressure value, the user terminal reduces the touch time and volume according to the preset touch time. A small amount of correspondence, obtaining a target volume reduction amount corresponding to the target touch duration. After the user terminal acquires the target volume reduction amount, step S204 is performed.
S204、用户终端根据目标音量减小量对当前音量进行减小。S204. The user terminal decreases the current volume according to the target volume reduction amount.
本发明实施例中,用户终端获取目标音量减小量之后,用户终端根据目标音量减小量对音量进行减小。In the embodiment of the present invention, after the user terminal acquires the target volume reduction amount, the user terminal reduces the volume according to the target volume reduction amount.
S205、当触摸操作为在第二预设触摸区域进行的触摸操作时,用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量增加量。S205. When the touch operation is a touch operation performed on the second preset touch area, the user terminal acquires a target volume increase amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
本发明实施例中,当触摸操作为在第二预设触摸区域进行的触摸操作时,若用户终端判断目标压力值大于第一预设压力值,则用户终端根据预先设置的触摸时长与音量增加量的对应关系,获取与目标触摸时长对应的目标音量增加量。在用户终端获取目标音量增加量之后,执行步骤S206。In the embodiment of the present invention, when the touch operation is a touch operation performed in the second preset touch area, if the user terminal determines that the target pressure value is greater than the first preset pressure value, the user terminal increases according to the preset touch duration and volume. The corresponding relationship of the quantities acquires the target volume increase amount corresponding to the target touch duration. After the user terminal acquires the target volume increase amount, step S206 is performed.
S206、用户终端根据目标音量增加量对当前音量进行增大。 S206. The user terminal increases the current volume according to the target volume increase amount.
本发明实施例中,用户终端获取目标音量增加量之后,用户终端根据目标音量增加量对音量进行增大。In the embodiment of the present invention, after the user terminal acquires the target volume increase amount, the user terminal increases the volume according to the target volume increase amount.
通过实施图2所示的实施例,当用户在一个触摸区域进行触摸时,可增强用户终端的音量;当用户在另一个触摸区域进行触摸时,可减小用户终端的音量。可见,通过实施本发明实施例可便利地对用户终端的音量进行调节。By implementing the embodiment shown in FIG. 2, when the user makes a touch in one touch area, the volume of the user terminal can be enhanced; when the user touches in another touch area, the volume of the user terminal can be reduced. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
请参见图3,图3为本发明实施例公开的另一种音量调节方法的流程示意图。如图3所示,该音量调节方法可以包括以下步骤。Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 3, the volume adjustment method may include the following steps.
S301、用户终端检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。S301. The user terminal detects a target pressure value and a target touch duration applied when the user touches the touch area.
S302、用户终端判断目标压力值是否大于第一预设压力值。S302. The user terminal determines whether the target pressure value is greater than the first preset pressure value.
本发明实施例中,若用户终端判断目标压力值大于第一预设压力值,则执行步骤S303。若用户终端判断目标压力值小于第一预设压力值,可选的,结束本流程,或用户终端继续检测当前用户进行该触摸操作施加的压力值是否大于第一预设压力值,直到用户手指离开触摸区域(即该触摸操作结束)。In the embodiment of the present invention, if the user terminal determines that the target pressure value is greater than the first preset pressure value, step S303 is performed. If the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect whether the pressure value applied by the current user to perform the touch operation is greater than the first preset pressure value until the user's finger Leave the touch area (ie, the touch operation ends).
S303、用户终端判断触摸操作输入的目标指纹信息是否与预设指纹信息相匹配。S303. The user terminal determines whether the target fingerprint information input by the touch operation matches the preset fingerprint information.
本发明实施例中,该预设指纹信息包括第一预设指纹信息和第二预设指纹信息。其中,第一预设指纹信息和第二预设指纹信息不相同。In the embodiment of the present invention, the preset fingerprint information includes first preset fingerprint information and second preset fingerprint information. The first preset fingerprint information and the second preset fingerprint information are different.
本发明实施例中,若用户终端判断目标压力值大于第一预设压力值,则用户终端判断该触摸操作输入的目标指纹信息是否与第一预设指纹信息相匹配;当目标指纹信息与第一预设指纹信息相匹配时,执行步骤S304;当目标指纹信息与第一预设指纹信息不相匹配时,用户终端判断目标指纹信息是否与第二预设指纹信息相匹配;当目标指纹信息与第二预设指纹信息相匹配时,执行步骤S306;当目标指纹信息与第二预设指纹信息不相匹配时,可选的,结束本流程。In the embodiment of the present invention, if the user terminal determines that the target pressure value is greater than the first preset pressure value, the user terminal determines whether the target fingerprint information input by the touch operation matches the first preset fingerprint information; When the preset fingerprint information matches, step S304 is performed; when the target fingerprint information does not match the first preset fingerprint information, the user terminal determines whether the target fingerprint information matches the second preset fingerprint information; when the target fingerprint information When the second preset fingerprint information is matched, step S306 is performed; when the target fingerprint information does not match the second preset fingerprint information, optionally, the process ends.
本发明实施例中,若用户终端判断目标压力值大于第一预设压力值,也可先判断目标指纹信息是否与第二预设指纹信息相匹配;当目标指纹信息与第二预设指纹信息相匹配时,执行步骤S306;当目标指纹信息与第二预设指纹信 息不相匹配时,用户终端判断目标指纹信息是否与第一预设指纹信息相匹配;当目标指纹信息与第一预设指纹信息相匹配时,执行步骤S304;当目标指纹信息与第一预设指纹信息不相匹配时,可选的,结束本流程。In the embodiment of the present invention, if the user terminal determines that the target pressure value is greater than the first preset pressure value, it may first determine whether the target fingerprint information matches the second preset fingerprint information; and when the target fingerprint information and the second preset fingerprint information When matching, step S306 is performed; when the target fingerprint information and the second preset fingerprint letter When the information does not match, the user terminal determines whether the target fingerprint information matches the first preset fingerprint information; when the target fingerprint information matches the first preset fingerprint information, step S304 is performed; when the target fingerprint information and the first preset If the fingerprint information does not match, optional, the process ends.
S304、当目标指纹信息与第一预设指纹信息相匹配时,用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量减小量。S304. When the target fingerprint information matches the first preset fingerprint information, the user terminal acquires the target volume reduction amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount.
本发明实施例中,若用户终端判断目标指纹信息与第一预设指纹信息相匹配,则用户终端根据预先设置的触摸时长与音量减小量的对应关系,获取与目标触摸时长对应的目标音量减小量。在用户终端获取目标音量减小量之后,执行步骤S305。In the embodiment of the present invention, if the user terminal determines that the target fingerprint information matches the first preset fingerprint information, the user terminal acquires the target volume corresponding to the target touch duration according to the preset relationship between the touch duration and the volume reduction amount. Reduce the amount. After the user terminal acquires the target volume reduction amount, step S305 is performed.
S305、用户终端根据目标音量减小量对当前音量进行减小。S305. The user terminal decreases the current volume according to the target volume reduction amount.
本发明实施例中,用户终端获取目标音量减小量之后,用户终端根据目标音量减小量对音量进行减小。In the embodiment of the present invention, after the user terminal acquires the target volume reduction amount, the user terminal reduces the volume according to the target volume reduction amount.
S306、当目标指纹信息与第二预设指纹信息相匹配时,用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量增加量。S306. When the target fingerprint information matches the second preset fingerprint information, the user terminal acquires the target volume increase amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount.
本发明实施例中,若用户终端判断目标指纹信息与第二预设指纹信息相匹配,则用户终端根据预先设置的触摸时长与音量增加量的对应关系,获取与目标触摸时长对应的目标音量增加量。在用户终端获取目标音量增加量之后,执行步骤S307。In the embodiment of the present invention, if the user terminal determines that the target fingerprint information matches the second preset fingerprint information, the user terminal acquires the target volume corresponding to the target touch duration according to the preset relationship between the touch duration and the volume increase amount. the amount. After the user terminal acquires the target volume increase amount, step S307 is performed.
S307、用户终端根据目标音量增加量对当前音量进行增大。S307. The user terminal increases the current volume according to the target volume increase amount.
本发明实施例中,用户终端获取目标音量增加量之后,用户终端根据目标音量增加量对音量进行增大。In the embodiment of the present invention, after the user terminal acquires the target volume increase amount, the user terminal increases the volume according to the target volume increase amount.
通过实施图3所示的实施例,当用户使用一个手指在触摸区域进行触摸操作时,可增强用户终端的音量;当用户使用另一个手指进行触摸操作时,可减小用户终端的音量。且通过对用户指纹进行识别,可避免其他用户对用户终端进行肆意地操作。可见,通过实施本发明实施例可便利地对用户终端的音量进行调节。 By implementing the embodiment shown in FIG. 3, when the user performs a touch operation on the touch area using one finger, the volume of the user terminal can be enhanced; when the user performs a touch operation using another finger, the volume of the user terminal can be reduced. And by identifying the user's fingerprint, other users can be prevented from performing the user terminal. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
请参见图4,图4为本发明实施例公开的另一种音量调节方法的流程示意图。如图4所示,该音量调节方法可以包括以下步骤。Referring to FIG. 4, FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 4, the volume adjustment method may include the following steps.
S401、用户终端检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。S401. The user terminal detects a target pressure value and a target touch duration applied when the user performs a touch operation on the touch area.
S402、用户终端判断目标压力值是否大于第一预设压力值。S402. The user terminal determines whether the target pressure value is greater than a first preset pressure value.
本发明实施例中,用户终端检测到用户对触摸区域进行触摸操作所施加的目标压力值之后,将判断目标压力值是否大于第一预设压力值。当用户终端判断目标压力值大于第一预设压力值时,执行步骤S403;当用户终端判断目标压力值小于第一预设压力值时,可选的,结束本流程,或用户终端继续检测当前用户进行该触摸操作施加的压力值是否大于第一预设压力值,直到用户手指离开触摸区域(即该触摸操作结束)。In the embodiment of the present invention, after the user terminal detects the target pressure value applied by the touch operation on the touch area, the user terminal determines whether the target pressure value is greater than the first preset pressure value. When the user terminal determines that the target pressure value is greater than the first preset pressure value, step S403 is performed; when the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect the current Whether the pressure value applied by the user for the touch operation is greater than the first preset pressure value until the user's finger leaves the touch area (ie, the touch operation ends).
S403、用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量。S403. The user terminal acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
S404、用户终端根据目标音量调节量对当前音量进行调节。S404. The user terminal adjusts the current volume according to the target volume adjustment amount.
本发明实施例中,具体地,用户终端可根据目标音量增加量对当前音量进行增大,或根据目标音量减小量对当前音量进行减小。In the embodiment of the present invention, specifically, the user terminal may increase the current volume according to the target volume increase amount, or decrease the current volume according to the target volume decrease amount.
S405、用户终端检测调节后的音量是否大于第一预设音量值。S405. The user terminal detects whether the adjusted volume is greater than the first preset volume value.
本发明实施例中,在用户终端根据目标音量调节量对当前音量进行调节之后,用户终端将检测调节之后的音量是否大于第一预设音量值。若用户终端检测到调节后的音量大于第一预设音量值,则执行步骤S406;若用户终端检测到调节后的音量小于第一预设音量值,可选的,结束本流程。In the embodiment of the present invention, after the user terminal adjusts the current volume according to the target volume adjustment amount, the user terminal detects whether the volume after the adjustment is greater than the first preset volume value. If the user terminal detects that the adjusted volume is greater than the first preset volume value, step S406 is performed; if the user terminal detects that the adjusted volume is less than the first preset volume value, optionally, the process ends.
S406、用户终端检测是否有耳机接入。S406. The user terminal detects whether there is a headset access.
本发明实施例中,若用户终端判断调节后的音量大于第一预设音量值,则用户终端检测是否有耳机接入。该耳机可以为有线耳机或无线蓝牙耳机,本发明实施例不做限定。当检测到有耳机接入时,执行步骤S407;当未检测到耳机接入时,可选的,继续检测是否有耳机接入,直到当前音量值小于第一预设音量值。In the embodiment of the present invention, if the user terminal determines that the adjusted volume is greater than the first preset volume value, the user terminal detects whether there is a headset access. The headset may be a wired headset or a wireless Bluetooth headset, which is not limited in the embodiment of the present invention. When it is detected that there is earphone access, step S407 is performed; when no earphone access is detected, optionally, whether to detect earphone access is continued until the current volume value is less than the first preset volume value.
S407、用户终端将当前音量值调节为第二预设音量值。S407. The user terminal adjusts the current volume value to a second preset volume value.
本发明实施例中,用户终端检测到有耳机接入时,将当前音量值调节为第 二预设音量值,其中,该第二预设音量值小于第一预设音量值。In the embodiment of the present invention, when the user terminal detects that there is a headset access, the current volume value is adjusted to the first And a second preset volume value, wherein the second preset volume value is smaller than the first preset volume value.
在实际应用中,当用户将终端的音量设置得过大时,若用户使用耳机进行内容收听,将给用户的听力造成较大的伤害。因此,通过本发明实施例,可减小对用户的听力的伤害,有利于提高用户体验。In practical applications, when the user sets the volume of the terminal too large, if the user listens to the content using the earphone, it will cause greater damage to the user's hearing. Therefore, with the embodiment of the invention, the damage to the user's hearing can be reduced, which is beneficial to improving the user experience.
请参见图5,图5为本发明实施例公开的另一种音量调节方法的流程示意图。如图5所示,该音量调节方法可以包括以下步骤。Referring to FIG. 5, FIG. 5 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present invention. As shown in FIG. 5, the volume adjustment method may include the following steps.
S501、用户终端检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。S501. The user terminal detects a target pressure value and a target touch duration applied when the user touches the touch area.
S502、用户终端判断目标压力值是否大于第一预设压力值。S502. The user terminal determines whether the target pressure value is greater than the first preset pressure value.
本发明实施例中,用户终端检测到用户对触摸区域进行触摸操作所施加的目标压力值之后,将判断目标压力值是否大于第一预设压力值。当用户终端判断目标压力值大于第一预设压力值时,执行步骤S503;当用户终端判断目标压力值小于第一预设压力值时,可选的,结束本流程,或用户终端继续检测当前用户进行该触摸操作施加的压力值是否大于第一预设压力值,直到用户手指离开触摸区域(即该触摸操作结束)。In the embodiment of the present invention, after the user terminal detects the target pressure value applied by the touch operation on the touch area, the user terminal determines whether the target pressure value is greater than the first preset pressure value. When the user terminal determines that the target pressure value is greater than the first preset pressure value, step S503 is performed; when the user terminal determines that the target pressure value is less than the first preset pressure value, optionally, the process ends, or the user terminal continues to detect the current Whether the pressure value applied by the user for the touch operation is greater than the first preset pressure value until the user's finger leaves the touch area (ie, the touch operation ends).
S503、用户终端根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量。S503. The user terminal acquires a target volume adjustment amount corresponding to the target touch duration according to a correspondence relationship between the preset touch duration and the volume adjustment amount.
S504、用户终端根据目标音量调节量对当前音量进行调节。S504. The user terminal adjusts the current volume according to the target volume adjustment amount.
S505、用户终端获取当前环境的第一噪声音量。S505. The user terminal acquires a first noise volume of the current environment.
本发明实施例中,用户终端根据目标音量调节量对当前音量进行调节之后,将启动声音获取装置获取当前环境的声音信号;在获取声音信号之后,用户终端将解析声音信号的强度,以得到当前环境的第一噪声音量。其中,该声音获取装置可以为麦克风等装置。In the embodiment of the present invention, after the user terminal adjusts the current volume according to the target volume adjustment amount, the sound acquiring device is started to acquire the sound signal of the current environment; after the sound signal is acquired, the user terminal analyzes the strength of the sound signal to obtain the current The first noise level of the environment. The sound acquiring device may be a device such as a microphone.
S506、用户终端检测用户在触摸区域进行的向预设方向滑动的多点滑动操作。S506. The user terminal detects a multi-point sliding operation performed by the user in the touch area to slide in a preset direction.
本发明实施例中,用户终端获取第一噪声音量之后,将检测用户在触摸区域进行的向预设方向滑动的多点滑动操作。该多点滑动操作可以为两点滑动操作、三点滑动操作或四点滑动操作等等,本发明实施例不做限定。向预设方向 滑动的多点滑动操作可以为向左滑动的多点滑动操作、向右滑动的多点滑动操作、向上滑动的多点滑动操作或向下滑动的多点滑动操作等等,本发明实施例不做限定。In the embodiment of the present invention, after the user terminal acquires the first noise volume, the multi-point sliding operation of the user sliding in the preset direction in the touch area is detected. The multi-point sliding operation may be a two-point sliding operation, a three-point sliding operation, a four-point sliding operation, or the like, which is not limited in the embodiment of the present invention. To the default direction The sliding multi-point sliding operation may be a multi-point sliding operation of sliding to the left, a multi-point sliding operation of sliding to the right, a multi-point sliding operation of sliding upwards, or a multi-point sliding operation of sliding downward, etc., etc. Make a limit.
S507、用户终端判断该多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值。S507. The user terminal determines whether the pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value.
本发明实施例中,当用户终端检测到用户在触摸区域进行向预设方向滑动的多点滑动操作时,用户终端将检测该多点滑动操作的每一触摸点的压力值,并判断该多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值。若用户终端判断该多点滑动操作的每一触摸点的压力值均大于第二预设压力值,则执行步骤S508;若用户终端判断该多点滑动操作的任一触摸点的压力值小于第二预设压力值,可选的,则用户终端继续检测该多点滑动操作的每一触摸点的压力值,并判断该多点滑动操作的每一触摸点是否均大于第二预设压力值。In the embodiment of the present invention, when the user terminal detects that the user performs a multi-point sliding operation in the touch area to slide in the preset direction, the user terminal detects the pressure value of each touch point of the multi-point sliding operation, and determines the multiple Whether the pressure value of each touch point of the point sliding operation is greater than the second preset pressure value. If the user terminal determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, step S508 is performed; if the user terminal determines that the pressure value of any touch point of the multi-point sliding operation is less than the first The preset pressure value is optional, and the user terminal continues to detect the pressure value of each touch point of the multi-point sliding operation, and determines whether each touch point of the multi-point sliding operation is greater than the second preset pressure value. .
S508、用户终端获取当前环境的第二噪声音量,并将第二噪声音量与第一噪声音量的差值的绝对值作为同步音量调节量。S508. The user terminal acquires a second noise volume of the current environment, and uses an absolute value of a difference between the second noise volume and the first noise volume as a synchronous volume adjustment amount.
本发明实施例中,当用户终端判断该多点滑动操作的每一触摸点的压力值均大于第二预设压力值时,用户终端通过声音获取装置再次获取当前环境的声音信号,以对该声音信号进行解析,得到当前环境的第二噪声音量。In the embodiment of the present invention, when the user terminal determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, the user terminal acquires the sound signal of the current environment again through the sound acquiring device, to The sound signal is parsed to obtain a second noise level of the current environment.
本发明实施例中,用户终端获取第二噪声音量之后,将计算第二噪声音量与第一噪声音量之间的差值,并将差值的绝对值作为同步音量调节量。In the embodiment of the present invention, after the user terminal acquires the second noise volume, the difference between the second noise volume and the first noise volume is calculated, and the absolute value of the difference is used as the synchronous volume adjustment amount.
举例来说,若第二噪声音量为10分贝,第一噪声音量为5分贝,则同步音量调节量为5分贝。若第二噪声音量为6分贝,第一噪声音量为7分贝,则同步音量调节量为1分贝。For example, if the second noise volume is 10 decibels and the first noise volume is 5 decibels, the synchronized volume adjustment amount is 5 decibels. If the second noise volume is 6 decibels and the first noise volume is 7 decibels, the synchronized volume adjustment amount is 1 decibel.
S509、用户终端根据同步音量调节量对当前音量进行调节。S509. The user terminal adjusts the current volume according to the synchronized volume adjustment amount.
本发明实施例中,用户终端获取同步音量调节量之后,将根据同步音量调节量对当前音量进行调节。In the embodiment of the present invention, after the user terminal acquires the synchronized volume adjustment amount, the current volume is adjusted according to the synchronized volume adjustment amount.
本发明实施例中,当第一噪声音量小于第二噪声音量时,用户终端根据同步音量调节量对当前音量进行增加。当第一噪声音量大于第二噪声音量时,用户终端根据同步音量调节量对当前音量进行减小。 In the embodiment of the present invention, when the first noise volume is less than the second noise volume, the user terminal increases the current volume according to the synchronous volume adjustment amount. When the first noise volume is greater than the second noise volume, the user terminal decreases the current volume according to the synchronized volume adjustment amount.
例如,若用户终端当前音量为15分贝,第一噪声音量为5分贝,第二噪声音量为6分贝,则同步音量调节量为1分贝,则用户终端获取同步音量调节量之后,将用户终端当前的音量调节为16分贝。For example, if the current volume of the user terminal is 15 decibels, the first noise volume is 5 decibels, and the second noise volume is 6 decibels, the synchronization volume adjustment amount is 1 decibel, and after the user terminal acquires the synchronized volume adjustment amount, the user terminal is currently The volume is adjusted to 16 decibels.
再如,若用户终端当前音量为15分贝,第一噪声音量为7分贝,第二噪声音量为6分贝,则同步音量调节量为1分贝,则用户终端获取同步音量调节量之后,将用户终端当前的音量调节为14分贝。For another example, if the current volume of the user terminal is 15 decibels, the first noise volume is 7 decibels, and the second noise volume is 6 decibels, the synchronization volume adjustment amount is 1 decibel, and after the user terminal acquires the synchronous volume adjustment amount, the user terminal is used. The current volume is adjusted to 14 decibels.
在实际应用中,外界的噪音将影响用户的收听效果。在用户对用户终端的音量进行设置之后,若外界噪音变大,则用户可能不能清楚地听到播放的声音;若外界噪音变小,则用户可能会觉得听到的播放声音较大。因此,通过实施本发明实施例,在用户将用户终端的音量设置为一合适的音量之后,若外界的噪音对用户的收听造成了影响,则用户可通过在触摸区域进行滑动操作,来同步地增加或减小用户终端当前的音量,以减小外界噪音对用户收听造成的影响。In practical applications, external noise will affect the user's listening experience. After the user sets the volume of the user terminal, if the external noise becomes large, the user may not clearly hear the played sound; if the external noise becomes smaller, the user may feel that the played sound is louder. Therefore, by implementing the embodiment of the present invention, after the user sets the volume of the user terminal to a suitable volume, if the external noise affects the user's listening, the user can synchronously perform the sliding operation in the touch area. Increase or decrease the current volume of the user terminal to reduce the impact of external noise on the user's listening.
请参阅图6,图6是本发明实施例公开的一种用户终端的结构示意图。其中,图6所示的用户终端可以包括第一检测模块601、第一判断模块602、第一获取模块603和第一调节模块604。其中:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 6 may include a first detecting module 601, a first determining module 602, a first obtaining module 603, and a first adjusting module 604. among them:
第一检测模块601,用于检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。The first detecting module 601 is configured to detect a target pressure value and a target touch duration applied when the user touches the touch area.
本发明实施例中,由用户终端的第一检测模块601检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长。其中,该用户终端可包括但不限于智能手机、掌上电脑、笔记本电脑和台式电脑等具有压力检测功能的用户终端。该用户终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、Windows Phone8操作系统等等,本发明实施例不做限定。In the embodiment of the present invention, the first detection module 601 of the user terminal detects the target pressure value and the target touch duration applied when the user touches the touch area. The user terminal may include, but is not limited to, a user terminal having a pressure detection function such as a smart phone, a palmtop computer, a notebook computer, and a desktop computer. The operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows Phone 8 operating system, and the like.
本发明实施例中,当用户想要调节音量时,用户可在触摸屏的触摸区域进行触摸操作。当用户终端检测到用户在触摸区域进行触摸操作时,第一检测模块601将检测用户进行该触摸操作施加的目标压力值,并检测该触摸操作的目标触摸时长。In the embodiment of the present invention, when the user wants to adjust the volume, the user can perform a touch operation on the touch area of the touch screen. When the user terminal detects that the user performs a touch operation in the touch area, the first detecting module 601 detects the target pressure value applied by the user for the touch operation, and detects the target touch duration of the touch operation.
第一判断模块602,用于判断目标压力值是否大于第一预设压力值。 The first determining module 602 is configured to determine whether the target pressure value is greater than the first preset pressure value.
本发明实施例中,第一检测模块601检测到用户对触摸区域进行触摸操作所施加的目标压力值之后,第一判断模块602将判断目标压力值是否大于第一预设压力值。In the embodiment of the present invention, after the first detecting module 601 detects the target pressure value applied by the touch operation of the touch area, the first determining module 602 determines whether the target pressure value is greater than the first preset pressure value.
第一获取模块603,当第一判断模块602判断目标压力值大于第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量。The first obtaining module 603, when the first determining module 602 determines that the target pressure value is greater than the first preset pressure value, acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount. .
本发明实施例中,用户终端预先设置有触摸时长与音量调节量的对应关系。可选的,该音量调节量可以为音量增加量或音量减小量,本发明实施例不做限定。例如,可预先设置2秒的触摸时长对应的音量增加量为5分贝,可预先设置3秒的触摸时长对应的音量增加量为6分贝等。In the embodiment of the present invention, the user terminal is preset with a correspondence relationship between the touch duration and the volume adjustment amount. Optionally, the volume adjustment amount may be a volume increase amount or a volume decrease amount, which is not limited in the embodiment of the present invention. For example, the volume increase amount corresponding to the touch duration of 2 seconds may be set to 5 decibels in advance, and the volume increase amount corresponding to the touch duration of 3 seconds may be set to 6 decibels or the like.
本发明实施例中,当第一判断模块602判断目标压力值大于第一预设压力值时,第一获取模块603根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量。具体地,第一获取模块603可根据预先设置的触摸时长与音量增加量的对应关系,获取与目标触摸时长对应的目标音量增加量,或第一获取模块603可根据预先设置的触摸时长与音量减小量的对应关系,获取与目标触摸时长对应的目标音量减小量。In the embodiment of the present invention, when the first determining module 602 determines that the target pressure value is greater than the first preset pressure value, the first acquiring module 603 acquires the corresponding touch duration according to the preset relationship between the touch duration and the volume adjustment amount. The amount of target volume adjustment. Specifically, the first obtaining module 603 may acquire the target volume increase amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume increase amount, or the first acquisition module 603 may be according to the preset touch duration and volume. The correspondence of the amount is reduced, and the target volume reduction amount corresponding to the target touch duration is acquired.
第一调节模块604,用于根据目标音量调节量对当前音量进行调节。The first adjustment module 604 is configured to adjust the current volume according to the target volume adjustment amount.
本发明实施例中,第一获取模块603获取目标音量调节量之后,第一调节模块604将根据目标音量调节量对用户终端的音量进行调节。具体地,若该目标音量调节量为目标音量增加量,则第一调节模块604根据目标音量增加量对音量进行增大;若该目标音量调节量为目标音量减小量,则第一调节模块604根据目标音量减小量对音量进行减小。In the embodiment of the present invention, after the first acquisition module 603 acquires the target volume adjustment amount, the first adjustment module 604 adjusts the volume of the user terminal according to the target volume adjustment amount. Specifically, if the target volume adjustment amount is the target volume increase amount, the first adjustment module 604 increases the volume according to the target volume increase amount; if the target volume adjustment amount is the target volume decrease amount, the first adjustment module 604 reduces the volume according to the target volume reduction amount.
作为一种可选的实施方式,触摸区域包括第一预设触摸区域和第二预设触摸区域,第一预设触摸区域和所述第二预设触摸区域为不重合的两个触摸区域,当触摸操作为在第一预设触摸区域进行的触摸操作时,目标音量调节量为目标音量减小量,第一调节模块604具体用于:As an optional implementation manner, the touch area includes a first preset touch area and a second preset touch area, where the first preset touch area and the second preset touch area are two touch areas that are not coincident. When the touch operation is a touch operation performed on the first preset touch area, the target volume adjustment amount is the target volume reduction amount, and the first adjustment module 604 is specifically configured to:
根据目标音量减小量对当前音量进行减小;Decrease the current volume according to the target volume reduction amount;
当触摸操作为在第二预设触摸区域进行的触摸操作时,目标音量调节量为目标音量增加量,第一调节模块604具体用于: When the touch operation is a touch operation performed in the second preset touch area, the target volume adjustment amount is the target volume increase amount, and the first adjustment module 604 is specifically configured to:
根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
通过实施该实施方式,当用户在一个触摸区域进行触摸时,可增强用户终端的音量;当用户在另一个触摸区域进行触摸时,可减小用户终端的音量。可见,通过实施本发明实施例可便利地对用户终端的音量进行调节。By implementing this embodiment, when the user makes a touch in one touch area, the volume of the user terminal can be enhanced; when the user touches in another touch area, the volume of the user terminal can be reduced. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
请一并参阅图7,图7是本发明实施例公开的另一种用户终端的结构示意图。其中,图7所示的用户终端是由图6所示的用户终端进行优化得到的。与图6所示的用户终端相比较,图7所示的用户终端除包括图6所示的用户终端的所有模块之外,还可以包括第二判断模块605。其中:Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of another user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 7 is optimized by the user terminal shown in FIG. 6. Compared with the user terminal shown in FIG. 6, the user terminal shown in FIG. 7 may further include a second judging module 605 in addition to all the modules of the user terminal shown in FIG. 6. among them:
第二判断模块605,用于在第一判断模块602判断目标压力值大于第一预设压力值之后,判断触摸操作输入的目标指纹信息是否与预设指纹信息相匹配。The second determining module 605 is configured to determine, after the first determining module 602 determines that the target pressure value is greater than the first preset pressure value, whether the target fingerprint information input by the touch operation matches the preset fingerprint information.
当第二判断模块605判断目标指纹信息与预设指纹信息相匹配时,触发第一获取模块603根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量。When the second determining module 605 determines that the target fingerprint information matches the preset fingerprint information, the triggering first acquiring module 603 acquires the target volume adjusting amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount. .
作为一种可选的实施方式,预设指纹信息包括第一预设指纹信息和第二预设指纹信息,第一预设指纹信息和第二预设指纹信息不同,当目标指纹信息与第一预设指纹信息相匹配时,目标音量调节量为目标音量减小量,第一调节模块604具体用于:As an optional implementation manner, the preset fingerprint information includes the first preset fingerprint information and the second preset fingerprint information, where the first preset fingerprint information and the second preset fingerprint information are different, when the target fingerprint information is first When the preset fingerprint information is matched, the target volume adjustment amount is the target volume reduction amount, and the first adjustment module 604 is specifically configured to:
根据目标音量减小量对当前音量进行减小;Decrease the current volume according to the target volume reduction amount;
当目标指纹信息与第二预设指纹信息相匹配时,目标音量调节量为目标音量增加量,第一调节模块604具体用于:When the target fingerprint information is matched with the second preset fingerprint information, the target volume adjustment amount is the target volume increase amount, and the first adjustment module 604 is specifically configured to:
根据目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
通过实施本发明实施例,当用户使用一个手指在触摸区域进行触摸操作时,可增强用户终端的音量;当用户使用另一个手指进行触摸操作时,可减小用户终端的音量。且通过对用户指纹进行识别,可避免其他用户对用户终端进行肆意地操作。可见,通过实施本发明实施例可便利地对用户终端的音量进行调节。 By implementing the embodiment of the present invention, when the user performs a touch operation in the touch area using one finger, the volume of the user terminal can be enhanced; when the user performs a touch operation using another finger, the volume of the user terminal can be reduced. And by identifying the user's fingerprint, other users can be prevented from performing the user terminal. It can be seen that the volume of the user terminal can be conveniently adjusted by implementing the embodiment of the present invention.
请一并参阅图8,图8是本发明实施例公开的另一种用户终端的结构示意图。其中,图8所示的用户终端是由图6所示的用户终端进行优化得到的。与图6所示的用户终端相比较,图8所示的用户终端除包括图6所示的用户终端的所有模块之外,还可以包括第二检测模块606、第三检测模块607和第二调节模块608。其中:Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of another user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 8 is optimized by the user terminal shown in FIG. 6. Compared with the user terminal shown in FIG. 6, the user terminal shown in FIG. 8 may further include a second detecting module 606, a third detecting module 607, and a second, in addition to all the modules of the user terminal shown in FIG. Adjustment module 608. among them:
第二检测模块606,用于在第一调节模块604根据目标音量调节量对当前音量进行调节之后,检测调节后的音量是否大于第一预设音量值。The second detecting module 606 is configured to detect, after the first adjusting module 604 adjusts the current volume according to the target volume adjustment amount, whether the adjusted volume is greater than the first preset volume value.
第三检测模块607,用于当第二检测模块606检测调节后的音量大于第一预设音量值时,检测是否有耳机接入。The third detecting module 607 is configured to detect whether there is earphone access when the second detecting module 606 detects that the adjusted volume is greater than the first preset volume value.
本发明实施例中,若第二检测模块606判断调节后的用户终端的音量大于第一预设音量值,则第三检测模块607检测是否有耳机接入。该耳机可以为有线耳机或无线蓝牙耳机,本发明实施例不做限定。In the embodiment of the present invention, if the second detecting module 606 determines that the volume of the adjusted user terminal is greater than the first preset volume value, the third detecting module 607 detects whether there is a headset access. The headset may be a wired headset or a wireless Bluetooth headset, which is not limited in the embodiment of the present invention.
第二调节模块608,用于当第三检测模块607检测到有耳机接入时,将当前音量值调节为第二预设音量值。The second adjustment module 608 is configured to adjust the current volume value to the second preset volume value when the third detection module 607 detects that the earphone is accessed.
本发明实施例中,第三检测模块607检测到有耳机接入时,第二调节模块608将当前音量值调节为第二预设音量值,其中,该第二预设音量值小于第一预设音量值。In the embodiment of the present invention, when the third detecting module 607 detects that the earphone is connected, the second adjusting module 608 adjusts the current volume value to a second preset volume value, where the second preset volume value is smaller than the first preset. Set the volume value.
在实际应用中,当用户将终端的音量设置得过大时,若用户使用耳机进行内容收听,将给用户的听力造成较大的伤害。因此,通过本发明实施例,可减小对用户的听力的伤害,有利于提高用户体验。In practical applications, when the user sets the volume of the terminal too large, if the user listens to the content using the earphone, it will cause greater damage to the user's hearing. Therefore, with the embodiment of the invention, the damage to the user's hearing can be reduced, which is beneficial to improving the user experience.
请一并参阅图9,图9是本发明实施例公开的另一种用户终端的结构示意图。其中,图9所示的用户终端是由图6所示的用户终端进行优化得到的。与图6所示的用户终端相比较,图9所示的用户终端除包括图6所示的用户终端的所有模块之外,还可以包括第二获取模块609、第四检测模块610、第三判断模块611、第三获取模块612和第三调节模块613。其中:Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of another user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 9 is optimized by the user terminal shown in FIG. 6. Compared with the user terminal shown in FIG. 6, the user terminal shown in FIG. 9 may include a second acquiring module 609, a fourth detecting module 610, and a third, in addition to all the modules of the user terminal shown in FIG. The judging module 611, the third obtaining module 612, and the third adjusting module 613. among them:
第二获取模块609,用于在第一调节模块604根据目标音量调节量对当前音量进行调节之后,获取当前环境的第一噪声音量。The second obtaining module 609 is configured to acquire the first noise volume of the current environment after the first adjusting module 604 adjusts the current volume according to the target volume adjustment amount.
本发明实施例中,第一调节模块604根据目标音量调节量对当前音量进行 调节之后,第二获取模块609将启动声音获取装置获取当前环境的声音信号;在获取声音信号之后,第二获取模块609将解析声音信号的强度,以得到当前环境的第一噪声音量。其中,该声音获取装置可以为麦克风等装置。In the embodiment of the present invention, the first adjustment module 604 performs the current volume according to the target volume adjustment amount. After the adjustment, the second acquisition module 609 will start the sound acquisition device to acquire the sound signal of the current environment; after acquiring the sound signal, the second acquisition module 609 will analyze the intensity of the sound signal to obtain the first noise volume of the current environment. The sound acquiring device may be a device such as a microphone.
第四检测模块610,用于检测用户在触摸区域进行的向预设方向滑动的多点滑动操作。The fourth detecting module 610 is configured to detect a multi-point sliding operation performed by the user in the touch area to slide in a preset direction.
本发明实施例中,第二获取模块609获取第一噪声音量之后,第四检测模块610将检测用户在触摸区域进行的向预设方向滑动的多点滑动操作。该多点滑动操作可以为两点滑动操作、三点滑动操作或四点滑动操作等等,本发明实施例不做限定。向预设方向滑动的多点滑动操作可以为向左滑动的多点滑动操作、向右滑动的多点滑动操作、向上滑动的多点滑动操作或向下滑动的多点滑动操作等等,本发明实施例不做限定。In the embodiment of the present invention, after the second acquiring module 609 acquires the first noise volume, the fourth detecting module 610 detects a multi-point sliding operation of the user sliding in the preset direction in the touch area. The multi-point sliding operation may be a two-point sliding operation, a three-point sliding operation, a four-point sliding operation, or the like, which is not limited in the embodiment of the present invention. The multi-point sliding operation sliding in the preset direction may be a multi-point sliding operation of sliding to the left, a multi-point sliding operation of sliding to the right, a multi-point sliding operation of sliding upward, or a multi-point sliding operation of sliding downward, etc. The embodiments of the invention are not limited.
第三判断模块611,用于判断该多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值。The third determining module 611 is configured to determine whether the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value.
本发明实施例中,当第四检测模块610检测到用户在触摸区域进行向预设方向滑动的多点滑动操作时,第三判断模块611将检测该多点滑动操作的每一触摸点的压力值,并判断该多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值。若第三判断模块611判断该多点滑动操作的任一触摸点的压力值小于第二预设压力值,可选的,则第三判断模块611继续检测该多点滑动操作的每一触摸点的压力值,并判断该多点滑动操作的每一触摸点是否均大于第二预设压力值。In the embodiment of the present invention, when the fourth detecting module 610 detects that the user performs a multi-point sliding operation in the touch area to slide in the preset direction, the third determining module 611 detects the pressure of each touch point of the multi-point sliding operation. And determining whether the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value. If the third determining module 611 determines that the pressure value of any touch point of the multi-point sliding operation is less than the second preset pressure value, the third determining module 611 continues to detect each touch point of the multi-point sliding operation. The pressure value is determined, and it is determined whether each touch point of the multi-point sliding operation is greater than the second preset pressure value.
第三获取模块612,用于当第三判断模块611判断多点滑动操作的每一触摸点的压力值均大于第二预设压力值时,获取当前环境的第二噪声音量,并将第二噪声音量与第一噪声音量的差值的绝对值作为同步音量调节量。The third obtaining module 612 is configured to: when the third determining module 611 determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, acquire the second noise volume of the current environment, and obtain the second The absolute value of the difference between the noise volume and the first noise volume is used as the synchronized volume adjustment amount.
本发明实施例中,当第三判断模块611判断该多点滑动操作的每一触摸点的压力值均大于第二预设压力值时,第三获取模块612通过声音获取装置再次获取当前环境的声音信号,以对该声音信号进行解析,得到当前环境的第二噪声音量。In the embodiment of the present invention, when the third determining module 611 determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, the third obtaining module 612 acquires the current environment again through the sound acquiring device. The sound signal is parsed to obtain a second noise level of the current environment.
本发明实施例中,第三获取模块612获取第二噪声音量之后,将计算第二噪声音量与第一噪声音量之间的差值,并将差值的绝对值作为同步音量调节 量。In the embodiment of the present invention, after the third acquisition module 612 acquires the second noise volume, the difference between the second noise volume and the first noise volume is calculated, and the absolute value of the difference is used as the synchronization volume adjustment. the amount.
举例来说,若第二噪声音量为10分贝,第一噪声音量为5分贝,则同步音量调节量为5分贝。若第二噪声音量为6分贝,第一噪声音量为7分贝,则同步音量调节量为1分贝。For example, if the second noise volume is 10 decibels and the first noise volume is 5 decibels, the synchronized volume adjustment amount is 5 decibels. If the second noise volume is 6 decibels and the first noise volume is 7 decibels, the synchronized volume adjustment amount is 1 decibel.
第三调节模块613,用于根据同步音量调节量对当前音量进行调节。The third adjustment module 613 is configured to adjust the current volume according to the synchronized volume adjustment amount.
本发明实施例中,第三获取模块612获取同步音量调节量之后,第三调节模块613将根据同步音量调节量对当前音量进行调节。In the embodiment of the present invention, after the third obtaining module 612 acquires the synchronized volume adjustment amount, the third adjusting module 613 adjusts the current volume according to the synchronized volume adjustment amount.
本发明实施例中,当第一噪声音量小于第二噪声音量时,第三调节模块613根据同步音量调节量对当前音量进行增加。当第一噪声音量大于第二噪声音量时,第三调节模块613根据同步音量调节量对当前音量进行减小。In the embodiment of the present invention, when the first noise volume is less than the second noise volume, the third adjustment module 613 increases the current volume according to the synchronized volume adjustment amount. When the first noise volume is greater than the second noise volume, the third adjustment module 613 decreases the current volume according to the synchronized volume adjustment amount.
例如,若用户终端当前音量为15分贝,第一噪声音量为5分贝,第二噪声音量为6分贝,则同步音量调节量为1分贝,则第三获取模块612获取同步音量调节量之后,第三调节模块613将用户终端当前的音量调节为16分贝。For example, if the current volume of the user terminal is 15 decibels, the first noise volume is 5 decibels, and the second noise volume is 6 decibels, the synchronization volume adjustment amount is 1 decibel, and after the third acquisition module 612 acquires the synchronized volume adjustment amount, the third The three adjustment module 613 adjusts the current volume of the user terminal to 16 decibels.
再如,若用户终端当前音量为15分贝,第一噪声音量为7分贝,第二噪声音量为6分贝,则同步音量调节量为1分贝,则第三获取模块612获取同步音量调节量之后,第三调节模块613将用户终端当前的音量调节为14分贝。For example, if the current volume of the user terminal is 15 decibels, the first noise volume is 7 decibels, and the second noise volume is 6 decibels, the synchronization volume adjustment amount is 1 decibel, and after the third acquisition module 612 obtains the synchronization volume adjustment amount, The third adjustment module 613 adjusts the current volume of the user terminal to 14 decibels.
在实际应用中,外界的噪音将影响用户的收听效果。在用户对用户终端的音量进行设置之后,若外界噪音变大,则用户可能不能清楚地听到播放的声音;若外界噪音变小,则用户可能会觉得听到的播放声音较大。因此,通过实施本发明实施例,在用户将用户终端的音量设置为一合适的音量之后,若外界的噪音对用户的收听造成了影响,则用户可通过在触摸区域进行滑动操作,来同步地增加或减小用户终端当前的音量,以减小外界噪音对用户收听造成的影响。In practical applications, external noise will affect the user's listening experience. After the user sets the volume of the user terminal, if the external noise becomes large, the user may not clearly hear the played sound; if the external noise becomes smaller, the user may feel that the played sound is louder. Therefore, by implementing the embodiment of the present invention, after the user sets the volume of the user terminal to a suitable volume, if the external noise affects the user's listening, the user can synchronously perform the sliding operation in the touch area. Increase or decrease the current volume of the user terminal to reduce the impact of external noise on the user's listening.
在图6~图9所描述的用户终端中,第一检测模块检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长之后,第一判断模块将判断目标压力值是否大于第一预设压力值;当目标压力值大于第一预设压力值时,第一获取模块根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量;第一调节模块根据目标音量调节量对当前音量进行调节。可见,通过实施本发明实施例,能够便利地对音量进行调节。 In the user terminal described in FIG. 6 to FIG. 9 , after the first detecting module detects the target pressure value and the target touch duration applied when the user touches the touch area, the first determining module determines whether the target pressure value is greater than the first. a preset pressure value; when the target pressure value is greater than the first preset pressure value, the first acquisition module acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount; The adjustment module adjusts the current volume according to the target volume adjustment amount. It can be seen that by implementing the embodiments of the present invention, the volume can be conveniently adjusted.
请参阅图10,图10是本发明实施例公开的另一种用户终端的结构示意图。如图10所示,该用户终端包括处理器1001,以及通过总线1002与处理器1001相连接的存储器1003。其中,存储器1003中存储有一组程序代码,处理器1001用于调用存储器1003中存储的程序代码,执行以下操作:Please refer to FIG. 10. FIG. 10 is a schematic structural diagram of another user terminal according to an embodiment of the present invention. As shown in FIG. 10, the user terminal includes a processor 1001 and a memory 1003 coupled to the processor 1001 via a bus 1002. The memory 1003 stores a set of program codes, and the processor 1001 is configured to call the program code stored in the memory 1003 to perform the following operations:
检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长;Detecting a target pressure value and a target touch duration applied when the user touches the touch area;
判断目标压力值是否大于第一预设压力值;Determining whether the target pressure value is greater than the first preset pressure value;
当目标压力值大于第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量;When the target pressure value is greater than the first preset pressure value, the target volume adjustment amount corresponding to the target touch duration is acquired according to the preset relationship between the touch duration and the volume adjustment amount;
根据目标音量调节量对当前音量进行调节。The current volume is adjusted according to the target volume adjustment amount.
作为一种可选的实施方式,触摸区域包括第一预设触摸区域和第二预设触摸区域,第一预设触摸区域和第二预设触摸区域为不重合的两个触摸区域,当触摸操作为在第一预设触摸区域进行的触摸操作时,目标音量调节量为目标音量减小量,处理器1001根据目标音量调节量对当前音量进行调节的方式具体为:As an optional implementation manner, the touch area includes a first preset touch area and a second preset touch area, where the first preset touch area and the second preset touch area are non-coincident two touch areas when the touch When the operation is the touch operation performed in the first preset touch area, the target volume adjustment amount is the target volume reduction amount, and the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
根据目标音量减小量对当前音量进行减小;Decrease the current volume according to the target volume reduction amount;
当触摸操作为在第二预设触摸区域进行的触摸操作时,目标音量调节量为目标音量增加量,处理器1001根据目标音量调节量对当前音量进行调节的方式具体为:When the touch operation is the touch operation performed in the second preset touch area, the target volume adjustment amount is the target volume increase amount, and the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
根据目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
作为一种可选的实施方式,处理器1001调用存储器1003中存储的程序代码,在判断目标压力值大于第一预设压力值之后,还可执行以下操作:As an optional implementation manner, the processor 1001 calls the program code stored in the memory 1003, and after determining that the target pressure value is greater than the first preset pressure value, the following operations may also be performed:
判断触摸操作输入的目标指纹信息是否与预设指纹信息相匹配;Determining whether the target fingerprint information input by the touch operation matches the preset fingerprint information;
当目标指纹信息与预设指纹信息相匹配时,处理器1001根据预先设置的触摸时长与音量调节量的对应关系,获取与目标触摸时长对应的目标音量调节量。When the target fingerprint information matches the preset fingerprint information, the processor 1001 acquires the target volume adjustment amount corresponding to the target touch duration according to the preset relationship between the touch duration and the volume adjustment amount.
作为一种可选的实施方式,预设指纹信息包括第一预设指纹信息和第二预设指纹信息,第一预设指纹信息和第二预设指纹信息不同,当目标指纹信息与第一预设指纹信息相匹配时,目标音量调节量为目标音量减小量,处理器1001根据目标音量调节量对当前音量进行调节的方式具体为: As an optional implementation manner, the preset fingerprint information includes the first preset fingerprint information and the second preset fingerprint information, where the first preset fingerprint information and the second preset fingerprint information are different, when the target fingerprint information is first When the preset fingerprint information is matched, the target volume adjustment amount is the target volume reduction amount, and the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
根据目标音量减小量对当前音量进行减小;Decrease the current volume according to the target volume reduction amount;
当目标指纹信息与第二预设指纹信息相匹配时,目标音量调节量为目标音量增加量,处理器1001根据目标音量调节量对当前音量进行调节的方式具体为:When the target fingerprint information matches the second preset fingerprint information, the target volume adjustment amount is the target volume increase amount, and the manner in which the processor 1001 adjusts the current volume according to the target volume adjustment amount is specifically:
根据目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
作为一种可选的实施方式,处理器1001调用存储器1003中存储的程序代码,根据目标音量调节量对当前音量进行调节之后,还可执行以下操作:As an optional implementation manner, the processor 1001 calls the program code stored in the memory 1003, and after adjusting the current volume according to the target volume adjustment amount, the following operations may also be performed:
检测调节后的音量是否大于第一预设音量值;Detecting whether the adjusted volume is greater than the first preset volume value;
当调节后的音量大于第一预设音量值时,检测是否有耳机接入;When the adjusted volume is greater than the first preset volume value, detecting whether there is a headset access;
当检测到有耳机接入时,将当前音量值调节为第二预设音量值,第二预设音量值小于第一预设音量值。When it is detected that there is a headset access, the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
作为一种可选的实施方式,处理器1001调用存储器1003中存储的程序代码,根据目标音量调节量对当前音量进行调节之后,还可执行以下操作:As an optional implementation manner, the processor 1001 calls the program code stored in the memory 1003, and after adjusting the current volume according to the target volume adjustment amount, the following operations may also be performed:
获取当前环境的第一噪声音量;Obtaining the first noise level of the current environment;
检测用户在触摸区域进行的向预设方向滑动的多点滑动操作;Detecting a multi-point sliding operation of the user sliding in a preset direction in the touch area;
判断多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;Determining whether the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value;
当多点滑动操作的每一触摸点的压力值均大于第二预设压力值时,获取当前环境的第二噪声音量,并将第二噪声音量与第一噪声音量的差值的绝对值作为同步音量调节量;When the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, the second noise volume of the current environment is acquired, and the absolute value of the difference between the second noise volume and the first noise volume is taken as Synchronous volume adjustment amount;
根据同步音量调节量对当前音量进行调节。The current volume is adjusted according to the amount of synchronized volume adjustment.
需要说明的是,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, in the above embodiments, the descriptions of the various embodiments are different, and the parts that are not described in detail in a certain embodiment may be referred to the related descriptions of other embodiments. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例的用户终端中的模块可以根据实际需要进行合并、划分和删减。The modules in the user terminal of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。One of ordinary skill in the art can understand all or part of the various methods of the above embodiments. The program may be programmed by the terminal device related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may include: a flash disk, a read-only memory (ROM), and a random memory. Random Access Memory (RAM), disk or CD.
以上对本发明实施例公开的一种音量调节方法及用户终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The volume adjustment method and the user terminal disclosed in the embodiments of the present invention are described in detail. The principles and implementations of the present invention are described in the following. The description of the above embodiments is only used to help understand the present invention. The method and its core idea; at the same time, those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of the specification should not be understood as Limitations of the invention.

Claims (20)

  1. 一种音量调节方法,其特征在于,所述方法包括:A volume adjustment method, characterized in that the method comprises:
    检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长;Detecting a target pressure value and a target touch duration applied when the user touches the touch area;
    判断所述目标压力值是否大于第一预设压力值;Determining whether the target pressure value is greater than a first preset pressure value;
    当所述目标压力值大于所述第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量;When the target pressure value is greater than the first preset pressure value, acquiring a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount;
    根据所述目标音量调节量对当前音量进行调节。The current volume is adjusted according to the target volume adjustment amount.
  2. 根据权利要求1所述的方法,其特征在于,所述触摸区域包括第一预设触摸区域和第二预设触摸区域,所述第一预设触摸区域和所述第二预设触摸区域为不重合的两个触摸区域,当所述触摸操作为在所述第一预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量减小量,所述根据所述目标音量调节量对当前音量进行调节包括:The method according to claim 1, wherein the touch area comprises a first preset touch area and a second preset touch area, wherein the first preset touch area and the second preset touch area are Two touch areas that do not coincide, when the touch operation is a touch operation performed on the first preset touch area, the target volume adjustment amount is a target volume reduction amount, and the target volume adjustment is performed according to the target The amount of current volume adjustment includes:
    根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
    当所述触摸操作为在所述第二预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量增加量,所述根据所述目标音量调节量对当前音量进行调节包括:When the touch operation is a touch operation performed on the second preset touch area, the target volume adjustment amount is a target volume increase amount, and the adjusting the current volume according to the target volume adjustment amount includes:
    根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
  3. 根据权利要求1所述的方法,其特征在于,所述在判断所述目标压力值大于所述第一预设压力值之后,所述方法还包括:The method according to claim 1, wherein after the determining that the target pressure value is greater than the first preset pressure value, the method further comprises:
    判断所述触摸操作输入的目标指纹信息是否与预设指纹信息相匹配;Determining whether the target fingerprint information input by the touch operation matches the preset fingerprint information;
    当所述目标指纹信息与所述预设指纹信息相匹配时,执行所述根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量的步骤。When the target fingerprint information is matched with the preset fingerprint information, the step of acquiring the target volume adjustment amount corresponding to the target touch duration according to the correspondence between the preset touch duration and the volume adjustment amount is performed.
  4. 根据权利要求3所述的方法,其特征在于,所述预设指纹信息包括第一预设指纹信息和第二预设指纹信息,所述第一预设指纹信息和所述第二预设指纹信息不同,当所述目标指纹信息与所述第一预设指纹信息相匹配时,所述 目标音量调节量为目标音量减小量,所述根据所述目标音量调节量对当前音量进行调节包括:The method according to claim 3, wherein the preset fingerprint information comprises first preset fingerprint information and second preset fingerprint information, the first preset fingerprint information and the second preset fingerprint Different information, when the target fingerprint information matches the first preset fingerprint information, the The target volume adjustment amount is a target volume reduction amount, and the adjusting the current volume according to the target volume adjustment amount includes:
    根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
    当所述目标指纹信息与所述第二预设指纹信息相匹配时,所述目标音量调节量为目标音量增加量,所述根据所述目标音量调节量对当前音量进行调节包括:When the target fingerprint information matches the second preset fingerprint information, the target volume adjustment amount is a target volume increase amount, and the adjusting the current volume according to the target volume adjustment amount includes:
    根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述目标音量调节量对当前音量进行调节之后,所述方法还包括:The method according to claim 1, wherein after the adjusting the current volume according to the target volume adjustment amount, the method further comprises:
    检测调节后的音量是否大于第一预设音量值;Detecting whether the adjusted volume is greater than the first preset volume value;
    当所述调节后的音量大于所述第一预设音量值时,检测是否有耳机接入;When the adjusted volume is greater than the first preset volume value, detecting whether there is a headset access;
    当检测到有耳机接入时,将当前音量值调节为第二预设音量值,所述第二预设音量值小于所述第一预设音量值。When it is detected that there is a headset access, the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述目标音量调节量对当前音量进行调节之后,所述方法还包括:The method according to claim 1, wherein after the adjusting the current volume according to the target volume adjustment amount, the method further comprises:
    获取当前环境的第一噪声音量;Obtaining the first noise level of the current environment;
    检测用户在触摸区域进行的向预设方向滑动的多点滑动操作;Detecting a multi-point sliding operation of the user sliding in a preset direction in the touch area;
    判断所述多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;Determining whether the pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value;
    当所述多点滑动操作的每一触摸点的压力值均大于所述第二预设压力值时,获取当前环境的第二噪声音量,并将所述第二噪声音量与所述第一噪声音量的差值的绝对值作为同步音量调节量;Obtaining a second noise volume of the current environment when the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, and the second noise volume and the first noise The absolute value of the difference in volume is used as the synchronous volume adjustment amount;
    根据所述同步音量调节量对当前音量进行调节。The current volume is adjusted according to the synchronized volume adjustment amount.
  7. 根据权利要求3所述的方法,其特征在于,所述根据所述目标音量调节量对当前音量进行调节之后,所述方法还包括:The method according to claim 3, wherein after the adjusting the current volume according to the target volume adjustment amount, the method further comprises:
    检测调节后的音量是否大于第一预设音量值; Detecting whether the adjusted volume is greater than the first preset volume value;
    当所述调节后的音量大于所述第一预设音量值时,检测是否有耳机接入;When the adjusted volume is greater than the first preset volume value, detecting whether there is a headset access;
    当检测到有耳机接入时,将当前音量值调节为第二预设音量值,所述第二预设音量值小于所述第一预设音量值。When it is detected that there is a headset access, the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
  8. 根据权利要求3所述的方法,其特征在于,所述根据所述目标音量调节量对当前音量进行调节之后,所述方法还包括:The method according to claim 3, wherein after the adjusting the current volume according to the target volume adjustment amount, the method further comprises:
    获取当前环境的第一噪声音量;Obtaining the first noise level of the current environment;
    检测用户在触摸区域进行的向预设方向滑动的多点滑动操作;Detecting a multi-point sliding operation of the user sliding in a preset direction in the touch area;
    判断所述多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;Determining whether the pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value;
    当所述多点滑动操作的每一触摸点的压力值均大于所述第二预设压力值时,获取当前环境的第二噪声音量,并将所述第二噪声音量与所述第一噪声音量的差值的绝对值作为同步音量调节量;Obtaining a second noise volume of the current environment when the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, and the second noise volume and the first noise The absolute value of the difference in volume is used as the synchronous volume adjustment amount;
    根据所述同步音量调节量对当前音量进行调节。The current volume is adjusted according to the synchronized volume adjustment amount.
  9. 一种用户终端,其特征在于,所述用户终端包括:A user terminal, the user terminal comprising:
    第一检测模块,用于检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长;a first detecting module, configured to detect a target pressure value and a target touch duration applied when the user touches the touch area;
    第一判断模块,用于判断所述目标压力值是否大于第一预设压力值;a first determining module, configured to determine whether the target pressure value is greater than a first preset pressure value;
    第一获取模块,当所述第一判断模块判断所述目标压力值大于所述第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量;a first acquiring module, when the first determining module determines that the target pressure value is greater than the first preset pressure value, acquiring a time duration of the target touch according to a preset relationship between a touch duration and a volume adjustment amount Corresponding target volume adjustment amount;
    第一调节模块,用于根据所述目标音量调节量对当前音量进行调节。The first adjustment module is configured to adjust the current volume according to the target volume adjustment amount.
  10. 根据权利要求9所述的用户终端,其特征在于,所述触摸区域包括第一预设触摸区域和第二预设触摸区域,所述第一预设触摸区域和所述第二预设触摸区域为不重合的两个触摸区域,当所述触摸操作为在所述第一预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量减小量,所述第一调节模块具体用于: The user terminal according to claim 9, wherein the touch area comprises a first preset touch area and a second preset touch area, the first preset touch area and the second preset touch area For the two touch areas that are not coincident, when the touch operation is a touch operation performed on the first preset touch area, the target volume adjustment amount is a target volume reduction amount, and the first adjustment module is specific Used for:
    根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
    当所述触摸操作为在所述第二预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量增加量,所述第一调节模块具体用于:When the touch operation is a touch operation performed on the second preset touch area, the target volume adjustment amount is a target volume increase amount, and the first adjustment module is specifically configured to:
    根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
  11. 根据权利要求9所述的用户终端,其特征在于,所述用户终端还包括:The user terminal according to claim 9, wherein the user terminal further comprises:
    第二判断模块,用于在所述第一判断模块判断所述目标压力值大于所述第一预设压力值之后,判断所述触摸操作输入的目标指纹信息是否与预设指纹信息相匹配;a second determining module, configured to determine, after the first determining module determines that the target pressure value is greater than the first preset pressure value, whether the target fingerprint information input by the touch operation matches the preset fingerprint information;
    当所述第二判断模块判断所述目标指纹信息与所述预设指纹信息相匹配时,触发所述第一获取模块根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量。When the second determining module determines that the target fingerprint information matches the preset fingerprint information, the first acquiring module is triggered to acquire the target according to the preset relationship between the touch duration and the volume adjustment amount. The amount of target volume adjustment corresponding to the touch duration.
  12. 根据权利要求11所述的用户终端,其特征在于,所述预设指纹信息包括第一预设指纹信息和第二预设指纹信息,所述第一预设指纹信息和所述第二预设指纹信息不同,当所述目标指纹信息与所述第一预设指纹信息相匹配时,所述目标音量调节量为目标音量减小量,所述第一调节模块具体用于:The user terminal according to claim 11, wherein the preset fingerprint information comprises first preset fingerprint information and second preset fingerprint information, the first preset fingerprint information and the second preset The fingerprint information is different. When the target fingerprint information is matched with the first preset fingerprint information, the target volume adjustment amount is a target volume reduction amount, and the first adjustment module is specifically configured to:
    根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
    当所述目标指纹信息与所述第二预设指纹信息相匹配时,所述目标音量调节量为目标音量增加量,所述第一调节模块具体用于:When the target fingerprint information is matched with the second preset fingerprint information, the target volume adjustment amount is a target volume increase amount, and the first adjustment module is specifically configured to:
    根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
  13. 根据权利要求9或11所述的用户终端,其特征在于,所述用户终端还包括:The user terminal according to claim 9 or 11, wherein the user terminal further comprises:
    第二检测模块,用于在所述第一调节模块根据所述目标音量调节量对当前音量进行调节之后,检测调节后的音量是否大于第一预设音量值;a second detecting module, configured to detect, after the first adjusting module adjusts the current volume according to the target volume adjustment amount, whether the adjusted volume is greater than the first preset volume value;
    第三检测模块,用于当所述第二检测模块检测所述调节后的音量大于所述第一预设音量值时,检测是否有耳机接入;a third detecting module, configured to detect whether there is a headset access when the second detecting module detects that the adjusted volume is greater than the first preset volume value;
    第二调节模块,用于当所述第三检测模块检测到有耳机接入时,将当前音 量值调节为第二预设音量值,所述第二预设音量值小于所述第一预设音量值。a second adjustment module, configured to: when the third detection module detects that there is a headset access, the current tone The magnitude is adjusted to a second preset volume value, and the second preset volume value is less than the first preset volume value.
  14. 根据权利要求9或11所述的用户终端,其特征在于,所述用户终端还包括:The user terminal according to claim 9 or 11, wherein the user terminal further comprises:
    第二获取模块,用于在所述第一调节模块根据所述目标音量调节量对当前音量进行调节之后,获取当前环境的第一噪声音量;a second acquiring module, configured to acquire a first noise volume of the current environment after the first adjusting module adjusts the current volume according to the target volume adjustment amount;
    第四检测模块,用于检测用户在触摸区域进行的向预设方向滑动的多点滑动操作;a fourth detecting module, configured to detect a multi-point sliding operation performed by the user in the touch area to slide in a preset direction;
    第三判断模块,用于判断所述多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;a third determining module, configured to determine whether a pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value;
    第三获取模块,用于当所述第三判断模块判断所述多点滑动操作的每一触摸点的压力值均大于所述第二预设压力值时,获取当前环境的第二噪声音量,并将所述第二噪声音量与所述第一噪声音量的差值的绝对值作为同步音量调节量;a third acquiring module, configured to acquire a second noise volume of the current environment when the third determining module determines that the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, And using an absolute value of the difference between the second noise volume and the first noise volume as a synchronous volume adjustment amount;
    第三调节模块,用于根据所述同步音量调节量对当前音量进行调节。The third adjustment module is configured to adjust the current volume according to the synchronous volume adjustment amount.
  15. 一种用户终端,包括处理器,以及与所述处理器相连接的存储器,其特征在于,所述存储器中存储一组程序代码,所述处理器用于调用所述存储器中存储的程序代码,执行以下操作:A user terminal, comprising a processor, and a memory connected to the processor, wherein the memory stores a set of program codes, the processor is configured to invoke program code stored in the memory, and execute The following operations:
    检测用户对触摸区域进行触摸操作时施加的目标压力值和目标触摸时长;Detecting a target pressure value and a target touch duration applied when the user touches the touch area;
    判断所述目标压力值是否大于第一预设压力值;Determining whether the target pressure value is greater than a first preset pressure value;
    当所述目标压力值大于所述第一预设压力值时,根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量;When the target pressure value is greater than the first preset pressure value, acquiring a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount;
    根据所述目标音量调节量对当前音量进行调节。The current volume is adjusted according to the target volume adjustment amount.
  16. 根据权利要求15所述的用户终端,其特征在于,所述触摸区域包括第一预设触摸区域和第二预设触摸区域,所述第一预设触摸区域和所述第二预设触摸区域为不重合的两个触摸区域,当所述触摸操作为在所述第一预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量减小量,所述处理器 根据所述目标音量调节量对当前音量进行调节的方式具体为:The user terminal according to claim 15, wherein the touch area comprises a first preset touch area and a second preset touch area, the first preset touch area and the second preset touch area For the two touch areas that are not coincident, when the touch operation is a touch operation performed on the first preset touch area, the target volume adjustment amount is a target volume reduction amount, and the processor The manner of adjusting the current volume according to the target volume adjustment amount is specifically as follows:
    根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
    当所述触摸操作为在所述第二预设触摸区域进行的触摸操作时,所述目标音量调节量为目标音量增加量,所述处理器根据所述目标音量调节量对当前音量进行调节的方式具体为:When the touch operation is a touch operation performed on the second preset touch area, the target volume adjustment amount is a target volume increase amount, and the processor adjusts the current volume according to the target volume adjustment amount. The method is specifically as follows:
    根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
  17. 根据权利要求15所述的用户终端,其特征在于,所述处理器在判断所述目标压力值大于所述第一预设压力值之后,还可执行以下操作:The user terminal according to claim 15, wherein the processor further performs the following operations after determining that the target pressure value is greater than the first preset pressure value:
    判断所述触摸操作输入的目标指纹信息是否与预设指纹信息相匹配;Determining whether the target fingerprint information input by the touch operation matches the preset fingerprint information;
    当所述目标指纹信息与所述预设指纹信息相匹配时,所述处理器根据预先设置的触摸时长与音量调节量的对应关系,获取与所述目标触摸时长对应的目标音量调节量。When the target fingerprint information matches the preset fingerprint information, the processor acquires a target volume adjustment amount corresponding to the target touch duration according to a preset relationship between the touch duration and the volume adjustment amount.
  18. 根据权利要求17所述的用户终端,其特征在于,所述预设指纹信息包括第一预设指纹信息和第二预设指纹信息,所述第一预设指纹信息和所述第二预设指纹信息不同,当所述目标指纹信息与所述第一预设指纹信息相匹配时,所述目标音量调节量为目标音量减小量,所述处理器根据所述目标音量调节量对当前音量进行调节的方式具体为:The user terminal according to claim 17, wherein the preset fingerprint information comprises first preset fingerprint information and second preset fingerprint information, the first preset fingerprint information and the second preset The fingerprint information is different. When the target fingerprint information matches the first preset fingerprint information, the target volume adjustment amount is a target volume reduction amount, and the processor adjusts the current volume according to the target volume adjustment amount. The way to adjust is as follows:
    根据所述目标音量减小量对当前音量进行减小;Decreasing the current volume according to the target volume reduction amount;
    当所述目标指纹信息与所述第二预设指纹信息相匹配时,所述目标音量调节量为目标音量增加量,所述处理器根据所述目标音量调节量对当前音量进行调节的方式具体为:When the target fingerprint information matches the second preset fingerprint information, the target volume adjustment amount is a target volume increase amount, and the processor adjusts the current volume according to the target volume adjustment amount. for:
    根据所述目标音量增加量对当前音量进行增大。The current volume is increased according to the target volume increase amount.
  19. 根据权利要求15或17所述的用户终端,其特征在于,所述处理器根据所述目标音量调节量对当前音量进行调节之后,还可执行以下操作:The user terminal according to claim 15 or 17, wherein after the processor adjusts the current volume according to the target volume adjustment amount, the following operations are also performed:
    检测调节后的音量是否大于第一预设音量值;Detecting whether the adjusted volume is greater than the first preset volume value;
    当所述调节后的音量大于所述第一预设音量值时,检测是否有耳机接入; When the adjusted volume is greater than the first preset volume value, detecting whether there is a headset access;
    当检测到有耳机接入时,将当前音量值调节为第二预设音量值,所述第二预设音量值小于所述第一预设音量值。When it is detected that there is a headset access, the current volume value is adjusted to a second preset volume value, and the second preset volume value is smaller than the first preset volume value.
  20. 根据权利要求15或17所述的用户终端,其特征在于,所述处理器根据所述目标音量调节量对当前音量进行调节之后,还可执行以下操作:The user terminal according to claim 15 or 17, wherein after the processor adjusts the current volume according to the target volume adjustment amount, the following operations are also performed:
    获取当前环境的第一噪声音量;Obtaining the first noise level of the current environment;
    检测用户在触摸区域进行的向预设方向滑动的多点滑动操作;Detecting a multi-point sliding operation of the user sliding in a preset direction in the touch area;
    判断所述多点滑动操作的每一触摸点的压力值是否均大于第二预设压力值;Determining whether the pressure value of each touch point of the multi-point sliding operation is greater than a second preset pressure value;
    当所述多点滑动操作的每一触摸点的压力值均大于所述第二预设压力值时,获取当前环境的第二噪声音量,并将所述第二噪声音量与所述第一噪声音量的差值的绝对值作为同步音量调节量;Obtaining a second noise volume of the current environment when the pressure value of each touch point of the multi-point sliding operation is greater than the second preset pressure value, and the second noise volume and the first noise The absolute value of the difference in volume is used as the synchronous volume adjustment amount;
    根据所述同步音量调节量对当前音量进行调节。 The current volume is adjusted according to the synchronized volume adjustment amount.
PCT/CN2016/080574 2015-08-27 2016-04-28 Volume adjusting method and user terminal WO2017032030A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510541545.8 2015-08-27
CN201510541545.8A CN105068692B (en) 2015-08-27 2015-08-27 A kind of volume adjusting method and user terminal

Publications (1)

Publication Number Publication Date
WO2017032030A1 true WO2017032030A1 (en) 2017-03-02

Family

ID=54498078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080574 WO2017032030A1 (en) 2015-08-27 2016-04-28 Volume adjusting method and user terminal

Country Status (2)

Country Link
CN (1) CN105068692B (en)
WO (1) WO2017032030A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068692B (en) * 2015-08-27 2018-01-19 广东欧珀移动通信有限公司 A kind of volume adjusting method and user terminal
CN105426089A (en) * 2015-11-19 2016-03-23 上海与德通讯技术有限公司 Method and module for implementing scroll bar function and adjustment method using same
CN105407222A (en) * 2015-11-23 2016-03-16 东莞市金铭电子有限公司 Volume adjustment method and terminal
CN105828215A (en) * 2015-11-30 2016-08-03 维沃移动通信有限公司 Video parameter adjustment method and terminal
CN105549848A (en) * 2015-12-10 2016-05-04 广东欧珀移动通信有限公司 Method for regulating sound box play parameter and mobile terminal
CN105573617B (en) * 2015-12-10 2017-11-14 广东欧珀移动通信有限公司 A kind of volume adjusting method and user terminal
CN105824557B (en) * 2016-02-19 2017-09-15 维沃移动通信有限公司 A kind of method and mobile terminal for playing voice messaging
CN105824529B (en) * 2016-03-11 2019-07-09 深圳市元征科技股份有限公司 A kind of method and intelligent wearable device controlling music
CN106055302A (en) * 2016-05-25 2016-10-26 维沃移动通信有限公司 Volume adjustment method and mobile terminal
CN106055301B (en) * 2016-05-25 2019-01-22 维沃移动通信有限公司 A kind of sound volume setting method and mobile terminal
CN106101364A (en) * 2016-06-16 2016-11-09 深圳市金立通信设备有限公司 A kind of method of volume adjusting and terminal
CN109213264A (en) * 2017-06-29 2019-01-15 北京小米移动软件有限公司 Electronic equipment, volume adjusting method and device, computer readable storage medium
CN107343095B (en) * 2017-06-30 2020-10-09 Oppo广东移动通信有限公司 Call volume control method and device, storage medium and terminal
CN108449615A (en) * 2018-02-27 2018-08-24 百度在线网络技术(北京)有限公司 System, method and device for sending instruction
CN108683812B (en) * 2018-05-14 2020-09-22 Oppo(重庆)智能科技有限公司 Volume adjusting method and device and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860584A (en) * 2009-04-09 2010-10-13 宏达国际电子股份有限公司 Mobile communication device and method for deciding output thereof
CN102479040A (en) * 2010-11-25 2012-05-30 联想(北京)有限公司 Touch processing method and portable mobile terminal
CN104866223A (en) * 2015-05-13 2015-08-26 努比亚技术有限公司 Touch operation method and apparatus
CN105068692A (en) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 Volume adjustment method and user terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833419B (en) * 2010-04-30 2013-10-09 华为终端有限公司 Method for operating user interface and mobile terminal
CN103634447B (en) * 2012-08-21 2018-03-23 联想(北京)有限公司 Control method, control device and the electronic equipment of a kind of electronic equipment
CN104020936B (en) * 2013-03-01 2018-07-10 北京三星通信技术研究有限公司 A kind of terminal and its control method
CN103778361A (en) * 2014-01-16 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Electronic equipment and function setting method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860584A (en) * 2009-04-09 2010-10-13 宏达国际电子股份有限公司 Mobile communication device and method for deciding output thereof
CN102479040A (en) * 2010-11-25 2012-05-30 联想(北京)有限公司 Touch processing method and portable mobile terminal
CN104866223A (en) * 2015-05-13 2015-08-26 努比亚技术有限公司 Touch operation method and apparatus
CN105068692A (en) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 Volume adjustment method and user terminal

Also Published As

Publication number Publication date
CN105068692A (en) 2015-11-18
CN105068692B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2017032030A1 (en) Volume adjusting method and user terminal
WO2017032032A1 (en) Screen brightness adjusting method and user terminal
WO2016184119A1 (en) Volume adjustment method, system and equipment, and computer storage medium
WO2017215203A1 (en) Signal output method and apparatus
WO2017032012A1 (en) Volume adjusting method and user terminal
US10027299B2 (en) Volume control
WO2017215657A1 (en) Sound effect processing method, and terminal device
WO2017032031A1 (en) Volume adjustment method and user terminal
CN108174031B (en) Volume adjusting method, terminal equipment and computer readable storage medium
US10461712B1 (en) Automatic volume leveling
CN104378485A (en) Volume adjustment method and volume adjustment device
CN109982231B (en) Information processing method, device and storage medium
US20160080552A1 (en) Methods and systems for user feature tracking on a mobile device
US20140254832A1 (en) Volume adjusting system and method
KR20140038179A (en) Method for volume controlling an electronic device thereof
WO2017032158A1 (en) Method and device for adjusting call volume and terminal
WO2016187946A1 (en) Volume control method, electronic device and computer storage medium
WO2015152937A1 (en) Modifying sound output in personal communication device
CN104113816A (en) Electronic device and earphone detection method
WO2017166751A1 (en) Audio adjusting method and apparatus of mobile terminal, and electronic device
CN110491419B (en) Playing control method, system and terminal equipment
CN106293608B (en) Volume control method and system based on mobile terminal touch screen
TW201423587A (en) System and method for providing prompts for callee
US10129382B2 (en) Electronic device and method for controlling electronic device using headset
WO2019061292A1 (en) Noise reduction method for terminal and terminal

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: 16838292

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: 16838292

Country of ref document: EP

Kind code of ref document: A1