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

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

Info

Publication number
WO2019033434A1
WO2019033434A1 PCT/CN2017/098167 CN2017098167W WO2019033434A1 WO 2019033434 A1 WO2019033434 A1 WO 2019033434A1 CN 2017098167 W CN2017098167 W CN 2017098167W WO 2019033434 A1 WO2019033434 A1 WO 2019033434A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
application
priority
sound
determining
Prior art date
Application number
PCT/CN2017/098167
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 PCT/CN2017/098167 priority Critical patent/WO2019033434A1/zh
Priority to CN201780091849.6A priority patent/CN110730947A/zh
Publication of WO2019033434A1 publication Critical patent/WO2019033434A1/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

Definitions

  • Embodiments of the present invention relate to the field of volume control technologies, and in particular, to a volume control method, apparatus, storage medium, and mobile terminal.
  • the functions of mobile terminals are becoming more and more abundant, and more and more intelligent, and various sound playing softwares (such as music and vocal reading software) have emerged.
  • various sound playing softwares such as music and vocal reading software
  • the user needs to adopt different control modes for the volume of the mobile terminal with different volume.
  • the existing volume control mode has defects and needs to be improved.
  • Embodiments of the present invention provide a volume control method, apparatus, storage medium, and mobile terminal, which can optimize a volume control scheme.
  • an embodiment of the present invention provides a volume control method, including:
  • the sound output volume of the application is controlled according to the volume priority.
  • an embodiment of the present invention provides a volume control apparatus, including:
  • An application determining module configured to determine an application that outputs a sound when a sound output event is detected to be triggered
  • a running status determining module configured to determine an operating state of the application
  • a volume priority determining module configured to determine a volume priority of the application according to an operating state of the application
  • an output volume control module configured to control a sound output volume of the application according to the volume priority.
  • 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 according to the embodiment of the present invention is implemented.
  • an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor, where the processor executes the computer program to implement the implementation of the present invention.
  • a mobile terminal including a memory, a processor, and a computer program stored in the memory and operable on the processor, where the processor executes the computer program to implement the implementation of the present invention.
  • the volume control scheme provided in the embodiment of the present invention determines an application for outputting a sound by detecting a sound output event, and determines a volume priority of the application according to an operating state of the application, thereby controlling the application.
  • the sound output volume By adopting the above technical solution, the effect of automatic control of the sound output volume of the mobile terminal application can be achieved.
  • FIG. 1 is a schematic flowchart diagram of a volume control method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another volume control method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of another volume control method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart diagram of another volume control method according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a volume control apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of a volume control method according to an embodiment of the present invention.
  • the method may be implemented by a volume control device, where the device may be implemented by software and/or hardware, and may be integrated into a mobile terminal.
  • the method includes:
  • the sound output event is triggered, and the system may detect that there is an incoming call, a short message, or an application sound, and, for example, when the WeChat receives the other party's voice, the user's tap operation is also a trigger event, such as when the alarm is set.
  • the time is 7:00
  • the system time can be changed to 7:00, which can also be a trigger event, and so on.
  • the system determines the application when it detects that a program needs to use a sounding device or needs to output a sound.
  • the output sound can be used in the system's speakers, external headphones, external speakers and other external devices.
  • the detection method of the sound output trigger event can be detected by a CPU or other microcontroller and a microprocessor by detecting a bus or a broadcast message.
  • the application that is included in the system may also be determined as an application that outputs a sound if a sound output trigger event is detected.
  • the running state of the application can include the foreground running state, the background running state, and the non-running state. You can determine the running state of your application by looking at the caching process.
  • the foreground running state may include an operating state when the program monopolizes the screen in the foreground. When the user clicks the home button, the system interface monopolizes the screen foreground. In this case, it may be considered as a foreground running state, or may be According to the user settings, it is defined as the foreground running status or defined as the background running status.
  • the application in the foreground running state switches to the background running state
  • the application can be obtained according to the broadcast information inside the reading system, the reading system, the viewing of the cache process, and the sending of the switching information to the control component when the switching occurs.
  • Running status switching information The control component may be a CPU or other microcontroller and a microprocessor as described above.
  • the volume priority may include two levels, or may include three or more levels. If it contains two levels, it can be that the foreground running state and the background running state are respectively two different levels. If it contains three or more levels, the application can be run in the foreground as a priority. The program runs in the background, according to the time it switches to the background, or according to other data, it is determined to be a different priority. level.
  • the volume priority may be a set of coefficients, such as 1.2, 1.0, 0.8, 0.6, and 0.4, etc., which are the first, second, third, fourth, and fifth priorities of the volume priority, respectively.
  • coefficients such as 1.2, 1.0, 0.8, 0.6, and 0.4, etc.
  • an application's current volume priority is the first priority
  • its current volume is multiplied by 1.2 times for output, such as If the current volume priority of the application is the third volume priority, the current volume is multiplied by 0.8 times for output.
  • the volume priority may be a set of volume adjustment parameters, such as +0 level, -1 level, -2 level, -3 level, and -4 level, etc., respectively, the first and the first of the volume priority Second, third, fourth and fifth priority.
  • volume adjustment parameters such as +0 level, -1 level, -2 level, -3 level, and -4 level, etc., respectively, the first and the first of the volume priority Second, third, fourth and fifth priority.
  • the embodiment of the present invention uses only the above two volume priority levels as an example, but specifically, the number of volume priorities and the volume adjustment parameters of each volume priority are not limited.
  • control application After determining the volume priority of the application, the control application performs sound output in accordance with the volume priority.
  • the output of the application is 10 levels.
  • the output of the application is The volume level is 8 levels; if the volume priority parameter of the volume priority is adjusted according to the second example above, the output volume level of the application is 8 levels.
  • the volume control scheme provided in the embodiment of the present invention determines an application for outputting a sound by detecting a sound output event, and determines a volume priority of the application according to an operating state of the application, thereby controlling the application.
  • the sound output volume By adopting the above technical solution, the effect of automatic control of the sound output volume of the mobile terminal application can be achieved.
  • determining the volume priority of the application according to the running state of the application including: determining the program when the running state of the application is running in the foreground
  • the volume priority is the first priority; when the running state of the application is running in the background, the volume priority of the program is determined to be the second priority.
  • the technical solution is set to the first priority and the second priority respectively for the running state of the application is the foreground running state or the background running state.
  • the first level, and the first priority is greater than the second priority.
  • the priority of other applications running in the background is the second priority, so that a kind of The effect of displaying and volume simultaneously is preferred to meet the user's need for volume control for mobile terminals.
  • FIG. 2 is a schematic flowchart of another volume control method according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • the attributes of the application may include a system class, a music playing class, a map class, and a communication class, and the preset attribute may be one of or a plurality of types.
  • the preset attribute includes a map class attribute. Since the functions of users using mobile terminals are more and more at this stage, it is more and more common to use the map application of the mobile terminal for navigation. Therefore, when the user navigates with the mobile terminal, the navigation prompt sound is that the user most needs the sound, and the control thereof can facilitate the user to use the mobile terminal for navigation, and improve the user experience.
  • the volume of the sound that the application needs to output needs to take into account the attribute of the application, so in the process of determining the priority of the volume, the application is also combined.
  • the attribute of the program if the attribute of the application satisfies the preset attribute, determining the volume priority of the program according to the running state of the program and the attribute of the program.
  • the current volume priority of an application is the third priority, and the currently set volume level of the program is 10, if the volume adjustment parameter of the volume priority is adjusted according to the first or second example above. , the application's output volume level is 8 levels.
  • the application is a map type application, it is directly determined as the first priority in the process of determining the volume priority thereof, so that important voice information required by the user can be avoided because of the volume priority. Too low to be ignored by the user or difficult to hear, affecting the user's experience.
  • S205 Determine a volume priority of the application according to an operating state of the application, and execute S206.
  • the technical solution provides an attribute for determining an application, and determines whether the attribute meets a preset attribute. If yes, the attribute of the application may be determined while determining the priority of the application. As a reference factor.
  • the advantage of this setting is that it can more closely meet the user's demand for volume control of the mobile terminal. When there is an important application output sound for the user, it can timely control the sound output according to a certain volume priority. Cater to the user's need for volume control of mobile terminals.
  • FIG. 3 is a schematic flowchart diagram of another volume control method according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
  • the priority compensation coefficient is inversely related to the priority of the application.
  • a priority compensation coefficient is established. If the adjustment parameter of the volume priority of the current application is multiplied by 0.8 times, the compensation coefficient may be divided by 0.8; if the adjustment parameter of the current application's volume priority is the volume level -2, the compensation coefficient may be It is a volume level + 2 levels. In this way, the volume of the application can be output according to the volume set by the user, so that when only one application performs sound output, the user cannot hear the sound normally because its priority is too low.
  • each application is regulated according to its volume priority and output.
  • the technical solution provides a specific manner of controlling whether the output sound is controlled according to the volume priority thereof according to the number of applications that output sound. This is a good setting It is when there is only one application output sound, because it does not have sound interference, it can be output according to the volume set by the user. When there are two or more applications for volume output, each application outputs according to its determined volume priority, ensuring that the volume of the output sound is controlled according to the set order.
  • the method further includes: determining a type of sound information of the application; the type of the sound information includes the first Class-like sound information and second-class sound information; when the sound information type of the application is the first type of sound information, determining the application according to the volume priority of the application and the first type of sound information control coefficient a sound output volume of the program; when the sound information type of the application is the second type of sound information, determining the sound output of the application according to the volume priority of the application and the second type of sound information control coefficient volume.
  • the first type of sound information may be prompt type sound information
  • the second type of sound information may be play type sound information.
  • the first type of sound information control coefficients and the second type of sound information control coefficients may be related to volume priority, such as positive correlation or inverse correlation, and may also be uncorrelated with volume priority.
  • the first type of sound information control coefficient is greater than the second type of sound information control coefficient.
  • the advantage of this setting is that the volume level of the sound output can be controlled according to the type of sound information of the application and the volume priority of the application. Improve the user's awareness of some prompt information, and avoid users ignoring some important prompt-like sound information.
  • FIG. 4 is a schematic flowchart of another volume control method according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
  • S401 Determine an application that outputs a sound when it is detected that the sound output event is triggered.
  • S402. Determine an operating state of the application.
  • the foreground running record can be recorded in the foreground running log file.
  • the foreground run record can include the time when the foreground run switches to the background run and the duration of the foreground run.
  • obtaining a duration in which all the running applications are in a foreground running state correspondingly, determining, according to the foreground running record, a volume priority of the application, including: The magnitude relationship of the duration determines the volume priority of the application.
  • the technical solution provides a technical solution for determining the priority of the application according to the foreground running record of the application and the running state of the application, and provides two optional implementation manners.
  • the advantage of this setting is that it can determine the application that the user is interested in according to the time when the application switches to the background in the foreground and the running time of the application foreground, and compares the volume of the application that the user pays attention to when determining the volume priority.
  • the priority is improved, and the volume level of the application that the user is concerned about can be improved, which meets the user's demand for volume control.
  • FIG. 5 is a structural block diagram of a volume control apparatus according to an embodiment of the present invention.
  • the apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and the volume of the mobile terminal may be controlled by executing a volume control method.
  • the device includes:
  • An application determining module 501 configured to determine an application that outputs a sound when detecting that the sound output event is triggered
  • a volume priority determining module 503, configured to determine a volume priority of the application according to an operating state of the application
  • the output volume control module 504 is configured to control the sound output volume of the application according to the volume priority.
  • the volume control scheme provided in the embodiment of the present invention determines an application for outputting a sound by detecting a sound output event, and determines a volume priority of the application according to an operating state of the application, thereby controlling the application.
  • the sound output volume By adopting the above technical solution, the effect of automatic control of the sound output volume of the mobile terminal application can be achieved.
  • the volume priority determining module 503 includes:
  • a first priority determining unit configured to determine, when the running state of the application is running in the foreground, a volume priority of the program as a first priority
  • the second priority determining unit is configured to determine that the volume priority of the program is the second priority when the running state of the application is running in the background.
  • the device further includes:
  • the preset attribute determining module is specifically configured to: determine whether the attribute of the application meets the preset attribute;
  • the volume priority determining module 503 is configured to:
  • a volume priority of the program is determined according to an operating state of the program and an attribute of the program.
  • the device further includes:
  • the output volume control module 504 includes:
  • the output volume control module 504 includes:
  • a first output volume control subunit configured to determine a sound output volume of the application according to a volume priority of the application and a priority compensation coefficient when the program that needs to output a sound has only the application
  • the priority compensation coefficient is inversely related to the priority of the application
  • a second output volume control subunit configured to determine a sound output volume of the application according to a volume priority of the application when the program that needs to output a sound includes at least two applications.
  • the second output volume control subunit is further configured to:
  • the type of sound information includes first type of sound information and second type of sound information
  • the sound output volume of the application is determined according to the volume priority of the application and the second type of sound information control coefficient.
  • the volume priority determining module 503 includes:
  • the foreground running record obtaining unit is configured to obtain a foreground running record of all applications
  • a volume priority determining unit configured to determine a volume priority of the application according to the foreground running record.
  • the foreground running record obtaining unit includes:
  • Switch time acquisition subunit for getting all running applications running from the foreground The switching time from the state to the background running state;
  • the volume priority determining unit comprises:
  • the first volume priority determining subunit is configured to determine a volume priority of the application according to a sequence of the switching times.
  • the foreground running record obtaining unit includes:
  • the duration acquisition sub-unit is used to obtain the duration of all running applications in the foreground running state
  • the volume priority determining unit comprises:
  • a second volume priority determining subunit configured to determine a volume priority of the application according to the magnitude relationship of the duration.
  • Embodiments of the present invention also provide a storage medium including computer executable instructions for performing a volume control method when executed by a computer processor, the method comprising:
  • the sound output volume of the application is controlled according to the volume priority.
  • 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 storage medium containing the computer executable instructions provided by the embodiment of the present invention is not limited to the volume control operation as described above, and may also execute the volume control method provided by any embodiment of the present invention. Related operations.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal may include: a memory 601, a central processing unit (CPU) 602 (also referred to as a processor, hereinafter referred to as a CPU), a circuit board (not shown), and a power supply circuit ( Not shown in the figure).
  • CPU central processing unit
  • FIG. 6 the mobile terminal may include: a memory 601, a central processing unit (CPU) 602 (also referred to as a processor, hereinafter referred to as a CPU), a circuit board (not shown), and a power supply circuit ( Not shown in the figure).
  • CPU central processing unit
  • the circuit board is disposed inside a space enclosed by the casing; the CPU 602 and the memory 601 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the mobile terminal
  • the memory 601 is configured to store executable program code; the CPU 602 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 601 to implement the following steps:
  • the sound output volume of the application is controlled according to the volume priority.
  • the mobile terminal further includes: a peripheral interface 603, an RF (Radio Frequency) circuit 605, an audio circuit 606, a speaker 611, a power management chip 608, an input/output (I/O) subsystem 609, a touch screen 612, and others.
  • Input/control device 610 and external port 604 are communicated via one or more communication buses or signal lines 607.
  • the illustrated mobile terminal 600 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 volume control provided in this embodiment is described in detail below.
  • the mobile terminal takes a mobile phone as an example.
  • the memory 601 can be accessed by the CPU 602, the peripheral interface 603, etc., and the memory 601 can include a high speed random access memory, and can also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 603, which can connect the input and output peripherals of the device to CPU 602 and memory 601.
  • I/O subsystem 609 which can connect input and output peripherals on the device, such as touch screen 612 and other input/control devices 610, to peripheral interface 603.
  • I/O subsystem 609 can include display controller 6091 and one or more inputs for controlling other input/control devices 610 Controller 6092.
  • one or more input controllers 6092 receive electrical signals from other input/control devices 610 or transmit electrical signals to other input/control devices 610, and other input/control devices 610 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 6092 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 612 is an input interface and an output interface between the user mobile 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 6091 in I/O subsystem 609 receives an electrical signal from touch screen 612 or an electrical signal to touch screen 612.
  • the touch screen 612 detects the contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 612, ie, realizes human-computer interaction, and the user interface object displayed on the touch screen 612 may be running.
  • the icon of the game, the icon of the network to the corresponding network, and the like.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the RF circuit 605 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 605 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 605 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 605 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 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 611.
  • the speaker 611 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 605 to sound and play the sound to the user.
  • the power management chip 608 is used for power supply and power management of the hardware connected to the CPU 602, the I/O subsystem, and the peripheral interface.
  • the mobile terminal provided by the embodiment of the invention can optimize the scheme of the volume control.
  • the volume control device, the storage medium, and the mobile terminal provided in the foregoing embodiments may perform the volume control method provided by any embodiment of the present invention, and have corresponding functional modules and beneficial effects for performing the method.
  • the volume control method provided by any embodiment of the present invention.

Abstract

本发明实施例公开了一种音量控制方法、装置、存储介质及移动终端。该方法包括:当检测到声音输出事件被触发时,确定输出声音的应用程序;确定所述应用程序的运行状态;根据所述应用程序的运行状态,确定所述应用程序的音量优先级;根据所述音量优先级,控制所述应用程序的声音输出音量。本发明实施例所提供的技术方案,可以实现对移动终端应用程序的声音输出音量的自动控制的效果。

Description

音量控制方法、装置、存储介质及移动终端 技术领域
本发明实施例涉及音量控制技术领域,尤其涉及一种音量控制方法、装置、存储介质及移动终端。
背景技术
目前,移动终端的功能日趋丰富,也越来越智能,各种声音播放软件(如音乐及人声读书等软件)应运而生。用户在使用移动终端过程中由于自身需求的不同,需要对移动终端的音量不同的音量采取不同的控制方式,然而现有的音量控制方式存在缺陷,需要改进。
发明内容
本发明实施例提供一种音量控制方法、装置、存储介质及移动终端,可以优化音量控制的方案。
第一方面,本发明实施例提供了一种音量控制方法,包括:
当检测到声音输出事件被触发时,确定输出声音的应用程序;
确定所述应用程序的运行状态;
根据所述应用程序的运行状态,确定所述应用程序的音量优先级;
根据所述音量优先级,控制所述应用程序的声音输出音量。
第二方面,本发明实施例提供了一种音量控制装置,包括:
应用程序确定模块,用于当检测到声音输出事件被触发时,确定输出声音的应用程序;
运行状态确定模块,用于确定所述应用程序的运行状态;
音量优先级确定模块,用于根据所述应用程序的运行状态,确定所述应用程序的音量优先级;
输出音量控制模块,用于根据所述音量优先级,控制所述应用程序的声音输出音量。
第三方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例所述的音量控制方法。
第四方面,本发明实施例提供了一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本发明实施例所述的音量控制方法。
本发明实施例中提供的音量控制方案,通过检测到声音输出事件确定输出声音的应用程序,并根据所述应用程序的运行状态,确定所述应用程序的音量优先级,从而控制所述应用程序的声音输出音量。通过采用上述技术方案,可以实现对移动终端应用程序的声音输出音量的自动控制的效果。
附图说明
图1为本发明实施例提供的一种音量控制方法的流程示意图;
图2为本发明实施例提供的另一种音量控制方法的流程示意图;
图3为本发明实施例提供的另一种音量控制方法的流程示意图;
图4为本发明实施例提供的另一种音量控制方法的流程示意图;
图5为本发明实施例提供的一种音量控制装置的结构框图;
图6为本发明实施例提供的一种移动终端的结构示意图。
具体实施方式
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
图1为本发明实施例提供的一种音量控制方法的流程示意图,该方法可以由音量控制装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:
S101、当检测到声音输出事件被触发时,确定输出声音的应用程序。
其中,声音输出事件被触发,可以是系统检测到有来电、短信或者应用程序的提示音,以及,例如微信接收到对方语音时,用户的点按操作也是一种触发事件,如当闹钟设定的时间为7:00时,则系统时间变更至7:00也可以是一种触发事件,等等。
由上述内容可知,系统在检测到有程序需要使用发声器件或者需要输出声音,确定该应用程序。其中,输出声音可以采用系统的扬声器,外接耳机,外接音箱以及其它外接设备等。
其中,对于声音输出触发事件的检测方式可以通过检测总线或者广播消息等,可以由CPU或者其他微控制器以及微处理器进行检测。
值得说明的是,在本发明实施例中,系统自带的应用程序,如果检测到声音输出触发事件,也可以被确定为输出声音的应用程序。
S102、确定所述应用程序的运行状态。
应用程序的运行状态可以包括前台运行状态、后台运行状态以及非运行状态等。可以通过查看缓存进程来确定应用程序的运行状态。
其中,前台运行状态可以包括该程序独占屏幕前台时的运行状态,当用户点按home键之后,系统界面会独占屏幕前台,在这种情况下,可以认为是一种前台运行状态,也可以是根据用户设定,将其定义为前台运行状态或者定义为后台运行状态。
当处于前台运行状态的应用程序切换至后台运行状态时,可以根据读取系统内部的广播信息、读取系统进行、查看缓存进程以及在发生切换时向控制组件发送切换信息等方式,获取应用程序的运行状态切换信息。其中,控制组件可以是上述的CPU或者其他微控制器以及微处理器。
S103、根据所述应用程序的运行状态,确定所述应用程序的音量优先级。
其中,音量优先级可以包括两个等级,也可以是包括三个或者更多等级。如其包含两个等级,则可以是前台运行状态和后台运行状态分别为两个不同的等级。如其包含三个或者更多等级,则可以在该应用程序在前台运行过程为一个优先级,该程序在后台运行过程中,根据其切换至后台的时间,或者根据其他数据,确定为不同的优先级。
示例性的,音量优先级可以是一组系数,如1.2、1.0、0.8、0.6和0.4等,分别为音量优先级的第一、第二、第三、第四和第五优先级。当某一应用程序当前的音量优先级为第一优先级时,则将其当前音量乘以1.2倍进行输出,如 果该应用程序当前音量优先级为第三音量优先级,则将其当前音量乘以0.8倍进行输出。
在另一种示例中,音量优先级可以是一组音量调节参数,如+0级、-1级、-2级、-3级和-4级等,分别为音量优先级的第一、第二、第三、第四和第五优先级。当某一应用程序当前的音量优先级为第一优先级时,则将其当前音量等级直接进行输出,如果该应用程序当前音量优先级为第三音量优先级,则将其当前音量等级减小2级进行输出。
这样设置的好处在于,用户越是关注的应用程序音量优先级越高,输出音量越大,符合用户对于应用程序音量控制的需求。
本发明实施例仅以上述两种音量优先级作为一种示例,但是具体对音量优先级的个数以及每个音量优先级的音量调整参数不作限定。
S104、根据所述音量优先级,控制所述应用程序的声音输出音量。
在确定应用程序的音量优先级之后,控制应用程序按照所述音量优先级进行声音输出。
如某一应用程序当前的音量优先级为第一优先级,而该程序的当前设置音量等级为10级,若音量优先级的音量调整参数按照上述第一示例进行调整,则该应用程序的输出音量等级为12级;若音量优先级的音量调整参数按照上述第二示例进行调整,则该应用程序的输出音量等级为10级。
如某一应用程序当前的音量优先级为第三优先级,而该程序的当前设置音量等级为10级,若音量优先级的音量调整参数按照上述第一示例进行调整,则该应用程序的输出音量等级为8级;若音量优先级的音量调整参数按照上述第二示例进行调整,则该应用程序的输出音量等级为8级。
本发明实施例中提供的音量控制方案,通过检测到声音输出事件确定输出声音的应用程序,并根据所述应用程序的运行状态,确定所述应用程序的音量优先级,从而控制所述应用程序的声音输出音量。通过采用上述技术方案,可以实现对移动终端应用程序的声音输出音量的自动控制的效果。
在上述技术方案的基础上,可选的,根据所述应用程序的运行状态,确定所述应用程序的音量优先级,包括:当所述应用程序的运行状态为前台运行时,确定所述程序的音量优先级为第一优先级;当所述应用程序的运行状态为后台运行时,确定所述程序的音量优先级为第二优先级。本技术方案针对应用程序的运行状态为前台运行状态或者后台运行状态,分别设置第一优先级和第二优 先级,且第一优先级大于第二优先级。这样,对于前台运行的程序的声音,在其独占屏幕进行优先显示的同时,还可以放大其声音的优先级,其它后台运行的应用程序的优先级均为第二优先级,这样可以达到一种显示和音量同时优先的效果,迎合用户对于移动终端使用的音量控制需求。
图2为本发明实施例提供的另一种音量控制方法的流程示意图,如图2所示,该方法包括:
S201、当检测到声音输出事件被触发时,确定输出声音的应用程序。
S202、确定所述应用程序的运行状态。
S203、判断所述应用程序的属性是否满足预设属性,若是,则执行S204;若否,则执行S205。
其中,应用程序的属性可以包括系统类、音乐播放类、地图类以及通讯类等,预设属性可以是其中的一种,也可以是多种。在本发明实施例中,可选的,预设属性包括地图类属性。由于现阶段用户使用移动终端的功能越来越多,利用移动终端的地图类应用程序进行导航的情况也越来越普遍。因此,在用户利用移动终端进行导航时,导航提示音是用户最需要声音,对其进行控制可以为用户使用移动终端进行导航提供便利,并提高用户的使用体验。
S204、根据所述程序的运行状态以及所述程序的属性,确定所述程序的音量优先级,并执行S206。
结合上述内容,在判断应用程序的属性属于地图类属性时,该应用程序需要输出的声音的音量需要考虑到应用程序的属性,所以,在确定其音量优先级的过程中,还要结合该应用程序的属性,如果该应用程序的属性满足预设属性,则根据所述程序的运行状态以及所述程序的属性,确定所述程序的音量优先级。
结合上述示例,如某一应用程序当前的音量优先级为第三优先级,而该程序的当前设置音量等级为10级,若音量优先级的音量调整参数按照上述第一或第二示例进行调整,则该应用程序的输出音量等级为8级。此时,如果判断该应用程序为地图类应用程序时,则在确定其音量优先级的过程中直接确定为第一优先级,这样,就可以避免用户所需要的重要的声音信息因为音量优先级过低而被用户忽略或者很难听清,影响用户的使用体验。
S205、根据所述应用程序的运行状态,确定所述应用程序的音量优先级,并执行S206。
如果该应用程序的属性不满足预设属性,根据所述应用程序的运行状态, 确定所述应用程序的音量优先级。
S206、根据所述音量优先级,控制所述应用程序的声音输出音量。
本技术方案在上述各技术方案的基础上,提供了一种确定应用程序的属性,并判断该属性是否符合预设属性,如果是,则在确定该应用程序的优先级的同时可以将其属性作为一种参考因素。这样设置的好处在于可以更加符合用户对移动终端的音量控制需求,当有对于用户使用过程中,极为重要的应用程序输出声音时,能够及时控制其按照某一特定的音量优先级进行声音输出,迎合用户对于移动终端的音量控制的需求。
图3为本发明实施例提供的另一种音量控制方法的流程示意图,如图3所示,该方法包括:
S301、当检测到声音输出事件被触发时,确定输出声音的应用程序。
S302、确定所述应用程序的运行状态。
S303、根据所述应用程序的运行状态,确定所述应用程序的音量优先级。
S304、判断需要同时输出声音的程序个数是否为一个,若是,则执行S305;若否,则执行S306。
S305、当所述需要输出声音的程序只有所述应用程序时,则根据所述应用程序的音量优先级以及优先级补偿系数,确定所述应用程序的声音输出音量。
其中,所述优先级补偿系数与所述应用程序的优先级反相关。
如果当前系统中只有一个应用程序需要输出声音时,则无需采用音量优先级对其进行限制,所以制定一个优先级补偿系数。如当前应用程序的音量优先级的调整参数为乘以0.8倍,则该补偿系数可以是除以0.8;如当前应用程序的音量优先级的调整参数为音量等级-2级,则该补偿系数可以是音量等级+2级。这样,就可以保证应用程序的音量按照用户设定的音量进行输出,避免只有一个应用程序进行声音输出时,由于其优先级过低,导致用户无法正常听到该声音的现象。
S306、当所述需要输出声音的程序包括至少两个应用程序时,则根据所述应用程序的音量优先级,确定所述应用程序的声音输出音量。
当同时需要进行多个应用程序的声音输出时,则每个应用程序按照其音量优先级进行调控后输出。
本技术方案在上述技术方案的基础上,提供了一种根据输出声音的应用程序个数进行是否按照其音量优先级控制其输出声音的具体方式。这样设置的好 处是当只有一个应用程序输出声音时,由于其不存在声音干扰现象,可以按照用户设定的音量进行输出。当有两个或多个应用程序进行音量输出时,每个应用程序按照其确定的音量优先级进行输出,确保输出声音的音量按照设定秩序进行控制。
在上述各技术方案的基础上,可选的,当所述需要输出声音的程序包括至少两个应用程序时,还包括:确定所述应用程序的声音信息类型;所述声音信息类型包括第一类声音信息和第二类声音信息;当所述应用程序的声音信息类型为第一类声音信息时,则根据所述应用程序的音量优先级以及第一类声音信息控制系数,确定所述应用程序的声音输出音量;当所述应用程序的声音信息类型为第二类声音信息时,则根据所述应用程序的音量优先级以及第二类声音信息控制系数,确定所述应用程序的声音输出音量。
其中,第一类声音信息可以是提示类声音信息,第二类声音信息可以是播放类声音信息。第一类声音信息控制系数以及第二类声音信息控制系数可以与音量优先级相关,如正相关或者反相关,同时也可以与音量优先级不相关。其中第一类声音信息控制系数大于第二类声音信息的控制系数。
这样设置的好处是可以根据应用程序的声音信息的类型及应用程序的音量优先级,控制声音输出的音量等级。提高用户对于一些提示类信息的察觉度,避免用户忽略一些重要的提示类声音信息。
图4为本发明实施例提供的另一种音量控制方法的流程示意图,如图4所示,该方法包括:
S401、当检测到声音输出事件被触发时,确定输出声音的应用程序。
S402、确定所述应用程序的运行状态。
S403、获取所有应用程序的前台运行记录,根据所述前台运行记录以及所述应用程序的运行状态,确定所述应用程序的音量优先级。
其中,前台运行记录可以记录在前台运行日志文件当中。前台运行记录可以包括前台运行切换至后台运行的时间以及前台运行的持续时间。
可选的,获取所有处于运行状态的应用程序由前台运行状态至后台运行状态的切换时间;相应的,根据所述前台运行记录确定所述应用程序的音量优先级,包括:根据所述切换时间的先后顺序,确定所述应用程序的音量优先级。
可选的,获取所有处于运行状态的应用程序处于前台运行状态的持续时间;相应的,根据所述前台运行记录确定所述应用程序的音量优先级,包括:根据 所述持续时间的大小关系,确定所述应用程序的音量优先级。
S404、根据所述音量优先级,控制所述应用程序的声音输出音量。
本技术方案在上述各技术方案的基础上,提供了一种根据应用程序的前台运行记录以及应用程序的运行状态确定其优先级的技术方案,并给出了两种可选的实施方式。这样设置的好处是可以根据应用程序前台切换至后台的时间以及应用程序前台持续运行的时间,确定用户比较关注的应用程序,并在确定其音量优先级时,将用户比较关注的应用程序的音量优先级进行提升,可以对于用户比较关注的应用程序的音量等级提升,符合用户对于音量控制的需求。
图5为本发明实施例提供的一种音量控制装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行音量控制方法来对移动终端的音量进行控制。如图5所示,该装置包括:
应用程序确定模块501,用于当检测到声音输出事件被触发时,确定输出声音的应用程序;
运行状态确定模块502,用于确定所述应用程序的运行状态;
音量优先级确定模块503,用于根据所述应用程序的运行状态,确定所述应用程序的音量优先级;
输出音量控制模块504,用于根据所述音量优先级,控制所述应用程序的声音输出音量。
本发明实施例中提供的音量控制方案,通过检测到声音输出事件确定输出声音的应用程序,并根据所述应用程序的运行状态,确定所述应用程序的音量优先级,从而控制所述应用程序的声音输出音量。通过采用上述技术方案,可以实现对移动终端应用程序的声音输出音量的自动控制的效果。
在上述技术方案的基础上,可选的,所述音量优先级确定模块503,包括:
第一优先级确定单元,用于当所述应用程序的运行状态为前台运行时,确定所述程序的音量优先级为第一优先级;
第二优先级确定单元,用于当所述应用程序的运行状态为后台运行时,确定所述程序的音量优先级为第二优先级。
在上述技术方案的基础上,可选的,所述装置还包括:
预设属性判断模块,具体用于:判断所述应用程序的属性是否满足预设属性;
若满足,则所述音量优先级确定模块503用于:
根据所述程序的运行状态以及所述程序的属性,确定所述程序的音量优先级。
在上述技术方案的基础上,可选的,所述装置还包括:
输出声音程序个数判断模块,用于判断需要同时输出声音的程序个数;
相应的,所述输出音量控制模块504,包括:
输出音量控制,用于根据所述应用程序的音量优先级以及所述需要输出声音的程序个数,确定所述应用程序的声音输出音量。
在上述技术方案的基础上,可选的,所述输出音量控制模块504包括:
第一输出音量控制子单元,用于当所述需要输出声音的程序只有所述应用程序时,则根据所述应用程序的音量优先级以及优先级补偿系数,确定所述应用程序的声音输出音量;其中,所述优先级补偿系数与所述应用程序的优先级反相关;
第二输出音量控制子单元,用于当所述需要输出声音的程序包括至少两个应用程序时,则根据所述应用程序的音量优先级,确定所述应用程序的声音输出音量。
在上述技术方案的基础上,可选的,所述第二输出音量控制子单元,还用于:
确定所述应用程序的声音信息类型;所述声音信息类型包括第一类声音信息和第二类声音信息;
当所述应用程序的声音信息类型为第一类声音信息时,则
根据所述应用程序的音量优先级以及第一类声音信息控制系数,确定所述应用程序的声音输出音量;
当所述应用程序的声音信息类型为第二类声音信息时,则
根据所述应用程序的音量优先级以及第二类声音信息控制系数,确定所述应用程序的声音输出音量。
在上述技术方案的基础上,可选的,所述音量优先级确定模块503,包括:
前台运行记录获取单元,用于获取所有应用程序的前台运行记录;
音量优先级确定单元,用于根据所述前台运行记录确定所述应用程序的音量优先级。
在上述技术方案的基础上,可选的,所述前台运行记录获取单元包括:
切换时间获取子单元,用于获取所有处于运行状态的应用程序由前台运行 状态至后台运行状态的切换时间;
相应的,所述音量优先级确定单元,包括:
第一音量优先级确定子单元,用于根据所述切换时间的先后顺序,确定所述应用程序的音量优先级。
在上述技术方案的基础上,可选的,所述前台运行记录获取单元包括:
持续时间获取子单元,用于获取所有处于运行状态的应用程序处于前台运行状态的持续时间;
相应的,所述音量优先级确定单元,包括:
第二音量优先级确定子单元,用于根据所述持续时间的大小关系,确定所述应用程序的音量优先级。
本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种音量控制方法,该方法包括:
当检测到声音输出事件被触发时,确定输出声音的应用程序;
确定所述应用程序的运行状态;
根据所述应用程序的运行状态,确定所述应用程序的音量优先级;
根据所述音量优先级,控制所述应用程序的声音输出音量。
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的音量控制操作,还可以执行本发明任意实施例所提供的音量控制方法中的相关操作。
本发明实施例提供了一种移动终端,该移动终端中可集成本发明实施例提 供的音量控制装置。图6为本发明实施例提供的一种移动终端的结构示意图。如图6所示,该移动终端可以包括:存储器601、中央处理器(Central Processing Unit,CPU)602(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU602和所述存储器601设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器601,用于存储可执行程序代码;所述CPU602通过读取所述存储器601中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:
当检测到声音输出事件被触发时,确定输出声音的应用程序;
确定所述应用程序的运行状态;
根据所述应用程序的运行状态,确定所述应用程序的音量优先级;
根据所述音量优先级,控制所述应用程序的声音输出音量。
所述移动终端还包括:外设接口603、RF(Radio Frequency,射频)电路605、音频电路606、扬声器611、电源管理芯片608、输入/输出(I/O)子系统609、触摸屏612、其他输入/控制设备610以及外部端口604,这些部件通过一个或多个通信总线或信号线607来通信。
应该理解的是,图示移动终端600仅仅是移动终端的一个范例,并且移动终端600可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的用于音量控制的移动终端进行详细的描述,该移动终端以手机为例。
存储器601,所述存储器601可以被CPU602、外设接口603等访问,所述存储器601可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口603,所述外设接口603可以将设备的输入和输出外设连接到CPU602和存储器601。
I/O子系统609,所述I/O子系统609可以将设备上的输入输出外设,例如触摸屏612和其他输入/控制设备610,连接到外设接口603。I/O子系统609可以包括显示控制器6091和用于控制其他输入/控制设备610的一个或多个输入 控制器6092。其中,一个或多个输入控制器6092从其他输入/控制设备610接收电信号或者向其他输入/控制设备610发送电信号,其他输入/控制设备610可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器6092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触摸屏612,所述触摸屏612是用户移动终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。
I/O子系统609中的显示控制器6091从触摸屏612接收电信号或者向触摸屏612发送电信号。触摸屏612检测触摸屏上的接触,显示控制器6091将检测到的接触转换为与显示在触摸屏612上的用户界面对象的交互,即实现人机交互,显示在触摸屏612上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路605,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路605接收并发送RF信号,RF信号也称为电磁信号,RF电路605将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路605可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。
音频电路606,主要用于从外设接口603接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器611。
扬声器611,用于将手机通过RF电路605从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片608,用于为CPU602、I/O子系统及外设接口所连接的硬件进行供电及电源管理。
本发明实施例提供的移动终端,可以优化音量控制的方案。
上述实施例中提供的音量控制装置、存储介质及移动终端可执行本发明任意实施例所提供的音量控制方法,具备执行该方法相应的功能模块和有益效果。 未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的音量控制方法。
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。

Claims (20)

  1. 一种音量控制方法,其特征在于,包括:
    当检测到声音输出事件被触发时,确定输出声音的应用程序;
    确定所述应用程序的运行状态;
    根据所述应用程序的运行状态,确定所述应用程序的音量优先级;
    根据所述音量优先级,控制所述应用程序的声音输出音量。
  2. 根据权利要求1所述的音量控制方法,其特征在于,根据所述应用程序的运行状态,确定所述应用程序的音量优先级,包括:
    当所述应用程序的运行状态为前台运行时,确定所述程序的音量优先级为第一优先级;
    当所述应用程序的运行状态为后台运行时,确定所述程序的音量优先级为第二优先级。
  3. 根据权利要求1所述的音量控制方法,其特征在于,在根据所述应用程序的运行状态,确定所述应用程序的音量优先级之前,还包括:
    判断所述应用程序的属性是否满足预设属性;
    若满足,则根据所述应用程序的运行状态,确定所述应用程序的音量优先级,包括:
    根据所述程序的运行状态以及所述程序的属性,确定所述程序的音量优先级。
  4. 根据权利要求1所述的音量控制方法,其特征在于,在根据所述音量优先级,控制所述应用程序的声音输出音量之前,还包括:
    判断需要同时输出声音的程序个数;
    相应的,所述根据所述音量优先级,控制所述应用程序的声音输出音量包括:
    根据所述应用程序的音量优先级以及所述需要输出声音的程序个数,确定所述应用程序的声音输出音量。
  5. 根据权利要求4所述的音量控制方法,其特征在于,根据所述应用程序的音量优先级以及所述需要输出声音的程序个数,确定所述应用程序的声音输出音量,包括:
    当所述需要输出声音的程序只有所述应用程序时,则根据所述应用程序的音量优先级以及优先级补偿系数,确定所述应用程序的声音输出音量;其中,所述优先级补偿系数与所述应用程序的优先级反相关;
    当所述需要输出声音的程序包括至少两个应用程序时,则根据所述应用程序的音量优先级,确定所述应用程序的声音输出音量。
  6. 根据权利要求5所述的音量控制方法,其特征在于,当所述需要输出声音的程序包括至少两个应用程序时,还包括:
    确定所述应用程序的声音信息类型;所述声音信息类型包括第一类声音信息和第二类声音信息;
    当所述应用程序的声音信息类型为第一类声音信息时,则
    根据所述应用程序的音量优先级以及第一类声音信息控制系数,确定所述应用程序的声音输出音量;
    当所述应用程序的声音信息类型为第二类声音信息时,则
    根据所述应用程序的音量优先级以及第二类声音信息控制系数,确定所述应用程序的声音输出音量。
  7. 根据权利要求1所述的音量控制方法,其特征在于,根据所述应用程序的运行状态,确定所述应用程序的音量优先级,还包括:
    获取所有应用程序的前台运行记录;
    根据所述前台运行记录确定所述应用程序的音量优先级。
  8. 根据权利要求7所述的音量控制方法,其特征在于,所述获取所有应用程序的前台运行记录,包括:
    获取所有处于运行状态的应用程序由前台运行状态至后台运行状态的切换时间;
    相应的,根据所述前台运行记录确定所述应用程序的音量优先级,包括:
    根据所述切换时间的先后顺序,确定所述应用程序的音量优先级。
  9. 根据权利要求7所述的音量控制方法,其特征在于,所述获取所有应用程序的前台运行记录,包括:
    获取所有处于运行状态的应用程序处于前台运行状态的持续时间;
    相应的,根据所述前台运行记录确定所述应用程序的音量优先级,包括:
    根据所述持续时间的大小关系,确定所述应用程序的音量优先级。
  10. 一种音量控制装置,其特征在于,包括:
    应用程序确定模块,用于当检测到声音输出事件被触发时,确定输出声音的应用程序;
    运行状态确定模块,用于确定所述应用程序的运行状态;
    音量优先级确定模块,用于根据所述应用程序的运行状态,确定所述应用程序的音量优先级;
    输出音量控制模块,用于根据所述音量优先级,控制所述应用程序的声音输出音量。
  11. 根据权利要求10所述的音量控制装置,其特征在于,所述音量优先级确定模块,包括:
    第一优先级确定单元,用于当所述应用程序的运行状态为前台运行时,确定所述程序的音量优先级为第一优先级;
    第二优先级确定单元,用于当所述应用程序的运行状态为后台运行时,确定所述程序的音量优先级为第二优先级。
  12. 根据权利要求10所述的音量控制装置,其特征在于,所述装置还包括:
    预设属性判断模块,具体用于:判断所述应用程序的属性是否满足预设属性;
    若满足,则所述音量优先级确定模块用于:
    根据所述程序的运行状态以及所述程序的属性,确定所述程序的音量优先级。
  13. 根据权利要求10所述的音量控制装置,其特征在于,所述装置还包括:
    输出声音程序个数判断模块,用于判断需要同时输出声音的程序个数;
    相应的,所述输出音量控制模块,包括:
    输出音量控制,用于根据所述应用程序的音量优先级以及所述需要输出声音的程序个数,确定所述应用程序的声音输出音量。
  14. 根据权利要求13所述的音量控制装置,其特征在于,所述输出音量控制模块包括:
    第一输出音量控制子单元,用于当所述需要输出声音的程序只有所述应用程序时,则根据所述应用程序的音量优先级以及优先级补偿系数,确定所述应用程序的声音输出音量;其中,所述优先级补偿系数与所述应用程序的优先级反相关;
    第二输出音量控制子单元,用于当所述需要输出声音的程序包括至少两个应用程序时,则根据所述应用程序的音量优先级,确定所述应用程序的声音输出音量。
  15. 根据权利要求14所述的音量控制装置,其特征在于,所述第二输出音 量控制子单元,还用于:
    确定所述应用程序的声音信息类型;所述声音信息类型包括第一类声音信息和第二类声音信息;
    当所述应用程序的声音信息类型为第一类声音信息时,则
    根据所述应用程序的音量优先级以及第一类声音信息控制系数,确定所述应用程序的声音输出音量;
    当所述应用程序的声音信息类型为第二类声音信息时,则
    根据所述应用程序的音量优先级以及第二类声音信息控制系数,确定所述应用程序的声音输出音量。
  16. 根据权利要求10所述的音量控制装置,其特征在于,所述音量优先级确定模块,包括:
    前台运行记录获取单元,用于获取所有应用程序的前台运行记录;
    音量优先级确定单元,用于根据所述前台运行记录确定所述应用程序的音量优先级。
  17. 根据权利要求16所述的音量控制装置,其特征在于,所述前台运行记录获取单元包括:
    切换时间获取子单元,用于获取所有处于运行状态的应用程序由前台运行状态至后台运行状态的切换时间;
    相应的,所述音量优先级确定单元,包括:
    第一音量优先级确定子单元,用于根据所述切换时间的先后顺序,确定所述应用程序的音量优先级。
  18. 根据权利要求16所述的音量控制装置,其特征在于,所述前台运行记录获取单元包括:
    持续时间获取子单元,用于获取所有处于运行状态的应用程序处于前台运行状态的持续时间;
    相应的,所述音量优先级确定单元,包括:
    第二音量优先级确定子单元,用于根据所述持续时间的大小关系,确定所述应用程序的音量优先级。
  19. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-9中任一所述的音量控制方法。
  20. 一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器 运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-9任一所述的音量控制方法。
PCT/CN2017/098167 2017-08-18 2017-08-18 音量控制方法、装置、存储介质及移动终端 WO2019033434A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/098167 WO2019033434A1 (zh) 2017-08-18 2017-08-18 音量控制方法、装置、存储介质及移动终端
CN201780091849.6A CN110730947A (zh) 2017-08-18 2017-08-18 音量控制方法、装置、存储介质及移动终端

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=65362162

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN110730947A (zh)
WO (1) WO2019033434A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343498B (zh) * 2020-03-10 2021-09-10 海信视像科技股份有限公司 一种静音控制方法、装置及智能电视

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033776A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种音频播放方法及一种计算设备
US9389828B1 (en) * 2013-09-18 2016-07-12 Parallels IP Holdings GmbH Method for processing on mobile device audio signals of remotely executed applications
CN106303816A (zh) * 2015-05-25 2017-01-04 联想(北京)有限公司 一种信息控制方法及电子设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023305B (zh) * 2014-05-30 2015-10-28 爱培科科技开发(深圳)有限公司 一种Wince车载多媒体的混音控制方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033776A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种音频播放方法及一种计算设备
US9389828B1 (en) * 2013-09-18 2016-07-12 Parallels IP Holdings GmbH Method for processing on mobile device audio signals of remotely executed applications
CN106303816A (zh) * 2015-05-25 2017-01-04 联想(北京)有限公司 一种信息控制方法及电子设备

Also Published As

Publication number Publication date
CN110730947A (zh) 2020-01-24

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN107562405B (zh) 音频播放控制方法、装置及存储介质和移动终端
CN107835033B (zh) 天线调谐开关的控制方法、装置、终端设备及存储介质
CN108810749B (zh) 播放器控制方法、装置、终端设备及存储介质
CN109157839B (zh) 帧率调控方法、装置、存储介质及终端
CN107770759B (zh) 蓝牙语音链路的建立方法、装置、存储介质及移动终端
CN107844342B (zh) 应用程序保活的管控方法、装置及存储介质和移动终端
CN109460364B (zh) 应用程序检测方法、装置、存储介质及移动终端
CN106713653B (zh) 一种音视频的播放控制方法、装置及终端
CN107371102B (zh) 音频播放音量的控制方法、装置及存储介质和移动终端
US11201598B2 (en) Volume adjusting method and mobile terminal
EP3584710B1 (en) Method and apparatus for controlling display of mobile terminal, and storage medium
CN107465824B (zh) 音量调节方法、装置、移动终端及存储介质
CN107402712B (zh) 一种触摸操作的响应方法、装置、存储介质及终端
WO2019100869A1 (en) Processing method, device and storage medium for implementing automatic startup
CN108681474B (zh) 应用预加载方法、装置、存储介质及终端
CN107526570B (zh) 音量调节方法、装置、终端设备及存储介质
CN107508983B (zh) 音量调节方法、装置、存储介质及终端设备
CN112394901A (zh) 音频输出模式调整方法、装置及电子设备
WO2019033436A1 (zh) 音量调节方法、装置、存储介质及移动终端
CN104572007A (zh) 一种终端的音量调节方法
CN110730946B (zh) 移动终端的音量控制方法、装置及存储介质和移动终端
TW202020652A (zh) 語音處理方法和裝置
CN107483734B (zh) 音量调节方法、装置、终端设备及存储介质
CN104571856A (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: 17921668

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

Country of ref document: EP

Kind code of ref document: A1