WO2019033442A1 - 移动终端的音量控制方法、装置及存储介质和移动终端 - Google Patents

移动终端的音量控制方法、装置及存储介质和移动终端 Download PDF

Info

Publication number
WO2019033442A1
WO2019033442A1 PCT/CN2017/098178 CN2017098178W WO2019033442A1 WO 2019033442 A1 WO2019033442 A1 WO 2019033442A1 CN 2017098178 W CN2017098178 W CN 2017098178W WO 2019033442 A1 WO2019033442 A1 WO 2019033442A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
volume
application
determining
audio
Prior art date
Application number
PCT/CN2017/098178
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 广东欧珀移动通信有限公司
Priority to CN201780091845.8A priority Critical patent/CN110730946B/zh
Priority to PCT/CN2017/098178 priority patent/WO2019033442A1/zh
Publication of WO2019033442A1 publication Critical patent/WO2019033442A1/zh

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/16Sound input; Sound output
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • Embodiments of the present invention relate to the field of playback control technologies, and in particular, to a volume control method and apparatus for a mobile terminal, and a storage medium and a mobile terminal.
  • More and more functions in mobile terminals such as mobile phones provide convenience for people's lives and work. People can use mobile phones to make phone calls, listen to music, watch videos, play games, and so on. When the user performs these operations, the audio playback control system of the mobile terminal controls the audio of these applications for playback.
  • the audio playback control method in the related art has drawbacks and needs to be improved.
  • the embodiment of the invention provides a volume control method and device for a mobile terminal, a storage medium and a mobile terminal, which can control the audio playback volume of each application program according to the working state of the mobile terminal.
  • an embodiment of the present invention provides a volume control method for a mobile terminal, including:
  • the respective applications are controlled to perform audio playback according to respective audio playback volumes.
  • an embodiment of the present invention provides a volume control apparatus for a mobile terminal, including:
  • a current working state determining module configured to determine a current working state of the mobile terminal
  • An audio play volume determining module configured to determine an audio play volume of each application in the mobile terminal according to the current working state
  • the audio playback control module is configured to control the respective applications to perform audio playback according to respective audio playback volumes.
  • an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, and when the program is executed by the processor, the volume control method of the mobile terminal provided by the first aspect is implemented.
  • an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor is implemented as implemented in the first aspect.
  • the volume control method of the mobile terminal is implemented as implemented in the first aspect.
  • FIG. 1a is a structural diagram of an audio system according to an embodiment of the present invention.
  • FIG. 1b is a schematic structural diagram of an audio processing hardware system of a smart phone according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a volume control method of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another volume control method of a mobile terminal according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another method for controlling a volume of a mobile terminal according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another volume control method of a mobile terminal according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a volume control apparatus of a mobile terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another volume control apparatus for a mobile terminal according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another volume control apparatus for a mobile terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of another volume control apparatus for a mobile terminal according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • module as used herein may be taken to mean a software object that is executed on the computing system.
  • the apparatus and method described herein may be implemented in software, and may of course be implemented in hardware, all of which are within the scope of the present invention.
  • first”, “second” and “third” and the like in the present invention are used to distinguish different objects, and are not intended to describe a specific order.
  • the terms “comprises” and “comprising” and “comprising” are intended to cover a non-exclusive inclusion.
  • a process, method, system, product, or device that comprises a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules not listed, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the Android system is taken as an example to briefly explain the audio system architecture in the Android system.
  • the audio system architecture provided by this embodiment mainly includes user space, kernel space, and hardware system.
  • the user space includes an application layer, an application framework layer and a hardware abstraction layer (HAL), the kernel space includes a driver layer, the hardware system includes a speaker, an audio codec, etc., and may also include headset.
  • the application layer is the top layer of the audio system. You can write an application to perform corresponding logical operations, such as detecting an application that triggers an audio playback event, and pre-setting the first type of application, the second type of application, and the third type of application.
  • the application framework layer includes an audio control interface and a standardized plug-in module to provide an audio playback form control interface, as well as a speaker volume control interface.
  • the application framework layer provides two classes, AudioTrack and AudioRecorder, as well as the AudioManager, AudioService, and AudioSystem classes.
  • a system runtime layer (Libraries) is also included between the application framework layer and the hardware abstraction layer.
  • libraries system runtime layer
  • AudioTrack AudioRecorder
  • MediaPlayer MediaPlayer
  • MediaRecorder can find the corresponding class in the library.
  • This part of the code is placed in the frameworks/av/media/libmedia of the project, mostly written in C++.
  • the hardware abstraction layer of audio is mainly divided into two parts, namely AudioFlinger and AudioPolicyService. In fact, the latter is not a real device, but the virtual device is used to allow manufacturers to easily customize their own strategies. Depending on the product, audio devices vary widely. In the audio architecture of Android, these problems are solved by the audio.primary of the HAL layer, etc., without the need to modify the upper layer implementation on a large scale.
  • the hardware abstraction layer is the transition from the application framework layer to the driver layer to achieve compatibility with the underlying hardware.
  • the driver layer controls the audio codec according to the characteristics of the audio codec to ensure that the audio codec can work normally, and the audio data obtained by the audio codec is provided to the system layer.
  • the hardware system includes a speaker and an audio codec.
  • the speaker is used to play audio data to control the volume.
  • the audio codec is used to parse the format of the audio data, such as MP3, WMA, and the audio can be played normally.
  • FIG. 1b is a schematic structural diagram of an audio processing hardware system of a smart phone according to an embodiment of the present invention.
  • the audio processing circuit is generally in the main control board. Due to the different designs of different mobile phones, the specific location of the audio processing circuit may also be different.
  • the audio processing circuit of the smart phone mainly includes an audio signal processing circuit, a baseband signal processing circuit, an audio power amplifier, a headphone signal amplifier, an earpiece, a speaker, a microphone, and a headphone interface. Among them, the audio signal processing circuit is the core of the entire audio processing circuit.
  • the audio processing circuit is mainly composed of a receiving audio circuit, a sending circuit, a headphone talking circuit, and the like, including analog/digital (A/D) conversion, digital/analog (A/D) conversion, digital voice signal processing, and analog audio of analog audio. Amplifying circuit, etc.
  • the local microphone is first called to convert the sound acoustic signal of the sound into an analog audio signal, amplified by an analog audio amplifier circuit, and subjected to A/D conversion by an internal multimode converter to obtain a digital audio signal;
  • the digital audio signal is sent to the baseband processor for speech encoding, channel encoding, etc.; a series of processing such as encryption and interleaving is performed again; finally, the digital narrowband modulation module sent to the baseband processor is modulated to generate the transmitted baseband signal.
  • the RF circuit is modulated into a transmitting intermediate frequency and sent to the other party.
  • the baseband information is first demodulated from the radio frequency circuit, sent to the baseband processor for digital narrowband demodulation, and the control signal and the voice signal are separated; secondly, the voice signal is decrypted, deinterleaved, recombined, etc. Processing, then performing channel decoding and speech decoding; finally obtaining a pure digital speech signal, which is sent to a multi-mode converter in the speech signal processor for D/A conversion; after being restored to an analog audio signal, after the audio power is amplified, the handset is sounded . If you choose not to At the receiving end, the baseband processor turns off the receiver receiver amplifier, activates the hands-free receiver amplifier tube (ringing amplifier tube), and amplifies the audio signal power to push the speaker to sound.
  • the baseband processor turns off the receiver receiver amplifier, activates the hands-free receiver amplifier tube (ringing amplifier tube), and amplifies the audio signal power to push the speaker to sound.
  • the mechanical sound wave signal of the sound is first converted into an analog audio signal by a microphone, amplified by an analog audio amplifying circuit, and digital audio signal is obtained after A/D conversion, according to a preset audio format. Coding and storage.
  • the audio file is decoded to obtain a digital audio signal, which is converted into an analog audio signal after D/A conversion, and the audio signal power is amplified to drive the speaker to sound.
  • a preset audio file may be stored in the terminal in advance, and the preset audio file is played.
  • the pre-stored audio file and the preset volume level may be selected by the designer according to the actual situation.
  • the preset audio file and/or the preset volume level corresponding to different sound playing devices may be different, which is not limited in the embodiment of the present invention.
  • the audio signal collected by the microphone may be the analog audio signal converted by the mechanical sound wave signal described above, or may be an amplified analog audio signal, and the corresponding preset conditions may be respectively set according to the difference between the two.
  • the embodiment of the invention is not limited.
  • the terminal In order to facilitate the interaction between the terminal and the user, the terminal generally provides a volume adjustment function to the user, and the user can adjust the volume level of the sound played by the terminal by adjusting the volume adjustment button or the volume adjustment progress bar, and the terminal adjusts according to the user.
  • the volume level of the audio signal to be played is correspondingly amplified, such as power amplification, to meet the user's listening needs.
  • the division strategy of the volume level may be different in different terminals, that is, the total number of the specific volume levels and the volume level corresponding to each volume level may be different, which is not limited in the embodiment of the present invention.
  • the method of this embodiment may be performed by a volume control device of a mobile terminal, and the device may be implemented by hardware and/or software.
  • the device may be disposed inside the mobile terminal as part of the mobile terminal.
  • the method provided in this embodiment may be applicable to the case where the audio playback volume of each application of the mobile terminal is controlled according to the working state of the mobile terminal.
  • the mobile terminal may be a smart phone, a vehicle terminal, a tablet computer, a desktop computer, a notebook, a palmtop computer, or the like.
  • the volume control method of the mobile terminal includes the following steps:
  • Step 101 Determine a current working state of the mobile terminal.
  • the determining the current working state of the mobile terminal may include: periodically monitoring the working state of the mobile terminal; or determining the current working state of the mobile terminal when detecting that the audio playing event is triggered.
  • the working state may include an operating state and a standby state, and may also include a working performance parameter state, such as a central processing unit of a mobile terminal (Central Processing Unit, CPU) usage, memory usage, and remaining battery capacity.
  • CPU Central Processing Unit
  • the working state of the mobile terminal can be periodically monitored, and the current working state of the mobile terminal is acquired once every set time, for example, every 1 second.
  • the advantage of adopting this method is that the working state acquisition method is simple and easy to implement.
  • the current working state of the mobile terminal is acquired when it is detected that an audio play event is triggered.
  • the current working state of the mobile terminal is acquired when the incoming call signal is received, or when the user touches the touch command of the play button.
  • the advantage of adopting this method is that the working state of the mobile terminal can be obtained only when the audio playing event is triggered, and the power consumption of the mobile terminal can be reduced.
  • Step 102 Determine an audio play volume of each application in the mobile terminal according to the current working state.
  • Different applications have different requirements for audio playback volume when the mobile terminal is in different working states. For example, when the mobile terminal is currently in the running state, indicating that the mobile terminal is being used by the user or paying close attention, the application currently used by the user, such as music or games, may have a larger volume, and the incoming call ringtone or alarm The volume of the application can be smaller. For another example, when the mobile terminal is currently in the standby state, indicating that the user does not pay close attention to the mobile terminal, the volume of the application such as music or games may be set smaller, and the volume of the application such as the ringtone or the alarm is set to be larger. .
  • Step 103 Control the respective applications to perform audio playback according to respective audio playback volumes.
  • step 102 determines the playback volume corresponding to each application in the current working state, when the target application needs to play the audio, the audio is played according to the playback volume corresponding to the target application.
  • the volume corresponding to each application may be determined according to the working state of the mobile terminal, so that the audio is played according to the volume corresponding to the application when the application needs to play the audio in the working state; or the application needs to play In the case of audio, the volume corresponding to the application is determined according to the current working state of the mobile terminal before playing the audio, so that the audio is played according to the volume corresponding to the application.
  • the method provided by the embodiment determines the current working state of the mobile terminal, determines the audio playing volume of each application in the mobile terminal according to the current working state, and controls the respective applications to perform audio according to the corresponding audio playing volume. Playback, the audio playback volume of each application can be controlled reasonably according to the working state of the mobile terminal.
  • Step a1 Obtain a motion track of the mobile terminal.
  • the motion trajectory of the mobile terminal can be detected by the acceleration sensor and the gyroscope of the mobile terminal. It may be that the user moves the mobile terminal to cause the mobile terminal to generate a corresponding motion trajectory.
  • the motion trajectory includes a motion direction, a motion speed, and a motion displacement.
  • Step a2 determining the current application that triggers the audio play event.
  • the current application that triggers the audio playback event is a phone
  • the current application that triggers the audio play event is determined to be a music player
  • the current application that triggers the audio play event is the game.
  • the current application is a specific application, for example, whether the music player is a cool music box or a QQ music.
  • Step a3 Adjust a play volume of the current application according to the motion track and the current application.
  • a preset correspondence table of motion trajectories and volume adjustment information corresponding to each application under each application may be pre-stored in the mobile terminal.
  • the volume adjustment information includes a volume adjustment direction and a volume adjustment size.
  • the step 106 may include: searching for the volume adjustment information corresponding to the motion track in the current application from the preset correspondence table; and adjusting the play volume of the current application according to the volume adjustment information.
  • the preset correspondence relationship between the corresponding motion track and the volume adjustment information of each application provided by this embodiment is as follows:
  • the volume adjustment of the mobile terminal can be realized by the motion track of the mobile terminal, and a more convenient and quick volume adjustment mode is provided, and the application can be applied according to the characteristics of the application under different application programs.
  • the program presets the correspondence between the motion trajectory of the mobile terminal and the volume adjustment.
  • the motion speed is greater than A m / sec
  • the motion displacement is back and forth multiple times in the direction of motion
  • the volume of the alarm can be adjusted to be muted.
  • the existing means is to operate the touch screen of the mobile terminal or the corresponding button operation after the alarm is ringing, so that the alarm can be turned off, and in this embodiment, the alarm volume or mute can be adjusted by detecting the motion track of the mobile terminal.
  • the volume of the music can be increased by 2 volumes. Adjust the value.
  • a is set according to the user's needs, and different values can be set for different current users. For example, a can be 0.5.
  • the volume adjustment value is a minimum unit adjustment volume set in the mobile terminal, for example, a volume adjustment value for each volume increase/decrease.
  • the corresponding volume adjustment information is similar under different motion trajectories, as shown in Table 1, which will not be introduced one by one.
  • the execution sequence of the step 105 and the step 104 may be reversed, that is, the current application that triggers the audio play event is determined first, and then the motion track of the mobile terminal is acquired. For example, first determining that the current application that triggers the audio play event is an alarm, acquiring a motion track of the mobile terminal, and adjusting a play volume of the current application according to the motion track.
  • FIG. 3 is a flowchart of another method for controlling the volume of a mobile terminal according to an embodiment of the present invention.
  • the method of this embodiment may be performed by a volume control device of a mobile terminal, and the device may be implemented by hardware and/or software. In a manner, the device may be disposed in the mobile terminal as part of the mobile terminal.
  • the method provided in this embodiment may be applicable to controlling the audio playback volume of each application of the mobile terminal when the mobile terminal is in the running state. Case.
  • the volume control method of the mobile terminal provided in this embodiment includes:
  • Step 201 Determine a current working state of the mobile terminal as an operating state.
  • the determining that the current working state of the mobile terminal is an operating state may include: determining that a current working state of the mobile terminal is an operating state if detecting that the mobile terminal currently has a running state; or It is detected that the mobile terminal is in motion during the set time, Then, it is determined that the current working state of the mobile terminal is an operating state.
  • determining that the mobile terminal is in the running state for example, according to the usage rate of the central processing of the mobile terminal, the memory occupancy rate, etc., whether the mobile terminal is in the running state, and the usage rate or the memory occupancy rate is set.
  • the ratio can be determined to determine that the mobile terminal is running.
  • the mobile terminal can determine that the mobile terminal is in the running state.
  • the mobile terminal can determine that the mobile terminal is in the running state.
  • the user inevitably generates a certain motion, and in the case where the mobile terminal is not used, the mobile terminal is in a relatively static state.
  • the mobile terminal can accurately sense the motion state of the mobile terminal, and when the mobile terminal is in the motion state within the set time, the user is Using the mobile terminal, the mobile terminal is in an operational state.
  • the working state of the mobile terminal can be quickly and easily obtained through the motion state of the mobile terminal.
  • Step 202 Determine an audio playback volume of the preset first type of application as the first playback volume.
  • Step 203 Determine an audio playback volume of the preset second type application as a second playback volume.
  • the first playing volume is smaller than the second playing volume.
  • the preset first type of application may be an application such as a phone, a short message, or an alarm clock
  • the preset second type of application may be music, video, or game.
  • the preset first type application and the second type application may be pre-stored in a preset list in the mobile terminal, and after determining that the mobile terminal is in the running state, may be obtained from the preset list.
  • the preset first type application or the preset second type application sets the corresponding playing volume for the preset first type application or the preset second type application.
  • the reason for the setting is: on the one hand, it can be prevented In the process of using the mobile terminal by the user, it is scared by the excessive telephone ringtone, the short message ringtone or the alarm sound of the alarm; on the other hand, because the current user is using the mobile terminal, the notification sound is also small to notify the user.
  • Functional and can reduce the power consumption of the mobile terminal.
  • applications such as music, video, or games can set the playback volume to be larger.
  • the preset audio playback volume of the first type of application may be determined as the first playback volume, and the audio of the preset second type application may be played.
  • the volume is determined to be the second broadcast Put the volume.
  • the first playing volume is smaller than the second playing volume.
  • the second play volume may be a current default play volume of the mobile terminal.
  • the preset first type of application and the preset second type of application may be different under different audio trigger types, that is, a trigger type of an audio trigger event according to an application.
  • a trigger type of an audio trigger event For example, for the application of the phone, if the trigger type of the triggered audio play event is a notification tone type, such as a ringtone, then the mobile phone is in the running state, and the application of the phone is determined to be the first type of application. Program, and determine that the audio playback volume is a smaller first playback volume; if the trigger type of the triggered audio playback event is a non-notification prompt tone type, such as a call volume, then the mobile phone can be determined when the mobile terminal is in the running state.
  • a notification tone type such as a ringtone
  • the application is a preset second-class application and determines its audio playback volume to be a larger second playback volume.
  • the determining manner of whether an application belongs to the preset first type application or the preset second type application may include: (1) presetting a preset list, where the preset list includes the application An entry of the application of the corresponding preset type (belonging to the preset first type application or the preset second type application) under different audio playback event trigger types, from the preset list according to the current trigger type Find a preset type described by the application; (2) preset a plurality of preset sub-lists according to different audio play event trigger types, and each preset sub-list includes an application in an audio play event trigger type The corresponding entry of the corresponding preset type is used to find the preset type described by the application from the corresponding preset sub-list according to the current trigger type.
  • the determining that the current working state of the mobile terminal is the running state may include: determining that the current working state of the mobile terminal is an operating state when detecting that the audio playing event is triggered.
  • Determining, according to the current working state, the audio play volume of each application in the mobile terminal may include: determining, according to an audio play event trigger type, a preset first type application and a preset second type application; The audio playback volume of the first type of application is determined as a first playback volume; the audio playback volume of the preset second type of application is determined to be a second playback volume; wherein the first playback volume is less than the first Second play volume.
  • Step 204 Control the preset first type application to perform audio play according to the first play volume, and control the preset second type application to perform audio play according to the second play volume.
  • the audio is played according to the first playing volume
  • the preset second type of application needs to play the audio to be played
  • Play at the second volume For example, the phone ringtone, the message ringtone or the alarm ringtone is played according to the first play volume, and the music, video or game is played according to the second play volume.
  • the phone ringtone can be played according to the first play volume
  • the call content can be played according to the second play volume.
  • the method provided in this embodiment determines the audio playback volume of the preset second type application by determining the audio playback volume of the preset first type application as the first playback volume after determining that the mobile terminal is in the running state. Determining the second playback volume, and controlling the preset first type of application to perform audio playback according to the first playback volume, and controlling the preset second type of application to perform audio playback according to the second playback volume
  • the mobile device can be reasonably controlled according to the type of the application when the mobile terminal is in the running state.
  • FIG. 4 is a flowchart of another method for controlling the volume of a mobile terminal according to an embodiment of the present invention.
  • the method of this embodiment may be performed by a volume control device of a mobile terminal, and the device may be implemented by hardware and/or software. In a manner, the device may be disposed in the mobile terminal as part of the mobile terminal.
  • the method provided in this embodiment may be applicable to control the audio playback volume of each application of the mobile terminal when the mobile terminal is in the standby state. Case.
  • the volume control method of the mobile terminal provided in this embodiment includes:
  • Step 301 Determine that the current working state of the mobile terminal is a standby state.
  • the determining that the working state of the mobile terminal is the standby state may include determining that the current working state of the mobile terminal is a standby state when detecting that the screen of the mobile terminal is in a lock screen state.
  • the lock screen state and the bright screen state may be the same or different. For example, when the mobile terminal is in the lock screen state, the mobile terminal may be in a blank screen state or a bright screen state.
  • a broadcast receiver BroadcastReceiver for example, register a broadcast receiver such as android.intent.action.SCREEN_OFF to monitor the screen status of the mobile terminal. After listening to the screen lock broadcast message, you can determine the current working status of the mobile terminal. It is in standby mode.
  • the determining that the working state of the mobile terminal is the standby state may include: determining that the current working state of the mobile terminal is the standby state if detecting that the to-be-moved terminal is in a static state within the second set time.
  • the mobile terminal can accurately sense the motion state of the mobile terminal, and the mobile terminal is in a static state during the second set time, indicating that the user is not using the mobile terminal, and the mobile terminal is at the mobile terminal. In a stationary state. The working state of the mobile terminal can be quickly and easily obtained through the motion state of the mobile terminal.
  • Step 302 Determine an audio playback volume of the preset first type application as a third playback volume.
  • Step 303 Determine an audio playback volume of the preset second type application as a fourth playback volume.
  • the three play volume is greater than the fourth play volume.
  • the preset first type of application may be an application such as a phone, a short message, or an alarm clock
  • the preset second type of application may be music, video, or game.
  • the preset first type application and the second type application may be pre-stored in a preset list in the mobile terminal, and may be obtained from the preset list after determining that the mobile terminal is in a standby state.
  • the preset first type application or the preset second type application sets the corresponding playing volume for the preset first type application or the preset second type application.
  • the audio playback volume of the preset first-class application may be determined as the third playback volume
  • the audio of the preset second-class application may be The playback volume is determined as the fourth playback volume.
  • the third playback volume is greater than the fourth playback volume.
  • the third play volume may be greater than a current default play volume of the mobile terminal
  • the fourth play volume may be smaller than a current default play volume of the mobile terminal.
  • Step 304 Control the preset first type application to perform audio playback according to the third playback volume, and control the preset second type application to perform audio playback according to the fourth playback volume.
  • the audio is played according to the third playing volume.
  • the fourth volume is followed. Play it. For example, the phone ringtone, the message ringtone or the alarm ringtone is played according to the third play volume, and the music, video or game is played according to the fourth play volume.
  • the method provided in this embodiment determines the audio playback volume of the preset second type application by determining the audio playback volume of the preset first type application as the third playback volume after determining that the mobile terminal is in the standby state. Determine the fourth playback volume and control the preset first class application according to the first The third playing volume is used for playing the audio, and the second type of application controlling the preset is played according to the fourth playing volume, and the playing of the application may be performed according to the type of the application when the mobile terminal is in the standby state. The volume is controlled reasonably.
  • FIG. 5 is a flowchart of another method for controlling the volume of a mobile terminal according to an embodiment of the present invention.
  • the method of this embodiment may be performed by a volume control device of a mobile terminal, and the device may be implemented by hardware and/or software. In a manner, the device may be disposed in the mobile terminal as part of the mobile terminal.
  • the method provided in this embodiment may be applicable to performing audio playback volume of each application of the mobile terminal according to the current working performance parameter state of the mobile terminal.
  • the work performance parameter includes at least one of a usage rate of the central processing unit, a memory usage rate, and a remaining power amount.
  • the volume control method of the mobile terminal provided in this embodiment includes:
  • Step 401 Determine a current working performance parameter state of the mobile terminal.
  • the working performance parameter includes a usage rate of the central processing unit of the mobile terminal, a memory occupancy rate, and a remaining power amount.
  • Step 402 Determine, according to the current working performance parameter status, an audio playback volume of each application in the mobile terminal.
  • the audio playback volume of each application may be determined as the current default playback volume of the mobile terminal or each Corresponding preset volume; when the usage rate of the central processing unit of the mobile terminal is high, or the memory usage of the mobile terminal is high or the remaining power of the mobile terminal is small, the volume of the application can be lowered.
  • Step 403 Control the respective applications to perform audio playback according to respective audio playback volumes.
  • the lower priority application can be controlled to play the audio according to the reduced fifth playback volume.
  • the higher priority application performs non-audio playback according to the reduced sixth playback volume, wherein the fifth playback volume is less than the sixth playback volume.
  • the sixth playback volume is less than the current default playback volume of the mobile terminal.
  • determining the audio playback volume of each application in the mobile terminal according to the current performance parameter status may include:
  • Step b1 Determine that the current working performance parameter state reaches a set state.
  • the setting state includes that the central processor usage rate of the mobile terminal is greater than the set usage rate, Or the memory usage of the mobile terminal is greater than the set occupancy rate, or the remaining power of the mobile terminal is less than one or more of the set power.
  • the set usage rate, the set occupancy rate, and the set power amount may be set according to the performance of the mobile terminal or the current location of the mobile terminal or the user's needs. For example, the set usage rate may be 80%, the set occupancy rate may be 80%, and the set power amount may be 20%.
  • step b2 the audio playback volume of the preset third type application is reduced to the fifth playback volume.
  • the ordering of applications in descending order of priority can be as follows: Phone > SMS > Alarms > Music > Video > Games.
  • the preset third type of application may be a higher priority application, such as a phone, a text message, or an alarm clock.
  • step b3 the audio playback volume of the preset fourth type application is reduced to the sixth playback volume.
  • the fifth playing volume is smaller than the sixth playing volume.
  • the preset fourth type of application may be a lower priority application, such as music, video or games.
  • the method provided in this embodiment determines the audio play volume of each application in the mobile terminal according to the current working performance parameter state of the mobile terminal, and controls the respective applications according to the respective corresponding
  • the audio playback volume is used for audio playback, and the playback volume of each application can be controlled according to the state of the performance parameter of the mobile terminal.
  • the preset first type application, the second type application, the third type application, and the fourth type application mentioned in the embodiment of the present invention are only used to distinguish different in different situations.
  • Types of applications, which are not used to limit all applications in a mobile terminal, are classified into the above four categories, and are not used to define absolute type classifications, that is, four types of applications may have crossover or the same application.
  • FIG. 6 is a schematic structural diagram of a volume control apparatus for a mobile terminal according to an embodiment of the present invention.
  • the apparatus may be implemented by software and/or hardware and integrated in a mobile terminal.
  • the volume control device 500 of the mobile terminal includes a current working state determining module 51, an audio playing volume determining module 52, and an audio play control module 53.
  • the current working state determining module 51 is configured to determine a current working state of the mobile terminal.
  • the current working state determining module 51 determining that the current working state of the mobile terminal may include: periodically monitoring the working state of the mobile terminal; or, when detecting an audio broadcast event When the device is triggered, the current working state of the mobile terminal is determined.
  • the working state may include an operating state and a standby state, and may also include an operating performance parameter state, such as a usage rate of a central processing unit (CPU) of the mobile terminal, a memory occupancy rate, and a remaining power amount.
  • CPU central processing unit
  • the working state of the mobile terminal can be periodically monitored, and the current working state of the mobile terminal is acquired once every set time, for example, every 1 second.
  • the advantage of adopting this method is that the working state acquisition method is simple and easy to implement.
  • the current working state of the mobile terminal is acquired when it is detected that an audio play event is triggered.
  • the current working state of the mobile terminal is acquired when the incoming call signal is received, or when the user touches the touch command of the play button.
  • the advantage of adopting this method is that the working state of the mobile terminal can be obtained only when the audio playing event is triggered, and the power consumption of the mobile terminal can be reduced.
  • the audio play volume determining module 52 is configured to determine an audio play volume of each application in the mobile terminal according to the current working state.
  • Different applications have different requirements for audio playback volume when the mobile terminal is in different working states. For example, when the mobile terminal is currently in the running state, indicating that the mobile terminal is being used by the user or paying close attention, the application currently used by the user, such as music or games, may have a larger volume, and the incoming call ringtone or alarm The volume of the application can be smaller. For another example, when the mobile terminal is currently in the standby state, indicating that the user does not pay close attention to the mobile terminal, the volume of the application such as music or games may be set smaller, and the volume of the application such as the ringtone or the alarm is set to be larger. .
  • the audio play control module 53 is configured to control the respective applications to perform audio play according to respective audio play volumes.
  • the audio playback control module 53 performs audio playback according to the playback volume corresponding to the target application.
  • the volume corresponding to each application may be determined according to the working state of the mobile terminal, so that the audio is played according to the volume corresponding to the application when the application needs to play the audio in the working state; or the application needs to play In the case of audio, the volume corresponding to the application is determined according to the current working state of the mobile terminal before playing the audio, so that the audio is played according to the volume corresponding to the application.
  • the apparatus provided in this embodiment determines the audio playing volume of each application in the mobile terminal according to the current working state by determining the current working state of the mobile terminal, and controls the respective applications to perform audio according to the corresponding audio playing volume. Play, according to the working condition of the mobile terminal Moderately control the audio playback volume of each application.
  • the apparatus 500 can also include a motion trajectory acquisition module 54, a current application determination module 55, and a play volume adjustment module 56.
  • the motion trajectory acquisition module 54 is configured to acquire a motion trajectory of the mobile terminal.
  • the motion trajectory acquisition mode 54 can detect the motion trajectory of the mobile terminal through the acceleration sensor and the gyroscope of the mobile terminal. It may be that the user moves the mobile terminal to cause the mobile terminal to generate a corresponding motion trajectory.
  • the motion trajectory includes a motion direction, a motion speed, and a motion displacement.
  • the current application determining module 55 is configured to determine a current application that triggers an audio play event.
  • the current application determining module 55 detects the incoming call signal, the current application that triggers the audio playing event may be determined to be a phone; in the music playing scenario, if the current application determines the module 55 detecting the touch command of the user acting on the play button, determining that the current application triggering the audio play event is a music player; in the game running scenario, if the current application determining module 55 detects the background sound or the character sound is Trigger playback to determine the current application that triggered the audio playback event as a game.
  • the current application is a specific application, for example, whether the music player is a cool music box or a QQ music.
  • the play volume adjustment module 56 is configured to adjust a play volume of the current application according to the motion track information and the current application.
  • a preset correspondence table of motion trajectories and volume adjustment information corresponding to each application under each application may be pre-stored in the mobile terminal.
  • the volume adjustment information includes a volume adjustment direction and a volume adjustment size.
  • the play volume adjustment module 56 is configured to: search for the volume adjustment information corresponding to the motion track in the current application from the preset correspondence table; and play the volume of the current application according to the volume adjustment information Make adjustments.
  • the preset correspondence relationship between the corresponding motion track and the volume adjustment information of each application provided by this embodiment is as follows:
  • the volume adjustment of the mobile terminal can be realized by the motion track of the mobile terminal, and a more convenient and quick volume adjustment mode is provided, and the application can be applied according to the characteristics of the application under different application programs.
  • the program presets the correspondence between the motion trajectory of the mobile terminal and the volume adjustment.
  • the playback volume adjustment module 56 detects that the motion direction of the mobile terminal moves from top to bottom or bottom to top or from left to right or from right to left. If the moving speed is greater than a m/s and the motion displacement is back and forth multiple times in the moving direction, the volume of the alarm can be adjusted to be muted.
  • the existing means is to operate the touch screen of the mobile terminal or the corresponding button operation after the alarm is ringing, so that the alarm can be turned off, and in this embodiment, the alarm volume or mute can be adjusted by detecting the motion track of the mobile terminal.
  • the playing volume adjustment module 56 detects that the moving direction of the mobile terminal is from top to bottom, the moving speed is greater than a m/s, and the motion displacement is from top to bottom, then the music can be played.
  • the volume is increased by 2 volume adjustment values. Where a is set according to the user's needs, and different values can be set for different current users. For example, a can be 0.5.
  • the volume adjustment value is a minimum unit adjustment volume set in the mobile terminal, for example, a volume adjustment value for each volume increase/decrease.
  • the corresponding volume adjustment information is similar under different motion trajectories, as shown in Table 1, which will not be introduced one by one.
  • the function implementation order of the motion trajectory obtaining module 54 and the current application determining module 55 may be reversed, that is, the current application determining module 55 determines the current application that triggers the audio playing event, and then the motion trajectory acquiring module 54 Obtain the motion track of the mobile terminal.
  • the current application determining module 55 determines that the current application that triggers the audio playing event is an alarm, and then the motion track acquiring module 54 acquires the motion track of the mobile terminal, and according to the motion track, the current application is Play the volume to adjust.
  • FIG. 7 is a schematic structural diagram of another volume control apparatus for a mobile terminal according to an embodiment of the present invention.
  • the device 600 includes a current working state determining module 61, an audio playing volume determining module 62, and an audio playing control module 63.
  • the audio playing volume determining module 62 includes a first audio playing volume determining sub-module 621 and a second audio playing volume determining sub- Module 622.
  • the current working state determining module 61 is specifically configured to: determine that the current working state of the mobile terminal is an operating state.
  • the determining, by the current working state determining module 61, that the current working state of the mobile terminal is an operating state may include: determining that the current working state of the mobile terminal is The operating state; or, if it is detected that the mobile terminal is in the moving state within the set time, it is determined that the current working state of the mobile terminal is the running state.
  • the current working state determining module 61 is configured to determine that the mobile terminal is in an operating state.
  • the mobile terminal may be in an operating state according to the usage rate of the central processing of the mobile terminal, the memory occupancy rate, etc., in the usage rate or When the memory usage reaches the set ratio, it can be determined that the mobile terminal is in operation.
  • the current working state determining module 61 can also determine whether the mobile terminal is currently running by detecting whether there is a running process currently in the mobile terminal. In addition, by detecting the motion state of the mobile terminal, if the mobile terminal is in the motion state within the set time, the mobile terminal can determine that the mobile terminal is in the running state. Generally, in the process of using the mobile terminal, the user inevitably generates a certain motion, and in the case where the mobile terminal is not used, the mobile terminal is in a relatively static state.
  • the mobile terminal can accurately sense the motion state of the mobile terminal, and when the mobile terminal is in the motion state within the set time, the user is Using the mobile terminal, the mobile terminal is in an operational state.
  • the working state of the mobile terminal can be quickly and easily obtained through the motion state of the mobile terminal.
  • the first audio play volume determining sub-module 621 is configured to determine an audio play volume of the preset first-class application as the first play volume.
  • the second audio playback volume determining sub-module 622 is configured to preset a sound of the second type of application
  • the frequency playback volume is determined as the second playback volume.
  • the first playing volume is smaller than the second playing volume.
  • the preset first type of application may be an application such as a phone, a short message, or an alarm clock
  • the preset second type of application may be music, video, or game.
  • the preset first type application and the second type application may be pre-stored in a preset list in the mobile terminal, and after the current working state determining module 61 determines that the mobile terminal is in the running state, the first audio
  • the play volume determination sub-module 621 can obtain a preset first-class application from the preset list, set a corresponding play volume for the preset first-type application, and a second audio play volume determination sub-module
  • the 622 may obtain a preset second type application from the preset list, and set a corresponding playing volume for the preset second type application.
  • the reason for the setting is: on the one hand, it can be prevented In the process of using the mobile terminal by the user, it is scared by the excessive telephone ringtone, the short message ringtone or the alarm sound of the alarm; on the other hand, because the current user is using the mobile terminal, the notification sound is also small to notify the user.
  • Functional and can reduce the power consumption of the mobile terminal.
  • applications such as music, video, or games can set the playback volume to be larger.
  • the preset audio playback volume of the first type of application may be determined as the first playback volume, and the audio of the preset second type application may be played.
  • the volume is determined as the second playback volume.
  • the first playing volume is smaller than the second playing volume.
  • the second play volume may be a current default play volume of the mobile terminal.
  • the preset first type of application and the preset second type of application may be different under different audio trigger types, that is, a trigger type of an audio trigger event according to an application.
  • a trigger type of an audio trigger event For example, for the application of the phone, if the trigger type of the triggered audio play event is a notification tone type, such as a ringtone, then the mobile phone is in the running state, and the application of the phone is determined to be the first type of application.
  • the audio playback volume is a smaller first playback volume; if the trigger type of the triggered audio playback event is a non-notification prompt tone type, such as a call volume, Then, when the mobile terminal is in the running state, it can be determined that the application of the phone is a preset second type application, and the audio playback volume is determined to be a larger second playback volume.
  • a non-notification prompt tone type such as a call volume
  • the determining manner of whether an application belongs to the preset first type application or the preset second type application may include: (1) presetting a preset list, where the preset list includes the application An entry of the application of the corresponding preset type (belonging to the preset first type application or the preset second type application) under different audio playback event trigger types, from the preset list according to the current trigger type Find a preset type described by the application; (2) preset a plurality of preset sub-lists according to different audio play event trigger types, and each preset sub-list includes an application in an audio play event trigger type
  • the corresponding entry of the corresponding preset type is used to find the preset type described by the application from the corresponding preset sub-list according to the current trigger type.
  • the current working state determining module 61 is configured to: when it is detected that the audio playing event is triggered, determine that the current working state of the mobile terminal is an operating state.
  • the first audio play volume determining sub-module 621 can be configured to: determine a preset first-class application according to an audio play event trigger type; determine a preset first-class application audio play volume as a first play volume
  • the second audio play volume determining sub-module 621 can be configured to: determine a preset second type of application; determine an audio play volume of the preset second type of application as a second play volume; wherein, the A play volume is less than the second play volume.
  • the audio play control module 63 is configured to control the respective applications to perform audio play according to respective audio play volumes.
  • the audio playback control module 63 When the audio of the first type of application to be played needs to be played, the audio playback control module 63 performs audio playback according to the first playback volume, and when the preset second type of application needs to play the audio to be played, Then, the audio playback control module 63 plays according to the second volume.
  • the phone ringtone, the message ringtone or the alarm ringtone is played according to the first play volume, and the music, video or game is played according to the second play volume.
  • the phone ringtone can be played according to the first play volume, and the call content can be played according to the second play volume.
  • the device provided in this embodiment determines the audio playback volume of the preset second type application by determining the audio playback volume of the preset first type application as the first playback volume after determining that the mobile terminal is in the running state. Determined as the second playback volume, and controls the preset first type of application according to the said Playing a volume for playing audio, and controlling a preset second type of application to play audio according to the second playing volume, and playing the application according to the type of the application when the mobile terminal is in the running state The volume is controlled reasonably.
  • FIG. 8 is a schematic structural diagram of another volume control apparatus for a mobile terminal according to an embodiment of the present invention.
  • the device 700 includes a current working state determining module 71, an audio playing volume determining module 72, and an audio playing control module 73, wherein the audio playing volume determining module 72 includes a third audio playing volume determining sub-module 721 and a fourth audio playing volume. A sub-module 722 is determined.
  • the current working state determining module 71 is specifically configured to: determine that the current working state of the mobile terminal is a standby state.
  • the determining, by the current working state determining module 71, that the working state of the mobile terminal is the standby state may include: determining that the current working state of the mobile terminal is in a standby state when detecting that the screen of the mobile terminal is in a lock screen state .
  • the lock screen state and the bright screen state may be the same or different. For example, when the mobile terminal is in the lock screen state, the mobile terminal may be in a blank screen state or a bright screen state.
  • a broadcast receiver BroadcastReceiver for example, register a broadcast receiver such as android.intent.action.SCREEN_OFF to monitor the screen status of the mobile terminal. After listening to the screen lock broadcast message, you can determine the current working status of the mobile terminal. It is in standby mode.
  • the current working state determining module 71 is configured to: if detecting that the to-be-moved terminal is in a static state within a second set time, determine that the current working state of the mobile terminal is a standby state.
  • the user inevitably generates a certain motion, and in the case where the mobile terminal is not used, the mobile terminal is in a relatively static state.
  • the mobile terminal can accurately sense the motion state of the mobile terminal.
  • the mobile terminal is in a static state for a second set time, it indicates that the user is not using the mobile terminal, and the mobile terminal is in a static state.
  • the working state of the mobile terminal can be quickly and easily obtained through the motion state of the mobile terminal.
  • the third audio playback volume determining sub-module 721 is configured to determine an audio playback volume of the preset first-class application as a third playback volume.
  • the fourth audio playback volume determining sub-module 722 is configured to determine an audio playback volume of the preset second-class application as a fourth playback volume; wherein the three-play volume is greater than The fourth playback volume is described.
  • the preset first type of application may be an application such as a phone, a short message, or an alarm clock
  • the preset second type of application may be music, video, or game.
  • the preset first type application and the second type application may be pre-stored in a preset list in the mobile terminal, and after the current working status determining module 71 determines that the mobile terminal is in the standby state, the third audio
  • the play volume determination sub-module 721 can obtain a preset first-class application from the preset list, set a corresponding play volume for the preset first-type application, and the fourth audio play volume is determined.
  • the sub-module 722 can obtain a preset second-type application from the preset list, and set a corresponding playback volume for the preset second-type application.
  • the voice of the phone ringtone, the SMS ringtone or the alarm can be set larger, so that the user can be prevented from hearing the notification sound. Missed calls, text messages or alarms.
  • the volume of the music application can be set smaller. Therefore, in the embodiment, after the current working state determining module 71 determines that the mobile terminal is in the standby state, the third audio playing volume determining sub-module 721 can determine the audio playing volume of the preset first-class application as the third.
  • the play volume, the fourth audio play volume determination sub-module 722 can determine the audio play volume of the preset second type of application as the fourth play volume.
  • the third playback volume is greater than the fourth playback volume.
  • the third play volume may be greater than a current default play volume of the mobile terminal, and the fourth play volume may be smaller than a current default play volume of the mobile terminal.
  • the audio play control module 73 is configured to control the respective applications to perform audio play according to respective audio play volumes.
  • the audio playback control module 73 When the audio of the first type of application to be played needs to be played, the audio playback control module 73 performs audio playback according to the third playback volume, and when the preset second type of application needs to play the audio to be played, Then, the audio playback control module 73 plays according to the fourth volume. For example, play the phone ringtone, SMS ringtone or alarm ringtone according to the third play volume, and play according to the fourth play volume. Music, video or games, etc.
  • the apparatus provided in this embodiment determines the audio playback volume of the preset second type application by determining the audio playback volume of the preset first type application as the third playback volume after determining that the mobile terminal is in the standby state. Determining to be the fourth playback volume, and controlling the preset first type of application to perform audio playback according to the third playback volume, and controlling the preset second type of application to perform audio playback according to the fourth playback volume When the mobile terminal is in the standby state, the playback volume of the application can be reasonably controlled according to the type of the application.
  • FIG. 9 is a schematic structural diagram of another volume control apparatus for a mobile terminal according to an embodiment of the present invention.
  • the device 800 includes a current working state determining module 81, an audio playing volume determining module 82, and an audio playing control module 83, wherein the audio playing volume determining module 82 includes a setting state determining sub-module 821 and a fifth audio playing volume determining sub- Module 822 and sixth audio playback volume determination sub-module 823.
  • the current working state determining module 81 is specifically configured to: determine a current working performance parameter state of the mobile terminal, where the working performance parameter includes a usage rate of the central processing unit, a memory occupancy rate, and a remaining power amount.
  • the audio play volume determining module 82 is specifically configured to determine an audio play volume of each application in the mobile terminal according to the current work performance parameter status.
  • the audio playback volume determining module 82 may determine that the audio playback volume of each application is the mobile terminal.
  • the audio play control module 83 is configured to control the respective applications to perform audio play according to respective audio play volumes.
  • the audio playback control module 83 can control the lower priority application to play the audio according to the reduced fifth playback volume.
  • the higher priority application enters the lower sixth playback volume.
  • Non-audio playback wherein the fifth playback volume is less than the sixth playback volume.
  • the sixth playback volume is less than the current default playback volume of the mobile terminal.
  • the setting state determining sub-module 821 is configured to determine that the current working performance parameter state reaches a set state.
  • the setting state includes that the central processor usage rate of the mobile terminal is greater than the set usage rate, or the memory usage of the mobile terminal is greater than the set occupancy rate, or the remaining power of the mobile terminal is less than one of the set power levels or Multiple.
  • the set usage rate, the set occupancy rate, and the set power amount may be set according to the performance of the mobile terminal or the current location of the mobile terminal or the user's needs. For example, the set usage rate may be 80%, the set occupancy rate may be 80%, and the set power amount may be 20%.
  • the fifth audio playback volume determining sub-module 822 is configured to reduce the audio playback volume of the preset third-class application to the fifth playback volume.
  • the ordering of applications in descending order of priority can be as follows: Phone > SMS > Alarms > Music > Video > Games.
  • the preset third type of application may be a higher priority application, such as a phone, a text message, or an alarm clock.
  • the sixth audio playback volume determining sub-module 823 is configured to reduce the audio playback volume of the preset fourth-class application to a sixth playback volume; wherein the fifth playback volume is smaller than the sixth playback volume.
  • the preset fourth type of application may be a lower priority application, such as music, video or games.
  • the apparatus provided in this embodiment determines the audio play volume of each application in the mobile terminal according to the current working performance parameter state of the mobile terminal, and controls the respective applications to correspond to each other according to the current working performance parameter state.
  • the audio playback volume is used for audio playback, and the playback volume of each application can be controlled according to the state of the performance parameter of the mobile terminal.
  • the preset first type application, the second type application, the third type application, and the fourth type application mentioned in the embodiment of the present invention are only used to distinguish different in different situations.
  • Types of applications, which are not used to limit all applications in a mobile terminal, are classified into the above four categories, and are not used to define absolute type classifications, that is, four types of applications may have crossover or the same application.
  • Storage media any of a variety of types of memory devices or storage devices.
  • the term "storage medium” is intended to include: a mounting medium such as a CD-ROM, a floppy disk or a tape device; a computer system memory or a random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.
  • Non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like.
  • the storage medium may also include other types of memory or a combination thereof.
  • the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet.
  • the second computer system can provide program instructions to the first computer for execution.
  • the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
  • a storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
  • the embodiment of the present invention further provides a storage medium including computer executable instructions, where the computer executable instructions can perform the volume control method of the mobile terminal in any of the above embodiments, such as: determining a current working state of the mobile terminal; The current working state determines an audio playback volume of each application in the mobile terminal; and the respective applications are controlled to perform audio playback according to respective audio playback volumes.
  • FIG. 10 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal may include: a memory 901, a central processing unit (CPU) 902 (also referred to as a processor, below).
  • the CPU 901 is configured to store executable program code; the processor 902 runs a program corresponding to the executable program code by reading executable program code stored in the memory 901, For performing: determining a current working state of the mobile terminal; determining an audio playback volume of each application in the mobile terminal according to the current working state; and controlling the respective applications to perform audio playback according to respective audio playback volumes.
  • the mobile terminal further includes: a peripheral interface 903, an RF (Radio Frequency) circuit 905, an audio circuit 906, a speaker 911, a power management chip 908, an input/output (I/O) subsystem 909, a touch screen 912, and others.
  • Input/control device 910 and external port 904, these components pass one One or more communication buses or signal lines 907 are in communication.
  • the illustrated mobile terminal 900 is merely one example of a mobile terminal, and that the mobile terminal 600 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the mobile terminal for controlling the playback volume provided in this embodiment is described in detail below.
  • the mobile terminal takes a mobile phone as an example.
  • the memory 901 can be accessed by the CPU 902, the peripheral interface 903, etc., and the memory 901 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 903 which can connect the input and output peripherals of the device to CPU 502 and memory 901.
  • the I/O subsystem 909 can connect input and output peripherals on the device, such as touch screen 912 and other input/control devices 910, to peripheral interface 903.
  • the I/O subsystem 909 can include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910.
  • one or more input controllers 9092 receive electrical signals from other input/control devices 910 or transmit electrical signals to other input/control devices 910, and other input/control devices 910 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 9092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 912 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • Display controller 9091 in I/O subsystem 909 receives an electrical signal from touch screen 912 or an electrical signal to touch screen 912.
  • the touch screen 912 detects the contact on the touch screen, and the display controller 9091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 912, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 912 may be running.
  • the icon of the game, the icon of the network to the corresponding network, and the like. It is worth noting that the device can also include a light mouse, and the light mouse does not display the visual output.
  • the RF circuit 905 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 905 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 905 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
  • an RF signal which is also referred to as an electromagnetic signal
  • RF circuitry 905 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • an antenna system an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • CODEC COder-DECoder, codec
  • SIM Subscriber Identity Module
  • the audio circuit 906 is mainly used to receive audio data from the peripheral interface 903, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 911.
  • the speaker 911 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 905 to sound and play the sound to the user.
  • the power management chip 908 is used for power supply and power management of the hardware connected to the CPU 902, the I/O subsystem, and the peripheral interface 903.
  • the mobile terminal may perform the method provided in any embodiment of the present invention, and have a function module corresponding to the execution method.
  • the mobile terminal provided in this embodiment determines the current working state of the mobile terminal, and determines the mobile terminal according to the current working state.
  • the audio playback volume of each application controls the respective applications to play audio according to the corresponding audio playback volume, and can control the audio playback volume of each application according to the working state of the mobile terminal.
  • the computer program may be stored in a computer readable storage medium, such as in a memory of the mobile terminal, and executed by at least one processor in the mobile terminal, and may include The flow of an embodiment of the volume control method.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
  • volume control method, device, storage medium, and mobile terminal provided by the embodiments of the present invention are described in detail.
  • the principles and implementation manners of the present invention are described in the specific examples.
  • the description of the above embodiments is only The method for understanding the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiment and the scope of application.
  • the content should not be construed as limiting the invention.

Landscapes

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

Abstract

本发明实施例公开了一种移动终端的音量控制方法、装置及存储介质和移动终端。该方法包括:确定移动终端的当前工作状态;根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量;控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。本发明实施例提供的技术方案,可以根据移动终端的工作状态合理的控制各个应用程序的音频播放音量。

Description

移动终端的音量控制方法、装置及存储介质和移动终端 技术领域
本发明实施例涉及播放控制技术领域,尤其涉及一种移动终端的音量控制方法、装置及存储介质和移动终端。
背景技术
手机等移动终端中的功能越来越多,为人们的生活和工作提供了便利,人们可以利用手机接打电话,还可以听音乐、观看视频、玩游戏等。在用户进行这些操作时,移动终端的音频播放控制系统控制这些应用的音频进行播放。相关技术中的音频播放控制方法存在缺陷,需要改进。
发明内容
本发明实施例提供一种移动终端的音量控制方法、装置及存储介质和移动终端,可以根据移动终端的工作状态合理的控制各个应用程序的音频播放音量。
在第一方面,本发明实施例提供了一种移动终端的音量控制方法,包括:
确定移动终端的当前工作状态;
根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量;
控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
在第二方面,本发明实施例提供了一种移动终端的音量控制装置,包括:
当前工作状态确定模块,用于确定移动终端的当前工作状态;
音频播放音量确定模块,用于根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量;
音频播放控制模块,用于控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
第三方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所提供的移动终端的音量控制方法。
在第四方面,本发明实施例提供了一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行时实现如第一方面所提供的移动终端的音量控制方法。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1a是本发明实施例提供的一种音频系统架构图;
图1b是本发明实施例提供的一种智能手机的音频处理硬件系统结构示意图;
图2是本发明实施例提供的一种移动终端的音量控制方法的流程图;
图3是本发明实施例提供的另一种移动终端的音量控制方法的流程图;
图4是本发明实施例提供的另一种移动终端的音量控制方法的流程图;
图5是本发明实施例提供的另一种移动终端的音量控制方法的流程图;
图6是本发明实施例提供的一种移动终端的音量控制装置的结构示意图;
图7是本发明实施例提供的另一种移动终端的音量控制装置的结构示意图;
图8是本发明实施例提供的另一种移动终端的音量控制装置的结构示意图;
图9是本发明实施例提供的另一种移动终端的音量控制装置的结构示意图;
图10是本发明实施例提供的一种移动终端的结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本文所使用的术语「模块」可看做为在该运算系统上执行的软件对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本发明保护范围之内。
本发明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
为便于理解,下面以Android系统为例,对Android系统中的音频系统架构进行简单说明。
如图1a所示,本实施例提供的音频系统架构主要包括用户空间、内核空间和硬件系统。用户空间包括应用(Application)层、应用框架(Framework)层和硬件抽象层(Hardware Abstraction Layer,HAL),内核空间包括驱动(Driver)层,硬件系统包括扬声器、音频编解码器等,还可以包括耳机。应用层是音频体系的最上层,可通过编写一个应用程序来执行对应的逻辑操作,例如检测触发音频播放事件的应用程序,预先设置第一类应用程、第二类应用程序、第三类应用程序和第四类应用程序或者第一播放音量至第六播放音量,下发音频播放指令等。应用框架层包括音频控制接口和标准化插件模块负责提供音频播放形式控制接口,以及扬声器音量大小控制接口等。应用框架层提供了AudioTrack和AudioRecorder两个类,以及AudioManager、AudioService及AudioSystem类。在应用框架层和硬件抽象层之间还包括一个系统运行库(Libraries)层。我们知道,framework层的很多类,实际上只是应用程序使用Android库文件的“中介”而已。因为上层应用采用java语言编写,它们需要最直接的java接口的支持,这就是framework层存在的意义之一。而作为“中介”,它们并不会真正去实现 具体的功能,或者只实现其中的一部分功能,而把主要重心放在库中来完成。比如上面的AudioTrack、AudioRecorder、MediaPlayer和MediaRecorder等等在库中都能找到相对应的类。这一部分代码集中放置在工程的frameworks/av/media/libmedia中,多数是C++语言编写的。音频方面的硬件抽象层主要分为两部分,即AudioFlinger和AudioPolicyService,实际上后者并不是一个真实的设备,只是采用虚拟设备的方式来让厂商可以方便地定制出自己的策略。根据产品的不同,音频设备存在很大差异,在Android的音频架构中,这些问题都是由HAL层的audio.primary等来解决的,而不需要大规模地修改上层实现。硬件抽象层是应用框架层到驱动层的过渡,以实现底层硬件的兼容。驱动层按照音频编解码器的特性对其进行控制,确保音频编解码器可以正常工作,将音频编解码器获取到的音频数据提供给系统层。硬件系统包括扬声器和音频编解码器,扬声器用于播放音频数据控制音量大小,音频编解码器用于解析音频数据的格式,如MP3、WMA,负责音频可以正常播放。
图1b为本发明实施例提供的一种智能手机的音频处理硬件系统结构示意图。音频处理电路一般处于主控电路板中,由于不同手机的设计不同,音频处理电路的具体位置也可能不同。智能手机的音频处理电路主要包括音频信号处理电路、基带信号处理电路、音频功率放大器、耳机信号放大器、听筒、扬声器、麦克风及耳机接口等。其中,音频信号处理电路是整个音频处理电路的核心。音频处理电路主要由接收音频电路、送话电路、耳机通话电路等组成,包括模拟音频的模拟/数字(A/D)转换、数字/模拟(A/D)转换、数字语音信号处理及模拟音频放大电路等。
在通话时,首先通话本地端麦克风把声音的机械声波信号转化为模拟音频信号,通过模拟音频放大电路进行放大,经内部的多模转换器进行A/D转换,得到数字音频信号;其次把此数字音频信号送到基带处理器,进行语音编码、信道编码等处理;再次进行加密、交织等一系列处理;最后送到基带处理器中的数字窄带制调模块进行调制,产生发射基带信号送入射频电路调制成发射中频,发送给通话对方。在接听电话时,首先从射频电路解调出接收基带信息,送到基带处理器内部进行数字窄带解调,分离出控制信号和语音信号;其次把语音信号进行解密、去交织、重组等一系列处理,然后进行信道解码、语音解码;最后得到纯正数字语音信号,送入语音信号处理器中的多模转换器进行D/A转换;还原成模拟音频信号后,经过音频功率放大后推动听筒发声。若选择免 提受话,基带处理器则关闭听筒受话放大器,启动免提受话放大管(振铃放大管)工作,把音频信号功率放大后推动扬声器发声。
在录音时,与上述过程类似,首先由麦克风把声音的机械声波信号转化为模拟音频信号,通过模拟音频放大电路进行放大,经过A/D转换后得到数字音频信号,按照预设的音频格式进行编码及存储。在播放录音或其他音频文件时,将音频文件进行解码得到数字音频信号,经过D/A换后还原成模拟音频信号,把音频信号功率放大后推动扬声器发声。
本发明实施例中可预先在终端中存储预设音频文件,对该预设音频文件进行播放。预存音频文件以及预设音量等级可由设计人员根据实际情况进行选取,不同的声音播放器件对应的预设音频文件和/或预设音量等级可以不同,本发明实施例不做限定。麦克风采集的音频信号可以是上述的由机械声波信号转换而来的模拟音频信号,也可以是经过放大后的模拟音频信号,可根据两者的不同分别设置相应的下文中的预设条件,本发明实施例不作限定。为了方便终端与用户之间的交互,终端一般会向用户提供音量调节功能,用户可采用调节音量调节按钮或音量调节进度条等方式对终端播放声音的音量等级进行调整,而终端根据用户调整后的音量等级对需要播放的音频信号进行相应的放大处理,如功率放大,以满足用户的收听需求。不同的终端中对音量等级的划分策略可能不同,即具体的音量等级的总数量以及每个音量等级对应的音量大小都可能不同,本发明实施例不作限定。
图2给出了本发明实施例提供的一种移动终端的音量控制方法的流程图,本实施例的方法可以由移动终端的音量控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端一部分设置在所述移动终端的内部,本实施例提供的方法可适用于根据移动终端的工作状态对移动终端的各个应用程序的音频播放音量进行控制的情况。所述移动终端可以是智能手机、车载终端、平板电脑、台式电脑、笔记本、掌上电脑等设备。
如图2所示,本实施例提供的移动终端的音量控制方法包括以下步骤:
步骤101、确定移动终端的当前工作状态。
在某些实施方式中,所述确定移动终端的当前工作状态可以包括:定时监测移动终端的工作状态;或者,在检测到音频播放事件被触发时,确定移动终端的当前工作状态。其中,所述工作状态可以包括运行状态和待机状态,还可以包括工作性能参数状态,例如移动终端中央处理器(Central Processing Unit, CPU)的使用率、内存占用率和剩余电量等。
在本实施例中,可以定时监测移动终端的工作状态,每隔设定时间获取一次移动终端的当前工作状态,例如,每隔1秒钟获取一次。采用这种方式的好处是:工作状态获取方式简单易于实现。
还可以在检测到有音频播放事件被触发时,才获取移动终端的当前工作状态。例如,在接收到来电信号时,或者检测到用户作用于播放按键的触摸指令时,才获取移动终端的当前工作状态。采用这种方式的好处是:可以只有在触发音频播放事件时才去获取移动终端的工作状态,可以降低移动终端的功耗。
步骤102、根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量。
在移动终端处于不同的工作状态下,不同应用程序对音频播放音量的需求是不同的。例如,在移动终端当前处于运行状态下时,说明移动终端正在被用户使用或者密切关注,那么当前被用户使用的应用程序,例如音乐或者游戏等应用的音量可以大一些,而来电铃声或者闹铃等应用的音量可以小一些。又例如,在移动终端当前处于待机状态下时,说明用户没有密切关注移动终端,那么可将音乐或者游戏等应用的音量设置的小一些,而来电铃声或者闹铃等应用的音量设置的大一些。
步骤103、控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
在上述步骤102确定了当前工作状态下各个应用程序对应的播放音量之后,在目标应用程序需要播放音频时,根据该目标应用程序对应的播放音量进行音频的播放。可以先根据移动终端的工作状态来确定各个应用程序各自对应的音量,以在应用程序在该工作状态下需要播放音频时按照该应用程序对应的音量进行音频的播放;也可以在应用程序需要播放音频的情况下,在播放音频之前根据移动终端的当前工作状态来确定该应用程序所对应的音量,以按照该应用程序所对应的音量进行音频的播放。
本实施例提供的方法,通过确定移动终端的当前工作状态,根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量,控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放,可以根据移动终端的工作状态合理的控制各个应用程序的音频播放音量。
在上述实施例的基础上,还可以包括以下步骤:
步骤a1、获取移动终端的运动轨迹。
本实施例可通过移动终端的加速度传感器和陀螺仪来检测移动终端的运动轨迹。可以是用户持移动终端移动而使移动终端产生相应的运动轨迹。所述运动轨迹包括运动方向、运动速度和运动位移。
步骤a2、确定触发音频播放事件的当前应用程序。
示例性的,在来电响铃应用场景下,若检测到来电信号,则可确定触发音频播放事件的当前应用程序为电话;在音乐播放场景下,若检测到用户作用于播放按键的触摸指令时,可确定触发音频播放事件的当前应用程序为音乐播放器;在游戏运行场景下,若检测到背景声音或者人物角色声音被触发播放,可确定触发音频播放事件的当前应用程序为游戏。其中,所述当前应用程序为具体的某一个应用程序,例如,可确定音乐播放器为酷我音乐盒还是QQ音乐。
步骤a3、根据所述运动轨迹和所述当前应用程序,对所述当前应用程序的播放音量进行调节。
在移动终端中可预先存储各个应用程序下各自对应的运动轨迹和音量调节信息的预设对应关系表。其中,所述音量调节信息包括音量调节方向和音量调节大小。该步骤106可以包括:从所述预设对应关系表中查找所述当前应用程序下所述运动轨迹对应的音量调节信息;根据所述音量调节信息对所述当前应用程序的播放音量进行调节。示例性的,如下表1给出了本实施例提供的各个应用程序下各自对应的运动轨迹和音量调节信息的预设对应关系:
Figure PCTCN2017098178-appb-000001
在移动终端被置于手包中或者虚拟现眼镜中时,或者处于黑暗的环境中时, 用户不太方便去操作移动终端的音量键来控制移动终端的音量。那么,在这些应用场景下,可以通过移动终端的运动轨迹来实现移动终端的音量调节,提供了一种更加方便快捷的音量调整方式,而在不同的应用程序下可根据该应用的特点为应用程序预先设置移动终端的运动轨迹与音量调节的对应关系。
如上表1所示,在当前应用程序为闹钟时,若检测到移动终端的运动轨迹的运动方向为从上到下或者从下到上或者从左到右或者从右到左,运动速度为大于a米/秒,且运动位移为在所述运动方向上来回多次,那么可将闹铃的音量调节为静音。一般,现有手段是在闹钟响铃后需在移动终端的触摸屏上操作或者相应按键操作,才可以关闭闹铃,而本实施例通过检测移动终端的运动轨迹即可调节闹铃音量或者静音。在当前应用程序为音乐时,若移动终端的运动方向为从上到下,运动速度为大于a米/秒,且运动位移为从上到下一次,那么可将音乐的音量增大2个音量调节值。其中,a为可根据用户的需求进行设定,对于不同的当前使用用户也可设定不同的值,例如,a可以为0.5。所述音量调节值为移动终端中设置的最小单位调节音量,例如,每触发一次音量加/减的音量调节值。在应用程序为音乐或者游戏时,在不同的运动轨迹下,对应的音量调节信息类似,如表1,在此不再一一介绍。
进一步的,所述步骤105和步骤104的执行顺序可以调换,即先确定触发音频播放事件的当前应用程序,再获取移动终端的运动轨迹。例如,先确定触发音频播放事件的当前应用程序为闹铃,再获取移动终端的运动轨迹,并根据所述运动轨迹,对所述当前应用程序的播放音量进行调节。
图3给出了本发明实施例提供的另一种移动终端的音量控制方法的流程图,本实施例的方法可以由移动终端的音量控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端一部分设置在所述移动终端的内部,本实施例提供的方法可适用于在移动终端处于运行状态下时对移动终端的各个应用程序的音频播放音量进行控制的情况。
如图3所示,本实施例提供的移动终端的音量控制方法包括:
步骤201、确定移动终端的当前工作状态为运行状态。
在某些实施方式中,所述确定移动终端的当前工作状态为运行状态可以包括:若检测到移动终端当前存在处于运行状态的进程,则确定移动终端的当前工作状态为运行状态;或者,若检测到移动终端在设定时间内处于运动状态, 则确定移动终端的当前工作状态为运行状态。
用于确定移动终端处于运行状态的方式有很多种,例如可根据移动终端中央处理的使用率,内存占用率等来确定移动终端是否处于运行状态,在所述使用率或者内存占用率达到设定的比例时,即可确定移动终端处于运行状态。
还可以通过检测移动终端中当前是否存在正在运行的进程,若存在则确定移动终端处于运行状态。另外,还可以通过检测移动终端的运动状态,若移动终端在移动终端在设定时间内处于运动状态,则可确定移动终端处于运行状态。一般,用户在使用移动终端的过程中,不可避免的会产生一定的运动,而在没有使用移动终端的情况下,移动终端才处于相对静止的状态。由于移动终端的陀螺仪或者加速度传感器可以灵敏的感知移动终端的轻微运动,所以移动终端可以准确的感知移动终端的运动状态,在移动终端在设定时间内是处于运动状态的,那么说明用户在使用该移动终端,该移动终端处于运行状态中。通过移动终端的运动状态可以快速简便的获取到移动终端的工作状态。
步骤202、将预设的第一类应用程序的音频播放音量确定为第一播放音量。
步骤203、将预设的第二类应用程序的音频播放音量确定为第二播放音量。其中,所述第一播放音量小于所述第二播放音量。
在本实施例中,所述预设的第一类应用程序可以为电话、短信或者闹钟等应用程序,所述预设的第二类应用程序可以为音乐、视频或者游戏等。所述预设的第一类应用程序和第二类应用程序可以为预先存储在移动终端中的一个预设列表中,在确定了移动终端处于运行状态后,可从所述预设列表中获取预设的第一类应用程序或者预设的第二类应用程序,为所述预设的第一类应用程序或者预设的第二类应用程序设置其对应的播放音量。
一般移动终端在处于运行状态下时,用户是在密切关注和使用移动终端的,那对于电话铃声、短信铃声或者闹铃的声音是可以设置的小一些,这样设置的原因是:一方面可以防止在用户使用移动终端的过程中,被过大的电话铃声、短信铃声或者闹铃的通知声音吓到;另一方面,由于当前用户正在使用移动终端那么较小的通知声音也是可以达到通知用户的作用的,且可以降低移动终端的功耗。而对于用户在移动终端运行状态下操作的应用程序,例如音乐、视频或者游戏等应用程序则可以将播放音量设置的大一些。所以在本实施例中,确定了移动终端处于运行状态后,可将预设的第一类应用程序的音频播放音量确定为第一播放音量,可将预设的第二类应用程序的音频播放音量确定为第二播 放音量。其中,所述第一播放音量小于所述第二播放音量。示例性的,所述第二播放音量可以为移动终端当前的默认播放音量。
其中,所述预设的第一类应用程序和所述预设的第二类应用程序在不同的音频触发类型下可能是不同的,即对于某一个应用程序可根据其音频触发事件的触发类型,来确定该应用程序是属于预设的第一类应用程序还是第二类应用程序。例如,对于电话这个应用程序,若触发音频播放事件的触发类型为通知提示音类型,如来电铃声,那么在移动终端处于运行状态下时,可确定电话这个应用程序为预设的第一类应用程序,并确定其音频播放音量为较小的第一播放音量;若触发音频播放事件的触发类型为非通知提示音类型,如通话音量,那么在移动终端处于运行状态下时,可确定电话这个应用程序为预设的第二类应用程序,并确定其音频播放音量为较大的第二播放音量。其中,某个应用程序是属于预设第一类应用程序还是预设的第二类应用程序的确定方式可以包括:(1)预先设置一个预设列表,所述预设列表中包含该应用程序在不同音频播放事件触发类型下对应的所属预设类型(属于预设的第一类型应用程序或者预设的第二类应用程序)应用程序的条目,根据当前触发类型从所述预设列表中查找该应用程序所述的预设类型;(2)根据不同音频播放事件触发类型,预设设置多个预设子列表,每个预设子列表包含该应用程序在一种音频播放事件触发类型下对应的所属预设类型的条目,根据当前触发类型从对应的预设子列表中查找该应用程序所述的预设类型。
相应的,所述确定移动终端的当前工作状态为运行状态可以包括:在检测到音频播放事件被触发时,确定移动终端的当前工作状态为运行状态。所述根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量可以包括:根据音频播放事件触发类型,确定预设的第一类应用程序和预设的第二类应用程序;将预设的第一类应用程序的音频播放音量确定为第一播放音量;将预设的第二类应用程序的音频播放音量确定为第二播放音量;其中,所述第一播放音量小于所述第二播放音量。
步骤204、控制所述预设的第一类应用程序按照所述第一播放音量进行音频的播放,以及控制所述预设的第二类应用程序按照所述第二播放音量进行音频的播放。
在预设的第一类应用程序有待播放的音频需要播放时,则按照第一播放音量进行音频的播放,在预设的第二类应用程序有待播放的音频需要播放时,则 按照第二音量进行播放。例如,按照第一播放音量播放电话铃声、短信铃声或者闹钟铃声,按照第二播放音量播放音乐、视频或者游戏等。又例如,可按照第一播放音量播放电话铃声,按照第二播放音量播放通话内容。
本实施例提供的方法,通过在确定移动终端为运行状态后,将预设的第一类应用程序的音频播放音量确定为第一播放音量,将预设的第二类应用程序的音频播放音量确定为第二播放音量,并控制预设的第一类应用程序按照所述第一播放音量进行音频的播放,以及控制预设的第二类应用程序按照所述第二播放音量进行音频的播放,可以在移动终端处于运行状态时,根据应用程序的所属类型对应用程序的播放音量进行合理的控制。
图4给出了本发明实施例提供的另一种移动终端的音量控制方法的流程图,本实施例的方法可以由移动终端的音量控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端一部分设置在所述移动终端的内部,本实施例提供的方法可适用于在移动终端处于待机状态下时对移动终端的各个应用程序的音频播放音量进行控制的情况。
如图4所示,本实施例提供的移动终端的音量控制方法包括:
步骤301、确定移动终端的当前工作状态为待机状态。
在某些实施方式中,所述确定移动终端的工作状态为待机状态可以包括:在检测到移动终端的屏幕处于锁屏状态时,确定移动终端的当前工作状态为待机状态。其中,所述锁屏状态与亮屏状态可以等同,也可以不同,例如当移动终端处于锁屏状态时,所述移动终端可能是熄屏状态,也可能是亮屏状态。
可以注册一个广播接收者BroadcastReceiver,例如注册一个android.intent.action.SCREEN_OFF这样的广播接收者来监听移动终端的屏幕状态,在监听到屏幕的锁屏广播消息后,可确定移动终端的当前工作状态为待机状态。
在某些实施方式中,所述确定移动终端的工作状态为待机状态可以包括:若检测待移动终端在第二设定时间内处于静止状态,则确定移动终端的当前工作状态为待机状态。一般,用户在使用移动终端的过程中,不可避免的会产生一定的运动,而在没有使用移动终端的情况下,移动终端才处于相对静止的状态。移动终端可以准确的感知移动终端的运动状态,在移动终端在第二设定时间内是处于静止状态的,那么说明用户没有在使用该移动终端,该移动终端处 于静止状态中。通过移动终端的运动状态可以快速简便的获取到移动终端的工作状态。
步骤302、将预设的第一类应用程序的音频播放音量确定为第三播放音量。
步骤303、将预设的第二类应用程序的音频播放音量确定为第四播放音量。其中,所述三播放音量大于所述第四播放音量。
在本实施例中,所述预设的第一类应用程序可以为电话、短信或者闹钟等应用程序,所述预设的第二类应用程序可以为音乐、视频或者游戏等。所述预设的第一类应用程序和第二类应用程序可以为预先存储在移动终端中的一个预设列表中,在确定了移动终端处于待机状态后,可从所述预设列表中获取预设的第一类应用程序或者预设的第二类应用程序,为所述预设的第一类应用程序或者预设的第二类应用程序设置其对应的播放音量。
一般移动终端在处于待机状态下时,用户是没有密切关注和使用移动终端的,那么对于电话铃声、短信铃声或者闹铃的声音是可以设置的大一些,这样可以防止用户由于听不到通知声音而错过电话、短信或者闹铃等。而对于音乐、视频或者游戏等应用程序,由于用户当前并没有关注,例如在锁屏状态下,音乐还在播放中,那么可将该音乐应用程序的音量设置的小一些。所以,在本实施例中,确定了移动终端处于待机状态后,可将预设的第一类应用程序的音频播放音量确定为第三播放音量,可将预设的第二类应用程序的音频播放音量确定为第四播放音量。其中,所述第三播放音量大于所述第四播放音量。示例性的,所述第三播放音量可以大于移动终端的当前默认播放音量,所述第四播放音量可以小于移动终端的当前默认播放音量。
步骤304、控制所述预设的第一类应用程序按照所述第三播放音量进行音频的播放,以及控制所述预设的第二类应用程序按照所述第四播放音量进行音频的播放。
在预设的第一类应用程序有待播放的音频需要播放时,则按照第三播放音量进行音频的播放,在预设的第二类应用程序有待播放的音频需要播放时,则按照第四音量进行播放。例如,按照第三播放音量播放电话铃声、短信铃声或者闹钟铃声,按照第四播放音量播放音乐、视频或者游戏等。
本实施例提供的方法,通过在确定移动终端为待机状态后,将预设的第一类应用程序的音频播放音量确定为第三播放音量,将预设的第二类应用程序的音频播放音量确定为第四播放音量,并控制预设的第一类应用程序按照所述第 三播放音量进行音频的播放,以及控制预设的第二类应用程序按照所述第四播放音量进行音频的播放,可以在移动终端处于待机状态时,根据应用程序的所属类型对应用程序的播放音量进行合理的控制。
图5给出了本发明实施例提供的另一种移动终端的音量控制方法的流程图,本实施例的方法可以由移动终端的音量控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端一部分设置在所述移动终端的内部,本实施例提供的方法可适用于根据移动终端的当前工作性能参数状态对移动终端的各个应用程序的音频播放音量进行控制的情况。所述工作性能参数包括中央处理器的使用率、内存占用率和剩余电量中的至少一项。
如图5所示,本实施例提供的移动终端的音量控制方法包括:
步骤401、确定移动终端的当前工作性能参数状态。
其中,所述工作性能参数包括移动终端的中央处理器的使用率、内存占用率和剩余电量。
步骤402、根据所述当前工作性能参数状态,确定移动终端中各个应用程序的音频播放音量。
在移动终端的中央处理器使用率较低,或者移动终端的内存占用率较低或者移动终端的剩余电量较大时,可确定各个应用程序的音频播放音量为移动终端的当前默认播放音量或者各自对应的预设音量;在移动终端的中央处理器的使用率较高,或者移动终端的内存占用率较高或者移动终端的剩余电量较小时,可以将应用程序的音量降低。
步骤403、控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
可控制优先级较低的应用程序按照降低后的第五播放音量进行音频的播放。而优先级较高的应用程序按照降低后的第六播放音量进行非音频的播放,其中,第五播放音量小于第六播放音量。所述第六播放音量小于移动终端的当前默认播放音量。
在某些实施方式中,根据所述当前工作性能参数状态,确定移动终端中各个应用程序的音频播放音量可以包括:
步骤b1、确定所述当前工作性能参数状态达到设定状态。
其中,所述设定状态包括移动终端的中央处理器使用率大于设定使用率, 或者移动终端的内存占用率大于设定占用率,或者移动终端的剩余电量小于设定电量中的一项或者多项。所述设定使用率、设定占用率和设定电量可根据移动终端的性能或者移动终端当前所处的位置或者用户的需求进行设定。例如,所述设定使用率可以为80%,设定占用率可以为80%,设定电量可以为20%。
步骤b2、将预设的第三类应用程序的音频播放音量降低为第五播放音量。
示例性的,按照优先级由高到低的顺序对应用程序的排序可如下:电话>短信>闹钟>音乐>视频>游戏。
其中,所述预设的第三类应用程序可以为优先级较高的应用程序,例如电话、短信或者闹钟。
步骤b3、将预设的第四类应用程序的音频播放音量降低为第六播放音量。其中,所述第五播放音量小于第六播放音量。
其中,所述预设的第四类应用程序可以为优先级较低的应用程序,例如,音乐、视频或者游戏等。
本实施例提供的方法,通过获取移动终端的当前工作性能参数状态,根据所述当前工作性能参数状态,来确定移动终端中各个应用程序的音频播放音量,并控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放,可以根据移动终端的工作性能参数状态合理的控制各个应用程序的播放音量。
需要说明的是,本发明实施例中所提到的预设的第一类应用程序、第二类应用程序、第三类应用程序和第四类应用程序仅用于区别在不同情况下的不同类型的应用程序,并不用于限定移动终端中的所有应用程序被分为上述四类,也不用于限定绝对的类型分类,即四类应用程序中可以有交叉或者相同的应用程序。
图6给出了本发明实施例提供的一种移动终端的音量控制装置的结构示意图,该装置可由软件和/或硬件实现,集成在移动终端中。如图6所示,该移动终端的音量控制装置500包括当前工作状态确定模块51、音频播放音量确定模块52和音频播放控制模块53。
在所述装置500中,所述当前工作状态确定模块51,用于确定移动终端的当前工作状态。
在某些实施方式中,所述当前工作状态确定模块51确定移动终端的当前工作状态可以包括:定时监测移动终端的工作状态;或者,在检测到音频播放事 件被触发时,确定移动终端的当前工作状态。其中,所述工作状态可以包括运行状态和待机状态,还可以包括工作性能参数状态,例如移动终端中央处理器(Central Processing Unit,CPU)的使用率、内存占用率和剩余电量等。
在本实施例中,可以定时监测移动终端的工作状态,每隔设定时间获取一次移动终端的当前工作状态,例如,每隔1秒钟获取一次。采用这种方式的好处是:工作状态获取方式简单易于实现。
还可以在检测到有音频播放事件被触发时,才获取移动终端的当前工作状态。例如,在接收到来电信号时,或者检测到用户作用于播放按键的触摸指令时,才获取移动终端的当前工作状态。采用这种方式的好处是:可以只有在触发音频播放事件时才去获取移动终端的工作状态,可以降低移动终端的功耗。
在所述装置500中,所述音频播放音量确定模块52,用于根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量。
在移动终端处于不同的工作状态下,不同应用程序对音频播放音量的需求是不同的。例如,在移动终端当前处于运行状态下时,说明移动终端正在被用户使用或者密切关注,那么当前被用户使用的应用程序,例如音乐或者游戏等应用的音量可以大一些,而来电铃声或者闹铃等应用的音量可以小一些。又例如,在移动终端当前处于待机状态下时,说明用户没有密切关注移动终端,那么可将音乐或者游戏等应用的音量设置的小一些,而来电铃声或者闹铃等应用的音量设置的大一些。
在所述装置500中,所述音频播放控制模块53,用于控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
在音频播放音量确定模块52确定了当前工作状态下各个应用程序对应的播放音量之后,在目标应用程序需要播放音频时,音频播放控制模块53根据该目标应用程序对应的播放音量进行音频的播放。可以先根据移动终端的工作状态来确定各个应用程序各自对应的音量,以在应用程序在该工作状态下需要播放音频时按照该应用程序对应的音量进行音频的播放;也可以在应用程序需要播放音频的情况下,在播放音频之前根据移动终端的当前工作状态来确定该应用程序所对应的音量,以按照该应用程序所对应的音量进行音频的播放。
本实施例提供的装置,通过确定移动终端的当前工作状态,根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量,控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放,可以根据移动终端的工作状 态合理的控制各个应用程序的音频播放音量。
该装置500还可以包括运动轨迹获取模块54、当前应用程序确定模块55和播放音量调节模块56。
在本实施例中,所述运动轨迹获取模54,用于获取移动终端的运动轨迹。
在本实施例中,运动轨迹获取模54可通过移动终端的加速度传感器和陀螺仪来检测移动终端的运动轨迹。可以是用户持移动终端移动而使移动终端产生相应的运动轨迹。所述运动轨迹包括运动方向、运动速度和运动位移。
所述当前应用程序确定模块55,用于确定触发音频播放事件的当前应用程序。
示例性的,在来电响铃应用场景下,若当前应用程序确定模块55检测到来电信号,则可确定触发音频播放事件的当前应用程序为电话;在音乐播放场景下,若当前应用程序确定模块55检测到用户作用于播放按键的触摸指令时,可确定触发音频播放事件的当前应用程序为音乐播放器;在游戏运行场景下,若当前应用程序确定模块55检测到背景声音或者人物角色声音被触发播放,可确定触发音频播放事件的当前应用程序为游戏。其中,所述当前应用程序为具体的某一个应用程序,例如,可确定音乐播放器为酷我音乐盒还是QQ音乐。
所述播放音量调节模块56,用于根据所述运动轨迹信息和所述当前应用程序,对所述当前应用程序的播放音量进行调节。
在移动终端中可预先存储各个应用程序下各自对应的运动轨迹和音量调节信息的预设对应关系表。其中,所述音量调节信息包括音量调节方向和音量调节大小。该播放音量调节模块56可用于:从所述预设对应关系表中查找所述当前应用程序下所述运动轨迹对应的音量调节信息;根据所述音量调节信息对所述当前应用程序的播放音量进行调节。示例性的,如下表1给出了本实施例提供的各个应用程序下各自对应的运动轨迹和音量调节信息的预设对应关系:
Figure PCTCN2017098178-appb-000002
Figure PCTCN2017098178-appb-000003
在移动终端被置于手包中或者虚拟现眼镜中时,或者处于黑暗的环境中时,用户不太方便去操作移动终端的音量键来控制移动终端的音量。那么,在这些应用场景下,可以通过移动终端的运动轨迹来实现移动终端的音量调节,提供了一种更加方便快捷的音量调整方式,而在不同的应用程序下可根据该应用的特点为应用程序预先设置移动终端的运动轨迹与音量调节的对应关系。
如上表1所示,在当前应用程序为闹钟时,若播放音量调节模块56检测到移动终端的运动轨迹的运动方向为从上到下或者从下到上或者从左到右或者从右到左,运动速度为大于a米/秒,且运动位移为在所述运动方向上来回多次,那么可将闹铃的音量调节为静音。一般,现有手段是在闹钟响铃后需在移动终端的触摸屏上操作或者相应按键操作,才可以关闭闹铃,而本实施例通过检测移动终端的运动轨迹即可调节闹铃音量或者静音。在当前应用程序为音乐时,若播放音量调节模块56检测到移动终端的运动方向为从上到下,运动速度为大于a米/秒,且运动位移为从上到下一次,那么可将音乐的音量增大2个音量调节值。其中,a为可根据用户的需求进行设定,对于不同的当前使用用户也可设定不同的值,例如,a可以为0.5。所述音量调节值为移动终端中设置的最小单位调节音量,例如,每触发一次音量加/减的音量调节值。在应用程序为音乐或者游戏时,在不同的运动轨迹下,对应的音量调节信息类似,如表1,在此不再一一介绍。
进一步的,所述运动轨迹获取模块54和当前应用程序确定模块55的功能实现顺序可以调换,即先由当前应用程序确定模块55确定触发音频播放事件的当前应用程序,再由运动轨迹获取模块54获取移动终端的运动轨迹。例如,先当前应用程序确定模块55确定触发音频播放事件的当前应用程序为闹铃,再由运动轨迹获取模块54获取移动终端的运动轨迹,并根据所述运动轨迹,对所述当前应用程序的播放音量进行调节。
图7给出了本发明实施例提供的另一种移动终端的音量控制装置的结构示意图。该装置600包括当前工作状态确定模块61、音频播放音量确定模块62和音频播放控制模块63,所述音频播放音量确定模块62包括第一音频播放音量确定子模块621和第二音频播放音量确定子模块622。
在某些实施方式中,所述当前工作状态确定模块61具体用于:确定移动终端的当前工作状态为运行状态。
在某些实施方式中,所述当前工作状态确定模块61确定移动终端的当前工作状态为运行状态可以包括:若检测到移动终端当前存在处于运行状态的进程,则确定移动终端的当前工作状态为运行状态;或者,若检测到移动终端在设定时间内处于运动状态,则确定移动终端的当前工作状态为运行状态。
当前工作状态确定模块61用于确定移动终端处于运行状态的方式有很多种,例如可根据移动终端中央处理的使用率,内存占用率等来确定移动终端是否处于运行状态,在所述使用率或者内存占用率达到设定的比例时,即可确定移动终端处于运行状态。
当前工作状态确定模块61还可以通过检测移动终端中当前是否存在正在运行的进程,若存在则确定移动终端处于运行状态。另外,还可以通过检测移动终端的运动状态,若移动终端在移动终端在设定时间内处于运动状态,则可确定移动终端处于运行状态。一般,用户在使用移动终端的过程中,不可避免的会产生一定的运动,而在没有使用移动终端的情况下,移动终端才处于相对静止的状态。由于移动终端的陀螺仪或者加速度传感器可以灵敏的感知移动终端的轻微运动,所以移动终端可以准确的感知移动终端的运动状态,在移动终端在设定时间内是处于运动状态的,那么说明用户在使用该移动终端,该移动终端处于运行状态中。通过移动终端的运动状态可以快速简便的获取到移动终端的工作状态。
在所述装置600中,所述第一音频播放音量确定子模块621,用于将预设的第一类应用程序的音频播放音量确定为第一播放音量。
所述第二音频播放音量确定子模块622,用于将预设的第二类应用程序的音 频播放音量确定为第二播放音量。其中,所述第一播放音量小于所述第二播放音量。
在本实施例中,所述预设的第一类应用程序可以为电话、短信或者闹钟等应用程序,所述预设的第二类应用程序可以为音乐、视频或者游戏等。所述预设的第一类应用程序和第二类应用程序可以为预先存储在移动终端中的一个预设列表中,在当前工作状态确定模块61确定了移动终端处于运行状态后,第一音频播放音量确定子模块621可从所述预设列表中获取预设的第一类应用程序,为所述预设的第一类应用程序设置其对应的播放音量,第二音频播放音量确定子模块622可从所述预设列表中获取预设的第二类应用程序,为所述预设的第二类应用程序设置其对应的播放音量。
一般移动终端在处于运行状态下时,用户是在密切关注和使用移动终端的,那对于电话铃声、短信铃声或者闹铃的声音是可以设置的小一些,这样设置的原因是:一方面可以防止在用户使用移动终端的过程中,被过大的电话铃声、短信铃声或者闹铃的通知声音吓到;另一方面,由于当前用户正在使用移动终端那么较小的通知声音也是可以达到通知用户的作用的,且可以降低移动终端的功耗。而对于用户在移动终端运行状态下操作的应用程序,例如音乐、视频或者游戏等应用程序则可以将播放音量设置的大一些。所以在本实施例中,确定了移动终端处于运行状态后,可将预设的第一类应用程序的音频播放音量确定为第一播放音量,可将预设的第二类应用程序的音频播放音量确定为第二播放音量。其中,所述第一播放音量小于所述第二播放音量。示例性的,所述第二播放音量可以为移动终端当前的默认播放音量。
其中,所述预设的第一类应用程序和所述预设的第二类应用程序在不同的音频触发类型下可能是不同的,即对于某一个应用程序可根据其音频触发事件的触发类型,来确定该应用程序是属于预设的第一类应用程序还是第二类应用程序。例如,对于电话这个应用程序,若触发音频播放事件的触发类型为通知提示音类型,如来电铃声,那么在移动终端处于运行状态下时,可确定电话这个应用程序为预设的第一类应用程序,并确定其音频播放音量为较小的第一播放音量;若触发音频播放事件的触发类型为非通知提示音类型,如通话音量, 那么在移动终端处于运行状态下时,可确定电话这个应用程序为预设的第二类应用程序,并确定其音频播放音量为较大的第二播放音量。其中,某个应用程序是属于预设第一类应用程序还是预设的第二类应用程序的确定方式可以包括:(1)预先设置一个预设列表,所述预设列表中包含该应用程序在不同音频播放事件触发类型下对应的所属预设类型(属于预设的第一类型应用程序或者预设的第二类应用程序)应用程序的条目,根据当前触发类型从所述预设列表中查找该应用程序所述的预设类型;(2)根据不同音频播放事件触发类型,预设设置多个预设子列表,每个预设子列表包含该应用程序在一种音频播放事件触发类型下对应的所属预设类型的条目,根据当前触发类型从对应的预设子列表中查找该应用程序所述的预设类型。
相应的,所述当前工作状态确定模块61可用于:在检测到音频播放事件被触发时,确定移动终端的当前工作状态为运行状态。所述第一音频播放音量确定子模块621可用于:根据音频播放事件触发类型,确定预设的第一类应用程序;将预设的第一类应用程序的音频播放音量确定为第一播放音量;所述第二音频播放音量确定子模块621可用于:确定预设的第二类应用程序;将预设的第二类应用程序的音频播放音量确定为第二播放音量;其中,所述第一播放音量小于所述第二播放音量。
在所述装置600中,所述音频播放控制模块63,用于控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
在预设的第一类应用程序有待播放的音频需要播放时,则音频播放控制模块63按照第一播放音量进行音频的播放,在预设的第二类应用程序有待播放的音频需要播放时,则音频播放控制模块63按照第二音量进行播放。例如,按照第一播放音量播放电话铃声、短信铃声或者闹钟铃声,按照第二播放音量播放音乐、视频或者游戏等。又例如,可按照第一播放音量播放电话铃声,按照第二播放音量播放通话内容。
本实施例提供的装置,通过在确定移动终端为运行状态后,将预设的第一类应用程序的音频播放音量确定为第一播放音量,将预设的第二类应用程序的音频播放音量确定为第二播放音量,并控制预设的第一类应用程序按照所述第 一播放音量进行音频的播放,以及控制预设的第二类应用程序按照所述第二播放音量进行音频的播放,可以在移动终端处于运行状态时,根据应用程序的所属类型对应用程序的播放音量进行合理的控制。
图8给出了本发明实施例提供的另一种移动终端的音量控制装置的结构示意图。该装置700包括当前工作状态确定模块71、音频播放音量确定模块72和音频播放控制模块73,其中,所述音频播放音量确定模块72包括第三音频播放音量确定子模块721、第四音频播放音量确定子模块722。
在某些实施方式中,所述当前工作状态确定模块71具体用于:确定移动终端的当前工作状态为待机状态。
在某些实施方式中,所述当前工作状态确定模块71确定移动终端的工作状态为待机状态可以包括:在检测到移动终端的屏幕处于锁屏状态时,确定移动终端的当前工作状态为待机状态。其中,所述锁屏状态与亮屏状态可以等同,也可以不同,例如当移动终端处于锁屏状态时,所述移动终端可能是熄屏状态,也可能是亮屏状态。
可以注册一个广播接收者BroadcastReceiver,例如注册一个android.intent.action.SCREEN_OFF这样的广播接收者来监听移动终端的屏幕状态,在监听到屏幕的锁屏广播消息后,可确定移动终端的当前工作状态为待机状态。
在某些实施方式中,所述当前工作状态确定模块71可用于:若检测待移动终端在第二设定时间内处于静止状态,则确定移动终端的当前工作状态为待机状态。一般,用户在使用移动终端的过程中,不可避免的会产生一定的运动,而在没有使用移动终端的情况下,移动终端才处于相对静止的状态。移动终端可以准确的感知移动终端的运动状态,在移动终端在第二设定时间内是处于静止状态的,那么说明用户没有在使用该移动终端,该移动终端处于静止状态中。通过移动终端的运动状态可以快速简便的获取到移动终端的工作状态。
在所述装置700中,所述第三音频播放音量确定子模块721,用于将预设的第一类应用程序的音频播放音量确定为第三播放音量。
在所述装置700中,所述第四音频播放音量确定子模块722,用于将预设的第二类应用程序的音频播放音量确定为第四播放音量;其中,所述三播放音量大于所述第四播放音量。
在本实施例中,所述预设的第一类应用程序可以为电话、短信或者闹钟等应用程序,所述预设的第二类应用程序可以为音乐、视频或者游戏等。所述预设的第一类应用程序和第二类应用程序可以为预先存储在移动终端中的一个预设列表中,在当前工作状态确定模块71确定了移动终端处于待机状态后,第三音频播放音量确定子模块721可从所述预设列表中获取预设的第一类应用程序,为所述预设的第一类应用程序设置其对应的播放音量,所述第四音频播放音量确定子模块722可从所述预设列表中获取预设的第二类应用程序,为所述预设的第二类应用程序设置其对应的播放音量。
一般移动终端在处于待机状态下时,用户是没有密切关注和使用移动终端的,那么对于电话铃声、短信铃声或者闹铃的声音是可以设置的大一些,这样可以防止用户由于听不到通知声音而错过电话、短信或者闹铃等。而对于音乐、视频或者游戏等应用程序,由于用户当前并没有关注,例如在锁屏状态下,音乐还在播放中,那么可将该音乐应用程序的音量设置的小一些。所以,在本实施例中,当前工作状态确定模块71确定了移动终端处于待机状态后,第三音频播放音量确定子模块721可将预设的第一类应用程序的音频播放音量确定为第三播放音量,第四音频播放音量确定子模块722可将预设的第二类应用程序的音频播放音量确定为第四播放音量。其中,所述第三播放音量大于所述第四播放音量。示例性的,所述第三播放音量可以大于移动终端的当前默认播放音量,所述第四播放音量可以小于移动终端的当前默认播放音量。
在所述装置700中,所述音频播放控制模块73,用于控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
在预设的第一类应用程序有待播放的音频需要播放时,则音频播放控制模块73按照第三播放音量进行音频的播放,在预设的第二类应用程序有待播放的音频需要播放时,则音频播放控制模块73按照第四音量进行播放。例如,按照第三播放音量播放电话铃声、短信铃声或者闹钟铃声,按照第四播放音量播放 音乐、视频或者游戏等。
本实施例提供的装置,通过在确定移动终端为待机状态后,将预设的第一类应用程序的音频播放音量确定为第三播放音量,将预设的第二类应用程序的音频播放音量确定为第四播放音量,并控制预设的第一类应用程序按照所述第三播放音量进行音频的播放,以及控制预设的第二类应用程序按照所述第四播放音量进行音频的播放,可以在移动终端处于待机状态时,根据应用程序的所属类型对应用程序的播放音量进行合理的控制。
图9给出了本发明实施例提供的另一种移动终端的音量控制装置的结构示意图。该装置800包括当前工作状态确定模块81、音频播放音量确定模块82和音频播放控制模块83,其中,所述音频播放音量确定模块82包括设定状态确定子模块821、第五音频播放音量确定子模块822和第六音频播放音量确定子模块823。
在某些实施方式中,所述当前工作状态确定模块81具体用于:确定移动终端的当前工作性能参数状态,所述工作性能参数包括中央处理器的使用率、内存占用率和剩余电量。
在某些实施方式中,所述音频播放音量确定模块82具体用于:根据所述当前工作性能参数状态,确定移动终端中各个应用程序的音频播放音量。
在移动终端的中央处理器使用率较低,或者移动终端的内存占用率较低或者移动终端的剩余电量较大时,音频播放音量确定模块82可确定各个应用程序的音频播放音量为移动终端的当前默认播放音量或者各自对应的预设音量;在移动终端的中央处理器的使用率较高,或者移动终端的内存占用率较高或者移动终端的剩余电量较小时,音频播放音量确定模块82可以将应用程序的音量降低。
在所述装置800中,所述音频播放控制模块83,用于控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
音频播放控制模块83可控制优先级较低的应用程序按照降低后的第五播放音量进行音频的播放。而优先级较高的应用程序按照降低后的第六播放音量进 行非音频的播放,其中,第五播放音量小于第六播放音量。所述第六播放音量小于移动终端的当前默认播放音量。
在某些实施方式中,所述设定状态确定子模块821,用于确定所述当前工作性能参数状态达到设定状态。
其中,所述设定状态包括移动终端的中央处理器使用率大于设定使用率,或者移动终端的内存占用率大于设定占用率,或者移动终端的剩余电量小于设定电量中的一项或者多项。所述设定使用率、设定占用率和设定电量可根据移动终端的性能或者移动终端当前所处的位置或者用户的需求进行设定。例如,所述设定使用率可以为80%,设定占用率可以为80%,设定电量可以为20%。
所述第五音频播放音量确定子模块822,用于将预设的第三类应用程序的音频播放音量降低为第五播放音量。
示例性的,按照优先级由高到低的顺序对应用程序的排序可如下:电话>短信>闹钟>音乐>视频>游戏。
其中,所述预设的第三类应用程序可以为优先级较高的应用程序,例如电话、短信或者闹钟。
所述第六音频播放音量确定子模块823,用于将预设的第四类应用程序的音频播放音量降低为第六播放音量;其中,所述第五播放音量小于第六播放音量。
其中,所述预设的第四类应用程序可以为优先级较低的应用程序,例如,音乐、视频或者游戏等。
本实施例提供的装置,通过获取移动终端的当前工作性能参数状态,根据所述当前工作性能参数状态,来确定移动终端中各个应用程序的音频播放音量,并控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放,可以根据移动终端的工作性能参数状态合理的控制各个应用程序的播放音量。
需要说明的是,本发明实施例中所提到的预设的第一类应用程序、第二类应用程序、第三类应用程序和第四类应用程序仅用于区别在不同情况下的不同类型的应用程序,并不用于限定移动终端中的所有应用程序被分为上述四类,也不用于限定绝对的类型分类,即四类应用程序中可以有交叉或者相同的应用程序。
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。
本发明实施例还提供一种包含计算机可执行指令的存储介质,其计算机可执行指令可执行上述任一实施例中的移动终端的音量控制方法,比如:确定移动终端的当前工作状态;根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量;控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
本发明实施例提供了一种移动终端,该移动终端可以包括本发明任意实施例提供的移动终端的音量控制装置。图10为本发明实施例提供的一种移动终端的结构示意图,如图10所示,该移动终端可以包括:存储器901、中央处理器(Central Processing Unit,CPU)902(又称处理器,以下简称CPU)、所述存储器901,用于存储可执行程序代码;所述处理器902通过读取所述存储器901中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:确定移动终端的当前工作状态;根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量;控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
所述移动终端还包括:外设接口903、RF(Radio Frequency,射频)电路905、音频电路906、扬声器911、电源管理芯片908、输入/输出(I/O)子系统909、触摸屏912、其他输入/控制设备910以及外部端口904,这些部件通过一 个或多个通信总线或信号线907来通信。
应该理解的是,图示移动终端900仅仅是移动终端的一个范例,并且移动终端600可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的用于控制播放音量的移动终端进行详细的描述,该移动终端以手机为例。
存储器901,所述存储器901可以被CPU902、外设接口903等访问,所述存储器901可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口903,所述外设接口903可以将设备的输入和输出外设连接到CPU502和存储器901。
I/O子系统909,所述I/O子系统909可以将设备上的输入输出外设,例如触摸屏912和其他输入/控制设备910,连接到外设接口903。I/O子系统909可以包括显示控制器9091和用于控制其他输入/控制设备910的一个或多个输入控制器9092。其中,一个或多个输入控制器9092从其他输入/控制设备910接收电信号或者向其他输入/控制设备910发送电信号,其他输入/控制设备910可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器9092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触摸屏912,所述触摸屏912是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。
I/O子系统909中的显示控制器9091从触摸屏912接收电信号或者向触摸屏912发送电信号。触摸屏912检测触摸屏上的接触,显示控制器9091将检测到的接触转换为与显示在触摸屏912上的用户界面对象的交互,即实现人机交互,显示在触摸屏912上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出 的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路905,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路905接收并发送RF信号,RF信号也称为电磁信号,RF电路905将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路905可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。
音频电路906,主要用于从外设接口903接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器911。
扬声器911,用于将手机通过RF电路905从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片908,用于为CPU902、I/O子系统及外设接口903所连接的硬件进行供电及电源管理。
上述移动终端可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块,本实施例提供的移动终端,通过确定移动终端的当前工作状态,根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量,控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放,可以根据移动终端的工作状态合理的控制各个应用程序的音频播放音量。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对本发明实施例的所述音量控制方法而言,本领域普通测试人员可以理解实现本发明实施例所述音量控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在移动终端的存储器中,并被该移动终端内的至少一个处理器执行,在执行过程中可包括如所述音量控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。
对本发明实施例的所述音量控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
以上对本发明实施例所提供的一种音量控制方法、装置、存储介质及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种移动终端的音量控制方法,其中,包括:
    确定移动终端的当前工作状态;
    根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量;
    控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
  2. 根据权利要求1所述的方法,其中,所述确定移动终端的当前工作状态包括:
    定时监测移动终端的工作状态;或者,
    在检测到音频播放事件被触发时,确定移动终端的当前工作状态。
  3. 根据权利要求1所述的方法,其中,所述确定移动终端的当前工作状态包括:
    确定移动终端的当前工作状态为运行状态;
    所述根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量包括:
    将预设的第一类应用程序的音频播放音量确定为第一播放音量;
    将预设的第二类应用程序的音频播放音量确定为第二播放音量;
    其中,所述第一播放音量小于所述第二播放音量。
  4. 根据权利要求1所述的方法,其中,所述确定移动终端的当前工作状态包括:
    确定移动终端的当前工作状态为待机状态;
    所述根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量包括:
    将预设的第一类应用程序的音频播放音量确定为第三播放音量;
    将预设的第二类应用程序的音频播放音量确定为第四播放音量;
    其中,所述三播放音量大于所述第四播放音量。
  5. 根据权利要求3所述的方法,其中,所述确定移动终端的当前工作状态为运行状态包括:
    若检测到移动终端当前存在处于运行状态的进程,则确定移动终端的当前工作状态为运行状态;或者,
    若检测到移动终端在设定时间内处于运动状态,则确定移动终端的当前工作状态为运行状态。
  6. 根据权利要求4所述的方法,其中,所述确定移动终端的工作状态为待 机状态包括:
    在检测到移动终端的屏幕处于锁屏状态时,确定移动终端的当前工作状态为待机状态。
  7. 根据权利要求1所述的方法,其中,还包括:
    获取移动终端的运动轨迹;
    确定触发音频播放事件的当前应用程序;
    根据所述运动轨迹和所述当前应用程序,对所述当前应用程序的播放音量进行调节。
  8. 根据权利要求1所述的方法,其中,所述确定移动终端的当前工作状态包括:
    确定移动终端的当前工作性能参数状态,所述工作性能参数包括中央处理器的使用率、内存占用率和剩余电量中的至少一项;
    所述根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量包括:
    根据所述当前工作性能参数状态,确定移动终端中各个应用程序的音频播放音量。
  9. 根据权利要求8所述的方法,其中,根据所述当前工作性能参数状态,确定移动终端中各个应用程序的音频播放音量包括:
    确定所述当前工作性能参数状态达到设定状态;
    将预设的第三类应用程序的音频播放音量降低为第五播放音量;
    将预设的第四类应用程序的音频播放音量降低为第六播放音量;
    其中,所述第五播放音量小于第六播放音量。
  10. 一种移动终端的音量控制装置,其中,包括:
    当前工作状态确定模块,用于确定移动终端的当前工作状态;
    音频播放音量确定模块,用于根据所述当前工作状态确定移动终端中各个应用程序的音频播放音量;
    音频播放控制模块,用于控制所述各个应用程序按照各自对应的音频播放音量进行音频的播放。
  11. 根据权利要求10所述的装置,其中,所述当前工作状态确定模块用于:
    定时监测移动终端的工作状态;或者,
    在检测到音频播放事件被触发时,确定移动终端的当前工作状态。
  12. 根据权利要求10所述的装置,其中,所述当前工作状态确定模块具体用于:
    确定移动终端的当前工作状态为运行状态;
    所述音频播放音量确定模块包括:
    第一音频播放音量确定子模块,用于将预设的第一类应用程序的音频播放音量确定为第一播放音量;
    第二音频播放音量确定子模块,用于将预设的第二类应用程序的音频播放音量确定为第二播放音量;
    其中,所述第一播放音量小于所述第二播放音量。
  13. 根据权利要求10所述的装置,其中,所述当前工作状态确定模块具体用于:
    确定移动终端的当前工作状态为待机状态;
    所述音频播放音量确定模块具体用于:
    第三音频播放音量确定子模块,用于将预设的第一类应用程序的音频播放音量确定为第三播放音量;
    第四音频播放音量确定子模块,用于将预设的第二类应用程序的音频播放音量确定为第四播放音量;
    其中,所述三播放音量大于所述第四播放音量。
  14. 根据权利要求12所述的装置,其中,所述当前工作状态确定模块确定移动终端的当前工作状态为运行状态包括:
    若检测到移动终端当前存在处于运行状态的进程,则确定移动终端的当前工作状态为运行状态;或者,
    若检测到移动终端在设定时间内处于运动状态,则确定移动终端的当前工作状态为运行状态。
  15. 根据权利要求13所述的装置,其中,所述当前工作状态确定模块确定移动终端的工作状态为待机状态包括:
    在检测到移动终端的屏幕处于锁屏状态时,确定移动终端的当前工作状态为待机状态。
  16. 根据权利要求10所述的装置,其中,还包括:
    运动轨迹获取模块,用于获取移动终端的运动轨迹;
    当前应用程序确定模块,用于确定触发音频播放事件的当前应用程序;
    播放音量调节模块,用于根据所述运动轨迹信息和所述当前应用程序,对所述当前应用程序的播放音量进行调节。
  17. 根据权利要求10所述的装置,其中,所述当前工作状态确定模块具体用于:
    确定移动终端的当前工作性能参数状态,所述工作性能参数包括中央处理器的使用率、内存占用率和剩余电量;
    所述音频播放音量确定模块具体用于:
    根据所述当前工作性能参数状态,确定移动终端中各个应用程序的音频播放音量。
  18. 根据权利要求17所述的装置,其中,所述音频播放音量确定模块包括:
    设定状态确定子模块,用于确定所述当前工作性能参数状态达到设定状态;
    第五音频播放音量确定子模块,用于将预设的第三类应用程序的音频播放音量降低为第五播放音量;
    第六音频播放音量确定子模块,用于将预设的第四类应用程序的音频播放音量降低为第六播放音量;
    其中,所述第五播放音量小于第六播放音量。
  19. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-9中任一所述的移动终端的音量控制方法。
  20. 一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1-9中任一所述的移动终端的音量控制方法。
PCT/CN2017/098178 2017-08-18 2017-08-18 移动终端的音量控制方法、装置及存储介质和移动终端 WO2019033442A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780091845.8A CN110730946B (zh) 2017-08-18 2017-08-18 移动终端的音量控制方法、装置及存储介质和移动终端
PCT/CN2017/098178 WO2019033442A1 (zh) 2017-08-18 2017-08-18 移动终端的音量控制方法、装置及存储介质和移动终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098178 WO2019033442A1 (zh) 2017-08-18 2017-08-18 移动终端的音量控制方法、装置及存储介质和移动终端

Publications (1)

Publication Number Publication Date
WO2019033442A1 true WO2019033442A1 (zh) 2019-02-21

Family

ID=65362693

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098178 WO2019033442A1 (zh) 2017-08-18 2017-08-18 移动终端的音量控制方法、装置及存储介质和移动终端

Country Status (2)

Country Link
CN (1) CN110730946B (zh)
WO (1) WO2019033442A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032437A (zh) * 2023-07-12 2023-11-10 荣耀终端有限公司 一种音频播放方法及电子设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181349A (zh) * 2020-09-16 2021-01-05 西安闻泰电子科技有限公司 音量调节方法及装置、电子设备、存储介质
CN114374767A (zh) * 2022-01-17 2022-04-19 Oppo广东移动通信有限公司 音量调节方法、音量调节装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938819A (zh) * 2012-11-29 2013-02-20 上海斐讯数据通信技术有限公司 移动终端音乐控制系统及方法
CN103677703A (zh) * 2012-09-18 2014-03-26 联想(北京)有限公司 电子设备及其音量调节方法
CN103902010A (zh) * 2012-12-26 2014-07-02 联想(北京)有限公司 一种降低功耗的方法及电子设备
CN106487982A (zh) * 2015-09-02 2017-03-08 深迪半导体(上海)有限公司 移动终端及其音量的调节方法和调节装置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7861008B2 (en) * 2007-06-28 2010-12-28 Apple Inc. Media management and routing within an electronic device
JP5389214B2 (ja) * 2012-03-30 2014-01-15 株式会社東芝 音量制御装置
CN103079013A (zh) * 2013-01-17 2013-05-01 广东欧珀移动通信有限公司 一种移动终端的应用操作方法、装置及移动终端
CN104571499A (zh) * 2014-12-11 2015-04-29 深圳市金立通信设备有限公司 一种控制终端的方法及终端
CN104902058A (zh) * 2015-05-21 2015-09-09 中国联合网络通信集团有限公司 来电提醒设置方法及装置
KR20160138726A (ko) * 2015-05-26 2016-12-06 삼성전자주식회사 전자 기기 및 그의 볼륨 제어 방법
CN106331294A (zh) * 2015-06-30 2017-01-11 上海卓易科技股份有限公司 一种用于运动的移动终端及其音量自动调节方法
CN105491459A (zh) * 2015-11-24 2016-04-13 深圳Tcl数字技术有限公司 终端电量信息提示方法和装置
CN105872207A (zh) * 2016-03-21 2016-08-17 乐视网信息技术(北京)股份有限公司 通信终端及其事件提示方法
CN106131300A (zh) * 2016-06-13 2016-11-16 百度在线网络技术(北京)有限公司 终端设备控制方法和装置
CN106125880A (zh) * 2016-06-14 2016-11-16 乐视控股(北京)有限公司 一种智能终端的音量控制方法和装置、以及存储介质
CN106126179B (zh) * 2016-06-24 2020-11-20 联想(北京)有限公司 一种信息处理方法和电子设备
CN106161784B (zh) * 2016-06-27 2020-09-11 乐融致新电子科技(天津)有限公司 信息处理方法及装置
CN106254688A (zh) * 2016-09-26 2016-12-21 广东小天才科技有限公司 一种移动终端的铃声调整方法及移动终端
CN106791099A (zh) * 2016-12-21 2017-05-31 珠海市魅族科技有限公司 音量调节装置及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677703A (zh) * 2012-09-18 2014-03-26 联想(北京)有限公司 电子设备及其音量调节方法
CN102938819A (zh) * 2012-11-29 2013-02-20 上海斐讯数据通信技术有限公司 移动终端音乐控制系统及方法
CN103902010A (zh) * 2012-12-26 2014-07-02 联想(北京)有限公司 一种降低功耗的方法及电子设备
CN106487982A (zh) * 2015-09-02 2017-03-08 深迪半导体(上海)有限公司 移动终端及其音量的调节方法和调节装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032437A (zh) * 2023-07-12 2023-11-10 荣耀终端有限公司 一种音频播放方法及电子设备

Also Published As

Publication number Publication date
CN110730946B (zh) 2023-08-25
CN110730946A (zh) 2020-01-24

Similar Documents

Publication Publication Date Title
CN107562405B (zh) 音频播放控制方法、装置及存储介质和移动终端
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CA2740581C (en) System and method for resuming media
JP2023508419A (ja) 画面表示方法及び電子デバイス
US20100131749A1 (en) Apparatus and method for controlling operating mode of mobile terminal
WO2019033986A1 (zh) 声音播放器件的检测方法、装置、存储介质及终端
CN107506167B (zh) 移动终端的音量控制方法、装置及存储介质和移动终端
WO2019033987A1 (zh) 提示方法、装置、存储介质及终端
CN107770759B (zh) 蓝牙语音链路的建立方法、装置、存储介质及移动终端
CN107371102B (zh) 音频播放音量的控制方法、装置及存储介质和移动终端
US11201598B2 (en) Volume adjusting method and mobile terminal
CN107483735A (zh) 移动终端的音量控制方法、装置及存储介质和移动终端
CN110730946B (zh) 移动终端的音量控制方法、装置及存储介质和移动终端
CN112394901A (zh) 音频输出模式调整方法、装置及电子设备
CN108769401B (zh) 信号检测方法及相关产品
CN110175015B (zh) 一种控制终端设备的音量的方法、装置及终端设备
US20150208218A1 (en) Method and apparatus for performing call switching
WO2019033436A1 (zh) 音量调节方法、装置、存储介质及移动终端
CN110392878B (zh) 一种控制声音的方法及移动终端
CN106293607B (zh) 自动切换音频输出模式的方法及系统
CN115643339A (zh) 调节音量的方法、电子设备及计算机可读存储介质
US8249584B2 (en) Portable electronic device with controllers
US20090240842A1 (en) Portable electronic apparatus
CN107391733B (zh) 音乐文件快速分组方法、音乐文件快速分组装置及终端
WO2019033434A1 (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: 17921635

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

Country of ref document: EP

Kind code of ref document: A1