CN113900573A - Volume control method and device, electronic equipment and computer readable storage medium - Google Patents

Volume control method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113900573A
CN113900573A CN202111162336.4A CN202111162336A CN113900573A CN 113900573 A CN113900573 A CN 113900573A CN 202111162336 A CN202111162336 A CN 202111162336A CN 113900573 A CN113900573 A CN 113900573A
Authority
CN
China
Prior art keywords
touch
volume
parameter
determining
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111162336.4A
Other languages
Chinese (zh)
Inventor
刘莉云
陈磊
杨亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202111162336.4A priority Critical patent/CN113900573A/en
Publication of CN113900573A publication Critical patent/CN113900573A/en
Pending legal-status Critical Current

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a volume control method, a volume control device, electronic equipment and a computer readable storage medium; according to the method, after the first touch parameter is judged to meet the trigger condition, a touch volume adjusting mode is started, then when key operation in a key area is detected, the volume adjusting direction is determined according to the key operation, then the volume adjusting amplitude is obtained and determined according to the second touch parameter, and finally the volume is adjusted according to the volume adjusting direction and the volume adjusting amplitude. According to the method, a new volume adjusting mode is realized by introducing the touch parameter, and the user experience is improved.

Description

Volume control method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a volume control method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of mobile terminals and the continuous improvement of living standards of people, various mobile terminals (such as mobile phones) are widely used, and the requirements of users on the mobile terminals are higher and higher.
Volume control of current mobile terminals is mostly realized through physical entity keys or volume display bars. The physical entity keys are usually arranged on two sides of the mobile terminal, and a user needs to press certain force to trigger the adjustment of the volume; the volume bar also typically requires the user to drag the display bar to make volume adjustments. Therefore, a novel volume control method is needed to improve the user experience.
Disclosure of Invention
The application provides a volume control method, a volume control device, electronic equipment and a computer-readable storage medium, which are used for improving user experience.
In order to solve the technical problem, the present application provides the following technical solutions:
the application provides a volume control method, which comprises the following steps:
acquiring a first touch parameter;
starting a touch volume adjusting mode when the first touch parameter meets a trigger condition;
when the key operation of a key area is detected, determining a volume adjusting direction according to the key operation;
acquiring and determining a volume adjusting amplitude according to the second touch parameter;
and adjusting the volume according to the volume adjusting direction and the volume adjusting amplitude.
Correspondingly, the present application also provides a volume control device, comprising:
the parameter acquisition module is used for acquiring a first touch parameter;
the starting module is used for starting a touch volume adjusting mode when the first touch parameter meets a triggering condition;
the adjusting direction determining module is used for determining the volume adjusting direction according to the key operation when the key operation of the key area is detected;
the adjusting amplitude determining module is used for acquiring and determining the volume adjusting amplitude according to the second touch parameter;
and the comprehensive adjusting module is used for adjusting the volume according to the volume adjusting direction and the volume adjusting amplitude.
Meanwhile, the present application provides an electronic device, which includes a processor and a memory, wherein the memory is used for storing a computer program, and the processor is used for operating the computer program in the memory to execute the steps in the volume control method.
In addition, the present application also provides a computer-readable storage medium, where a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to execute the steps in the volume control method.
Has the advantages that: the application provides a volume control method, a volume control device, electronic equipment and a computer readable storage medium. Specifically, the method includes the steps of firstly obtaining a first touch parameter, judging whether the first touch parameter meets a trigger condition, starting a touch volume adjusting mode when the trigger condition is met, then determining a volume adjusting direction according to key operation when the key operation of a key area is detected, then obtaining a second touch parameter, determining a volume adjusting amplitude according to the second touch parameter, and finally adjusting the volume according to the volume adjusting direction and the volume adjusting amplitude. According to the method, multiple times of touch control are realized by introducing the touch control parameters, a novel volume adjusting mode is realized in the mode, the experience feeling of a user is improved, and meanwhile, the competitiveness of a product is improved compared with the traditional volume adjusting mode.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a volume control method according to an embodiment of the present disclosure.
Fig. 2 is another schematic flow chart of a volume control method according to an embodiment of the present disclosure.
Fig. 3 is a scene schematic diagram of a mobile terminal according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a volume control device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "including" and "having," and any variations thereof, in the description and claims of this application are intended to cover non-exclusive inclusions; the division of the modules presented in this application is only a logical division, and may be implemented in other ways in practical applications, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed.
In this application, the first touch parameter refers to the number of times that the user clicks the touch area, or the sliding duration of the user in the touch area, or the sensing value generated by the touch area, or the like.
In this application, the triggering condition refers to a precondition that a user manually or set by the mobile terminal when the mobile terminal leaves a factory clicks the touch area for a certain number of times (for example, 3 times), or the sliding time of the user in the touch area reaches a certain time (for example, 5s), or an induction value generated by the touch area meets a preset threshold range, and the like, can trigger a relevant operation.
In the application, the touch volume adjustment mode refers to a mode that the volume can be adjusted by touching a specific area of the screen of the mobile terminal, and the current screen on-off function of the mobile terminal cannot be influenced by touching the screen of the mobile terminal in the mode.
In the present application, the key regions generally refer to physical entity keys disposed on both sides of the mobile terminal, and as shown in fig. 3, fig. 3 shows a scene schematic diagram of the mobile terminal, and the key regions correspond to the "volume + key" and the "volume-key" in fig. 3.
In the present application, the key operation refers to pressing a "volume + key" or pressing a "volume-key".
In the present application, the volume adjustment direction refers to "volume up" or "volume down".
In this application, the second touch parameter refers to a sensing value generated by the proximity sensor when a user touches a region in the screen of the mobile terminal corresponding to the proximity sensor, where the sensing value is related to a change of a region of a hole of the proximity sensor, for example, the sensing value is 20 when the hole is completely uncovered, and the sensing value is 100 when the hole is completely covered.
The application provides a volume control method, a volume control device, electronic equipment and a computer readable storage medium.
As shown in fig. 1, fig. 1 is a schematic flow chart of a volume control method provided in an embodiment of the present application, where the volume control method is applied to a mobile terminal, and the mobile terminal may be a device having a touch screen and capable of adjusting volume, such as a smart phone and a tablet computer. The following will describe in detail a volume control method in the present application, which includes at least the following steps:
101: and acquiring a first touch parameter.
In one embodiment, when performing a volume control operation, the mobile terminal detects an operation of a user through a module such as a sensor thereof, for example, clicking a specific area of a screen or sliding in the specific area, and obtains a first touch parameter according to a corresponding operation analysis, which includes the specific steps of: detecting a first touch operation of a touch area, and determining a first touch characteristic corresponding to the first touch operation; and determining a first touch parameter according to the first touch characteristic.
The first touch operation may be a screen click or a sliding operation performed by a user in a touch area as shown in fig. 3, and the touch characteristic includes an action name (e.g., a click or a sliding) and a number/duration of actions, and the first touch parameter is a number of times a certain action is performed or a duration of the certain action (e.g., 3 times the screen corresponding to the touch area is clicked, or 5s of sliding is performed on the screen corresponding to the touch area, or a sensing value generated by the touch area according to the user operation is 20).
The process of obtaining the first touch parameter is explained in detail by taking an example that the user clicks a screen of the touch area. Namely, when detecting that a user clicks a screen in a touch area, a sensor in the mobile terminal starts to record the operation of clicking the screen, and when the operation of clicking the screen is stopped, a corresponding first touch characteristic is determined according to the operation of clicking the screen (namely, the screen is clicked 3 times), and then a first touch parameter is determined according to the operation of clicking the screen 3 times (namely, 3 times).
It should be noted that the first touch parameter can be obtained only by performing corresponding operations in the touch area, and the first touch parameter cannot be obtained by performing the same operations in other positions of the screen outside the touch area.
102: and when the first touch parameter meets the trigger condition, starting a touch volume adjusting mode.
In one embodiment, when determining whether the first touch parameter satisfies the trigger condition, the method needs to first obtain the corresponding trigger condition, analyze the trigger condition to obtain the trigger parameter, and determine whether to start the touch volume adjustment mode by comparing the trigger parameter with the first touch parameter, and includes the specific steps of: acquiring and analyzing a trigger condition to obtain a trigger parameter; and when the first touch parameter is matched with the trigger parameter, starting a touch volume adjusting mode.
The trigger condition may be manually set by the mobile terminal, or may be set by the mobile terminal when the mobile terminal is shipped from a factory. Specifically, the triggering condition refers to a precondition that a user clicks the touch area for a certain number of times, or the sliding time of the user in the touch area reaches a certain length of time, or the sensing value generated by the touch area meets a preset threshold range (for example, the sensing value generated by the touch area according to the user operation is 25, and the preset threshold range is 20-100, then the sensing value 20 is within the preset threshold range), and the like, can trigger the corresponding operation.
The triggering process is explained in detail by taking the triggering condition as an example that the user can trigger the touch volume adjustment mode by clicking the touch area 3 times. The method comprises the steps of firstly reading a stored trigger condition from a memory of the mobile terminal, then analyzing the trigger condition to obtain that a parameter to be triggered is clicked for 3 times, then comparing the trigger parameter with a first touch parameter (clicked for 3 times) obtained before, at the moment, matching the first touch parameter with the trigger parameter, namely meeting the precondition for triggering a touch volume adjustment mode, and therefore the mobile terminal generates an instruction for starting the touch volume adjustment mode according to a matching result and executes the instruction by a processor of the mobile terminal to start the touch volume adjustment mode.
It should be noted that the touch volume adjustment mode may be enabled only when the related operation is performed in the touch area and the first touch parameter corresponding to the related operation satisfies the trigger condition, and if the related operation is performed in another area of the mobile terminal, the touch volume adjustment mode may not be enabled even if the touch parameter satisfies the trigger condition.
103: and when the key operation of the key area is detected, determining the volume adjusting direction according to the key operation.
In one embodiment, after the touch volume adjustment mode is started, the user is required to press a physical entity key of the mobile terminal, so that the mobile terminal senses a corresponding pressing operation, and thus, whether to perform volume up or volume down is determined, which specifically includes: acquiring key operation of a key area; generating a corresponding voltage value according to the key operation; and determining the volume adjusting direction according to the voltage value.
In the above process, the user may press the key in the key area of the mobile terminal according to the own requirement, as shown in fig. 3, the key area of the mobile terminal includes a "volume + key" and a "volume-key", when the user presses the "volume + key", the mobile terminal senses the corresponding pressing operation and feeds back a first voltage value corresponding to the pressing operation to a Central Processing Unit (CPU) of the mobile terminal, the Central Processing Unit (CPU) obtains the first voltage value, analyzes the first voltage value, and generates a command for increasing the volume according to a mapping relationship between the first voltage value and the volume direction, that is, the volume adjustment direction at this time is increased; similarly, when the user presses the "volume-key", the mobile terminal feeds back the second voltage value to a Central Processing Unit (CPU) of the mobile terminal, and generates a command to decrease the volume according to a mapping relationship between the second voltage value and the volume direction, that is, the volume adjustment direction at this time is decreased.
104: and acquiring and determining the volume adjusting amplitude according to the second touch parameter.
In an embodiment, after the volume adjustment direction is determined, a user may adjust the volume through a touch operation in the sensing area, and the specific steps include: detecting a second touch operation of the induction area, and determining a second touch characteristic according to the second touch operation; and determining a second touch parameter according to the second touch characteristic. As shown in fig. 3, fig. 3 shows a scene schematic diagram of a mobile terminal, in which a sensing area is shown, wherein the sensing area and a touch area are two separate areas, and a proximity sensor (P-sensor) may be disposed in the sensing area to better sense an operation of a user.
When the user performs a second touch operation (such as clicking or sliding) in the sensing area, the sensor disposed in the sensing area detects the second touch operation of the user, determines a second touch characteristic (e.g., a voltage value generated by a change in an area of a hole of the sensor in the clicking operation or sliding operation) according to the second touch operation, and then feeds the second touch characteristic back to a Central Processing Unit (CPU) of the mobile terminal for processing, so as to obtain a corresponding second touch parameter (e.g., an induction value when the hole is completely unobstructed is 20, and an induction value when the hole is completely obstructed is 100, etc.).
In one embodiment, the second touch parameter is calculated based on the second touch characteristic and the change of the sensing area, and the specific steps include: calculating to obtain an induction parameter according to the second touch characteristic and the induction area; and taking the induction parameter as a second touch parameter. Because the proximity sensor is arranged in the sensing area and is a device for sensing distance, the Central Processing Unit (CPU) can determine a second touch characteristic according to a specific operation of a user in the sensing area, feed a voltage value corresponding to the second touch characteristic back to the Central Processing Unit (CPU), and determine a sensing parameter according to a change of the sensing area and the corresponding voltage value, where the sensing parameter is the second touch parameter.
In an embodiment, after the second touch parameter is determined, the amplitude of volume adjustment may be determined according to a mapping relationship between the second touch parameter and the amplitude of volume, and the specific steps include: acquiring a second touch parameter, a mapping relation between the touch parameter and the volume adjustment amplitude; and determining the volume adjustment amplitude according to the second touch parameter and the mapping relation. The mapping relationship between the touch parameter and the volume adjustment amplitude is, for example: when the touch parameter is 20-30, the corresponding volume adjustment amplitude is 1 volume level, when the touch parameter is 30-40, the corresponding volume adjustment amplitude is 2 levels, and when the touch parameter is 40-50, the corresponding volume adjustment amplitude is 3 levels, and the like. Therefore, when the second touch parameter is 25, the corresponding volume adjustment amplitude is 1 volume level.
105: and adjusting the volume according to the volume adjusting direction and the volume adjusting amplitude.
According to the above process, a volume adjustment direction and a volume adjustment amplitude are determined, for example, the volume adjustment direction is volume up, the volume adjustment amplitude is 1 volume level, that is, the mobile terminal performs corresponding operation to increase the volume by 1 volume level.
It should be noted that, in the above process, the user performs related operations such as clicking or sliding on the touch screen, the touch screen generates corresponding touch screen induced voltage according to the related operations, and sends the corresponding touch screen induced voltage to a Central Processing Unit (CPU) of the mobile terminal, and the Central Processing Unit (CPU) calculates a value of a corresponding position of the user during the related operations, where the value may be a number of clicks, a sliding time length, or an original value corresponding to the sensor, which is calculated after processing; in addition, when the user presses the physical entity key of the mobile terminal, the mobile terminal feeds back the corresponding voltage value of the user operation to a Central Processing Unit (CPU) so as to determine whether the user performs the operation of increasing or decreasing the volume.
Taking music playing as an example, fig. 2 provides another schematic flow chart of the volume control method in a music playing scene, and the specific flow chart may be as follows:
201: and starting.
202: it is judged whether or not music playing is performed.
The code of the mobile terminal is added with a trigger condition that the volume adjustment can be started when music playing exists. Therefore, when the mobile terminal plays music, the system automatically judges that the volume adjustment can be started at the moment, and executes 203; when the mobile terminal does not play music, the system automatically judges that the volume adjustment cannot be started at the moment, and executes 204: the current volume is maintained.
203: and judging whether a first touch operation exists.
Judging whether a specific area of a touch screen of the mobile terminal has a first touch operation such as clicking/sliding the screen by a user or not, if so, executing 205, and if not, executing 204: and keeping the current volume, namely playing the music at the current volume.
205: the touch characteristics are collected, and a first touch parameter is calculated.
The method includes the steps of collecting a first touch characteristic (the number of times/duration of clicking/sliding the screen) corresponding to a first touch operation according to the first touch operation (clicking/sliding the screen corresponding to the touch area), and calculating a corresponding first touch parameter according to the first touch characteristic (for example, clicking the screen corresponding to the touch area 3 times, or sliding the screen corresponding to the touch area for 5s, or generating a sensing value of the touch area according to a user operation to be 20, and the like).
206: and judging whether the first touch parameter meets the trigger condition.
The mobile terminal stores preset preconditions for triggering a touch volume adjustment mode (for example, clicking a touch area for 3 times to trigger, for example, sliding for 5s to trigger, or for example, the touch area generates a sensing value of 20 according to a user operation to trigger), and determines whether a first touch parameter meets the preset triggering conditions, if so, executes 207, and if not, executes 204: and keeping the current volume, namely playing the music at the current volume.
It should be noted that the process is a first trigger condition of the touch volume adjustment mode. After the touch volume adjustment mode is triggered, the normal on-off of the screen cannot be influenced by clicking/sliding and other operations of the user in a touch area or an induction area of the mobile terminal.
207: it is determined whether the user has pressed the volume + key.
After the touch volume adjustment mode is started, a user needs to set a volume adjustment direction by pressing a physical entity volume key, the mobile terminal judges whether a volume key pressed by the user is a volume + key or a volume-key by sensing a corresponding voltage value, and when the volume + key pressed by the user is judged, an induction area is triggered to work, and 208 is executed; otherwise, executing 204: and keeping the current volume, namely playing the music at the current volume.
208: and judging whether a second touch operation exists.
After determining that the operation of increasing the volume is to be performed, the mobile terminal may continue to detect whether the user performs a second touch operation in the sensing area, where the sensing area is provided with a proximity sensor, and the proximity sensor may sense the second touch operation, such as clicking/sliding, performed in the area by the user, and if the second touch operation is performed, execute 209; if not, 204 is executed: and keeping the current volume, namely playing the music at the current volume.
209: and collecting touch characteristics and calculating a second touch parameter.
Based on the second touch operation (clicking/sliding the screen corresponding to the sensing area) detected at 208, second touch characteristics (e.g., voltage values generated by changes of holes of the sensor in the sensing area during the clicking operation or the sliding operation) corresponding to the second touch operation are further collected, and then the second touch characteristics are fed back to a Central Processing Unit (CPU) of the mobile terminal for processing, so as to calculate corresponding second touch parameters (e.g., a sensing value of 20 when the holes are completely unobstructed, a sensing value of 100 when the holes are completely obstructed, etc.).
210: and determining the volume adjustment amplitude and adjusting the volume.
After the second touch parameter is determined, the volume adjustment amplitude is determined according to the corresponding relationship between the touch parameter and the volume adjustment amplitude, for example: when the touch parameter is 20-30, the corresponding volume adjustment amplitude is 1 volume level, when the touch parameter is 30-40, the corresponding volume adjustment amplitude is 2 levels, and when the touch parameter is 40-50, the corresponding volume adjustment amplitude is 3 levels, and the like. Therefore, when the second touch parameter is 25, the corresponding volume adjustment range is 1 volume level, and the current volume is increased by 1 volume level by combining the volume adjustment direction.
211: it is determined whether the user has pressed the volume-key.
The step is opposite to the direction of volume adjustment in step 207, after the touch volume adjustment mode is started, a user needs to set the volume adjustment direction by pressing a physical entity volume key, the mobile terminal judges whether the volume key pressed by the user is a volume + key or a volume-key by sensing a corresponding voltage value, and when the volume key pressed by the user is judged to be the volume-key, step 212 is executed, otherwise step 204 is executed: and keeping the current volume, namely playing the music at the current volume.
212: and judging whether a second touch operation exists.
After determining that the operation of increasing the volume is to be performed, the mobile terminal may continue to detect whether the user performs a second touch operation in the sensing area, where the sensing area is provided with a proximity sensor, and the proximity sensor may sense the second touch operation, such as clicking/sliding, performed in the area by the user, and if the second touch operation is performed, execute 209; if not, 204 is executed: and keeping the current volume, namely playing the music at the current volume.
213: and collecting touch characteristics and calculating a second touch parameter.
Based on the second touch operation (clicking/sliding the screen corresponding to the sensing area) detected at 208, second touch characteristics corresponding to the second touch operation (e.g., voltage values generated by changes of holes of the sensor in the sensing area during the clicking operation or the sliding operation) are further collected, and then the second touch characteristics are fed back to a Central Processing Unit (CPU) of the mobile terminal for processing, so as to calculate corresponding second touch parameters (e.g., the sensing value of a hole when the hole is half blocked is 60).
214: and determining the volume adjustment amplitude and adjusting the volume.
After the second touch parameter is determined, the volume adjustment amplitude is determined according to the corresponding relationship between the touch parameter and the volume adjustment amplitude, for example: when the touch parameter is 20-30, the corresponding volume adjustment amplitude is 1 volume level, when the touch parameter is 30-40, the corresponding volume adjustment amplitude is 2 levels, and when the touch parameter is 40-50, the corresponding volume adjustment amplitude is 3 levels, and the like. Therefore, when the second touch parameter is 45, the corresponding volume adjustment range is 3 volume levels, and the current volume is finally reduced by 3 volume levels by combining the volume adjustment direction.
In another possible embodiment, the user may not touch the touch screen, and specifically, the mobile terminal may sense a gesture change of the user through a sensor in the sensing area, so as to identify a corresponding gesture according to a Central Processing Unit (CPU) of the mobile terminal, thereby obtaining a corresponding volume adjustment direction and amplitude.
In addition, in another possible embodiment, the mobile terminal may further sense a position of the user's hand from the sensor through the sensor in the sensing area, so that a Central Processing Unit (CPU) calculates a volume adjustment amplitude corresponding to a distance between the user's hand and the sensor.
The process is a complete process of touch volume adjustment, the volume adjustment is triggered for three times in the process, a touch volume adjustment mode is triggered by corresponding operation of a user in a touch area for the first time, a volume adjustment direction is triggered by pressing a physical entity volume key by the user for the second time, a volume adjustment amplitude is triggered by corresponding operation of the user in an induction area for the third time, and the volume can be accurately adjusted after three times of triggering.
It should be noted that the touch area in the above process may be set manually, or may be a default area when the mobile terminal leaves the factory, and the position of the sensing area is relatively fixed because the sensor is disposed in the sensing area, and is determined when the mobile terminal leaves the factory. In addition, the mobile terminal can only perform processing such as touch characteristic analysis on the first touch operation and the second touch operation when the first touch operation and the second touch operation are matched with the preset touch operation of the mobile terminal, so that the influence on user experience caused by mistakenly touching the volume adjusting mode due to other operations is avoided.
Based on the content of the foregoing embodiments, embodiments of the present application provide a volume control device, which may be disposed in a mobile terminal. The volume control device is used for executing the volume control method provided in the above method embodiment, and specifically, referring to fig. 4, the device includes:
a parameter obtaining module 401, configured to obtain a first touch parameter;
a starting module 402, configured to start a touch volume adjustment mode when the first touch parameter meets a trigger condition;
an adjusting direction determining module 403, configured to determine, when a key operation of a key region is detected, a volume adjusting direction according to the key operation;
an adjusting amplitude determining module 404, configured to obtain and determine a volume adjusting amplitude according to the second touch parameter;
and the comprehensive adjusting module 405 is configured to adjust the volume according to the volume adjusting direction and the volume adjusting amplitude.
In one embodiment, the parameter obtaining module 401 includes:
the first detection module is used for detecting a first touch operation of a touch area and determining a first touch characteristic corresponding to the first touch operation;
and the first parameter determining module is used for determining a first touch parameter according to the first touch characteristic.
In one embodiment, the initiation module 402 includes:
the analysis module is used for acquiring and analyzing the trigger condition to obtain a trigger parameter;
and the matching module is used for starting a touch volume adjusting mode when the first touch parameter is matched with the trigger parameter.
In one embodiment, the adjustment direction determining module 403 includes:
the operation acquisition module is used for acquiring key operation of the key area;
the voltage generation module is used for generating a corresponding voltage value according to the key operation;
and the direction determining module is used for determining the volume adjusting direction according to the voltage value.
In one embodiment, the adjustment magnitude determination module 404 includes:
the second detection module is used for detecting second touch operation of the induction area and determining second touch characteristics according to the second touch operation;
and the second parameter determining module is used for determining a second touch parameter according to the second touch characteristic.
In one embodiment, the second parameter determination module comprises:
the parameter calculation module is used for calculating to obtain a sensing parameter according to the second touch characteristic and the sensing area;
and the parameter determining module is used for taking the induction parameter as a second touch parameter.
In one embodiment, the adjustment magnitude determination module 404 includes:
the relationship acquisition module is used for acquiring a second touch parameter, a mapping relationship between the touch parameter and the volume adjustment amplitude;
and the amplitude determining module is used for determining the volume adjusting amplitude according to the second touch parameter and the mapping relation.
The volume control device of the embodiment of the present application may be configured to implement the technical solutions of the foregoing method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Different from the prior art, the volume control device provided by the application is provided with the starting module, the adjusting direction determining module and the adjusting amplitude determining module, whether the first touch parameter meets the triggering condition is judged through the starting module, the touch volume adjusting mode is started when the triggering condition is met, then the key operation is detected through the adjusting direction determining module, the volume is increased or decreased, and finally the specific amplitude of the volume adjustment is determined through the adjusting amplitude determining module according to the second touch parameter.
Accordingly, an electronic device may include, as shown in fig. 5, a processor 501 having one or more processing cores, a Wireless Fidelity (WiFi) module 502, a memory 503 having one or more computer-readable storage media, an audio circuit 504, a display unit 505, an input unit 506, a sensor 507, a power supply 508, and a Radio Frequency (RF) circuit 509. Those skilled in the art will appreciate that the configuration of the electronic device shown in fig. 5 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 501 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 503 and calling data stored in the memory 503, thereby performing overall monitoring of the electronic device. In one embodiment, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
WiFi belongs to short-range wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the wireless module 502, and it provides wireless broadband internet access for the user. Although fig. 5 shows the wireless module 502, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The memory 503 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 503. The memory 503 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 503 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 503 may also include a memory controller to provide the processor 501 and the input unit 506 with access to the memory 503.
The audio circuitry 504 includes speakers that can provide an audio interface between a user and the electronic device. The audio circuit 504 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the speaker converts the collected sound signal into an electrical signal, which is received by the audio circuit 504 and converted into audio data, and the audio data is processed by the audio data output processor 501 and then transmitted to another electronic device via the radio frequency circuit 509, or the audio data is output to the memory 503 for further processing. The audio circuitry 504 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
The display unit 505 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 505 may include a Display panel, and in one embodiment, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 501 to determine the type of the touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of the touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement the input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement the input and output functions.
The input unit 506 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 506 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. In one embodiment, the touch sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 501, and can receive and execute commands sent by the processor 501. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 506 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The electronic device may also include at least one sensor 507, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a distance sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of ambient light (the proximity sensor may turn off the display panel and/or backlight when the terminal moves to the ear, as one type of motion sensor, the gravity acceleration sensor may detect the magnitude of acceleration in various directions (generally three axes), may detect the magnitude and direction of gravity when the terminal is stationary, and may be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like); as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
The electronic device also includes a power supply 508 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 501 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 508 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The rf circuit 509 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then sends the received downlink information to one or more processors 501 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the radio frequency circuitry 509 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the radio frequency circuit 509 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 501 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 503 according to the following instructions, and the processor 501 runs the application program stored in the memory 503, so as to implement the following functions:
acquiring a first touch parameter;
starting a touch volume adjusting mode when the first touch parameter meets a trigger condition;
when the key operation of a key area is detected, determining a volume adjusting direction according to the key operation;
acquiring and determining a volume adjusting amplitude according to the second touch parameter;
and adjusting the volume according to the volume adjusting direction and the volume adjusting amplitude.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to implement the functions of the volume control method.
The volume control method, the volume control device, the electronic device, and the computer-readable storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of volume control, comprising:
acquiring a first touch parameter;
starting a touch volume adjusting mode when the first touch parameter meets a trigger condition;
when the key operation of a key area is detected, determining a volume adjusting direction according to the key operation;
acquiring and determining a volume adjusting amplitude according to the second touch parameter;
and adjusting the volume according to the volume adjusting direction and the volume adjusting amplitude.
2. The volume control method according to claim 1, wherein the step of obtaining the first touch parameter comprises:
detecting a first touch operation of a touch area, and determining a first touch characteristic corresponding to the first touch operation;
and determining a first touch parameter according to the first touch characteristic.
3. The volume control method according to claim 1, wherein the step of starting the touch volume adjustment mode when the first touch parameter satisfies a trigger condition comprises:
acquiring and analyzing a trigger condition to obtain a trigger parameter;
and when the first touch parameter is matched with the trigger parameter, starting a touch volume adjusting mode.
4. The volume control method according to claim 1, wherein the step of determining a volume adjustment direction according to a key operation when the key operation of the key region is detected comprises:
acquiring key operation of a key area;
generating a corresponding voltage value according to the key operation;
and determining the volume adjusting direction according to the voltage value.
5. The volume control method according to claim 1, wherein the step of obtaining and determining the volume adjustment amplitude according to the second touch parameter comprises:
detecting a second touch operation of the induction area, and determining a second touch characteristic according to the second touch operation;
and determining a second touch parameter according to the second touch characteristic.
6. The volume control method according to claim 5, wherein the step of determining a second touch parameter according to the second touch characteristic comprises:
calculating to obtain an induction parameter according to the second touch characteristic and the induction area;
and taking the induction parameter as a second touch parameter.
7. The volume control method according to claim 1, wherein the step of obtaining and determining the volume adjustment amplitude according to the second touch parameter comprises:
acquiring a second touch parameter, a mapping relation between the touch parameter and the volume adjustment amplitude;
and determining the volume adjustment amplitude according to the second touch parameter and the mapping relation.
8. A volume control device, comprising:
the parameter acquisition module is used for acquiring a first touch parameter;
the starting module is used for starting a touch volume adjusting mode when the first touch parameter meets a triggering condition;
the adjusting direction determining module is used for determining the volume adjusting direction according to the key operation when the key operation of the key area is detected;
the adjusting amplitude determining module is used for acquiring and determining the volume adjusting amplitude according to the second touch parameter;
and the comprehensive adjusting module is used for adjusting the volume according to the volume adjusting direction and the volume adjusting amplitude.
9. An electronic device comprising a processor and a memory, the memory storing a computer program, the processor being configured to execute the computer program in the memory to perform the steps of the volume control method according to any one of claims 1 to 7.
10. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the volume control method according to any one of claims 1 to 7.
CN202111162336.4A 2021-09-30 2021-09-30 Volume control method and device, electronic equipment and computer readable storage medium Pending CN113900573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111162336.4A CN113900573A (en) 2021-09-30 2021-09-30 Volume control method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111162336.4A CN113900573A (en) 2021-09-30 2021-09-30 Volume control method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113900573A true CN113900573A (en) 2022-01-07

Family

ID=79189947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111162336.4A Pending CN113900573A (en) 2021-09-30 2021-09-30 Volume control method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113900573A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035651A (en) * 2013-03-05 2014-09-10 联想(北京)有限公司 Control method and electronic device
CN104182147A (en) * 2014-08-29 2014-12-03 乐视网信息技术(北京)股份有限公司 Volume adjusting method and device
CN107613128A (en) * 2017-09-26 2018-01-19 努比亚技术有限公司 A kind of volume adjusting method, terminal and computer-readable recording medium
CN111225107A (en) * 2019-11-06 2020-06-02 成都欧珀通信科技有限公司 Volume adjusting method and device, electronic equipment and storage medium
CN113253969A (en) * 2021-05-20 2021-08-13 北京小米移动软件有限公司 Volume adjusting method and device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035651A (en) * 2013-03-05 2014-09-10 联想(北京)有限公司 Control method and electronic device
CN104182147A (en) * 2014-08-29 2014-12-03 乐视网信息技术(北京)股份有限公司 Volume adjusting method and device
CN107613128A (en) * 2017-09-26 2018-01-19 努比亚技术有限公司 A kind of volume adjusting method, terminal and computer-readable recording medium
CN111225107A (en) * 2019-11-06 2020-06-02 成都欧珀通信科技有限公司 Volume adjusting method and device, electronic equipment and storage medium
CN113253969A (en) * 2021-05-20 2021-08-13 北京小米移动软件有限公司 Volume adjusting method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN108008859B (en) Screen control method and mobile terminal
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN108681413B (en) Control method of display module and mobile terminal
CN106936516B (en) Display screen display state control method, storage medium and terminal
CN106371749A (en) Method and device for terminal control
CN111443815A (en) Vibration reminding method and electronic equipment
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN108594952B (en) Method for resisting charging interference and terminal equipment
CN108229423B (en) Fingerprint identification scanning method and mobile terminal
CN108021315B (en) Control method and mobile terminal
CN109032482B (en) Split screen control method and device, storage medium and electronic equipment
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN110764650A (en) Key trigger detection method and electronic equipment
CN109618234A (en) Video playing control method, device, mobile terminal and storage medium
CN112367425B (en) Volume adjusting method and device and terminal
CN114582264A (en) Display brightness control method and device, electronic equipment and storage medium
CN110489037B (en) Screen capturing method and mobile terminal
CN110413385B (en) Task management method, terminal device and medium
CN112433694A (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN108966298B (en) Communication frequency band control method and device

Legal Events

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