WO2017140115A1 - 音量控制方法及装置 - Google Patents

音量控制方法及装置 Download PDF

Info

Publication number
WO2017140115A1
WO2017140115A1 PCT/CN2016/102037 CN2016102037W WO2017140115A1 WO 2017140115 A1 WO2017140115 A1 WO 2017140115A1 CN 2016102037 W CN2016102037 W CN 2016102037W WO 2017140115 A1 WO2017140115 A1 WO 2017140115A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
audio
pressure
relative value
preset
Prior art date
Application number
PCT/CN2016/102037
Other languages
English (en)
French (fr)
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 WO2017140115A1 publication Critical patent/WO2017140115A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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

Definitions

  • the present invention relates to the field of audio, and in particular, to a volume control method and apparatus.
  • the sound can only be set uniformly.
  • any sound source will increase the volume.
  • Any sound source will decrease the volume, and in the volume adjustment process, there are two control modes.
  • One is to press the volume button to adjust. Each time the volume button is pressed, the volume will be increased or decreased. To the maximum sound, you need to press the volume button multiple times to achieve it.
  • the other is to touch the volume bar to adjust the interface in the audio playback application, and to adjust the volume by touching the volume bar, you must first call the audio playback application. After the volume bar is called, the volume is adjusted.
  • the existing volume control mode has low flexibility.
  • the main object of the present invention is to provide a volume control method and apparatus, which aims to solve the technical problem of the prior volume control mode and low flexibility.
  • the present invention provides a volume control method, the method comprising:
  • the to-be-adjusted audio is played according to the determined volume.
  • the step of determining the volume of the audio to be adjusted according to the acquired pressure information comprises:
  • the step of determining the volume of the audio to be adjusted according to the acquired pressure information is further include:
  • the acquired volume is taken as the volume of the audio to be adjusted.
  • the following steps are performed:
  • the acquired display pattern is displayed.
  • the volume adjustment method further includes:
  • the current audio is played according to the pre-stored volume, or the current audio is played according to the volume before switching.
  • the present invention also provides a volume control device, the device comprising:
  • Obtaining a module configured to acquire pressure information corresponding to the pressing touch operation when receiving a pressing touch operation on the touch screen;
  • Determining a module configured to determine a volume of the audio to be adjusted according to the obtained pressure information
  • a playing module configured to play the to-be-adjusted audio according to the determined volume.
  • the determining module comprises:
  • the first processing unit is configured to obtain a pressure relative value corresponding to the pressure information according to the pressure information and the preset pressure threshold;
  • the first determining unit is configured to determine the volume of the audio to be adjusted according to the pressure relative value and the preset volume threshold.
  • the determining module further includes:
  • a second processing unit configured to obtain the pressure according to the pressure information and a preset pressure threshold The relative value of the pressure corresponding to the force information
  • a second determining unit configured to determine a pressure relative value interval in which the relative value of the pressure is located
  • Obtaining a unit configured to acquire a volume corresponding to the determined pressure relative value interval based on a preset mapping relationship between the pressure relative value interval and the volume;
  • the second processing unit is further configured to use the acquired volume as the volume of the audio to be adjusted.
  • the determining module is further configured to determine a volume level corresponding to the volume
  • the acquiring module is further configured to acquire a display pattern corresponding to the determined volume level according to a preset relationship between the preset volume level and the display pattern;
  • the volume adjustment device further includes:
  • a display module configured to display the acquired display pattern.
  • the volume adjustment device further includes:
  • the processing module is configured to play the current audio according to the pre-stored volume when receiving the audio switching instruction, or play the current audio according to the volume before the switching.
  • Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
  • the volume control method and device provided by the present invention first acquires the pressure information corresponding to the pressing touch operation when receiving the pressing touch operation on the touch screen, and then determines the volume of the audio to be adjusted according to the acquired pressure information. Finally, the audio to be adjusted is played according to the determined volume, instead of adjusting the volume by pressing the volume button or calling the volume bar during the volume adjustment process, the present invention calculates by pressing a touch operation on the touch screen. Pressing the pressure information corresponding to the touch operation, and then determining the volume of the audio to be adjusted according to the pressure information, and finally playing the audio according to the determined volume, thereby improving the flexibility of the volume control.
  • FIG. 1 is a schematic flow chart of a first embodiment of a volume adjustment method according to the present invention
  • FIG. 2 is a schematic flowchart of a first embodiment of determining a volume of an audio to be adjusted according to the acquired pressure information according to the present invention
  • FIG. 3 is a second implementation of determining, according to the acquired pressure information, the volume of audio to be adjusted according to the present invention Schematic diagram of the process
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a volume adjustment apparatus according to the present invention.
  • FIG. 5 is a schematic diagram of a first refinement function module of the determining module in FIG. 4;
  • FIG. 6 is a schematic diagram of a second refinement function module of the determining module of FIG. 4.
  • the invention provides a volume control method.
  • FIG. 1 is a schematic flow chart of a first embodiment of a volume control method according to the present invention.
  • This embodiment provides a volume control method, and the method includes:
  • Step S10 Acquire pressure information corresponding to the pressing touch operation when receiving a pressing touch operation on the touch screen
  • step S10 includes: a. When playing audio in the lock screen interface, if a pressing touch operation is performed on the lock screen interface, the pressure information corresponding to the pressing touch operation is acquired. b. When receiving a touch operation on the audio play interface in the audio play interface, first determine whether the audio play interface is currently playing audio. If the audio play interface is currently playing audio, it is determined that the audio is currently being played. The played audio is the audio to be adjusted. If the audio play interface does not currently play audio, it is determined that all audio in the next audio or playlist to be played in the playlist is the audio to be adjusted, and the pressed touch operation is acquired. Pressure information. It can be understood that the acquisition of the pressure information is acquired by a pressure sensor preset by the terminal.
  • Step S20 determining the volume of the audio to be adjusted according to the acquired pressure information
  • the implementation manner of determining the volume of the audio to be adjusted according to the pressure information includes:
  • Method 1 referring to FIG. 2, the step S20 includes:
  • Step S21 obtaining a pressure relative value corresponding to the pressure information according to the pressure information and a preset pressure threshold
  • the first acquisition is performed.
  • the preset pressure threshold is a preset maximum pressure in the terminal
  • the pressure information is preferably a pressure value
  • the obtained pressure information is divided by the preset pressure threshold to obtain a pressure relative value corresponding to the pressure information, for example, the preset pressure threshold is 500 g, and the pressure information corresponding to the pressing touch operation is 200 g.
  • Step S22 determining the volume of the audio to be adjusted according to the pressure relative value and the preset volume threshold.
  • the pressure relative value is preferably multiplied by the preset volume threshold, and the obtained volume is used as the volume of the audio to be adjusted, for example, the pre- The volume threshold is set to 80 db.
  • the relative pressure value is 0.4
  • the pressure relative value is 0.4 and the preset volume threshold 80 db is multiplied
  • the volume is 32 db, and the volume 32 db is the volume of the audio to be adjusted.
  • the obtained pressure information is first divided by a preset pressure threshold to obtain a relative pressure value corresponding to the pressure information, and then the pressure relative value is multiplied by a preset volume threshold to obtain a
  • the volume of the adjusted audio is calculated, and the volume of the audio to be adjusted is calculated according to the actual pressure information of the pressing touch operation, and different pressure informations are obtained with different volume levels, thereby realizing the volume of the audio to be adjusted.
  • Accurate calculation it can be understood that as the pressure information corresponding to the pressing touch operation is incremented, the volume of the audio to be adjusted is also increased.
  • Step S20 further includes:
  • Step S23 obtaining a pressure relative value corresponding to the pressure information according to the pressure information and a preset pressure threshold
  • the calculation method of the pressure relative value corresponding to the pressure information is consistent with the calculation method in step S21, and no further complaint is made here.
  • Step S24 determining a pressure relative value interval in which the relative value of the pressure is located
  • the pressure relative value interval in which the pressure relative value is located is determined first.
  • the terminal divides and stores the pressure relative value in advance.
  • the pressure relative value is preferably divided into three pressure relative value intervals, which are mild (0-0.3), moderate (03-0.7), and severe (0.7-1), respectively, and the pressure is obtained.
  • the pressure relative value interval in which the pressure relative value is located is first determined.
  • the pressure relative value 0.4 in the above example is taken as an example, and the pressure relative value interval where the pressure relative value 0.4 is located may be determined to be moderate.
  • Step S25 Acquire a volume corresponding to the determined pressure relative value interval based on a preset mapping relationship between the pressure relative value interval and the volume;
  • step S26 the acquired volume is used as the volume of the audio to be adjusted.
  • the mapping relationship between the relative pressure values and the corresponding volume is established while pre-storing the pressure relative value interval, preferably the volume corresponding to the light volume is 40 db, the volume corresponding to the medium volume is 60 db, and the volume corresponding to the severity is 80 db, when determining the pressure relative value interval in which the pressure relative value is located, obtaining a volume corresponding to the pressure relative value interval according to the pressure relative value interval in which the pressure value relative value is located, for example, at the pressure
  • the relative value interval is medium
  • the volume can be obtained as 60 db
  • the volume 60 db is the volume of the audio to be adjusted.
  • Step S30 playing the to-be-adjusted audio according to the determined volume.
  • the to-be-adjusted audio when the volume of the to-be-adjusted audio is obtained, the to-be-adjusted audio is played according to the volume, and if the to-be-adjusted audio is currently in the playing state, the determined volume is updated.
  • the volume of the audio to be adjusted is played, and the audio to be adjusted is played according to the updated volume; if the audio is not played by the audio playing interface, the audio to be played is determined first, and the audio to be played is determined.
  • the audio to be adjusted the audio to be adjusted is started to be played according to the volume.
  • the volume control method of the present embodiment first acquires the pressure information corresponding to the pressing touch operation when receiving the pressing touch operation on the touch screen, and then determines the volume of the audio to be adjusted according to the acquired pressure information. Finally, the to-be-adjusted audio is played according to the determined volume, instead of adjusting the volume by pressing the volume button or calling the volume bar during the volume adjustment process, the present invention calculates the pressing operation by acting on the touch screen. The pressing touch operation corresponds to The pressure information is then determined based on the pressure information to determine the volume of the audio to be adjusted, and finally the audio is played according to the determined volume, which improves the flexibility of the volume control.
  • a second embodiment of the volume control method of the present invention is proposed based on the first embodiment.
  • step S30 the following steps are performed:
  • Step A determining a volume level corresponding to the volume
  • Step B Acquire a display pattern corresponding to the determined volume level according to a preset relationship between the preset volume level and the display pattern;
  • Step C displaying the acquired display pattern.
  • the volume level corresponding to the volume is first determined, and then according to the preset volume level and the display pattern.
  • the terminal stores different volume levels in advance, and stores a display pattern corresponding to each volume level, and waits until the audio is played, according to the current volume. Determining a volume level corresponding to the volume, and acquiring a display pattern corresponding to the volume level according to the volume level, and finally displaying the display pattern, wherein displaying the display pattern comprises displaying the display pattern in a lock screen interface Or displaying the display pattern in the audio play interface.
  • an example is as follows: first, different volume levels are divided in the storage area preset by the terminal, for example, the first level is 0db-25db, the second level is 25db-50db, and the third level is 50db-75db.
  • the fourth level is 75db-100db, and each level has a corresponding pattern, namely pattern 1, pattern 2, pattern 3 and pattern 4, then the volume of the audio to be adjusted in the audio playing application is a preset level.
  • the second level it can be known that the pattern to be displayed is the pattern 2, and when the audio is played according to the determined volume, the pattern 2 is displayed in the audio playing interface, and different audio levels are displayed differently.
  • the pattern that is displayed can be used as a background image.
  • the level of the volume is first determined, and then the display pattern corresponding to the level of the volume is obtained, and finally the display pattern is displayed, so that the user can know the level of the current volume more clearly. And improve the flexibility and intelligence of volume adjustment during audio playback.
  • a third embodiment of the volume control method of the present invention is proposed based on the first or second embodiment.
  • the method further includes:
  • the current audio is played according to the pre-stored volume, or the current audio is played according to the volume before switching.
  • the receiving manner of the audio switching instruction includes: 1. receiving an audio switching instruction in the audio playing interface; 2. receiving an audio switching instruction in the lock screen interface when playing audio in the lock screen interface.
  • the current audio may be played according to the pre-stored volume, and the pre-stored volume is the volume set by default in the audio playing application, and when the audio switching instruction is received, the volume pre-stored by the terminal is restored.
  • the current audio is played, that is, the volume corresponding to the touch operation of the touch screen is adjusted to only one audio. If the adjusted audio is completed, the touch operation on the touch screen needs to be re-received to adjust.
  • the volume of the audio if a press touch operation based on the switched audio is not received, restores the volume pre-stored by the terminal to play the current audio.
  • the current audio is played according to the volume before the switching, that is, when the pressing touch operation acting on the touch screen is received, according to the pressing touch
  • the volume calculated by the operation is set to the volume of the audio playback in the current audio playback application. If the pressing touch operation on the touch screen is not received, the other audio continues to be played according to the volume, that is, the touch is applied to the touch.
  • the volume corresponding to the pressing operation of the screen can be used as the volume of all the audios in the audio playing application, and when the pressing touch operation on the touch screen is received, the pressing operation according to the touch operation acting on the touch screen is performed.
  • the pressure value is calculated, and the corresponding volume is directly played, and then the audio in the audio playing application is directly played according to the volume, and no input is required.
  • the user wants to update the volume of the playback, re-enter the touch operation.
  • the current audio when the audio play command is received, the current audio may be played according to the pre-stored volume, or the current audio may be played according to the volume before the switch, so that the audio play mode is more flexible.
  • the invention further provides a volume control device.
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a volume control apparatus according to the present invention.
  • the functional module diagram shown in FIG. 4 is only An exemplary diagram of a preferred embodiment, the person skilled in the art can easily supplement the new function module around the function module of the volume control device shown in FIG. 4; the name of each function module is a custom name, and is only used for It is not necessary to limit the technical solutions of the present invention, and the core of the technical solution of the present invention is the functions to be achieved by the functional modules of the respective defined names.
  • the embodiment provides a volume control device, and the device includes:
  • the obtaining module 10 is configured to acquire pressure information corresponding to the pressing touch operation when receiving a pressing touch operation on the touch screen;
  • the implementation manner of acquiring the pressure information corresponding to the pressing touch operation includes: a. playing audio in the lock screen interface.
  • the obtaining module 10 acquires pressure information corresponding to the pressing touch operation, if a pressing touch operation is performed on the lock screen interface.
  • b. When receiving a touch operation on the audio play interface in the audio play interface, first determine whether the audio play interface is currently playing audio. If the audio play interface is currently playing audio, it is determined that the audio is currently being played. The played audio is the audio to be adjusted.
  • the acquiring module 10 acquires the audio.
  • the pressure information corresponding to the touch operation is pressed. It can be understood that the acquisition of the pressure information is acquired by a pressure sensor preset by the terminal.
  • the determining module 20 determines the volume of the audio to be adjusted according to the acquired pressure information
  • the implementation manner includes:
  • Method 1 Referring to FIG. 5, the determining module 20 includes:
  • the first processing unit 21 is configured to obtain a pressure relative value corresponding to the pressure information according to the pressure information and a preset pressure threshold;
  • the preset pressure threshold is 500 g
  • the pressure information corresponding to the pressing touch operation is greater than 500 g
  • the pressure information corresponding to the pressing touch operation is 500 g by default
  • the first determining unit 22 is configured to multiply the pressure relative value by a preset volume to obtain a volume of the audio to be adjusted.
  • the preset volume threshold is a maximum sound level of the terminal, that is, playing in a player of the terminal.
  • the maximum loudness of the audio when the preset volume threshold is obtained, preferably the first determining unit 22 multiplies the pressure relative value by the preset volume threshold, and the obtained volume is used as the audio to be adjusted.
  • the volume of the preset volume is, for example, 80 db.
  • the obtained pressure information is first divided by a preset pressure threshold to obtain a relative pressure value corresponding to the pressure information, and then the pressure relative value is multiplied by a preset volume threshold to obtain a
  • the volume of the adjusted audio is calculated, and the volume of the audio to be adjusted is calculated according to the actual pressure information of the pressing touch operation, and different pressure informations are obtained with different volume levels, thereby realizing the volume of the audio to be adjusted.
  • Accurate calculation it can be understood that as the pressure information corresponding to the pressing touch operation is incremented, the volume of the audio to be adjusted is also increased.
  • the determining module 20 further includes:
  • the second processing unit 23 is configured to divide the acquired pressure value by a preset pressure value to obtain a pressure relative value corresponding to the pressure value;
  • the calculation manner of the pressure relative value corresponding to the pressure information by the second processing unit 23 is consistent with the calculation manner in the first processing unit 21, and no further complaint is made here.
  • a second determining unit 24 configured to determine a pressure relative value interval in which the pressure relative value is located;
  • the second determining unit 24 first determines The pressure relative value interval in which the pressure relative value is located, it can be understood that the terminal divides and stores the pressure relative value in advance.
  • the pressure relative value is preferably divided into three pressure relative value intervals. , which are mild (0-0.3), moderate (03-0.7), and severe (0.7-1), respectively, when the relative value of the pressure is obtained, first determine the relative value interval of the pressure relative value Similarly, the above-mentioned pressure relative value of 0.4 is taken as an example, and it can be determined that the pressure relative value range in which the pressure relative value is 0.4 is moderate.
  • the obtaining unit 25 is configured to acquire a volume corresponding to the determined pressure relative value interval based on a preset mapping relationship between the pressure relative value interval and the volume;
  • the second processing unit 23 is configured to use the acquired volume as the volume of the audio to be adjusted.
  • the mapping relationship between the relative pressure values and the corresponding volume is established while pre-storing the pressure relative value interval, preferably the volume corresponding to the light volume is 40 db, the volume corresponding to the medium volume is 60 db, and the volume corresponding to the severity is 80 db, when the pressure relative value interval in which the pressure relative value is located is determined, the obtaining unit 25 acquires the volume corresponding to the pressure relative value interval according to the pressure relative value interval in which the pressure value relative value is located, for example When the pressure relative value interval is moderate, at this time, the volume can be obtained as 60 db, and the volume 60 db of the second processing unit 23 is the volume of the audio to be adjusted.
  • the playing module 30 is configured to play the to-be-adjusted audio according to the determined volume.
  • the playing module 30 plays the to-be-adjusted audio according to the volume, and if the audio to be adjusted is currently in the playing state, the determining is performed.
  • the volume of the audio is updated, and the playing module 30 plays the to-be-adjusted audio according to the updated volume; if the audio playing interface does not play audio, the audio to be played is determined first. Audio, and the audio to be played is used as the audio to be adjusted, and the playing module 30 starts playing the audio to be adjusted according to the volume.
  • the volume control device of the present embodiment first acquires the pressure information corresponding to the pressing touch operation when receiving the pressing touch operation on the touch screen, and then determines the volume of the audio to be adjusted according to the acquired pressure information. Finally, the to-be-adjusted audio is played according to the determined volume, instead of adjusting the volume by pressing the volume button or calling the volume bar during the volume adjustment process, the present invention calculates the pressing operation by acting on the touch screen. Pressing the pressure information corresponding to the touch operation, and then determining the volume of the audio to be adjusted according to the pressure information, and finally determining according to the determination The volume plays the audio, which increases the flexibility of the volume control.
  • a second embodiment of the volume control device of the present invention is proposed based on the first embodiment.
  • the determining module 20 is further configured to determine the volume corresponding to the volume. grade;
  • the obtaining module 10 is further configured to acquire a display pattern corresponding to the determined volume level according to a preset relationship between the preset volume level and the display pattern;
  • the volume adjustment device further includes:
  • a display module configured to display the acquired display pattern.
  • the determining module 20 determines the volume level corresponding to the volume, and then according to the preset volume. Corresponding relationship between the level and the display pattern, the obtaining module 10 acquires a display pattern corresponding to the determined volume level. It can be understood that the terminal stores different volume levels in advance, and stores a display pattern corresponding to each volume level, and waits until the audio is played.
  • the display module displays the display pattern, wherein the displaying the Displaying the pattern includes displaying the display pattern in a lock screen interface or displaying the display pattern in the audio playback interface.
  • the first level is 0db-25db
  • the second level is 25db-50db
  • the third level is 50db-75db.
  • the fourth level is 75db-100db, and each level has a corresponding pattern, namely pattern 1, pattern 2, pattern 3 and pattern 4, then the volume of the audio to be adjusted in the audio playing application is a preset level.
  • the pattern to be displayed is the pattern 2, and when the audio is played according to the determined volume, the pattern 2 is displayed in the audio playing interface, and different audio levels are displayed differently.
  • the pattern that is displayed can be used as a background image.
  • the level of the volume is first determined, and then the display pattern corresponding to the level of the volume is obtained, and finally the display pattern is displayed, so that the user can know the level of the current volume more clearly. And improve the flexibility and intelligence of volume adjustment during audio playback.
  • a third embodiment of the volume control device in the embodiment, the device further includes:
  • the processing module is configured to play the current audio according to the pre-stored volume when receiving the audio switching instruction, or play the current audio according to the volume before the switching.
  • the receiving manner of the audio switching instruction includes: 1. receiving an audio switching instruction in the audio playing interface; 2. receiving an audio switching instruction in the lock screen interface when playing audio in the lock screen interface.
  • the processing module can play the current audio according to the pre-stored volume, and the pre-stored volume is the volume set by default in the audio playing application, and then returns to the terminal when receiving the audio switching instruction.
  • the pre-stored volume is used to play the current audio, that is, the volume corresponding to the touch operation of the touch screen is only adjusted by one audio. If the adjusted audio is completed, the touch touch on the touch screen needs to be re-received. In operation, the volume of the audio can be adjusted. If the pressing touch operation based on the switched audio is not received, the volume pre-stored by the terminal is restored to play the current audio.
  • the processing module plays the current audio according to the volume before the switching, that is, when receiving the pressing touch operation on the touch screen, Setting the volume calculated according to the pressing touch operation to the volume of the audio playing in the current audio playing application, and if the pressing touch operation acting on the touch screen is not received subsequently, the other audio continues to be played according to the volume, that is, The volume corresponding to the pressing touch operation of the touch screen can be used as the volume of all the audio in the audio playing application, and when the pressing touch operation on the touch screen is received, the pressing is performed according to the pressing on the touch screen.
  • the current audio when the audio play command is received, the current audio may be played according to the pre-stored volume, or the current audio may be played according to the volume before the switch, so that the audio play mode is more flexible.
  • the device shown in this embodiment includes a screen touch device, a touch pressure conversion device, and a playback sound device.
  • the touch pressure conversion device is composed of three parts, namely a touch pressure input subsystem, a touch pressure conversion subsystem, and a touch pressure output subsystem.
  • the touch pressure input subsystem is configured to receive a touch screen pressure, and the pressure is designed by a pressure sensor bearing capacity; the touch pressure conversion subsystem is configured to calculate a pressure relative to the touch input subsystem data. And passing the relative value to the touch pressure output subsystem; the touch pressure output subsystem transmits the relative pressure value to the vibration feedback device.
  • the playing sound device is composed of three parts, namely, a playing sound input subsystem, a playing sound control subsystem, and a playing sound output subsystem.
  • the playing sound input subsystem is configured to receive a relative pressure value;
  • the playing sound control subsystem is configured to calculate a playing volume under the pressure value according to a pressure relative value input by the vibration input subsystem;
  • the sound output subsystem plays according
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a volume control method and apparatus provided by an embodiment of the present invention have the following beneficial effects: calculating a pressure information corresponding to the pressing touch operation by a pressing touch operation acting on the touch screen, and then according to the pressure The information determines the volume of the audio to be adjusted, and finally determines The volume plays the audio, which increases the flexibility of the volume control.

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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种音量控制方法及装置,其中,该方法包括:在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息;根据获取的所述压力信息确定待调整音频的音量;按照确定的所述音量播放所述待调整音频。本发明还公开了一种音量调整装置。本发明提高了音量调整的灵活性。

Description

音量控制方法及装置 技术领域
本发明涉及音频领域,尤其涉及一种音量控制方法及装置。
背景技术
目前市场上的所有智能手机都是根据系统设置声音大小播放音源,声音只能统一设定,即用户将系统声音调大时,任何音源会随之增大音量,当用户将系统声音调小时,任何音源会随之降低音量,而且在音量调整过程中,有两种控制方式,一种是按压音量按钮进行调整,每按一下音量按钮,才会增加或减小一点音量,若用户从静音调节到最大声,需要多次按压音量按键才能实现,另一种是在音频播放应用的界面中,触摸音量条进行调整,而触摸音量条调整音量,必须先在所述音频播放应用中调出所述音量条,在调出所述音量条后,再对音量进行调整,显然,现有的音量控制方式,灵活性较低。
发明内容
本发明的主要目的在于提出一种音量控制方法及装置,旨在解决现有的音量控制方式,灵活性较低的技术问题。
为实现上述目的,本发明提供的一种音量控制方法,所述方法包括:
在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息;
根据获取的所述压力信息确定待调整音频的音量;
按照确定的所述音量播放所述待调整音频。
优选地,所述根据获取的所述压力信息确定待调整音频的音量的步骤包括:
根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
根据所述压力相对值与预设音量阈值,确定所述待调整音频的音量。
优选地,所述根据获取的所述压力信息确定待调整音频的音量的步骤还 包括:
根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
确定所述压力相对值所在的压力相对值区间;
基于预设的压力相对值区间与音量的映射关系,获取确定的压力相对值区间对应的音量;
将获取的所述音量作为所述待调整音频的音量。
优选地,所述按照确定的所述音量播放所述待调整音频的同时,执行以下步骤:
确定所述音量对应的音量等级;
根据预设的音量等级与显示图案的对应关系,获取确定的音量等级对应的显示图案;
显示获取的所述显示图案。
优选地,所述音量调整方法还包括:
在接收到音频切换指令时,按照预存的音量播放当前音频,或者是按照切换前的音量播放所述当前音频。
此外,为实现上述目的,本发明还提出一种音量控制装置,所述装置包括:
获取模块,设置为在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息;
确定模块,设置为根据获取的所述压力信息确定待调整音频的音量;
播放模块,设置为按照确定的所述音量播放所述待调整音频。
优选地,所述确定模块包括:
第一处理单元,设置为根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
第一确定单元,设置为根据所述压力相对值与预设音量阈值,确定所述待调整音频的音量。
优选地,所述确定模块还包括:
第二处理单元,设置为根据所述压力信息与预设压力阈值,获得所述压 力信息对应的压力相对值;
第二确定单元,设置为确定所述压力相对值所在的压力相对值区间;
获取单元,设置为基于预设的压力相对值区间与音量的映射关系,获取确定的压力相对值区间对应的音量;
所述第二处理单元,还设置为将获取的所述音量作为所述待调整音频的音量。
优选地,所述确定模块,还设置为确定所述音量对应的音量等级;
所述获取模块,还设置为根据预设的音量等级与显示图案的对应关系,获取确定的音量等级对应的显示图案;
所述音量调整装置还包括:
显示模块,设置为显示获取的所述显示图案。
优选地,所述音量调整装置还包括:
处理模块,设置为在接收到音频切换指令时,按照预存的音量播放当前音频,或者是按照切换前的音量播放所述当前音频。
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的方法。
本发明提出的音量控制方法及装置,在接收到作用于触控屏幕的按压触摸操作时,先获取所述按压触摸操作对应的压力信息,然后根据获取的所述压力信息确定待调整音频的音量,最后按照确定的所述音量播放所述待调整音频,而不是在音量调整过程中,需要通过按压音量按钮或是调用音量条调整音量,本发明通过作用于触控屏幕的按压触摸操作,计算出所述按压触摸操作对应的压力信息,然后根据所述压力信息确定待调整音频的音量,最终根据确定的音量播放音频,提高了音量控制的灵活性。
附图说明
图1为本发明音量调整方法第一实施例的流程示意图;
图2为本发明根据获取的所述压力信息确定待调整音频的音量第一实施例的流程示意图;
图3为本发明根据获取的所述压力信息确定待调整音频的音量第二实施 例的流程示意图;
图4为本发明音量调整装置第一实施例的功能模块示意图;
图5为图4中确定模块的第一细化功能模块示意图;
图6为图4中确定模块的第二细化功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种音量控制方法。
参照图1,图1为本发明音量控制方法第一实施例的流程示意图。
本实施例提出一种音量控制方法,所述方法包括:
步骤S10,在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息;
在本实施例中,步骤S10的实施方式包括:a、在锁屏界面中播放音频时,若接收到作用于锁屏界面的按压触摸操作,获取所述按压触摸操作对应的压力信息。b、在音频播放界面中接收到作用于所述音频播放界面的按压触摸操作时,先确定所述音频播放界面当前是否正在播放音频,若所述音频播放界面当前正在播放音频,则确定当前正在播放的音频为待调整音频,若所述音频播放界面当前未播放音频,则确定播放列表中待播放的下一个音频或播放列表中的所有音频为待调整音频,并获取所述按压触摸操作对应的压力信息。可以理解的是,所述压力信息的获取通过终端预设的压力传感器进行获取。
步骤S20,根据获取的所述压力信息确定待调整音频的音量;
在本实施例中,根据所述压力信息确定待调整音频的音量的实施方式包括:
1)方式一、参照图2,所述步骤S20包括:
步骤S21,根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
在本实施例中,在获取到所述按压触摸操作对应的压力信息时,先获取 预设压力阈值,所述预设压力阈值为终端中预设的最大承受压力,所述压力信息优选为压力值,在得到所述按压触摸操作对应的压力信息以及所述预设压力阈值时,优选将获取的所述压力信息除以所述预设压力阈值,以得到所述压力信息对应的压力相对值,例如所述预设压力阈值为500g,所述按压触摸操作对应的压力信息为200g,将200g/500g=0.4,即得到的所述压力相对值为0.4;或者在所述预设压力阈值为500g,所述按压触摸操作对应的压力信息为500g,将500g/500g=1,即得到的所述压力相对值为1;可选地,在所述预设压力阈值为500g,所述按压触摸操作对应的压力信息大于500g,默认所述按压触摸操作对应的压力信息为500g,同理将500g/500g=1,即得到的所述压力相对值为1,即所述压力相对值是一个小于或等于1的数值。
步骤S22,根据所述压力相对值与预设音量阈值,确定所述待调整音频的音量。
在本实施例中,在得到所述压力相对值后,获取所述终端中的预设音量阈值,所述预设音量阈值为所述终端的最大声音响度,即所述终端的播放器中播放音频的最大响度,在获取到所述预设音量阈值时,优选将所述压力相对值与所述预设音量阈值进行相乘,得到的音量作为所述待调整音频的音量,例如所述预设音量阈值为80db,在得到所述压力相对值为0.4时,将所述压力相对值为0.4与所述预设音量阈值80db进行相乘,计算公式为0.4*80db=32db,即计算得到的音量为32db,所述音量32db即为所述待调整音频的音量。
在本实施例,先将获取的所述压力信息除以预设压力阈值,得到所述压力信息对应的压力相对值,然后才将所述压力相对值与预设音量阈值进行相乘,得到所述待调整音频的音量,相当于根据所述按压触摸操作的实际压力信息计算所述待调整音频的音量,不同的压力信息就会得到不同的音量,实现了对所述待调整音频的音量的精确计算,可以理解的是,随着按压触摸操作对应的压力信息的递增,所述待调整音频的音量也是随之递增的。
2)方式二、可选地,为了提高音量调整的灵活性,参照图3,所述步骤S20还包括:
步骤S23,根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
本实施例中,所述压力信息对应的压力相对值的计算方式与步骤S21中的计算方式一致,此处不再赘诉。
步骤S24,确定所述压力相对值所在的压力相对值区间;
在本实施例中,在得到所述压力相对值后,先确定所述压力相对值所在的压力相对值区间,可以理解的是,所述终端事先将所述压力相对值进行划分并存储,本实施例中,优选将压力相对值划分为3个压力相对值区间,分别为轻度(0-0.3)、中度(03-0.7)和重度(0.7-1),则在获取到所述压力相对值时,先确定所述压力相对值所在的压力相对值区间,同样,以上文中压力相对值0.4为例,则可确定所述压力相对值0.4所在的压力相对值区间为中度。
步骤S25,基于预设的压力相对值区间与音量的映射关系,获取确定的压力相对值区间对应的音量;
步骤S26,将获取的所述音量作为所述待调整音频的音量。
在本实施例中,在预存了压力相对值区间的同时,建立各个压力相对值与对应的音量的映射关系,优选轻度对应的音量为40db、中度对应的音量为60db、重度对应的音量为80db,则在确定所述压力相对值所在的压力相对值区间时,根据所述压力值相对值所在的压力相对值区间,获取所述压力相对值区间对应的音量,例如,在所述压力相对值区间为中度时,此时,可获取到所述音量为60db,则所述音量60db即为所述待调整音频的音量。
步骤S30,按照确定的所述音量播放所述待调整音频。
在本实施例中,在得到所述待调整音频的音量时,按照所述音量播放所述待调整音频,若所述待调整音频当前是处于播放状态的音频,则采用确定的所述音量更新所述待调整音频的音量,并按照更新后的音量播放所述待调整音频;若此时,所述音频播放界面未播放音频,则先确定待播放的音频,并将所述待播放的音频作为待调整的音频,并按照所述音量开始播放所述待调整的音频。
本实施例提出的音量控制方法,在接收到作用于触控屏幕的按压触摸操作时,先获取所述按压触摸操作对应的压力信息,然后根据获取的所述压力信息确定待调整音频的音量,最后按照确定的所述音量播放所述待调整音频,而不是在音量调整过程中,需要通过按压音量按钮或是调用音量条调整音量,本发明通过作用于触控屏幕的按压触摸操作,计算出所述按压触摸操作对应 的压力信息,然后根据所述压力信息确定待调整音频的音量,最终根据确定的音量播放音频,提高了音量控制的灵活性。
可选地,为了增加音量控制的灵活性,基于第一实施例提出本发明音量控制方法的第二实施例,在本实施例,所述执行步骤S30的同时,执行以下步骤:
步骤A,确定所述音量对应的音量等级;
步骤B,根据预设的音量等级与显示图案的对应关系,获取确定的音量等级对应的显示图案;
步骤C,显示获取的所述显示图案。
在本实施例中,为了提高音量调整的灵活性,在按照确定的所述音量播放所述待调整音频的同时,先确定所述音量对应的音量等级,然后根据预设的音量等级与显示图案的对应关系,获取确定的音量等级对应的显示图案,可以理解的是,终端事先存储不同的音量等级,以及存储每个音量等级对应的显示图案,等到播放音频的时候,即可根据当前的音量确定所述音量对应的音量等级,并依据所述音量等级获取所述音量等级对应的显示图案,最终显示所述显示图案,其中,显示所述显示图案包括在锁屏界面中显示所述显示图案,或者在所述音频播放界面中显示所述显示图案。为更好理解本实施例,举例如下:先在终端预设的存储区域中划分不同的音量等级,例如第一级为0db-25db,第二级为25db-50db,第三级为50db-75db,第四级为75db-100db,而每个等级都有对应的图案,分别为图案1、图案2、图案3和图案4,那么在音频播放应用中的待调整音频的音量为预设的等级,例如第二级时,此时可知道待显示的图案为图案2,则在按照确定的音量播放音频时,在所述音频播放界面中显示所述图案2,实现了不同的音频等级显示不同的图案,显示的图案可以作为背景图。
本实施例中,按照确定的音量播放音频的同时,先确定音量的等级,然后获取所述音量的等级对应的显示图案,最终显示所述显示图案,可以让用户更加清楚的知道当前音量的等级,而且提高了音频播放过程中,音量调整的灵活性和智能性。
可选地,为了增加音量控制的灵活性,基于第一或第二实施例提出本发明音量控制方法的第三实施例,在本实施例,所述方法还包括:
在接收到音频切换指令时,按照预存的音量播放当前音频,或者是按照切换前的音量播放所述当前音频。
在本实施例中,所述音频切换指令的接收方式包括:1、在音频播放界面中接收音频切换指令;2、在锁屏界面中播放音频时,在锁屏界面中接收音频切换指令。在接收到音频切换指令时,可按照预存的音量播放当前音频,所述预存的音量为所述音频播放应用中默认设置的音量,则在接收到音频切换指令时,恢复到终端预存的音量以播放当前音频,也就是说,一次作用于触控屏幕的按压触摸操作对应的音量仅仅调整一首音频,若调整的音频播放完成,则需要重新接收作用于触控屏幕的按压触摸操作,才能调整音频的音量,若未接收到基于切换后的音频的按压触摸操作,则恢复终端预存的音量以播放当前音频。
可选地,为了提高音频播放的智能性,在接收到音频切换指令时,按照切换前的音量播放所述当前音频,即在接收到作用于触控屏幕的按压触摸操作时,将根据按压触摸操作计算出的音量设置为当前音频播放应用中音频播放的音量,后续若未接收到作用于触控屏幕的按压触摸操作,则按照所述音量继续播放其它音频,也就是说,作用于触控屏幕的按压触摸操作对应的音量可以作为所述音频播放应用中所有音频的音量,实现了在接收到作用于触控屏幕的按压触摸操作时,只要根据作用于触控屏幕的按压触摸操作对应的压力值,计算出对应的音量,后续直接根据所述音量播放音频播放应用中的音频即可,不需要在重新进行输入。当然,若用户想要更新播放的音量,重新输入按压触摸操作即可。
在本实施例中,在接收到音频播放指令时,既可按照预存的音量播放当前音频,也可以按照切换前的音量播放所述当前音频,使得音频的播放方式更加灵活。
本发明进一步提供一种音量控制装置。
参照图4,图4为本发明音量控制装置第一实施例的功能模块示意图。
需要强调的是,对本领域的技术人员来说,图4所示功能模块图仅仅是 一个较佳实施例的示例图,本领域的技术人员围绕图4所示的音量控制装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该音量控制装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。
本实施例提出一种音量控制装置,所述装置包括:
获取模块10,设置为在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息;
在本实施例中,所述获取模块10在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息的实施方式包括:a、在锁屏界面中播放音频时,若接收到作用于锁屏界面的按压触摸操作,所述获取模块10获取所述按压触摸操作对应的压力信息。b、在音频播放界面中接收到作用于所述音频播放界面的按压触摸操作时,先确定所述音频播放界面当前是否正在播放音频,若所述音频播放界面当前正在播放音频,则确定当前正在播放的音频为待调整音频,若所述音频播放界面当前未播放音频,则确定播放列表中待播放的下一个音频或播放列表中的所有音频为待调整音频,并且所述获取模块10获取所述按压触摸操作对应的压力信息。可以理解的是,所述压力信息的获取通过终端预设的压力传感器进行获取。
确定模块20,根据获取的所述压力信息确定待调整音频的音量;
在本实施例中,根据确定模块20根据所述压力信息确定待调整音频的音量的实施方式包括的实施方式包括:
1)方式一、参照图5,所述确定模块20包括:
第一处理单元21,设置为根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
在本实施例中,在获取到所述按压触摸操作对应的压力信息时,先获取预设压力阈值,所述预设压力阈值为终端中预设的最大承受压力,所述压力信息优选为压力值,在得到所述按压触摸操作对应的压力信息以及所述预设压力阈值时,优选所述第一处理单元21将获取的所述压力信息除以所述预设压力阈值,以得到所述压力信息对应的压力相对值,例如所述预设压力阈值为500g,所述按压触摸操作对应的压力信息为200g,将200g/500g=0.4,即 得到的所述压力相对值为0.4;或者在所述预设压力阈值为500g,所述按压触摸操作对应的压力信息为500g,将500g/500g=1,即得到的所述压力相对值为1;可选地,在所述预设压力阈值为500g,所述按压触摸操作对应的压力信息大于500g,默认所述按压触摸操作对应的压力信息为500g,同理将500g/500g=1,即得到的所述压力相对值为1,即所述压力相对值是一个小于或等于1的数值。
第一确定单元22,设置为将所述压力相对值与预设音量进行相乘,得到所述待调整音频的音量。
在本实施例中,在得到所述压力相对值后,获取所述终端中的预设音量阈值,所述预设音量阈值为所述终端的最大声音响度,即所述终端的播放器中播放音频的最大响度,在获取到所述预设音量阈值时,优选所述第一确定单元22将所述压力相对值与所述预设音量阈值进行相乘,得到的音量作为所述待调整音频的音量,例如所述预设音量阈值为80db,在得到所述压力相对值为0.4时,将所述压力相对值为0.4与所述预设音量阈值80db进行相乘,计算公式为0.4*80db=32db,即计算得到的音量为32db,所述音量32db即为所述待调整音频的音量。
在本实施例,先将获取的所述压力信息除以预设压力阈值,得到所述压力信息对应的压力相对值,然后才将所述压力相对值与预设音量阈值进行相乘,得到所述待调整音频的音量,相当于根据所述按压触摸操作的实际压力信息计算所述待调整音频的音量,不同的压力信息就会得到不同的音量,实现了对所述待调整音频的音量的精确计算,可以理解的是,随着按压触摸操作对应的压力信息的递增,所述待调整音频的音量也是随之递增的。
2)方式二、可选地,为了提高音量调整的灵活性,参照图6,所述确定模块20还包括:
第二处理单元23,设置为将获取的所述压力值除以预设压力值,得到所述压力值对应的压力相对值;
本实施例中,所述第二处理单元23对压力信息对应的压力相对值的计算方式与所述第一处理单元21中的计算方式一致,此处不再赘诉。
第二确定单元24,设置为确定所述压力相对值所在的压力相对值区间;
在本实施例中,在得到所述压力相对值后,所述第二确定单元24先确定 所述压力相对值所在的压力相对值区间,可以理解的是,所述终端事先将所述压力相对值进行划分并存储,本实施例中,优选将压力相对值划分为3个压力相对值区间,分别为轻度(0-0.3)、中度(03-0.7)和重度(0.7-1),则在获取到所述压力相对值时,先确定所述压力相对值所在的压力相对值区间,同样,以上文中压力相对值0.4为例,则可确定所述压力相对值0.4所在的压力相对值区间为中度。
获取单元25,设置为基于预设的压力相对值区间与音量的映射关系,获取确定的压力相对值区间对应的音量;
所述第二处理单元23,设置为将获取的所述音量作为所述待调整音频的音量。
在本实施例中,在预存了压力相对值区间的同时,建立各个压力相对值与对应的音量的映射关系,优选轻度对应的音量为40db、中度对应的音量为60db、重度对应的音量为80db,则在确定所述压力相对值所在的压力相对值区间时,所述获取单元25根据所述压力值相对值所在的压力相对值区间,获取所述压力相对值区间对应的音量,例如,在所述压力相对值区间为中度时,此时,可获取到所述音量为60db,则所述第二处理单元23所述音量60db即为所述待调整音频的音量。
播放模块30,设置为按照确定的所述音量播放所述待调整音频。
在本实施例中,在得到所述待调整音频的音量时,所述播放模块30按照所述音量播放所述待调整音频,若所述待调整音频当前是处于播放状态的音频,则采用确定的所述音量更新所述待调整音频的音量,并且所述播放模块30按照更新后的音量播放所述待调整音频;若此时,所述音频播放界面未播放音频,则先确定待播放的音频,并将所述待播放的音频作为待调整的音频,并且所述播放模块30按照所述音量开始播放所述待调整的音频。
本实施例提出的音量控制装置,在接收到作用于触控屏幕的按压触摸操作时,先获取所述按压触摸操作对应的压力信息,然后根据获取的所述压力信息确定待调整音频的音量,最后按照确定的所述音量播放所述待调整音频,而不是在音量调整过程中,需要通过按压音量按钮或是调用音量条调整音量,本发明通过作用于触控屏幕的按压触摸操作,计算出所述按压触摸操作对应的压力信息,然后根据所述压力信息确定待调整音频的音量,最终根据确定 的音量播放音频,提高了音量控制的灵活性。
可选地,为了增加音量控制的灵活性,基于第一实施例提出本发明音量控制装置的第二实施例,在本实施例,所述确定模块20,还设置为确定所述音量对应的音量等级;
所述获取模块10,还设置为根据预设的音量等级与显示图案的对应关系,获取确定的音量等级对应的显示图案;
所述音量调整装置还包括:
显示模块,设置为显示获取的所述显示图案。
在本实施例中,为了提高音量调整的灵活性,在按照确定的所述音量播放所述待调整音频的同时,所述确定模块20确定所述音量对应的音量等级,然后根据预设的音量等级与显示图案的对应关系,所述获取模块10获取确定的音量等级对应的显示图案,可以理解的是,终端事先存储不同的音量等级,以及存储每个音量等级对应的显示图案,等到播放音频的时候,即可根据当前的音量确定所述音量对应的音量等级,并依据所述音量等级获取所述音量等级对应的显示图案,最终所述显示模块显示所述显示图案,其中,显示所述显示图案包括在锁屏界面中显示所述显示图案,或者在所述音频播放界面中显示所述显示图案。为更好理解本实施例,举例如下:先在终端预设的存储区域中划分不同的音量等级,例如第一级为0db-25db,第二级为25db-50db,第三级为50db-75db,第四级为75db-100db,而每个等级都有对应的图案,分别为图案1、图案2、图案3和图案4,那么在音频播放应用中的待调整音频的音量为预设的等级,例如第二级时,此时可知道待显示的图案为图案2,则在按照确定的音量播放音频时,在所述音频播放界面中显示所述图案2,实现了不同的音频等级显示不同的图案,显示的图案可以作为背景图。
本实施例中,按照确定的音量播放音频的同时,先确定音量的等级,然后获取所述音量的等级对应的显示图案,最终显示所述显示图案,可以让用户更加清楚的知道当前音量的等级,而且提高了音频播放过程中,音量调整的的灵活性和智能性。
可选地,为了增加音量控制的灵活性,基于第一或第二实施例提出本发 明音量控制装置的第三实施例,在本实施例,所述装置还包括:
处理模块,设置为在接收到音频切换指令时,按照预存的音量播放当前音频,或者是按照切换前的音量播放所述当前音频。
在本实施例中,所述音频切换指令的接收方式包括:1、在音频播放界面中接收音频切换指令;2、在锁屏界面中播放音频时,在锁屏界面中接收音频切换指令。在接收到音频切换指令时,所述处理模块可按照预存的音量播放当前音频,所述预存的音量为所述音频播放应用中默认设置的音量,则在接收到音频切换指令时,恢复到终端预存的音量以播放当前音频,也就是说,一次作用于触控屏幕的按压触摸操作对应的音量仅仅调整一首音频,若调整的音频播放完成,则需要重新接收作用于触控屏幕的按压触摸操作,才能调整音频的音量,若未接收到基于切换后的音频的按压触摸操作,则恢复终端预存的音量以播放当前音频。
可选地,为了提高音频播放的智能性,在接收到音频切换指令时,所述处理模块按照切换前的音量播放所述当前音频,即在接收到作用于触控屏幕的按压触摸操作时,将根据按压触摸操作计算出的音量设置为当前音频播放应用中音频播放的音量,后续若未接收到作用于触控屏幕的按压触摸操作,则按照所述音量继续播放其它音频,也就是说,作用于触控屏幕的按压触摸操作对应的音量可以作为所述音频播放应用中所有音频的音量,实现了在接收到作用于触控屏幕的按压触摸操作时,只要根据作用于触控屏幕的按压触摸操作对应的压力值,计算出对应的音量,后续直接根据所述音量播放音频播放应用中的音频即可,不需要在重新进行输入。当然,若用户想要更新播放的音量,重新输入按压触摸操作即可。
在本实施例中,在接收到音频播放指令时,既可按照预存的音量播放当前音频,也可以按照切换前的音量播放所述当前音频,使得音频的播放方式更加灵活。
从底层的方面看,本实施例所示的装置包括屏幕触控装置、触控压力换算装置、播放声音装置。所述触控压力换算装置由三部分组成,分别为触控压力输入子系统、触控压力换算子系统、触控压力输出子系统。其中,所述触控压力输入子系统用来接收触屏压力,此压力由压力传感器承受能力设计;所述触控压力换算子系统,设置为根据触控输入子系统数据计算出压力相对 值,并将此相对值传给触控压力输出子系统;所述触控压力输出子系统将压力相对值传给震动反馈装置。而播放声音装置由三部分组成,分别为播放声音输入子系统、播放声音控制子系统、播放声音输出子系统。其中,所述播放声音输入子系统用来接收相对压力值;所述播放声音控制子系统,设置为根据震动输入子系统输入的压力相对值,计算出该压力值下的播放音量;所述播放声音输出子系统按照计算出的播放音量进行播放。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。
工业实用性
如上所述,本发明实施例提供的一种音量控制方法及装置具有以下有益效果:通过作用于触控屏幕的按压触摸操作,计算出所述按压触摸操作对应的压力信息,然后根据所述压力信息确定待调整音频的音量,最终根据确定 的音量播放音频,提高了音量控制的灵活性。

Claims (10)

  1. 一种音量控制方法,所述方法包括:
    在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息;
    根据获取的所述压力信息确定待调整音频的音量;
    按照确定的所述音量播放所述待调整音频。
  2. 如权利要求1所述的音量控制方法,其中,所述根据获取的所述压力信息确定待调整音频的音量的步骤包括:
    根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
    根据所述压力相对值与预设音量阈值,确定所述待调整音频的音量。
  3. 如权利要求1所述的音量控制方法,其中,所述根据获取的所述压力信息确定待调整音频的音量的步骤还包括:
    根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
    确定所述压力相对值所在的压力相对值区间;
    基于预设的压力相对值区间与音量的映射关系,获取确定的压力相对值区间对应的音量;
    将获取的所述音量作为所述待调整音频的音量。
  4. 如权利要求1所述的音量控制方法,其中,所述按照确定的所述音量播放所述待调整音频的同时,执行以下步骤:
    确定所述音量对应的音量等级;
    根据预设的音量等级与显示图案的对应关系,获取确定的音量等级对应的显示图案;
    显示获取的所述显示图案。
  5. 如权利要求1-4任一项所述的音量控制方法,其中,所述方法还包括:
    在接收到音频切换指令时,按照预存的音量播放当前音频,或者是按照切换前的音量播放所述当前音频。
  6. 一种音量控制装置,所述装置包括:
    获取模块,设置为在接收到作用于触控屏幕的按压触摸操作时,获取所述按压触摸操作对应的压力信息;
    确定模块,设置为根据获取的所述压力信息确定待调整音频的音量;
    播放模块,设置为按照确定的所述音量播放所述待调整音频。
  7. 如权利要求6所述的音量控制装置,其中,所述确定模块包括:
    第一处理单元,设置为根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
    第一确定单元,设置为根据所述压力相对值与预设音量阈值,确定所述待调整音频的音量。
  8. 如权利要求6所述的音量控制装置,其中,所述确定模块还包括:
    第二处理单元,设置为根据所述压力信息与预设压力阈值,获得所述压力信息对应的压力相对值;
    第二确定单元,设置为确定所述压力相对值所在的压力相对值区间;
    获取单元,设置为基于预设的压力相对值区间与音量的映射关系,获取确定的压力相对值区间对应的音量;
    所述第二处理单元,还设置为将获取的所述音量作为所述待调整音频的音量。
  9. 如权利要求6所述的音量控制装置,其中,
    所述确定模块,还设置为确定所述音量对应的音量等级;
    所述获取模块,还设置为根据预设的音量等级与显示图案的对应关系,获取确定的音量等级对应的显示图案;
    所述音量调整装置还包括:
    显示模块,设置为显示获取的所述显示图案。
  10. 如权利要求6-9任一项所述的音量控制装置,其中,所述装置还包括:
    处理模块,设置为在接收到音频切换指令时,按照预存的音量播放当前音频,或者是按照切换前的音量播放所述当前音频。
PCT/CN2016/102037 2016-02-15 2016-10-13 音量控制方法及装置 WO2017140115A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610086702.5A CN107085497A (zh) 2016-02-15 2016-02-15 音量控制方法及装置
CN201610086702.5 2016-02-15

Publications (1)

Publication Number Publication Date
WO2017140115A1 true WO2017140115A1 (zh) 2017-08-24

Family

ID=59614098

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102037 WO2017140115A1 (zh) 2016-02-15 2016-10-13 音量控制方法及装置

Country Status (2)

Country Link
CN (1) CN107085497A (zh)
WO (1) WO2017140115A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284047A (zh) * 2018-09-25 2019-01-29 东莞华贝电子科技有限公司 多媒体播放的控制方法、触摸板及电子终端

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144462B (zh) * 2018-07-23 2020-01-14 Oppo广东移动通信有限公司 发声控制方法、装置、电子装置及计算机可读介质
CN110381203A (zh) * 2019-07-09 2019-10-25 维沃移动通信有限公司 一种终端的操作控制方法及终端
CN112286484A (zh) * 2020-11-12 2021-01-29 Oppo广东移动通信有限公司 屏幕发声控制方法、装置和电子设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162938A (zh) * 2008-09-23 2015-12-16 联想(北京)有限公司 调节通信终端通话音量的方法、音量控制装置及手机
CN105262883A (zh) * 2015-08-31 2016-01-20 努比亚技术有限公司 一种移动终端及其音量调节方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162938A (zh) * 2008-09-23 2015-12-16 联想(北京)有限公司 调节通信终端通话音量的方法、音量控制装置及手机
CN105262883A (zh) * 2015-08-31 2016-01-20 努比亚技术有限公司 一种移动终端及其音量调节方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284047A (zh) * 2018-09-25 2019-01-29 东莞华贝电子科技有限公司 多媒体播放的控制方法、触摸板及电子终端

Also Published As

Publication number Publication date
CN107085497A (zh) 2017-08-22

Similar Documents

Publication Publication Date Title
WO2017140115A1 (zh) 音量控制方法及装置
WO2017032054A1 (zh) 一种播放速度调节方法及终端
US20190014412A1 (en) Method and device for compensating frequency response of audio signal
CN110806849A (zh) 智能设备及其音量调节方法和计算机可读存储介质
US9847767B2 (en) Electronic device capable of adjusting an equalizer according to physiological condition of hearing and adjustment method thereof
JP2007329633A (ja) コントロール機器、同期補正方法および同期補正プログラム
CN105430492A (zh) 音频输出控制方法及装置
US20170180807A1 (en) Method and electronic device for amplifying video image
CN110677774A (zh) 一种音量自适应调节方法、装置和计算机设备及存储介质
US11947868B2 (en) Method to mute and unmute a microphone signal
CN114071315A (zh) 音频处理方法、装置、电子设备及存储介质
CN104866078B (zh) 电子设备的控制方法、控制装置及电子设备
TW201423587A (zh) 被叫提示系統及方法
CN109521990B (zh) 音频播放控制方法、装置、电子设备及可读存储介质
CN108600503B (zh) 语音通话的控制方法及装置
JP4756401B2 (ja) 音量調整装置およびそのプログラム
US20140093098A1 (en) Handheld device and electronic device assembly and method for adjusting volume
KR101442022B1 (ko) 청력테스트 결과에 따른 난청 보정 서비스 방법 및 그 장치
TWI607374B (zh) 校正方法與電腦可讀取之記錄媒體
CN114035765A (zh) 音频播放方法及装置
US20130236155A1 (en) Audio guiding device and audio guiding method
TWI749569B (zh) 聲音播放調整方法及可攜式裝置
CN109587603B (zh) 音量控制方法、装置及存储介质
CN107342096B (zh) 记录声音播放设定的方法及执行该方法的电子装置
CN112332792A (zh) 音频调节方法、装置、设备及计算机可读存储介质

Legal Events

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

Ref document number: 16890342

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

Country of ref document: EP

Kind code of ref document: A1