[go: up one dir, main page]

CN107436751A - Volume adjustment method, device, terminal equipment and storage medium - Google Patents

Volume adjustment method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN107436751A
CN107436751A CN201710711586.6A CN201710711586A CN107436751A CN 107436751 A CN107436751 A CN 107436751A CN 201710711586 A CN201710711586 A CN 201710711586A CN 107436751 A CN107436751 A CN 107436751A
Authority
CN
China
Prior art keywords
amplitude
audio
regulation coefficient
sub
volume
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710711586.6A
Other languages
Chinese (zh)
Inventor
严锋贵
许钊铵
郑志勇
甘高亭
杨海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710711586.6A priority Critical patent/CN107436751A/en
Publication of CN107436751A publication Critical patent/CN107436751A/en
Priority to PCT/CN2018/098653 priority patent/WO2019033942A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a volume adjusting method, a volume adjusting device, terminal equipment and a storage medium, wherein the method comprises the steps of acquiring audio information of a sound source when the terminal equipment is detected to play the sound source; determining corresponding audio amplitude according to the audio information; determining an amplitude adjustment coefficient corresponding to the audio amplitude, dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients, and adjusting the audio amplitude according to the sub-amplitude adjustment coefficients. According to the scheme, the volume adjusting efficiency is improved, and the power consumption of the terminal equipment is reduced.

Description

音量调节方法、装置、终端设备及存储介质Volume adjustment method, device, terminal equipment and storage medium

技术领域technical field

本发明实施例涉及计算机技术,尤其涉及一种音量调节方法、装置、终端设备及存储介质。Embodiments of the present invention relate to computer technology, and in particular, to a volume adjustment method, device, terminal equipment, and storage medium.

背景技术Background technique

随着终端设备普及程度的提高,越来越多的用户使用终端设备执行各种各样的功能以满足自身需求,如使用终端设备阅读文字、观看视频、听音乐、玩游戏等。当终端设备在播放音视频时,对音量大小的调节存在缺陷,需要改进。As the popularity of terminal devices increases, more and more users use terminal devices to perform various functions to meet their own needs, such as using terminal devices to read text, watch videos, listen to music, play games, and so on. When the terminal device is playing audio and video, there are defects in the adjustment of the volume, which needs to be improved.

发明内容Contents of the invention

本发明提供了一种音量调节方法、装置、终端设备及存储介质,提高了音量调节效率,降低了终端设备的功耗。The invention provides a volume adjustment method, device, terminal equipment and storage medium, which improves the volume adjustment efficiency and reduces the power consumption of the terminal equipment.

第一方面,本发明实施例提供了一种音量调节方法,包括:In a first aspect, an embodiment of the present invention provides a volume adjustment method, including:

当检测到终端设备进行音源播放时,获取所述音源的音频信息;When it is detected that the terminal device is playing the audio source, the audio information of the audio source is obtained;

依据所述音频信息确定对应的音频振幅;determining the corresponding audio amplitude according to the audio information;

确定和所述音频振幅对应的振幅调整系数,将所述振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。Determine an amplitude adjustment coefficient corresponding to the audio amplitude, divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficients.

第二方面,本发明实施例还提供了一种音量调节装置,包括:In the second aspect, the embodiment of the present invention also provides a volume adjustment device, including:

获取模块,用于当检测到终端设备进行音源播放时,获取所述音源的音频信息;An acquisition module, configured to acquire the audio information of the audio source when it is detected that the terminal device is playing the audio source;

振幅确定模块,用于依据所述音频信息确定对应的音频振幅;An amplitude determination module, configured to determine the corresponding audio amplitude according to the audio information;

调整系数确定模块,用于确定和所述音频振幅对应的振幅调整系数,将所述振幅调整系数划分为预设数目的子振幅调整系数;An adjustment coefficient determination module, configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude, and divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients;

调节模块,用于依据所述子振幅调整系数对所述音频振幅进行调整。An adjustment module, configured to adjust the audio amplitude according to the sub-amplitude adjustment coefficient.

第三方面,本发明实施例还提供了一种终端设备,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本发明实施例所述的音量调节方法。In the third aspect, the embodiment of the present invention also provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and operable on the processor, and when the processor executes the computer program, the following is implemented: The volume adjustment method described in the embodiment of the present invention.

第四方面,本发明实施例还提供了一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行本发明实施例所述的音量调节方法。In the fourth aspect, the embodiment of the present invention also provides a storage medium containing executable instructions of the terminal device, and the executable instruction of the terminal device is used to perform the volume adjustment described in the embodiment of the present invention when executed by the processor of the terminal device method.

本发明实施例提供的技术方案,当检测到终端设备进行音源播放时,获取所述音源的音频信息;依据所述音频信息确定对应的音频振幅;确定和所述音频振幅对应的振幅调整系数,将所述振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。本方案提高了音量调节效率,降低了终端设备的功耗。In the technical solution provided by the embodiment of the present invention, when it is detected that the terminal device is playing the sound source, the audio information of the sound source is obtained; the corresponding audio amplitude is determined according to the audio information; the amplitude adjustment coefficient corresponding to the audio amplitude is determined, The amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients, and the audio amplitude is adjusted according to the sub-amplitude adjustment coefficients. This solution improves the volume adjustment efficiency and reduces the power consumption of the terminal equipment.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本发明实施例提供的一种音量调节方法的流程图;FIG. 1 is a flow chart of a volume adjustment method provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种音量调节方法的流程图;Fig. 2 is a flowchart of another volume adjustment method provided by an embodiment of the present invention;

图3是本发明实施例提供的另一种音量调节方法的流程图;Fig. 3 is a flow chart of another volume adjustment method provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种音量调节方法的流程图;Fig. 4 is a flowchart of another volume adjustment method provided by an embodiment of the present invention;

图5是本发明实施例提供的另一种音量调节方法的流程图Fig. 5 is a flow chart of another volume adjustment method provided by an embodiment of the present invention

图6是本发明实施例提供的一种音量调节装置的结构框图;Fig. 6 is a structural block diagram of a volume adjustment device provided by an embodiment of the present invention;

图7是本发明实施例提供的一种终端设备的结构示意图。Fig. 7 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention.

具体实施方式detailed description

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are used to explain the present invention rather than limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

图1是本发明实施例提供的一种音量调节方法的流程图,本实施例可适用于对终端设备播放音源时的音量进行调节的情况,该方法可以由本发明实施例提供的终端设备来执行,该终端设备的音量调节装置可采用软件和/或硬件的方式实现,如图1所示,本实施例提供的具体方案如下:Fig. 1 is a flow chart of a volume adjustment method provided by an embodiment of the present invention. This embodiment is applicable to the situation of adjusting the volume when a terminal device plays a sound source, and the method can be executed by a terminal device provided by an embodiment of the present invention. , the volume adjustment device of the terminal equipment can be realized by means of software and/or hardware, as shown in Figure 1, the specific solution provided by this embodiment is as follows:

步骤S101、当检测到终端设备进行音源播放时,获取所述音源的音频信息。Step S101, when it is detected that the terminal device is playing a sound source, acquire audio information of the sound source.

终端设备可通过安装的第三方应用程序或系统自带的音视频播放软件进行音源的播放。其中,主要包括音源文件的获取、解码和输出等步骤。示例性的,获取到的音源文件可以是通过网络接收到的组播流,还可以是终端设备本地存储的音视频文件;获取到该音源文件后将其加载到内存缓冲区中;对加载到内存缓冲区的音源文件进行解码,在解码开始之前,如果该音源文件同时包含有视频数据,需要进行音频数据和视频数据的分离,将分离后的音频数据输入至音频解码器,其中,音频解码器主要用于读取内存缓冲区中的音频数据,得到数字音频信号,并将该数字音频信号转换为模拟音频信号,终端设备的播放器件根据该模拟音频信号进行音频播放。在一个实施例中,当监听到音源播放事件被触发时,确定终端设备开始播放音源,其中,该触发事件可以是检测到的触摸屏中显示的播放按钮被按下,还可以是检测到终端设备的播放器件如喇叭开始播放声音时,确定终端设备进行音源播放。The terminal device can play the audio source through the installed third-party application program or the audio and video playback software that comes with the system. Among them, it mainly includes the steps of acquiring, decoding and outputting the audio source file. Exemplarily, the obtained audio source file can be a multicast stream received through the network, and can also be an audio and video file stored locally on the terminal device; after obtaining the audio source file, load it into the memory buffer; The audio source file in the memory buffer is decoded. Before the decoding starts, if the audio source file also contains video data, the audio data and video data need to be separated, and the separated audio data is input to the audio decoder. Among them, audio decoding The device is mainly used to read the audio data in the memory buffer, obtain a digital audio signal, and convert the digital audio signal into an analog audio signal, and the playback device of the terminal device performs audio playback according to the analog audio signal. In one embodiment, when it is detected that the sound source play event is triggered, it is determined that the terminal device starts to play the sound source, wherein the trigger event may be the detected press of the play button displayed on the touch screen, or the detected When the playback device such as the speaker starts to play the sound, it is determined that the terminal device plays the sound source.

当检测到终端设备进行音源播放时,获取所述音源的音频信息。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,确定该音源对应的音频信息。在另一实施例中,还可以获取当前播放的音源的原始文件,通过对该原始文件的解析确定音源对应的音频信息。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息。When it is detected that the terminal device is playing the sound source, the audio information of the sound source is acquired. In one embodiment, the digital audio signal decoded by the audio decoder may be sampled to determine the audio information corresponding to the audio source. In another embodiment, the original file of the currently played audio source can also be obtained, and the audio information corresponding to the audio source can be determined by analyzing the original file. In another embodiment, taking the Android system as an example, the audio information of the audio source can be acquired through the android.media.MediaRecorder class or the android.media.AudioRecord class.

步骤S102、依据所述音频信息确定对应的音频振幅。Step S102. Determine the corresponding audio amplitude according to the audio information.

振幅指物体震动过程中偏离原来位置的最大距离,人耳听到的声音的响度与音源的振幅相关,振幅越大响度越强。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,获取预设时间段T内的振幅信息,其中,该振幅信息可有多个振幅值组成,依据得到的多个振幅值可相应的确定在该预设时间段T内播放的音源的振幅曲线。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息后得到对应的振幅大小。在另一实施例中,当步骤S101获取到的音频信息为音源对应的原始文件时,可通过对原始文件进行解析以得到对应的振幅大小。Amplitude refers to the maximum distance that an object deviates from its original position during the vibration process. The loudness of the sound heard by the human ear is related to the amplitude of the sound source. The larger the amplitude, the stronger the loudness. In one embodiment, the digital audio signal decoded by the audio decoder can be sampled to obtain the amplitude information within the preset time period T, wherein the amplitude information can be composed of multiple amplitude values, according to the obtained multiple amplitudes The value can correspondingly determine the amplitude curve of the sound source played within the preset time period T. In another embodiment, taking the Android system as an example, the audio information of the sound source can be acquired through the class android.media.MediaRecorder or class android.media.AudioRecord to obtain the corresponding amplitude. In another embodiment, when the audio information obtained in step S101 is the original file corresponding to the sound source, the corresponding amplitude can be obtained by parsing the original file.

在一个实施例中,当检测音源播放时,每隔预设时间(如1s、3s或10s)确定一次振幅,或者实时的,对音频信息的每一帧的振幅进行确定。具体的,所述获取所述音源的音频信息包括:获取所述音源的音频帧信息;相应的,依据所述音频信息确定所述音源的振幅包括:依据所述音频帧信息确定所述音源每一帧的振幅。示例性的,当检测到音源播放时,对音源文件进行解析得到音频帧序列,根据音频帧序列的每一帧确定对应的振幅。In one embodiment, when the sound source is detected, the amplitude is determined every preset time (such as 1s, 3s or 10s), or in real time, the amplitude of each frame of the audio information is determined. Specifically, the acquiring the audio information of the sound source includes: acquiring audio frame information of the sound source; correspondingly, determining the amplitude of the sound source according to the audio information includes: determining the amplitude of the sound source according to the audio frame information The amplitude of a frame. Exemplarily, when it is detected that the audio source is being played, the audio source file is parsed to obtain an audio frame sequence, and the corresponding amplitude is determined according to each frame of the audio frame sequence.

步骤S103、确定和所述音频振幅对应的振幅调整系数,将所述振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。Step S103: Determine an amplitude adjustment coefficient corresponding to the audio amplitude, divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficients.

在一个实施例中,为提高音源中低振幅区域的音量,对低振幅的音频振幅分配较大的振幅调整系数,高振幅的音频振幅相应的分配一较小的调整系数。示例性的,对小于-3db或大于-10db音频振幅分配振幅调整系数为1.2,对小于-10db大于-50db的音频振幅分配振幅调整系数为2,此时,在音源播放过程中,由前一段的振幅调整系数1.2过渡到下一段需要振幅调整系数2进行调整的音频振幅时会存在明显的由振幅调整系数跳跃带来的听感突兀的问题。可选的,所述将所述振幅调整系数划分为预设数目的子振幅调整系数包括:检测到不同音频振幅对应的振幅调整系数满足预设条件时,将所述振幅调整系数划分为预设数目的子振幅调整系数,所述子振幅调整系数依据所述振幅调整系数线性或非线性划分得到。其中,该预设条件可以是相邻的音频振幅的振幅调整系数不一致,如振幅调整系数由1变成2,或振幅调整系数由2变成1.2等,此时,将所述振幅调整系数划分为预设数目的子振幅调整系数,示例性的,当确定出的相邻音频振幅的振幅调整系数为1.2和2时,可在1.2到2之间再划分10个等级,即1.28、1.36、1.42、...、2。其中,子振幅调整系数的划分可以是线性的还可以是非线性的。在调节过程中,在振幅调整系数1.2到2的过渡阶段,可将每n(示例性的n大于1小于等于20)帧音频帧对应一个子振幅调整系数,依次对每一音频帧的振幅进行调整。示例性的,振幅调整系数由1.2改变为2时,改变发生时的第1-20音频帧对应的振幅调整系数为1.28,第21-40帧的振幅调整系数为1.36,依次类推。In one embodiment, in order to increase the volume of the low-amplitude region of the sound source, a larger amplitude adjustment coefficient is assigned to the low-amplitude audio amplitude, and a smaller adjustment coefficient is assigned to the high-amplitude audio amplitude. Exemplarily, an amplitude adjustment factor of 1.2 is allocated to audio amplitudes less than -3db or greater than -10db, and an amplitude adjustment factor of 2 is allocated to audio amplitudes less than -10db and greater than -50db. When the amplitude adjustment coefficient 1.2 transitions to the next audio amplitude that needs to be adjusted by the amplitude adjustment coefficient 2, there will be an obvious problem of abrupt hearing caused by the jump of the amplitude adjustment coefficient. Optionally, the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients includes: when it is detected that the amplitude adjustment coefficients corresponding to different audio amplitudes meet a preset condition, dividing the amplitude adjustment coefficient into preset sub-amplitude adjustment coefficients The number of sub-amplitude adjustment coefficients, the sub-amplitude adjustment coefficients are obtained according to the linear or nonlinear division of the amplitude adjustment coefficients. Wherein, the preset condition can be that the amplitude adjustment coefficients of adjacent audio amplitudes are inconsistent, such as the amplitude adjustment coefficient changes from 1 to 2, or the amplitude adjustment coefficient changes from 2 to 1.2, etc. At this time, the amplitude adjustment coefficients are divided into It is a preset number of sub-amplitude adjustment coefficients. Exemplarily, when the determined amplitude adjustment coefficients of adjacent audio amplitudes are 1.2 and 2, 10 levels can be further divided between 1.2 and 2, that is, 1.28, 1.36, 1.42,...,2. Wherein, the division of the sub-amplitude adjustment coefficients may be linear or non-linear. In the adjustment process, in the transition stage of the amplitude adjustment coefficient 1.2 to 2, every n (exemplary n is greater than 1 and less than or equal to 20) frames of audio frames can be corresponding to a sub-amplitude adjustment coefficient, and the amplitude of each audio frame can be sequentially Adjustment. Exemplarily, when the amplitude adjustment coefficient is changed from 1.2 to 2, the amplitude adjustment coefficient corresponding to the 1-20th audio frame when the change occurs is 1.28, the amplitude adjustment coefficient corresponding to the 21-40th frame is 1.36, and so on.

在一个可能的实施例中,对音频振幅进行调整的过程可以是:对音源文件进行解析,对得到的音频数据中的表征振幅信息的数据进行修改,修改完毕后再进行封装,当缓冲到对应的音源文件并被播放时音频振幅相应的已被增大;还可以是,在音源播放的解码过程中,通过对得到的数字音频信号进行分析得到音频振幅,将该振幅数据乘以对应的调节系数以改变振幅大小,进而对音源的音量进行调节。由此,实现了不改变终端设备系统原有音量的前提下对音源音量的大小进行了调节,调节过程可以在音源文件未进入缓冲区前,以减少播放负载,也可以是针对缓冲区中的音源内容进行调节以提高调节效率。In a possible embodiment, the process of adjusting the audio amplitude may be: parsing the audio source file, modifying the data representing the amplitude information in the obtained audio data, and then packaging after the modification, when the buffer reaches the corresponding The audio source file is played and the audio amplitude has been increased correspondingly; it can also be, in the decoding process of the audio source playback, the audio amplitude is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding adjustment coefficient to change the amplitude, and then adjust the volume of the sound source. Thus, the volume of the audio source can be adjusted without changing the original volume of the terminal device system. The adjustment process can be performed before the audio file enters the buffer to reduce the playback load, or it can be aimed at the audio files in the buffer. The content of the audio source is adjusted to improve the adjustment efficiency.

图2是本发明实施例提供的另一种音量调节方法的流程图,可选的,所述确定和所述音频振幅对应的振幅调整系数包括:依据所述音频振幅的大小确定和所述音频振幅对应的振幅调整系数。如图2所示,本实施例提供的技术方案具体如下:Fig. 2 is a flow chart of another volume adjustment method provided by an embodiment of the present invention. Optionally, the determining the amplitude adjustment coefficient corresponding to the audio amplitude includes: The amplitude adjustment factor corresponding to the amplitude. As shown in Figure 2, the technical solution provided by this embodiment is specifically as follows:

步骤S201、当检测到终端设备进行音源播放时,获取所述音源的音频信息。Step S201, when it is detected that the terminal device is playing a sound source, acquire audio information of the sound source.

步骤S202、依据所述音频信息确定对应的音频振幅。Step S202. Determine the corresponding audio amplitude according to the audio information.

步骤S203、依据所述音频振幅的大小确定和所述音频振幅对应的振幅调整系数。Step S203. Determine an amplitude adjustment coefficient corresponding to the audio amplitude according to the magnitude of the audio amplitude.

在一个实施例中,可通过获取预设长度的音频振幅确定该预设长度的音频振幅的平均振幅大小,进而依据该平均振幅大小确定对应的振幅调整系数。示例性的,可通过预存的映射关系表进行确定,一种可能的确定方式如下表所示:In one embodiment, the average amplitude of the audio amplitude of the preset length can be determined by obtaining the audio amplitude of the preset length, and then the corresponding amplitude adjustment coefficient can be determined according to the average amplitude. Exemplarily, it can be determined through a pre-stored mapping relationship table, and a possible determination method is shown in the following table:

表1Table 1

平均振幅average amplitude 调整系数Adjustment coefficient 大于-3db或小于-50dbGreater than -3db or less than -50db 11 小于-10db大于-50dbLess than -10db Greater than -50db 22 小于-3db大于-10dbLess than -3db Greater than -10db 1.51.5

如表1所示,当平均振幅大于-3db或小于-50db时,不对其增益进行调节;当振幅小于-10db大于-50db时,振幅为高振幅区,为其分配增益系数为1.5,当振幅小于-10db大于-50db时,为中振幅区,为其分配振幅系数为2以显著提高该部分振幅的振幅大小。As shown in Table 1, when the average amplitude is greater than -3db or less than -50db, the gain is not adjusted; when the amplitude is less than -10db and greater than -50db, the amplitude is in the high amplitude area, and the gain coefficient is assigned to it. 1.5, when the amplitude When it is less than -10db and greater than -50db, it is a medium amplitude area, and the amplitude coefficient is assigned to it as 2 to significantly increase the amplitude of this part of the amplitude.

步骤S204、将所述振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。Step S204: Divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficients.

由上述可知,通过对不同音频振幅大小分配不同的振幅调整系数,避免了破音的同时,降低了对噪音的振幅提升,在此基础上,进一步的进行调整系数的细分,使得音源播放过程中声音大小合理,听感平滑。From the above, it can be seen that by assigning different amplitude adjustment coefficients to different audio amplitudes, it avoids breaking the sound and reduces the increase in the amplitude of the noise. On this basis, further subdividing the adjustment coefficients makes the sound source playback process The mid-range sound is reasonable in size and the sense of hearing is smooth.

图3是本发明实施例提供的另一种音量调节方法的流程图,可选的,所述确定和所述音频振幅对应的振幅调整系数包括:依据所述音频振幅的大小和终端设备的音量信息确定和所述音频振幅对应的振幅调整系数,所述音量信息包括音量值信息、音量增加信息或音量减小信息。如图3所示,本实施例提供的技术方案具体如下:Fig. 3 is a flow chart of another volume adjustment method provided by an embodiment of the present invention. Optionally, the determination of the amplitude adjustment coefficient corresponding to the audio amplitude includes: according to the audio amplitude and the volume of the terminal device The information determines an amplitude adjustment coefficient corresponding to the audio amplitude, and the volume information includes volume value information, volume increase information, or volume decrease information. As shown in Figure 3, the technical solution provided by this embodiment is specifically as follows:

步骤S301、当检测到终端设备进行音源播放时,获取所述音源的音频信息。Step S301, when it is detected that the terminal device is playing a sound source, acquire audio information of the sound source.

步骤S302、依据所述音频信息确定对应的音频振幅。Step S302. Determine the corresponding audio amplitude according to the audio information.

步骤S303、依据所述音频振幅的大小和终端设备的音量信息确定和所述音频振幅对应的振幅调整系数。Step S303. Determine an amplitude adjustment coefficient corresponding to the audio amplitude according to the magnitude of the audio amplitude and the volume information of the terminal device.

在一个实施例中,该获取的音量信息可以是终端设备当前的音量值信息、音量增加信息和音量减小信息中的一种或多种。相应的,依据所述音量信息确定对应的振幅调整系数可以是依据音量信息中的当前的音量值信息、音量增加信息和音量减小信息中的一种或多种进行确定。In an embodiment, the acquired volume information may be one or more of current volume value information, volume increase information, and volume decrease information of the terminal device. Correspondingly, determining the corresponding amplitude adjustment coefficient according to the volume information may be determined according to one or more of current volume value information, volume increase information, and volume decrease information in the volume information.

示例性的,终端设备由静音到最大音量总共分为18个可调等级,每个等级对应一个音量值,当终端设备播放音源时,可通过系统的音量管理组件的get volume方法得到系统的当前音量值;当用户通过终端设备的调节按钮或者触摸屏进行音量增大或减小调节时,相应的确定当前终端设备的音量是增大还是减小。在一个实施例中,依据当前的音量值确定对应的振幅调节系数可以下表为例:Exemplarily, the terminal device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value. When the terminal device plays a sound source, the current volume of the system can be obtained through the get volume method of the volume management component of the system. Volume value: When the user adjusts the volume up or down through the adjustment button or touch screen of the terminal device, it is determined whether the volume of the current terminal device is increased or decreased accordingly. In one embodiment, the following table can be used as an example to determine the corresponding amplitude adjustment coefficient according to the current volume value:

表2Table 2

音量值volume value 调节系数Adjustment coefficient 55 0.50.5 1010 1.51.5 1515 22

在另一个实施例中,依据当前的音量增加信息或音量减小信息确定对应的振幅调节系数可以下表为例:In another embodiment, the following table can be used as an example to determine the corresponding amplitude adjustment coefficient according to the current volume increase information or volume decrease information:

表3table 3

音量值volume value 调节系数Adjustment coefficient 增加Increase 1.51.5 减小decrease 0.80.8

在另一个实施例中,还可根据音量增加信息或音量减小信息结合当前终端的音量值共同确定振幅调节系数以对音频振幅实现调整。In another embodiment, the amplitude adjustment coefficient can also be jointly determined according to the volume increase information or the volume decrease information and the volume value of the current terminal, so as to adjust the audio amplitude.

在一个可能的实施例中,确定和所述音频振幅对应的振幅调整系数方式可以是:为大于第一预设阈值或小于第三预设阈值的音频振幅分配第一振幅调整系数,为小于或等于第一预设阈值大于第二预设阈值的音频振幅分配第二振幅调整系数,为小于或等于第二预设阈值大于第三预设阈值的音频振幅分配第三振幅调整系数,其中,所述第一振幅调整系数小于所述第二振幅调整系数,所述第二振幅调整系数小于所述第三振幅调整系数。其中,该第一预设阈值可以是-3db,第二预设阈值可以是-10db,第三预设阈值可以是-50db,相应的,第一振幅调整系数为1(即不进行调整),第二振幅调整系数为1.4,第三振幅调整系数为1.8。其中,对于振幅过大(大于-3db)或振幅过小(小于-50db)的音频振幅不进行振幅调节,避免了对过大振幅调节后造成的破音,也避免了对过小的噪音进行调高带来的杂音增强的问题,进一步优化了音量调节方法。In a possible embodiment, the method of determining the amplitude adjustment coefficient corresponding to the audio amplitude may be: assigning the first amplitude adjustment coefficient to the audio amplitude greater than the first preset threshold or less than the third preset threshold, and assigning the first amplitude adjustment coefficient to the audio amplitude less than or An audio amplitude equal to the first preset threshold greater than the second preset threshold is assigned a second amplitude adjustment coefficient, and an audio amplitude less than or equal to the second preset threshold greater than the third preset threshold is assigned a third amplitude adjustment coefficient, wherein the The first amplitude adjustment coefficient is smaller than the second amplitude adjustment coefficient, and the second amplitude adjustment coefficient is smaller than the third amplitude adjustment coefficient. Wherein, the first preset threshold may be -3db, the second preset threshold may be -10db, and the third preset threshold may be -50db, correspondingly, the first amplitude adjustment coefficient is 1 (that is, no adjustment is performed), The second amplitude adjustment coefficient is 1.4, and the third amplitude adjustment coefficient is 1.8. Among them, the amplitude adjustment is not performed for the audio amplitude that is too large (greater than -3db) or too small (less than -50db), which avoids the broken sound caused by the excessive amplitude adjustment, and also avoids the noise that is too small. The problem of noise enhancement caused by high-level adjustment has further optimized the volume adjustment method.

步骤S304、将所述振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。Step S304: Divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficients.

图4是本发明实施例提供的另一种音量调节方法的流程图,可选的,在确定和所述音频振幅对应的振幅调整系数之后,还包括:依据终端设备播放器件的阻抗值对所述振幅调整系数进行调整;相应的,所述将所述振幅调整系数划分为预设数目的子振幅调整系数包括:将调整后的振幅调整系数划分为预设数目的子振幅调整系数。如图4所示,本实施例提供的技术方案具体如下:Fig. 4 is a flow chart of another volume adjustment method provided by an embodiment of the present invention. Optionally, after determining the amplitude adjustment coefficient corresponding to the audio amplitude, it further includes: The amplitude adjustment coefficient is adjusted; correspondingly, the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients includes: dividing the adjusted amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients. As shown in Figure 4, the technical solution provided by this embodiment is specifically as follows:

步骤S401、当检测到终端设备进行音源播放时,获取所述音源的音频信息。Step S401. Acquire audio information of the sound source when it is detected that the terminal device is playing the sound source.

步骤S402、依据所述音频信息确定对应的音频振幅。Step S402. Determine the corresponding audio amplitude according to the audio information.

步骤S403、确定和所述音频振幅对应的振幅调整系数,依据终端设备播放器件的阻抗值所述振幅调整系数进行调整。Step S403. Determine the amplitude adjustment coefficient corresponding to the audio amplitude, and adjust the amplitude adjustment coefficient according to the impedance value of the playback device of the terminal device.

在一个实施例中,可通过功放芯片检测终端设备中安装的播放器件(如:扬声器)的阻抗值,还可以是通过物理方式检测播放器件的阻抗。示例性的,该阻抗值越大对应的对振幅调整系数的调整越大。具体的,假设播放器件的标称阻抗值为x,通过检测得到的阻抗值为1.2x,则相应的在确定出的振幅调整系数的基础上,将该振幅调整系数乘以1.2作为调整后的振幅调整系数。In an embodiment, the impedance value of the playback device installed in the terminal device (such as a loudspeaker) may be detected through a power amplifier chip, or the impedance of the playback device may be detected physically. Exemplarily, a larger impedance value corresponds to a larger adjustment of the amplitude adjustment coefficient. Specifically, assuming that the nominal impedance value of the playback device is x, and the impedance value obtained through detection is 1.2x, then correspondingly on the basis of the determined amplitude adjustment coefficient, the amplitude adjustment coefficient is multiplied by 1.2 as the adjusted Amplitude adjustment factor.

步骤S404、将调整后的振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。Step S404. Divide the adjusted amplitude adjustment coefficients into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficients.

由上述可知,在对音源的振幅进行调节过程中,引入播放器件的阻抗值作为确定振幅调节系数的参量之一,避免了播放器件随播放时长的增加阻抗值越来越高进而对正常播放过程中的音量大小产生影响的问题,使得调节后的音量大小更佳符合用户需求,进一步提高了音量调节效果。It can be seen from the above that in the process of adjusting the amplitude of the sound source, the impedance value of the playback device is introduced as one of the parameters to determine the amplitude adjustment coefficient, which prevents the impedance value of the playback device from increasing with the increase of the playback time, which will affect the normal playback process. The problem of the influence of the volume in the system makes the adjusted volume better meet the needs of users, and further improves the effect of volume adjustment.

图5是本发明实施例提供的另一种音量调节方法的流程图,可选的,在确定和所述音频振幅对应的振幅调整系数之后,还包括:依据终端设备所处环境的噪声值对所述振幅调整系数进行调整;相应的,所述将所述振幅调整系数划分为预设数目的子振幅调整系数包括:将调整后的振幅调整系数划分为预设数目的子振幅调整系数。如图5所示,本实施例提供的技术方案具体如下:5 is a flow chart of another volume adjustment method provided by an embodiment of the present invention. Optionally, after determining the amplitude adjustment coefficient corresponding to the audio amplitude, it further includes: The amplitude adjustment coefficient is adjusted; correspondingly, the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients includes: dividing the adjusted amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients. As shown in Figure 5, the technical solution provided by this embodiment is specifically as follows:

步骤S501、当检测到终端设备进行音源播放时,获取所述音源的音频信息。Step S501, when it is detected that the terminal device is playing a sound source, acquire audio information of the sound source.

步骤S502、依据所述音频信息确定对应的音频振幅。Step S502. Determine the corresponding audio amplitude according to the audio information.

步骤S503、确定和所述音频振幅对应的振幅调整系数,依据终端设备所处环境的噪声值对所述振幅调整系数进行调整。Step S503. Determine an amplitude adjustment coefficient corresponding to the audio amplitude, and adjust the amplitude adjustment coefficient according to the noise value of the environment where the terminal device is located.

在一个实施例中,可通过终端设备安装的麦克风采集当前所处环境的噪音以确定对应的噪声值。示例性的,该噪声值越大对应的对振幅调整系数的调整越大。具体的,假设终端设备在安静环境下的噪声值为y,终端设备处于户外或嘈杂环境中时,确定的噪声值为1.5y,则相应的在确定出的振幅调整系数的基础上,将该振幅调整系数乘以1.5作为调整后的振幅调整系数。需要说明的是,还可将阻抗值、噪声值以及音频振幅的大小共同确定音源的振幅调节系数。In an embodiment, the noise of the current environment may be collected through a microphone installed on the terminal device to determine a corresponding noise value. Exemplarily, a larger noise value corresponds to a larger adjustment of the amplitude adjustment coefficient. Specifically, assuming that the noise value of the terminal device is y in a quiet environment, and the determined noise value is 1.5y when the terminal device is in an outdoor or noisy environment, then correspondingly based on the determined amplitude adjustment coefficient, the The amplitude adjustment factor is multiplied by 1.5 as the adjusted amplitude adjustment factor. It should be noted that the impedance value, the noise value, and the magnitude of the audio amplitude can also be used together to determine the amplitude adjustment coefficient of the sound source.

步骤S504、将调整后的振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。Step S504: Divide the adjusted amplitude adjustment coefficients into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficients.

由上述可知,在对音源的振幅进行调节过程中,考虑了噪声对终端设备音量的影响,将确定的噪声值作为确定振幅调节系数的参量之一,使得调节后的音量大小更加符合用户需求,进一步提高了音量调节效果。It can be seen from the above that in the process of adjusting the amplitude of the sound source, the impact of noise on the volume of the terminal equipment is considered, and the determined noise value is used as one of the parameters for determining the amplitude adjustment coefficient, so that the adjusted volume is more in line with user needs. Further improved the volume adjustment effect.

图6是本发明实施例提供的一种音量调节装置的结构框图,该装置用于执行上述实施例提供的音量调节方法,具备执行方法相应的功能模块和有益效果。如图6所示,该装置具体包括:获取模块101、振幅确定模块102、调整系数确定模块103和调节模块104。Fig. 6 is a structural block diagram of a volume adjustment device provided by an embodiment of the present invention, the device is used to execute the volume adjustment method provided by the above embodiment, and has corresponding functional modules and beneficial effects for executing the method. As shown in FIG. 6 , the device specifically includes: an acquisition module 101 , an amplitude determination module 102 , an adjustment coefficient determination module 103 and an adjustment module 104 .

其中,获取模块101,用于当检测到终端设备进行音源播放时,获取所述音源的音频信息。Wherein, the obtaining module 101 is configured to obtain audio information of the sound source when it is detected that the terminal device is playing the sound source.

终端设备可通过安装的第三方应用程序或系统自带的音视频播放软件进行音源的播放。其中,主要包括音源文件的获取、解码和输出等步骤。示例性的,获取到的音源文件可以是通过网络接收到的组播流,还可以是终端设备本地存储的音视频文件;获取到该音源文件后将其加载到内存缓冲区中;对加载到内存缓冲区的音源文件进行解码,在解码开始之前,如果该音源文件同时包含有视频数据,需要进行音频数据和视频数据的分离,将分离后的音频数据输入至音频解码器,其中,音频解码器主要用于读取内存缓冲区中的音频数据,得到数字音频信号,并将该数字音频信号转换为模拟音频信号,终端设备的播放器件根据该模拟音频信号进行音频播放。在一个实施例中,当监听到音源播放事件被触发时,确定终端设备开始播放音源,其中,该触发事件可以是检测到的触摸屏中显示的播放按钮被按下,还可以是检测到终端设备的播放器件如喇叭开始播放声音时,确定终端设备进行音源播放。The terminal device can play the audio source through the installed third-party application program or the audio and video playback software that comes with the system. Among them, it mainly includes the steps of acquiring, decoding and outputting the audio source file. Exemplarily, the obtained audio source file can be a multicast stream received through the network, and can also be an audio and video file stored locally on the terminal device; after obtaining the audio source file, load it into the memory buffer; The audio source file in the memory buffer is decoded. Before the decoding starts, if the audio source file also contains video data, the audio data and video data need to be separated, and the separated audio data is input to the audio decoder. Among them, audio decoding The device is mainly used to read the audio data in the memory buffer, obtain a digital audio signal, and convert the digital audio signal into an analog audio signal, and the playback device of the terminal device performs audio playback according to the analog audio signal. In one embodiment, when it is detected that the sound source play event is triggered, it is determined that the terminal device starts to play the sound source, wherein the trigger event may be the detected press of the play button displayed on the touch screen, or the detected When the playback device such as the speaker starts to play the sound, it is determined that the terminal device plays the sound source.

当检测到终端设备进行音源播放时,获取所述音源的音频信息。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,确定该音源对应的音频信息。在另一实施例中,还可以获取当前播放的音源的原始文件,通过对该原始文件的解析确定音源对应的音频信息。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息。When it is detected that the terminal device is playing the sound source, the audio information of the sound source is acquired. In one embodiment, the digital audio signal decoded by the audio decoder may be sampled to determine the audio information corresponding to the audio source. In another embodiment, the original file of the currently played audio source can also be obtained, and the audio information corresponding to the audio source can be determined by analyzing the original file. In another embodiment, taking the Android system as an example, the audio information of the audio source can be acquired through the android.media.MediaRecorder class or the android.media.AudioRecord class.

振幅确定模块102,用于依据所述音频信息确定对应的音频振幅。The amplitude determination module 102 is configured to determine the corresponding audio amplitude according to the audio information.

振幅指物体震动过程中偏离原来位置的最大距离,人耳听到的声音的响度与音源的振幅相关,振幅越大响度越强。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,获取预设时间段T内的振幅信息,其中,该振幅信息可有多个振幅值组成,依据得到的多个振幅值可相应的确定在该预设时间段T内播放的音源的振幅曲线。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息后得到对应的振幅大小。在另一实施例中,当步骤S101获取到的音频信息为音源对应的原始文件时,可通过对原始文件进行解析以得到对应的振幅大小。Amplitude refers to the maximum distance that an object deviates from its original position during the vibration process. The loudness of the sound heard by the human ear is related to the amplitude of the sound source. The larger the amplitude, the stronger the loudness. In one embodiment, the digital audio signal decoded by the audio decoder can be sampled to obtain the amplitude information within the preset time period T, wherein the amplitude information can be composed of multiple amplitude values, according to the obtained multiple amplitudes The value can correspondingly determine the amplitude curve of the sound source played within the preset time period T. In another embodiment, taking the Android system as an example, the audio information of the sound source can be acquired through the class android.media.MediaRecorder or class android.media.AudioRecord to obtain the corresponding amplitude. In another embodiment, when the audio information obtained in step S101 is the original file corresponding to the sound source, the corresponding amplitude can be obtained by parsing the original file.

在一个实施例中,当检测音源播放时,每隔预设时间(如1s、3s或10s)确定一次振幅,或者实时的,对音频信息的每一帧的振幅进行确定。具体的,所述获取所述音源的音频信息包括:获取所述音源的音频帧信息;相应的,依据所述音频信息确定所述音源的振幅包括:依据所述音频帧信息确定所述音源每一帧的振幅。示例性的,当检测到音源播放时,对音源文件进行解析得到音频帧序列,根据音频帧序列的每一帧确定对应的振幅。In one embodiment, when the sound source is detected, the amplitude is determined every preset time (such as 1s, 3s or 10s), or in real time, the amplitude of each frame of the audio information is determined. Specifically, the acquiring the audio information of the sound source includes: acquiring audio frame information of the sound source; correspondingly, determining the amplitude of the sound source according to the audio information includes: determining the amplitude of the sound source according to the audio frame information The amplitude of a frame. Exemplarily, when it is detected that the audio source is being played, the audio source file is parsed to obtain an audio frame sequence, and the corresponding amplitude is determined according to each frame of the audio frame sequence.

调整系数确定模块103,用于确定和所述音频振幅对应的振幅调整系数,将所述振幅调整系数划分为预设数目的子振幅调整系数。The adjustment coefficient determination module 103 is configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude, and divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients.

在一个实施例中,为提高音源中低振幅区域的音量,对低振幅的音频振幅分配较大的振幅调整系数,高振幅的音频振幅相应的分配一较小的调整系数。示例性的,对小于-3db或大于-10db音频振幅分配振幅调整系数为1.2,对小于-10db大于-50db的音频振幅分配振幅调整系数为2,此时,在音源播放过程中,由前一段的振幅调整系数1.2过渡到下一段需要振幅调整系数2进行调整的音频振幅时会存在明显的由振幅调整系数跳跃带来的听感突兀的问题。可选的,所述将所述振幅调整系数划分为预设数目的子振幅调整系数包括:检测到不同音频振幅对应的振幅调整系数满足预设条件时,将所述振幅调整系数划分为预设数目的子振幅调整系数,所述子振幅调整系数依据所述振幅调整系数线性或非线性划分得到。其中,该预设条件可以是相邻的音频振幅的振幅调整系数不一致,如振幅调整系数由1变成2,或振幅调整系数由2变成1.2等,此时,将所述振幅调整系数划分为预设数目的子振幅调整系数,示例性的,当确定出的相邻音频振幅的振幅调整系数为1.2和2时,可在1.2到2之间再划分10个等级,即1.28、1.36、1.42、...、2。其中,子振幅调整系数的划分可以是线性的还可以是非线性的。在调节过程中,在振幅调整系数1.2到2的过渡阶段,可将每n(示例性的n大于1小于等于20)帧音频帧对应一个子振幅调整系数,依次对每一音频帧的振幅进行调整。示例性的,振幅调整系数由1.2改变为2时,改变发生时的第1-20音频帧对应的振幅调整系数为1.28,第21-40帧的振幅调整系数为1.36,依次类推。In one embodiment, in order to increase the volume of the low-amplitude region of the sound source, a larger amplitude adjustment coefficient is assigned to the low-amplitude audio amplitude, and a smaller adjustment coefficient is assigned to the high-amplitude audio amplitude. Exemplarily, an amplitude adjustment factor of 1.2 is allocated to audio amplitudes less than -3db or greater than -10db, and an amplitude adjustment factor of 2 is allocated to audio amplitudes less than -10db and greater than -50db. When the amplitude adjustment coefficient 1.2 transitions to the next audio amplitude that needs to be adjusted by the amplitude adjustment coefficient 2, there will be an obvious problem of abrupt hearing caused by the jump of the amplitude adjustment coefficient. Optionally, the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients includes: when it is detected that the amplitude adjustment coefficients corresponding to different audio amplitudes meet a preset condition, dividing the amplitude adjustment coefficient into preset sub-amplitude adjustment coefficients The number of sub-amplitude adjustment coefficients, the sub-amplitude adjustment coefficients are obtained according to the linear or nonlinear division of the amplitude adjustment coefficients. Wherein, the preset condition can be that the amplitude adjustment coefficients of adjacent audio amplitudes are inconsistent, such as the amplitude adjustment coefficient changes from 1 to 2, or the amplitude adjustment coefficient changes from 2 to 1.2, etc. At this time, the amplitude adjustment coefficients are divided into It is a preset number of sub-amplitude adjustment coefficients. Exemplarily, when the determined amplitude adjustment coefficients of adjacent audio amplitudes are 1.2 and 2, 10 levels can be further divided between 1.2 and 2, that is, 1.28, 1.36, 1.42,...,2. Wherein, the division of the sub-amplitude adjustment coefficients may be linear or non-linear. In the adjustment process, in the transition stage of the amplitude adjustment coefficient 1.2 to 2, every n (exemplary n is greater than 1 and less than or equal to 20) frames of audio frames can be corresponding to a sub-amplitude adjustment coefficient, and the amplitude of each audio frame can be sequentially Adjustment. Exemplarily, when the amplitude adjustment coefficient is changed from 1.2 to 2, the amplitude adjustment coefficient corresponding to the 1-20th audio frame when the change occurs is 1.28, the amplitude adjustment coefficient corresponding to the 21-40th frame is 1.36, and so on.

调节模块104,用于依据所述子振幅调整系数对所述音频振幅进行调整。An adjustment module 104, configured to adjust the audio amplitude according to the sub-amplitude adjustment coefficient.

在一个可能的实施例中,对音频振幅进行调整的过程可以是:对音源文件进行解析,对得到的音频数据中的表征振幅信息的数据进行修改,修改完毕后再进行封装,当缓冲到对应的音源文件并被播放时音频振幅相应的已被增大;还可以是,在音源播放的解码过程中,通过对得到的数字音频信号进行分析得到音频振幅,将该振幅数据乘以对应的调节系数以改变振幅大小,进而对音源的音量进行调节。由此,实现了不改变终端设备系统原有音量的前提下对音源音量的大小进行了调节,调节过程可以在音源文件未进入缓冲区前,以减少播放负载,也可以是针对缓冲区中的音源内容进行调节以提高调节效率。In a possible embodiment, the process of adjusting the audio amplitude may be: parsing the audio source file, modifying the data representing the amplitude information in the obtained audio data, and then packaging after the modification, when the buffer reaches the corresponding The audio source file is played and the audio amplitude has been increased correspondingly; it can also be, in the decoding process of the audio source playback, the audio amplitude is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding adjustment coefficient to change the amplitude, and then adjust the volume of the sound source. Thus, the volume of the audio source can be adjusted without changing the original volume of the terminal device system. The adjustment process can be performed before the audio file enters the buffer to reduce the playback load, or it can be aimed at the audio files in the buffer. The content of the audio source is adjusted to improve the adjustment efficiency.

本实施例提供的技术方案,当检测到终端设备进行音源播放时,获取所述音源的音频信息;依据所述音频信息确定对应的音频振幅;确定和所述音频振幅对应的振幅调整系数,将所述振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。本方案提高了音量调节效率,降低了终端设备的功耗。In the technical solution provided by this embodiment, when it is detected that the terminal device is playing the sound source, the audio information of the sound source is acquired; the corresponding audio amplitude is determined according to the audio information; the amplitude adjustment coefficient corresponding to the audio amplitude is determined, and the The amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients, and the audio amplitude is adjusted according to the sub-amplitude adjustment coefficients. This solution improves the volume adjustment efficiency and reduces the power consumption of the terminal equipment.

在一个可能的实施例中,所述调整系数确定模块103具体用于:In a possible embodiment, the adjustment coefficient determination module 103 is specifically configured to:

检测到不同音频振幅对应的振幅调整系数满足预设条件时,将所述振幅调整系数划分为预设数目的子振幅调整系数,所述子振幅调整系数依据所述振幅调整系数线性或非线性划分得到。When it is detected that the amplitude adjustment coefficients corresponding to different audio amplitudes meet the preset conditions, the amplitude adjustment coefficients are divided into a preset number of sub-amplitude adjustment coefficients, and the sub-amplitude adjustment coefficients are divided linearly or nonlinearly according to the amplitude adjustment coefficients get.

在一个可能的实施例中,所述调节模块104具体用于:In a possible embodiment, the adjustment module 104 is specifically configured to:

依据所述子振幅调整系数对所述音频振幅的每一帧进行逐级调整。Each frame of the audio amplitude is adjusted step by step according to the sub-amplitude adjustment coefficient.

在一个可能的实施例中,所述调整系数确定模块103具体用于:In a possible embodiment, the adjustment coefficient determination module 103 is specifically configured to:

依据所述音频信息的音频振幅的大小确定对应的振幅调整系数。A corresponding amplitude adjustment coefficient is determined according to the magnitude of the audio amplitude of the audio information.

在一个可能的实施例中,所述调整系数确定模块103具体用于:In a possible embodiment, the adjustment coefficient determination module 103 is specifically configured to:

依据所述音频振幅的大小确定和所述音频振幅对应的振幅调整系数。An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the magnitude of the audio amplitude.

在一个可能的实施例中,所述调整系数确定模块103具体用于:In a possible embodiment, the adjustment coefficient determination module 103 is specifically configured to:

依据所述音频振幅的大小和终端设备的音量信息确定和所述音频振幅对应的振幅调整系数,所述音量信息包括音量值信息、音量增加信息或音量减小信息。An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the magnitude of the audio amplitude and volume information of the terminal device, where the volume information includes volume value information, volume increase information, or volume decrease information.

在一个可能的实施例中,所述调整系数确定模块103还用于:In a possible embodiment, the adjustment coefficient determining module 103 is further configured to:

在确定和所述音频振幅对应的振幅调整系数之后,依据终端设备播放器件的阻抗值和/或所处环境的噪声值对所述振幅调整系数进行调整;After determining the amplitude adjustment coefficient corresponding to the audio amplitude, adjust the amplitude adjustment coefficient according to the impedance value of the playback device of the terminal device and/or the noise value of the environment;

将调整后的振幅调整系数划分为预设数目的子振幅调整系数。The adjusted amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients.

本实施例在上述各实施例的基础上提供了一种终端设备,图7是本发明实施例提供的一种终端设备的结构示意图,如图7所示,该终端设备200包括:存储器201、处理器(Central Processing Unit,CPU)202、外设接口203、RF(Radio Frequency,射频)电路205、音频电路206、扬声器211、电源管理芯片208、输入/输出(I/O)子系统209、触摸屏212、其他输入/控制设备210以及外部端口204,这些部件通过一个或多个通信总线或信号线207来通信。This embodiment provides a terminal device on the basis of the foregoing embodiments. FIG. 7 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention. As shown in FIG. 7 , the terminal device 200 includes: a memory 201, Processor (Central Processing Unit, CPU) 202, peripheral interface 203, RF (Radio Frequency, radio frequency) circuit 205, audio circuit 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, Touch screen 212 , other input/control devices 210 , and external ports 204 , these components communicate through one or more communication buses or signal lines 207 .

应该理解的是,图示终端设备200仅仅是终端设备的一个范例,并且终端设备200可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 200 is only an example of a terminal device, and the terminal device 200 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may 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 following describes in detail the terminal device used for the permission management of multiple applications provided by this embodiment, and the terminal device takes a smart phone as an example.

存储器201,所述存储器201可以被CPU202、外设接口203等访问,所述存储器201可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 201, the memory 201 can be accessed by the CPU 202, the peripheral interface 203, etc., the memory 201 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口203,所述外设接口203可以将设备的输入和输出外设连接到CPU202和存储器201。Peripheral interface 203 , which can connect the input and output peripherals of the device to CPU 202 and memory 201 .

I/O子系统209,所述I/O子系统209可以将设备上的输入输出外设,例如触摸屏212和其他输入/控制设备210,连接到外设接口203。I/O子系统209可以包括显示控制器2091和用于控制其他输入/控制设备210的一个或多个输入控制器2092。其中,一个或多个输入控制器2092从其他输入/控制设备210接收电信号或者向其他输入/控制设备210发送电信号,其他输入/控制设备210可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器2092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 209 , the I/O subsystem 209 can connect the input and output peripherals on the device, such as the touch screen 212 and other input/control devices 210 , to the peripheral interface 203 . I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling other input/control devices 210 . Among them, one or more input controllers 2092 receive electrical signals from or send electrical signals to other input/control devices 210, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It should be noted that the input controller 2092 can be connected with any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏212,所述触摸屏212是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 212, the touch screen 212 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like.

I/O子系统209中的显示控制器2091从触摸屏212接收电信号或者向触摸屏212发送电信号。触摸屏212检测触摸屏上的接触,显示控制器2091将检测到的接触转换为与显示在触摸屏212上的用户界面对象的交互,即实现人机交互,显示在触摸屏212上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 2091 in the I/O subsystem 209 receives electrical signals from the touch screen 212 or sends electrical signals to the touch screen 212 . The touch screen 212 detects the contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 212, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 212 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touch screen.

RF电路205,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路205接收并发送RF信号,RF信号也称为电磁信号,RF电路205将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路205可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 205 receives and sends an RF signal, which is also called an electromagnetic signal, and the RF circuit 205 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and communicates with the communication network and other devices through the electromagnetic signal to communicate. RF circuitry 205 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 (Subscriber Identity Module, SIM) and so on.

音频电路206,主要用于从外设接口203接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器211。The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203 , convert the audio data into electrical signals, and send the electrical signals to the speaker 211 .

扬声器211,用于将手机通过RF电路205从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 211 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 205 into sound and play the sound to the user.

电源管理芯片208,用于为CPU202、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 208 is used for power supply and power management for the hardware connected to the CPU 202 , the I/O subsystem and the peripheral interface.

上述实施例中提供的终端设备的音量调节装置及终端设备可执行本发明任意实施例所提供的终端设备的音量调节方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的终端设备的音量调节方法。The device for adjusting the volume of a terminal device and the terminal device provided in the above embodiments can execute the method for adjusting the volume of a terminal device provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the method for adjusting the volume of a terminal device provided in any embodiment of the present invention.

本发明实施例还提供一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行一种音量调节方法,该方法包括:An embodiment of the present invention also provides a storage medium containing executable instructions of a terminal device, the executable instructions of the terminal device are used to execute a volume adjustment method when executed by a processor of the terminal device, and the method includes:

当检测到终端设备进行音源播放时,获取所述音源的音频信息;When it is detected that the terminal device is playing the audio source, the audio information of the audio source is obtained;

依据所述音频信息确定对应的音频振幅;determining the corresponding audio amplitude according to the audio information;

确定和所述音频振幅对应的振幅调整系数,将所述振幅调整系数划分为预设数目的子振幅调整系数,依据所述子振幅调整系数对所述音频振幅进行调整。Determine an amplitude adjustment coefficient corresponding to the audio amplitude, divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficients.

在一个可能的实施例中,所述将所述振幅调整系数划分为预设数目的子振幅调整系数包括:In a possible embodiment, the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients includes:

检测到不同音频振幅对应的振幅调整系数满足预设条件时,将所述振幅调整系数划分为预设数目的子振幅调整系数,所述子振幅调整系数依据所述振幅调整系数线性或非线性划分得到。When it is detected that the amplitude adjustment coefficients corresponding to different audio amplitudes meet the preset conditions, the amplitude adjustment coefficients are divided into a preset number of sub-amplitude adjustment coefficients, and the sub-amplitude adjustment coefficients are divided linearly or nonlinearly according to the amplitude adjustment coefficients get.

在一个可能的实施例中,所述依据所述子振幅调整系数对所述音频振幅进行调整包括:In a possible embodiment, the adjusting the audio amplitude according to the sub-amplitude adjustment coefficient includes:

依据所述子振幅调整系数对所述音频振幅的每一帧进行逐级调整。Each frame of the audio amplitude is adjusted step by step according to the sub-amplitude adjustment coefficient.

在一个可能的实施例中,所述确定和所述音频振幅对应的振幅调整系数包括:In a possible embodiment, the determining the amplitude adjustment coefficient corresponding to the audio amplitude includes:

依据所述音频信息的音频振幅的大小确定对应的振幅调整系数。A corresponding amplitude adjustment coefficient is determined according to the magnitude of the audio amplitude of the audio information.

在一个可能的实施例中,所述确定和所述音频振幅对应的振幅调整系数包括:In a possible embodiment, the determining the amplitude adjustment coefficient corresponding to the audio amplitude includes:

依据所述音频振幅的大小确定和所述音频振幅对应的振幅调整系数。An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the magnitude of the audio amplitude.

在一个可能的实施例中,所述确定和所述音频振幅对应的振幅调整系数包括:In a possible embodiment, the determining the amplitude adjustment coefficient corresponding to the audio amplitude includes:

依据所述音频振幅的大小和终端设备的音量信息确定和所述音频振幅对应的振幅调整系数,所述音量信息包括音量值信息、音量增加信息或音量减小信息。An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the magnitude of the audio amplitude and volume information of the terminal device, where the volume information includes volume value information, volume increase information, or volume decrease information.

在一个可能的实施例中,在确定和所述音频振幅对应的振幅调整系数之后,还包括:In a possible embodiment, after determining the amplitude adjustment coefficient corresponding to the audio amplitude, it further includes:

依据终端设备播放器件的阻抗值和/或所处环境的噪声值对所述振幅调整系数进行调整;Adjusting the amplitude adjustment coefficient according to the impedance value of the playback device of the terminal equipment and/or the noise value of the environment;

相应的,所述将所述振幅调整系数划分为预设数目的子振幅调整系数包括:Correspondingly, the division of the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients includes:

将调整后的振幅调整系数划分为预设数目的子振幅调整系数。The adjusted amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, 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 connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.

当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的音量调节方法操作,还可以执行本发明任意实施例所提供的音量调节方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by an embodiment of the present invention, the computer-executable instructions are not limited to the operation of the volume adjustment method as described above, and the volume adjustment method provided by any embodiment of the present invention can also be executed. Related operations in .

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (10)

  1. A kind of 1. volume adjusting method, it is characterised in that including:
    When detecting that terminal device carries out source of sound broadcasting, the audio-frequency information of the source of sound is obtained;
    According to audio amplitude corresponding to audio-frequency information determination;
    It is determined that with the audio amplitude corresponding to amplitude regulation coefficient, the amplitude regulation coefficient is divided into the son of preset number Amplitude regulation coefficient, the audio amplitude is adjusted according to the sub- amplitude regulation coefficient.
  2. 2. according to the method for claim 1, it is characterised in that described that the amplitude regulation coefficient is divided into preset number Sub- amplitude regulation coefficient include:
    When detecting that amplitude regulation coefficient meets preparatory condition corresponding to different audio amplitudes, the amplitude regulation coefficient is divided For the sub- amplitude regulation coefficient of preset number, the sub- amplitude regulation coefficient according to the amplitude regulation coefficient linearly or nonlinearly Division obtains.
  3. 3. according to the method for claim 2, it is characterised in that it is described according to the sub- amplitude regulation coefficient to the audio Amplitude be adjusted including:
    Each frame of the audio amplitude is adjusted step by step according to the sub- amplitude regulation coefficient.
  4. 4. according to the method for claim 3, it is characterised in that amplitude adjustment corresponding to the determination and the audio amplitude Coefficient includes:
    According to amplitude regulation coefficient corresponding to the size determination of the audio amplitude of the audio-frequency information.
  5. 5. according to the method for claim 3, it is characterised in that amplitude adjustment corresponding to the determination and the audio amplitude Coefficient includes:
    Amplitude regulation coefficient corresponding to size determination and the audio amplitude according to the audio amplitude.
  6. 6. according to the method for claim 3, it is characterised in that amplitude adjustment corresponding to the determination and the audio amplitude Coefficient includes:
    Adjusted according to amplitude corresponding to the size and the information volume determination of terminal device and the audio amplitude of the audio amplitude Integral coefficient, the information volume include volume value information, volume increase information or volume and reduce information.
  7. 7. according to the method any one of claim 1-6, it is characterised in that it is determined that with the audio amplitude corresponding to After amplitude regulation coefficient, in addition to:
    The impedance value of device is played according to terminal device and/or the noise figure of local environment is adjusted to the amplitude regulation coefficient It is whole;
    Accordingly, the sub- amplitude regulation coefficient that the amplitude regulation coefficient is divided into preset number includes:
    Amplitude regulation coefficient after adjustment is divided into the sub- amplitude regulation coefficient of preset number.
  8. A kind of 8. volume adjustment device, it is characterised in that including:
    Acquisition module, for when detecting that terminal device carries out source of sound broadcasting, obtaining the audio-frequency information of the source of sound;
    Amplitude determination module, for according to audio amplitude corresponding to audio-frequency information determination;
    Regulation coefficient determining module, for amplitude regulation coefficient corresponding to determination and the audio amplitude, the amplitude is adjusted Coefficient is divided into the sub- amplitude regulation coefficient of preset number;
    Adjustment module, for being adjusted according to the sub- amplitude regulation coefficient to the audio amplitude.
  9. 9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realized described in the computing device during computer program such as any one of claim 1-7 institutes The volume adjusting method stated.
  10. A kind of 10. storage medium for including terminal device executable instruction, it is characterised in that the terminal device executable instruction As volume adjusting method during terminal device computing device for execution as any one of claim 1-7.
CN201710711586.6A 2017-08-18 2017-08-18 Volume adjustment method, device, terminal equipment and storage medium Pending CN107436751A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710711586.6A CN107436751A (en) 2017-08-18 2017-08-18 Volume adjustment method, device, terminal equipment and storage medium
PCT/CN2018/098653 WO2019033942A1 (en) 2017-08-18 2018-08-03 Volume adjustment method and apparatus, terminal device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710711586.6A CN107436751A (en) 2017-08-18 2017-08-18 Volume adjustment method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107436751A true CN107436751A (en) 2017-12-05

Family

ID=60461052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710711586.6A Pending CN107436751A (en) 2017-08-18 2017-08-18 Volume adjustment method, device, terminal equipment and storage medium

Country Status (2)

Country Link
CN (1) CN107436751A (en)
WO (1) WO2019033942A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109147816A (en) * 2018-06-05 2019-01-04 安克创新科技股份有限公司 The method and apparatus of volume adjustment is carried out to music
WO2019033942A1 (en) * 2017-08-18 2019-02-21 Oppo广东移动通信有限公司 Volume adjustment method and apparatus, terminal device, and storage medium
CN110457002A (en) * 2019-07-03 2019-11-15 平安科技(深圳)有限公司 A kind of multimedia file processing method, device and computer storage medium
CN112558916A (en) * 2020-12-24 2021-03-26 北京百度网讯科技有限公司 Audio adjusting method and device, electronic equipment and storage medium
CN114442990A (en) * 2020-11-04 2022-05-06 北京小米移动软件有限公司 Volume adjusting method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237258A (en) * 2013-03-29 2013-08-07 天脉聚源(北京)传媒科技有限公司 System and method for automatically adjusting video volume
EP2905974A1 (en) * 2014-02-11 2015-08-12 MediaTek, Inc Devices and methods for headphone speaker impedance detection
CN106101408A (en) * 2016-06-08 2016-11-09 维沃移动通信有限公司 A kind of mobile terminal and method for regulation of sound volume thereof
CN106775563A (en) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 The method and device of volume adjusting

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8332215B2 (en) * 2008-10-31 2012-12-11 Fortemedia, Inc. Dynamic range control module, speech processing apparatus, and method for amplitude adjustment for a speech signal
CN101478589A (en) * 2009-01-23 2009-07-08 深圳华为通信技术有限公司 Communication terminal and audio gain parameter regulation method
CN101923860B (en) * 2009-06-11 2012-07-04 英华达(南京)科技有限公司 Audio softening system, device and method
US9172343B2 (en) * 2013-08-06 2015-10-27 Apple Inc. Volume adjustment based on user-defined curve
US9143107B2 (en) * 2013-10-08 2015-09-22 2236008 Ontario Inc. System and method for dynamically mixing audio signals
CN107436751A (en) * 2017-08-18 2017-12-05 广东欧珀移动通信有限公司 Volume adjustment method, device, terminal equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237258A (en) * 2013-03-29 2013-08-07 天脉聚源(北京)传媒科技有限公司 System and method for automatically adjusting video volume
EP2905974A1 (en) * 2014-02-11 2015-08-12 MediaTek, Inc Devices and methods for headphone speaker impedance detection
CN106101408A (en) * 2016-06-08 2016-11-09 维沃移动通信有限公司 A kind of mobile terminal and method for regulation of sound volume thereof
CN106775563A (en) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 The method and device of volume adjusting

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019033942A1 (en) * 2017-08-18 2019-02-21 Oppo广东移动通信有限公司 Volume adjustment method and apparatus, terminal device, and storage medium
CN109147816A (en) * 2018-06-05 2019-01-04 安克创新科技股份有限公司 The method and apparatus of volume adjustment is carried out to music
CN109147816B (en) * 2018-06-05 2021-08-24 安克创新科技股份有限公司 Method and equipment for adjusting volume of music
CN110457002A (en) * 2019-07-03 2019-11-15 平安科技(深圳)有限公司 A kind of multimedia file processing method, device and computer storage medium
CN114442990A (en) * 2020-11-04 2022-05-06 北京小米移动软件有限公司 Volume adjusting method and device and storage medium
CN114442990B (en) * 2020-11-04 2024-11-05 北京小米移动软件有限公司 Volume adjustment method, device and storage medium
CN112558916A (en) * 2020-12-24 2021-03-26 北京百度网讯科技有限公司 Audio adjusting method and device, electronic equipment and storage medium
CN112558916B (en) * 2020-12-24 2024-01-05 阿波罗智联(北京)科技有限公司 Audio adjustment method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2019033942A1 (en) 2019-02-21

Similar Documents

Publication Publication Date Title
CN111033614B (en) Volume adjustment method, device, mobile terminal and storage medium
CN107465824B (en) Volume adjustment method, device, mobile terminal and storage medium
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
CN107566618B (en) Volume adjusting method and device, terminal equipment and storage medium
US10440464B2 (en) Method and apparatus for adjusting volume, terminal device and storage medium
CN107509153A (en) Detection method, device, storage medium and terminal of sound playback device
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107479852B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107436751A (en) Volume adjustment method, device, terminal equipment and storage medium
CN107277268A (en) A kind of audio frequency playing method and mobile terminal
CN107483731A (en) Audio playback volume control method, device, storage medium and mobile terminal
CN107483734B (en) Volume adjustment method, device, terminal device and storage medium
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107040661A (en) Method and device for controlling playback volume of mobile terminal and mobile terminal
CN106878915A (en) Playing device control method, device, playing device, and mobile terminal
CN110753919B (en) Volume adjustment method, device, storage medium and mobile terminal
CN107479851B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107508983A (en) Volume adjustment method, device, storage medium and terminal equipment
CN107483732A (en) Volume control method, device and storage medium of mobile terminal and mobile terminal
CN110730946B (en) Volume control method, device and storage medium of mobile terminal and mobile terminal
CN107506170A (en) Volume adjustment method, device, terminal equipment and storage medium
CN107506169A (en) Volume adjustment method, device, terminal equipment and storage medium
CN106293607A (en) The method and system of automatic switchover audio output mode
HK1247683A1 (en) Volume adjustment method and apparatus, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171205

RJ01 Rejection of invention patent application after publication