CN107526570B - Volume adjusting method and device, terminal equipment and storage medium - Google Patents
Volume adjusting method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN107526570B CN107526570B CN201710711365.9A CN201710711365A CN107526570B CN 107526570 B CN107526570 B CN 107526570B CN 201710711365 A CN201710711365 A CN 201710711365A CN 107526570 B CN107526570 B CN 107526570B
- Authority
- CN
- China
- Prior art keywords
- amplitude
- determining
- sound source
- audio
- average
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power 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)
- Multimedia (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)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及计算机技术,尤其涉及一种音量调节方法、装置、终端设备及存储介质。Embodiments of the present invention relate to computer technology, and in particular, to a volume adjustment method, apparatus, terminal device, and storage medium.
背景技术Background technique
随着终端设备普及程度的提高,越来越多的用户使用终端设备执行各种各样的功能以满足自身需求,如使用终端设备阅读文字、观看视频、听音乐、玩游戏等。当终端设备在播放音视频时,音量大小的调节存在缺陷,需要改进。With the increasing popularity of terminal devices, 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, and play games. When the terminal device is playing audio and video, the adjustment of the volume is defective and needs to be improved.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种音量调节方法、装置、终端设备及存储介质,提高了音量调节效率,降低了终端设备的功耗。The present invention provides a volume adjustment method, device, terminal equipment and storage medium, which improve the volume adjustment efficiency and reduce 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 plays an audio source, obtain the audio information of the audio source;
依据所述音频信息确定对应的振幅大小;determining the corresponding amplitude according to the audio information;
依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数;Determine the amplitude adjustment coefficient according to the amplitude and the acquired current volume value of the terminal device;
依据所述振幅调节系数对所述音源的振幅进行调节。The amplitude of the sound source is adjusted according to the amplitude adjustment coefficient.
第二方面,本发明实施例还提供了一种音量调节装置,包括:In a second aspect, an embodiment of the present invention further provides a volume adjustment device, including:
获取模块,用于当检测到终端设备进行音源播放时,获取所述音源的音频信息;an acquisition module, configured to acquire audio information of the audio source when it is detected that the terminal device plays the audio source;
振幅确定模块,用于依据所述音频信息确定对应的振幅大小;an amplitude determination module, configured to determine the corresponding amplitude according to the audio information;
调节系数确定模块,依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数;an adjustment coefficient determination module, which determines an amplitude adjustment coefficient according to the amplitude and the acquired current volume value of the terminal device;
调节模块,用于依据所述振幅调节系数对所述音源的振幅进行调节。An adjustment module, configured to adjust the amplitude of the sound source according to the amplitude adjustment coefficient.
第三方面,本发明实施例还提供了一种终端设备,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本发明实施例所述的音量调节方法。In a third aspect, an embodiment of the present invention further provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and running on the processor, where the processor implements the following when executing the computer program. The volume adjustment method according to the embodiment of the present invention.
第四方面,本发明实施例还提供了一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行本发明实施例所述的音量调节方法。In a fourth aspect, an embodiment of the present invention further provides a storage medium containing executable instructions of a terminal device, where the executable instructions of the terminal device are used to perform the volume adjustment according to the embodiment of the present invention when executed by a processor of the terminal device method.
本发明实施例提供的技术方案,当检测到终端设备进行音源播放时,获取所述音源的音频信息;依据所述音频信息确定对应的振幅大小;依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数;依据所述振幅调节系数对所述音源的振幅进行调节。本方案提高了音量调节效率,降低了终端设备的功耗。According to the technical solution provided by the embodiment of the present invention, when it is detected that a terminal device is playing an audio source, the audio information of the audio source is acquired; the corresponding amplitude is determined according to the audio information; The volume value of the sound source determines an amplitude adjustment coefficient; the amplitude of the sound source is adjusted according to the amplitude adjustment coefficient. This solution improves the volume adjustment efficiency and reduces the power consumption of the terminal device.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, 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是本发明实施例提供的另一种音量调节方法的流程图;2 is a flowchart of another volume adjustment method provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种音量调节方法的流程图;3 is a flowchart of another volume adjustment method provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种音量调节方法的流程图;4 is a flowchart of another volume adjustment method provided by an embodiment of the present invention;
图5是本发明实施例提供的另一种音量调节方法的流程图;5 is a flowchart of another volume adjustment method provided by an embodiment of the present invention;
图6是本发明实施例提供的一种音量调节装置的结构框图;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 according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。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 herein are used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
图1是本发明实施例提供的一种音量调节方法的流程图,本实施例可适用于终端设备播放音源时对音量进行调节的情况,该方法可以由本发明实施例提供的终端设备来执行,该终端设备的音量调节装置可采用软件和/或硬件的方式实现,如图1所示,本实施例提供的具体方案如下:1 is a flowchart of a volume adjustment method provided by an embodiment of the present invention. This embodiment can be applied to the case where a terminal device adjusts the volume when playing a sound source, and the method can be executed by the terminal device provided by the embodiment of the present invention. The volume adjustment device of the terminal device can be implemented by software and/or hardware. As shown in FIG. 1 , the specific solution provided by this embodiment is as follows:
步骤S101、当检测到终端设备进行音源播放时,获取所述音源的音频信息。Step S101 , acquiring audio information of the audio source when it is detected that the terminal device plays the audio source.
终端设备可通过安装的第三方应用程序或系统自带的音视频播放软件进行音源的播放。其中,主要包括音源文件的获取、解码和输出等步骤。示例性的,获取到的音源文件可以是通过网络接收到的组播流,还可以是终端设备本地存储的音视频文件;获取到该音源文件后将其加载到内存缓冲区中;对加载到内存缓冲区的音源文件进行解码,在解码开始之前,如果该音源文件同时包含有视频数据,需要进行音频数据和视频数据的分离,将分离后的音频数据输入至音频解码器,其中,音频解码器主要用于读取内存缓冲区中的音频数据,得到数字音频信号,并将该数字音频信号转换为模拟音频信号,终端设备的播放器件根据该模拟音频信号进行音频播放。在一个实施例中,当监听到音源播放事件被触发时,确定终端设备开始播放音源,其中,该触发事件可以是检测到的触摸屏中显示的播放按钮被按下,还可以是检测到终端设备的播放器件如喇叭开始播放声音时,确定终端设备进行音源播放。The terminal device can play the audio source through the installed third-party application 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 acquired audio source file may be a multicast stream received through the network, or may be an audio and video file stored locally by the terminal device; after acquiring the audio source file, load it into the memory buffer; The audio source file in the memory buffer is decoded. Before 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, the audio decoding The device is mainly used to read the audio data in the memory buffer, obtain the 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, it is determined that the terminal device starts to play the audio source when a sound source playback event is detected to be triggered, wherein the trigger event may be detected that the play button displayed on the touch screen is pressed, or detected that the terminal device is pressed. When the playback device such as the speaker starts to play the sound, make sure that the terminal device plays the sound source.
当检测到终端设备进行音源播放时,获取所述音源的音频信息。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,确定该音源对应的音频信息。在另一实施例中,还可以获取当前播放的音源的原始文件,通过对该原始文件的解析确定音源对应的音频信息。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息。When it is detected that the terminal device plays an audio source, the audio information of the audio 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 playing audio source may also be acquired, and the audio information corresponding to the audio source is 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 obtained through the android.media.MediaRecorder class or the android.media.AudioRecord class.
步骤S102、依据所述音频信息确定对应的振幅大小。Step S102: Determine the corresponding amplitude according to the audio information.
振幅指物体震动过程中偏离原来位置的最大距离,人耳听到的声音的响度与音源的振幅相关,振幅越大响度越强。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,获取预设时间段T内的振幅信息,其中,该振幅信息可有多个振幅值组成,依据得到的多个振幅值可相应的确定在该预设时间段T内播放的音源的振幅曲线。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息后得到对应的振幅大小。在另一实施例中,当步骤S101获取到的音频信息为音源对应的原始文件时,可通过对原始文件进行解析以得到对应的振幅大小。Amplitude refers to the maximum distance that the object deviates from the 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 amplitude information within a preset time period T, wherein the amplitude information can be composed of multiple amplitude values, and according to the obtained multiple amplitude values The value can correspondingly determine the amplitude curve of the audio source played within the preset time period T. In another embodiment, taking the Android system as an example, the corresponding amplitude can be obtained after acquiring the audio information of the audio source through the android.media.MediaRecorder class or the android.media.AudioRecord class. In another embodiment, when the audio information obtained in step S101 is the original file corresponding to the audio source, the corresponding amplitude can be obtained by parsing the original file.
在一个实施例中,当检测音源播放时,每隔预设时间(如1s、3s或10s)确定一次振幅,或者实时的,对音频信息的每一帧的振幅进行确定。具体的,所述获取所述音源的音频信息包括:获取所述音源的音频帧信息;相应的,依据所述音频信息确定所述音源的振幅包括:依据所述音频帧信息确定所述音源每一帧的振幅。示例性的,当检测到音源播放时,对音源文件进行解析得到音频帧序列,根据音频帧序列的每一帧确定对应的振幅。In one embodiment, when detecting the playing of the audio source, the amplitude is determined every preset time (eg, 1s, 3s, or 10s), or in real time, the amplitude of each frame of audio information is determined. Specifically, the acquiring the audio information of the audio source includes: acquiring audio frame information of the audio source; correspondingly, determining the amplitude of the audio source according to the audio information includes: determining, according to the audio frame information, each time the audio source is Amplitude for one frame. Exemplarily, when it is detected that the audio source is playing, the audio frame sequence is obtained by parsing the audio source file, and the corresponding amplitude is determined according to each frame of the audio frame sequence.
步骤S103、依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数,依据所述振幅调节系数对所述音源的振幅进行调节。Step S103: Determine an amplitude adjustment coefficient according to the amplitude and the acquired current volume value of the terminal device, and adjust the amplitude of the sound source according to the amplitude adjustment coefficient.
在一个实施例中,可根据确定的振幅大小以及获取到的终端设备当前的音量值确定固定的振幅调节系数,还可以是确定不同的振幅调节系数,再根据具体的音源振幅的大小进行分配以进行振幅调节,其中,终端设备由静音到最大音量总共分为18个可调等级,每个等级对应一个音量值。在对音源的振幅进行调节的过程中,可通过对音源文件进行解析,对得到的音频数据中的表征振幅信息的数据进行修改,修改完毕后再进行封装,当缓冲到对应的音源文件并被播放时音源的振幅相应的已被增大;还可以是,在音源播放的解码过程中,通过对得到的数字音频信号进行分析得到振幅数据,将该振幅数据乘以对应的调节系数以改变振幅大小,进而对音源的音量进行调节。由此,实现了不改变终端设备系统原有音量的前提下对音源音量的大小进行了调节,调节过程可以在音源文件未进入缓冲区前,以减少播放负载,也可以是针对缓冲区中的音源内容进行调节以提高调节效率。In one embodiment, a fixed amplitude adjustment coefficient may be determined according to the determined amplitude and the acquired current volume value of the terminal device, or different amplitude adjustment coefficients may be determined, and then allocated according to the amplitude of the specific audio source. Amplitude adjustment is performed, wherein the terminal device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value. In the process of adjusting the amplitude of the sound source, the data representing the amplitude information in the obtained audio data can be modified by analyzing the sound source file, and then encapsulated after the modification. The amplitude of the audio source has been correspondingly increased during playback; it is also possible that, during the decoding process of the audio source playback, the amplitude data is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding adjustment coefficient to change the amplitude size, and then adjust the volume of the audio source. As a result, the volume of the audio source is adjusted without changing the original volume of the terminal device system. The adjustment process can be performed before the audio source file enters the buffer to reduce the playback load, or it can be aimed at the buffer in the buffer. The content of the audio source is adjusted to improve the adjustment efficiency.
在另一实施例中,对音源的每一帧的振幅大小进行调节。具体的,调节过程中针对每一帧的振幅大小的不同分配不同的振幅调节系数以进行对应调节,示例性的,给出几种可能的对应关系可以如下表所示:In another embodiment, the amplitude of each frame of the audio source is adjusted. Specifically, in the adjustment process, different amplitude adjustment coefficients are allocated for different amplitudes of each frame to perform corresponding adjustment. Illustratively, several possible correspondences are given as shown in the following table:
表1Table 1
如表1所示,当音频帧的振幅大于-3db且当前终端设备音量值较低时,相应的设置调节系数为0.5将音源的高振幅部分降低;当音频帧的振幅小于-3db大于-10db,且当前终端设备音量值适中时,相应的设置调节系数为0.8对位于中振幅区域的音源振幅进行微调;当音频帧的振幅小于-20db且当前终端设备音量值较高时,相应的将音源的较低振幅部分进行增大。As shown in Table 1, when the amplitude of the audio frame is greater than -3db and the volume value of the current terminal device is low, the corresponding adjustment factor is set to 0.5 to reduce the high-amplitude part of the audio source; when the amplitude of the audio frame is less than -3db and greater than -10db , and when the volume value of the current terminal device is moderate, the corresponding adjustment factor is set to 0.8 to fine-tune the amplitude of the audio source located in the medium-amplitude region; when the amplitude of the audio frame is less than -20db and the current terminal device volume value is high, the corresponding audio source will be adjusted accordingly. The lower amplitude part of the .
由上述内容可知,当检测到终端设备进行音源播放时,通过对音源的振幅以及当前终端音量进行分析,得到对应的振幅调节系数,对音源的振幅进行调节,实现了音源播放时不改变终端音量的前提下完成音量的自动调节,使得音源的振幅更加合理,音量的调节更加自动化。It can be seen from the above that when it is detected that the terminal device is playing the sound source, the amplitude of the sound source and the current terminal volume are analyzed to obtain the corresponding amplitude adjustment coefficient, and the amplitude of the sound source is adjusted, so that the terminal volume is not changed when the sound source is played. The automatic adjustment of the volume is completed under the premise of the premise, so that the amplitude of the sound source is more reasonable, and the adjustment of the volume is more automatic.
图2是本发明实施例提供的另一种音量调节方法的流程图,可选的,所述获取所述音源的音频信息,依据所述音频信息确定对应的振幅大小包括:获取所述音源的预设长度的音频信息,依据所述音频信息确定对应的最大振幅和平均振幅;相应的,所述依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数包括:依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。如图2所示,本实施例提供的技术方案具体如下:2 is a flowchart of another volume adjustment method provided by an embodiment of the present invention. Optionally, the acquiring audio information of the audio source and determining the corresponding amplitude according to the audio information includes: acquiring the audio information of the audio source. For audio information of a preset length, the corresponding maximum amplitude and average amplitude are determined according to the audio information; correspondingly, the determination of the amplitude adjustment coefficient according to the amplitude and the acquired current volume value of the terminal device includes: according to the The maximum amplitude, the average amplitude and the volume value determine an amplitude adjustment coefficient. As shown in Figure 2, the technical solution provided by this embodiment is as follows:
步骤S201、当检测到终端设备进行音源播放时,获取所述音源的预设长度的音频信息。Step S201 , when it is detected that the terminal device plays an audio source, acquire audio information of a preset length of the audio source.
当检测到终端设备进行音源播放时,获取所述音源的预设长度的音频信息。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,确定该音源对应的音频信息,其中预设长度可以是3s、5s或10s等。在另一实施例中,还可以获取当前播放的音源的原始文件,通过对该原始文件的解析确定音源对应的预设长度的音频信息。When it is detected that the terminal device is playing an audio source, audio information of a preset length of the audio 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, where the preset length may be 3s, 5s, or 10s, or the like. In another embodiment, the original file of the currently playing audio source may also be acquired, and the audio information of the preset length corresponding to the audio source is determined by analyzing the original file.
步骤S202、依据所述音频信息确定对应的最大振幅和平均振幅。Step S202: Determine the corresponding maximum amplitude and average amplitude according to the audio information.
在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,得到振幅信息,其中,该振幅信息可有多个振幅值组成。示例性的,以3s为例,3s时长内播放的音源中,对应得到的音频信息中的多个振幅值,记录获取的各个振幅值,确定其中的最大振幅以及各个振幅的平均振幅。In one embodiment, the digital audio signal decoded by the audio decoder can be sampled to obtain amplitude information, wherein the amplitude information can be composed of multiple amplitude values. Exemplarily, taking 3s as an example, in the audio source played within the 3s duration, corresponding to multiple amplitude values in the obtained audio information, each obtained amplitude value is recorded, and the maximum amplitude and the average amplitude of each amplitude are determined.
在另一个实施例中,当检测音源播放时,每隔预设时间(如1s、3s或10s)确定一次预设长度的音频信息,或者实时的,对音频信息的每一帧的振幅进行确定。具体的,所述获取所述音源的音频信息包括:所述获取所述音源的预设长度的音频信息包括:获取所述音源的预设长度的音频帧信息;相应的,确定所述预设长度的音频信息中的最大振幅和平均振幅包括:依据所述音频帧信息确定所述预设长度的音频信息中的最大振幅和平均振幅。示例性的,当检测到音源播放时,对音源文件进行解析得到音频帧序列,确定预设长度的音频信息下每一帧确定对应的振幅,进而确定最大振幅和平均振幅。In another embodiment, when detecting the playing of the audio source, the audio information of the preset length is determined every preset time (eg 1s, 3s or 10s), or the amplitude of each frame of the audio information is determined in real time . Specifically, the acquiring the audio information of the audio source includes: the acquiring the audio information of the preset length of the audio source includes: acquiring the audio frame information of the preset length of the audio source; correspondingly, determining the preset length The maximum amplitude and the average amplitude in the audio information of the length include: determining the maximum amplitude and the average amplitude in the audio information of the preset length according to the audio frame information. Exemplarily, when it is detected that the audio source is playing, the audio source file is parsed to obtain an audio frame sequence, and the corresponding amplitude is determined for each frame under the audio information of the preset length, and then the maximum amplitude and the average amplitude are determined.
步骤S203、依据所述最大振幅、所述平均振幅以及获取到的终端设备当前的音量值确定振幅调节系数。Step S203: Determine an amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the acquired current volume value of the terminal device.
在一个可能的实施例中,所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数包括:如果所述最大振幅和所述平均振幅的差值满足预设条件,则依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。示例性的,当最大振幅和平均振幅差值较大时(如0.2db),未避免播放到较大振幅的音源时音量较大,对较高的振幅进行调节以的降低音量。可选的,若最大振幅和平均振幅之差不满足预设条件,即相差不大,则不对音源的振幅进行调节。In a possible embodiment, the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value includes: if the difference between the maximum amplitude and the average amplitude satisfies a preset condition, then An amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude and the volume value. Exemplarily, when the difference between the maximum amplitude and the average amplitude is large (eg, 0.2db), it is not avoided that the volume of a sound source with a large amplitude is high, and the high amplitude is adjusted to reduce the volume. Optionally, if the difference between the maximum amplitude and the average amplitude does not meet the preset condition, that is, the difference is not large, the amplitude of the sound source is not adjusted.
在一个实施例中,如果所述最大振幅和所述平均振幅的差值满足预设条件,可依据所述最大振幅和所述平均振幅的差值以及所述音量值确定第一振幅调节系数,相应的,可依据所述第一振幅调节系数,对所述音源中大于第一预设阈值的振幅进行调节。示例性的,依据最大振幅和平均振幅的差值以及终端设备当前的音量值确定第一振幅调节系数的关系如下表:In one embodiment, if the difference between the maximum amplitude and the average amplitude satisfies a preset condition, a first amplitude adjustment coefficient may be determined according to the difference between the maximum amplitude and the average amplitude and the volume value, Correspondingly, the amplitude of the audio source greater than the first preset threshold may be adjusted according to the first amplitude adjustment coefficient. Exemplarily, the relationship between determining the first amplitude adjustment coefficient according to the difference between the maximum amplitude and the average amplitude and the current volume value of the terminal device is as follows:
表2Table 2
其中,该第一预设振幅阈值可以是-2db,即将大于第一振幅阈值的振幅大小乘以对应的调节系数以进行振幅衰减降低音量。由此,实现了对音源中振幅较大的部分进行合理衰减以避免听感突兀,提高了音源的播放效果。Wherein, the first preset amplitude threshold value may be -2db, that is, the amplitude magnitude greater than the first amplitude threshold value is multiplied by a corresponding adjustment coefficient to perform amplitude attenuation and reduce volume. Thereby, it is realized to reasonably attenuate the part of the sound source with a large amplitude to avoid abrupt hearing, and the playback effect of the sound source is improved.
步骤S204、依据所述振幅调节系数对所述音源的振幅进行调节。Step S204: Adjust the amplitude of the sound source according to the amplitude adjustment coefficient.
由上述可知,当检测到预设长度的音频信息中最大振幅和平均振幅的差值满足预设条件的情况下,依据该差值的大小以及终端设备当前音量的大小分配振幅调节系数,同时,该振幅调节系数针对满足条件的音源的振幅进行调节,提高了音量调节效率,避免了音源中无关振幅被同步调节带来的调节效果较差的问题。It can be seen from the above that when it is detected that the difference between the maximum amplitude and the average amplitude in the audio information of the preset length meets the preset condition, the amplitude adjustment coefficient is allocated according to the size of the difference and the current volume of the terminal device, and at the same time, The amplitude adjustment coefficient adjusts the amplitude of the sound source that meets the conditions, improves the volume adjustment efficiency, and avoids the problem of poor adjustment effect caused by synchronous adjustment of the irrelevant amplitude in the sound source.
图3是本发明实施例提供的另一种音量调节方法的流程图,可选的,在所述依据所述最大振幅和所述平均振幅的差值以及所述音量值确定第一振幅调节系数之后,还包括:依据所述平均振幅确定第二振幅调节系数;相应的,所述依据所述振幅调节系数对所述音源的振幅进行调节还包括:依据所述第二振幅调节系数,对所述音源中小于第二预设阈值且大于第三预设阈值的振幅进行调节,所述第二预设阈值小于第一预设阈值。如图3所示,具体包括:3 is a flowchart of another volume adjustment method provided by an embodiment of the present invention. Optionally, when the first amplitude adjustment coefficient is determined according to the difference between the maximum amplitude and the average amplitude and the volume value Afterwards, the method further includes: determining a second amplitude adjustment coefficient according to the average amplitude; correspondingly, the adjusting the amplitude of the sound source according to the amplitude adjustment coefficient further includes: adjusting the sound source according to the second amplitude adjustment coefficient. The amplitude of the audio source that is less than a second preset threshold and greater than a third preset threshold is adjusted, and the second preset threshold is less than the first preset threshold. As shown in Figure 3, it specifically includes:
步骤S301、当检测到终端设备进行音源播放时,获取所述音源的预设长度的音频信息。Step S301 , when it is detected that the terminal device plays the audio source, acquire audio information of the preset length of the audio source.
步骤S302、确定所述音频信息中的最大振幅和平均振幅,并获取终端设备当前的音量值。Step S302: Determine the maximum amplitude and the average amplitude in the audio information, and acquire the current volume value of the terminal device.
步骤S303、依据所述最大振幅和所述平均振幅的差值以及所述音量值确定第一振幅调节系数,依据所述第一振幅调节系数,对所述音源中大于第一预设阈值的振幅进行调节。Step S303: Determine a first amplitude adjustment coefficient according to the difference between the maximum amplitude and the average amplitude and the volume value, and according to the first amplitude adjustment coefficient, adjust the amplitude of the sound source greater than the first preset threshold. Make adjustments.
步骤S304、依据所述平均振幅确定第二振幅调节系数,依据所述第二振幅调节系数,对所述音源中小于第二预设阈值且大于第三预设阈值的振幅进行调节。Step S304: Determine a second amplitude adjustment coefficient according to the average amplitude, and adjust the amplitude of the audio source that is smaller than the second preset threshold and greater than the third preset threshold according to the second amplitude adjustment coefficient.
其中,所述第二预设阈值小于第一预设阈值。在一个实施例中,依据所述平均振幅确定第二振幅调节系数。示例性的,平均振幅和第二振幅调节系数的对应关系如下表:Wherein, the second preset threshold is smaller than the first preset threshold. In one embodiment, the second amplitude adjustment coefficient is determined according to the average amplitude. Exemplarily, the corresponding relationship between the average amplitude and the second amplitude adjustment coefficient is as follows:
表3table 3
示例性的,该第二预设阈值可以是-30db,第三预设振幅阈值可以是-50db。当确定出的音源振幅小于第二预设阈值且大于第三预设阈值时,按照表3对应的调节系数对满足条件的振幅进行调节。Exemplarily, the second preset threshold may be -30db, and the third preset amplitude threshold may be -50db. When the determined sound source amplitude is less than the second preset threshold and greater than the third preset threshold, the amplitude that satisfies the condition is adjusted according to the adjustment coefficient corresponding to Table 3.
由上述可知,依据音源的平均振幅的大小确定对应的调节系数,平均振幅越大对应的调节系数越高,对满足条件的(小于第二预设阈值且大于第三预设阈值)的振幅按照该调节系数进行调节,将音源中较低的音量部分进行音量的提高,使得音源播放播放过程中播放效果更佳,避免了用户手动进行音量调节,提高了音量调节效率。It can be seen from the above that the corresponding adjustment coefficient is determined according to the size of the average amplitude of the sound source. The larger the average amplitude, the higher the corresponding adjustment coefficient. The adjustment coefficient is adjusted to increase the volume of the lower volume part of the sound source, so that the playback effect of the sound source is better during the playback process, avoiding the user's manual volume adjustment, and improving the volume adjustment efficiency.
图4是本发明实施例提供的另一种音量调节方法的流程图,可选的,在所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数之前,还包括:确定所述终端设备播放器件的阻抗值;相应的,所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数:依据所述阻抗值、所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。具体如图所示:4 is a flowchart of another volume adjustment method provided by an embodiment of the present invention. Optionally, before the determination of the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value, the method further includes: Determine the impedance value of the playback device of the terminal device; correspondingly, determine the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value: according to the impedance value, the maximum amplitude, the average amplitude The amplitude and the volume value determine the amplitude adjustment coefficient. Specifically as shown in the figure:
步骤S401、当检测到终端设备进行音源播放时,获取所述音源的预设长度的音频信息。Step S401 , when it is detected that the terminal device plays an audio source, acquire audio information of a preset length of the audio source.
步骤S402、确定所述音频信息中的最大振幅和平均振幅,并获取终端设备当前的音量值。Step S402: Determine the maximum amplitude and the average amplitude in the audio information, and obtain the current volume value of the terminal device.
步骤S403、确定所述终端设备播放器件的阻抗值。Step S403: Determine the impedance value of the playback device of the terminal device.
在一个实施例中,可通过功放芯片检测终端设备中安装的播放器件(如:扬声器)的阻抗值,还可以是通过物理方式检测播放器件的阻抗。In one embodiment, the impedance value of a playback device (eg, a speaker) installed in the terminal device can be detected by a power amplifier chip, and the impedance of the playback device can also be detected by a physical method.
步骤S404、依据所述阻抗值、所述最大振幅、所述平均振幅和所述音量值确定第一振幅调节系数。Step S404: Determine a first amplitude adjustment coefficient according to the impedance value, the maximum amplitude, the average amplitude and the volume value.
在一个实施例中,在上述实施例中依据最大振幅、平均振幅以及当前音量值的基础上,进一步结合步骤S403确定的终端设备播放器件的阻抗值共同确定第一振幅调节系数。示例性的,该阻抗值越大对应的共同确定的第一振幅调节系数越大。具体的,假设播放器件的标称阻抗值为x,通过检测得到的阻抗值为1.2x,则相应的第一振幅调整系数可以是仅通过最大振幅、平均振幅和音量值确定的振幅调节系数的1.2倍以作为最终确定的振幅调节系数。In one embodiment, based on the maximum amplitude, average amplitude and current volume value in the above embodiment, the first amplitude adjustment coefficient is further determined in combination with the impedance value of the playback device of the terminal device determined in step S403. Exemplarily, the larger the impedance value is, the larger the jointly determined first amplitude adjustment coefficient is. Specifically, assuming that the nominal impedance value of the playback device is x, and the impedance value obtained through detection is 1.2x, the corresponding first amplitude adjustment coefficient may be an amplitude adjustment coefficient determined only by the maximum amplitude, average amplitude and volume value. 1.2 times as the final amplitude adjustment factor.
步骤S405、依据所述第一振幅调节系数,对所述音源中大于第一预设阈值的振幅进行调节。Step S405 , according to the first amplitude adjustment coefficient, adjust the amplitude of the audio source that is greater than a first preset threshold.
步骤S406、依据所述平均振幅确定第二振幅调节系数,依据所述第二振幅调节系数,对所述音源中小于第二预设阈值且大于第三预设阈值的振幅进行调节。Step S406 , determining a second amplitude adjustment coefficient according to the average amplitude, and adjusting the amplitude of the audio source smaller than the second preset threshold and greater than the third preset threshold according to the second amplitude adjustment coefficient.
由上述可知,在对音源的振幅进行调节过程中,引入播放器件的阻抗值作为确定振幅调节系数的参量之一,避免了播放器件随播放时长的增加阻抗值越来越高进而对正常播放过程中的音量大小产生影响的问题,使得调节后的音量大小更佳符合用户需求,进一步提高了音量调节效果。It can be seen from the above that in the process of adjusting the amplitude of the audio source, the impedance value of the playback device is introduced as one of the parameters for determining the amplitude adjustment coefficient, so as to avoid the impedance value of the playback device becoming higher and higher with the increase of the playback time, which will affect the normal playback process. In order to solve the problem of the influence of the volume in the middle, the adjusted volume is better in line with the user's needs, and the volume adjustment effect is further improved.
图5是本发明实施例提供的另一种音量调节方法的流程图,可选的,在所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数之前,还包括:确定所述终端设备播放器件的噪声值;相应的,所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数包括:依据所述噪声值、所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。具体如图所示:5 is a flowchart of another volume adjustment method provided by an embodiment of the present invention. Optionally, before the determination of the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value, the method further includes: determining the noise value of the playback device of the terminal device; correspondingly, the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value includes: according to the noise value, the maximum amplitude, the The average amplitude and the volume value determine the amplitude adjustment coefficient. Specifically as shown in the figure:
步骤S501、当检测到终端设备进行音源播放时,获取所述音源的预设长度的音频信息。Step S501 , when it is detected that the terminal device plays an audio source, acquire audio information of a preset length of the audio source.
步骤S502、确定所述音频信息中的最大振幅和平均振幅,并获取终端设备当前的音量值。Step S502: Determine the maximum amplitude and the average amplitude in the audio information, and acquire the current volume value of the terminal device.
步骤S503、确定所述终端设备当前所处环境的噪声值。Step S503: Determine the noise value of the environment where the terminal device is currently located.
在一个实施例中,可通过终端设备安装的麦克风采集当前所处环境的噪音以确定对应的噪声值。In one embodiment, the noise of the current environment may be collected through a microphone installed on the terminal device to determine the corresponding noise value.
步骤S504、依据所述噪声值、所述最大振幅、所述平均振幅和所述音量值确定第一振幅调节系数。Step S504: Determine a first amplitude adjustment coefficient according to the noise value, the maximum amplitude, the average amplitude and the volume value.
在一个实施例中,在上述实施例中依据最大振幅、平均振幅和音量值的基础上,进一步结合步骤S503确定的终端设备当前所处环境的噪声值共同确定第一振幅调节系数。示例性的,该噪声值越大对应的共同确定的第一振幅调节系数越大。具体的,假设终端设备在安静环境下的噪声值为y,终端设备处于户外或嘈杂环境中时,确定的噪声值为1.2y,则相应的第一振幅调整系数可以是仅通过最大振幅、平均振幅和音量值确定的振幅调节系数的1.2倍以作为最终确定的振幅调节系数。需要说明的是,还可将阻抗值、噪声值、音源的最大振幅和平均振幅共同确定音源的振幅调节系数。In one embodiment, based on the maximum amplitude, average amplitude and volume value in the above embodiment, the first amplitude adjustment coefficient is further determined in combination with the noise value of the current environment of the terminal device determined in step S503. Exemplarily, the larger the noise value is, the larger the jointly determined first amplitude adjustment coefficient is. Specifically, assuming that the noise value of the terminal device in a quiet environment is y, and when the terminal device is in an outdoor or noisy environment, the determined noise value is 1.2y, then the corresponding first amplitude adjustment coefficient may be determined only by the maximum amplitude, average The amplitude adjustment coefficient determined by the amplitude and volume values is 1.2 times as the final amplitude adjustment coefficient. It should be noted that the impedance value, the noise value, the maximum amplitude and the average amplitude of the sound source may also be used to jointly determine the amplitude adjustment coefficient of the sound source.
步骤S505、依据所述第一振幅调节系数,对所述音源中大于第一预设阈值的振幅进行调节。Step S505 , according to the first amplitude adjustment coefficient, adjust the amplitude of the audio source that is greater than a first preset threshold.
步骤S506、依据所述平均振幅确定第二振幅调节系数,依据所述第二振幅调节系数,对所述音源中小于第二预设阈值且大于第三预设阈值的振幅进行调节。Step S506 , determining a second amplitude adjustment coefficient according to the average amplitude, and adjusting the amplitude of the audio source smaller than the second preset threshold and greater than the third preset threshold according to the second amplitude adjustment coefficient.
由上述可知,在对音源的振幅进行调节过程中,考虑了噪声对终端设备音量的影响,将确定的噪声值作为确定振幅调节系数的参量之一,使得调节后的音量大小更佳符合用户需求,进一步提高了音量调节效果。It can be seen from the above that in the process of adjusting the amplitude of the sound source, the influence of noise on the volume of the terminal device 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 can better meet the needs of users. , which further improves 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-mentioned embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in FIG. 6 , the apparatus specifically includes: an
其中,获取模块101,用于当检测到终端设备进行音源播放时,获取所述音源的音频信息。Wherein, the acquiring
终端设备可通过安装的第三方应用程序或系统自带的音视频播放软件进行音源的播放。其中,主要包括音源文件的获取、解码和输出等步骤。示例性的,获取到的音源文件可以是通过网络接收到的组播流,还可以是终端设备本地存储的音视频文件;获取到该音源文件后将其加载到内存缓冲区中;对加载到内存缓冲区的音源文件进行解码,在解码开始之前,如果该音源文件同时包含有视频数据,需要进行音频数据和视频数据的分离,将分离后的音频数据输入至音频解码器,其中,音频解码器主要用于读取内存缓冲区中的音频数据,得到数字音频信号,并将该数字音频信号转换为模拟音频信号,终端设备的播放器件根据该模拟音频信号进行音频播放。在一个实施例中,当监听到音源播放事件被触发时,确定终端设备开始播放音源,其中,该触发事件可以是检测到的触摸屏中显示的播放按钮被按下,还可以是检测到终端设备的播放器件如喇叭开始播放声音时,确定终端设备进行音源播放。The terminal device can play the audio source through the installed third-party application 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 acquired audio source file may be a multicast stream received through the network, or may be an audio and video file stored locally by the terminal device; after acquiring the audio source file, load it into the memory buffer; The audio source file in the memory buffer is decoded. Before 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, the audio decoding The device is mainly used to read the audio data in the memory buffer, obtain the 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, it is determined that the terminal device starts to play the audio source when a sound source playback event is detected to be triggered, wherein the trigger event may be detected that the play button displayed on the touch screen is pressed, or detected that the terminal device is pressed. When the playback device such as the speaker starts to play the sound, make sure that the terminal device plays the sound source.
当检测到终端设备进行音源播放时,获取所述音源的音频信息。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,确定该音源对应的音频信息。在另一实施例中,还可以获取当前播放的音源的原始文件,通过对该原始文件的解析确定音源对应的音频信息。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息When it is detected that the terminal device plays an audio source, the audio information of the audio 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 playing audio source may also be acquired, and the audio information corresponding to the audio source is 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 obtained through the android.media.MediaRecorder class or the android.media.AudioRecord class
振幅确定模块102,用于依据所述音频信息确定对应的振幅大小。The
振幅指物体震动过程中偏离原来位置的最大距离,人耳听到的声音的响度与音源的振幅相关,振幅越大响度越强。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,获取预设时间段T内的振幅信息,其中,该振幅信息可有多个振幅值组成,依据得到的多个振幅值可相应的确定在该预设时间段T内播放的音源的振幅曲线。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源的音频信息后得到对应的振幅大小。在另一实施例中,当步骤S101获取到的音频信息为音源对应的原始文件时,可通过对原始文件进行解析以得到对应的振幅大小。Amplitude refers to the maximum distance that the object deviates from the 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 amplitude information within a preset time period T, wherein the amplitude information can be composed of multiple amplitude values, and according to the obtained multiple amplitude values The value can correspondingly determine the amplitude curve of the audio source played within the preset time period T. In another embodiment, taking the Android system as an example, the corresponding amplitude can be obtained after acquiring the audio information of the audio source through the android.media.MediaRecorder class or the android.media.AudioRecord class. In another embodiment, when the audio information obtained in step S101 is the original file corresponding to the audio source, the corresponding amplitude can be obtained by parsing the original file.
在一个实施例中,当检测音源播放时,每隔预设时间(如1s、3s或10s)确定一次振幅,或者实时的,对音频信息的每一帧的振幅进行确定。具体的,所述获取所述音源的音频信息包括:获取所述音源的音频帧信息;相应的,依据所述音频信息确定所述音源的振幅包括:依据所述音频帧信息确定所述音源每一帧的振幅。示例性的,当检测到音源播放时,对音源文件进行解析得到音频帧序列,根据音频帧序列的每一帧确定对应的振幅。In one embodiment, when detecting the playing of the audio source, the amplitude is determined every preset time (eg, 1s, 3s, or 10s), or in real time, the amplitude of each frame of audio information is determined. Specifically, the acquiring the audio information of the audio source includes: acquiring audio frame information of the audio source; correspondingly, determining the amplitude of the audio source according to the audio information includes: determining, according to the audio frame information, each time the audio source is Amplitude for one frame. Exemplarily, when it is detected that the audio source is playing, the audio frame sequence is obtained by parsing the audio source file, and the corresponding amplitude is determined according to each frame of the audio frame sequence.
调节系数确定模块103,依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数。The adjustment
调节模块104,用于依据所述振幅调节系数对所述音源的振幅进行调节。The
在一个实施例中,可根据确定的振幅大小以及获取到的终端设备当前的音量值确定固定的振幅调节系数,还可以是确定不同的振幅调节系数,再根据具体的音源振幅的大小进行分配以进行振幅调节,其中,终端设备由静音到最大音量总共分为18个可调等级,每个等级对应一个音量值。在对音源的振幅进行调节的过程中,可通过对音源文件进行解析,对得到的音频数据中的表征振幅信息的数据进行修改,修改完毕后再进行封装,当缓冲到对应的音源文件并被播放时音源的振幅相应的已被增大;还可以是,在音源播放的解码过程中,通过对得到的数字音频信号进行分析得到振幅数据,将该振幅数据乘以对应的调节系数以改变振幅大小,进而对音源的音量进行调节。由此,实现了不改变终端设备系统原有音量的前提下对音源音量的大小进行了调节,调节过程可以在音源文件未进入缓冲区前,以减少播放负载,也可以是针对缓冲区中的音源内容进行调节以提高调节效率。In one embodiment, a fixed amplitude adjustment coefficient may be determined according to the determined amplitude and the acquired current volume value of the terminal device, or different amplitude adjustment coefficients may be determined, and then allocated according to the amplitude of the specific audio source. Amplitude adjustment is performed, wherein the terminal device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value. In the process of adjusting the amplitude of the sound source, the data representing the amplitude information in the obtained audio data can be modified by analyzing the sound source file, and then encapsulated after the modification. The amplitude of the audio source has been correspondingly increased during playback; it is also possible that, during the decoding process of the audio source playback, the amplitude data is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding adjustment coefficient to change the amplitude size, and then adjust the volume of the audio source. As a result, the volume of the audio source is adjusted without changing the original volume of the terminal device system. The adjustment process can be performed before the audio source file enters the buffer to reduce the playback load, or it can be aimed at the buffer 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 an audio source, the audio information of the audio source is acquired; the corresponding amplitude is determined according to the audio information; The volume value determines an amplitude adjustment coefficient; the amplitude of the sound source is adjusted according to the amplitude adjustment coefficient. This solution improves the volume adjustment efficiency and reduces the power consumption of the terminal device.
在一个可能的实施例中,所述振幅确定模块102具体用于:In a possible embodiment, the
获取所述音源的预设长度的音频信息,依据所述音频信息确定对应的最大振幅和平均振幅;Acquire the audio information of the preset length of the audio source, and determine the corresponding maximum amplitude and average amplitude according to the audio information;
所述调节系数确定模块103具体用于:The adjustment
依据所述最大振幅、所述平均振幅以及获取到的终端设备当前的音量值确定振幅调节系数。The amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude and the acquired current volume value of the terminal device.
在一个可能的实施例中,所述调节系数确定模块103具体用于:In a possible embodiment, the adjustment
如果所述最大振幅和所述平均振幅的差值满足预设条件,则依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。If the difference between the maximum amplitude and the average amplitude satisfies a preset condition, an amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude and the volume value.
在一个可能的实施例中,所述调节系数确定模块103具体用于:In a possible embodiment, the adjustment
依据所述最大振幅和所述平均振幅的差值以及所述音量值确定第一振幅调节系数;determining a first amplitude adjustment coefficient according to the difference between the maximum amplitude and the average amplitude and the volume value;
所述调节模块104具体用于:The
依据所述第一振幅调节系数,对所述音源中大于第一预设阈值的振幅进行调节。According to the first amplitude adjustment coefficient, the amplitude of the audio source greater than the first preset threshold is adjusted.
在一个可能的实施例中,所述调节系数确定模块103还用于:In a possible embodiment, the adjustment
在所述依据所述最大振幅和所述平均振幅的差值以及所述音量值确定第一振幅调节系数之后,依据所述平均振幅确定第二振幅调节系数;After the first amplitude adjustment coefficient is determined according to the difference between the maximum amplitude and the average amplitude and the volume value, a second amplitude adjustment coefficient is determined according to the average amplitude;
所述调节模块104还用于:The
依据所述第二振幅调节系数,对所述音源中小于第二预设阈值且大于第三预设阈值的振幅进行调节,所述第二预设阈值小于第一预设阈值。According to the second amplitude adjustment coefficient, the amplitude of the audio source that is smaller than a second preset threshold and greater than a third preset threshold is adjusted, and the second preset threshold is smaller than the first preset threshold.
在一个可能的实施例中,所述调节系数确定模块103还用于:In a possible embodiment, the adjustment
在所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数之前,确定所述终端设备播放器件的阻抗值;依据所述阻抗值、所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。Before determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value, determine the impedance value of the playback device of the terminal device; according to the impedance value, the maximum amplitude and the average amplitude and the volume value to determine the amplitude adjustment coefficient.
在一个可能的实施例中,所述调节系数确定模块103还用于:In a possible embodiment, the adjustment
在所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数之前,确定所述终端设备当前所处环境的噪声值;依据所述噪声值、所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。Before determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value, determine the noise value of the environment where the terminal device is currently located; according to the noise value, the maximum amplitude, the The average amplitude and the volume value determine the amplitude adjustment coefficient.
本实施例在上述各实施例的基础上提供了一种终端设备,图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 above-mentioned 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, A processor (Central Processing Unit, CPU) 202, a peripheral interface 203, an RF (Radio Frequency, radio frequency) circuit 205, an audio circuit 206, a speaker 211, a power management chip 208, an input/output (I/O) subsystem 209, The touch screen 212 , other input/control devices 210 , and external ports 204 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 that the terminal device 200 may have more or less components than those shown in the figure, two or more components may be combined, Or can have different component configurations. 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 is a detailed description of the terminal device provided in this embodiment for permission management of multiple open applications, where the terminal device takes a smart phone as an example.
存储器201,所述存储器201可以被CPU202、外设接口203等访问,所述存储器201可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 201, which can be accessed by CPU 202, peripheral interface 203, etc., said memory 201 can include high-speed random access memory, and can also include 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。A peripheral interface 203 that can connect the input and output peripherals of the device to the CPU 202 and the memory 201 .
I/O子系统209,所述I/O子系统209可以将设备上的输入输出外设,例如触摸屏212和其他输入/控制设备210,连接到外设接口203。I/O子系统209可以包括显示控制器2091和用于控制其他输入/控制设备210的一个或多个输入控制器2092。其中,一个或多个输入控制器2092从其他输入/控制设备210接收电信号或者向其他输入/控制设备210发送电信号,其他输入/控制设备210可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器2092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 209 , which can connect input and output peripherals on the device, such as touch screen 212 and other input/control devices 210 , to peripheral interface 203 . The I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling other input/control devices 210 . Wherein, 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. ), dial pad, slide switch, joystick, click wheel. Notably, the input controller 2092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏212,所述触摸屏212是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 212, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.
I/O子系统209中的显示控制器2091从触摸屏212接收电信号或者向触摸屏212发送电信号。触摸屏212检测触摸屏上的接触,显示控制器2091将检测到的接触转换为与显示在触摸屏212上的用户界面对象的交互,即实现人机交互,显示在触摸屏212上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 2091 in I/O subsystem 209 receives electrical signals from touch screen 212 or sends electrical signals to touch screen 212 . The touch screen 212 detects the contact on the touch screen, and the display controller 2091 converts the detected contact into interaction with the user interface object displayed on the touch screen 212, that is, to realize human-computer interaction, and the user interface object displayed on the touch screen 212 can be run. Icons for games, icons for connecting to the corresponding network, etc. It is worth noting that the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output, or an extension of the 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 the communication between the mobile phone and the wireless network (ie, the network side), and realize the data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving text messages, e-mails, etc. Specifically, the RF circuit 205 receives and transmits RF signals, also known as electromagnetic signals, the RF circuit 205 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODECs ( COder-DECoder, codec) chip set, subscriber identity module (Subscriber Identity Module, SIM) and so on.
音频电路206,主要用于从外设接口203接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器211。The audio circuit 206 is mainly used for receiving audio data from the peripheral interface 203 , converting the audio data into an electrical signal, and sending the electrical signal 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 to 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 volume adjustment apparatus and terminal device of the terminal device provided in the above embodiments can execute the volume adjustment method of the terminal device provided by any embodiment of the present invention, and have corresponding functional modules and beneficial effects for implementing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the volume adjustment method for a terminal device provided by any embodiment of the present invention.
本发明实施例还提供一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行一种音量调节方法,该方法包括:An embodiment of the present invention further provides a storage medium containing executable instructions of a terminal device, where 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 plays an audio source, obtain the audio information of the audio source;
依据所述音频信息确定对应的振幅大小;determining the corresponding amplitude according to the audio information;
依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数;Determine the amplitude adjustment coefficient according to the amplitude and the acquired current volume value of the terminal device;
依据所述振幅调节系数对所述音源的振幅进行调节。The amplitude of the sound source is adjusted according to the amplitude adjustment coefficient.
在一个可能的实施例中,所述获取所述音源的音频信息,依据所述音频信息确定对应的振幅大小包括:In a possible embodiment, the acquiring the audio information of the audio source, and determining the corresponding amplitude according to the audio information includes:
获取所述音源的预设长度的音频信息,依据所述音频信息确定对应的最大振幅和平均振幅;Acquire the audio information of the preset length of the audio source, and determine the corresponding maximum amplitude and average amplitude according to the audio information;
相应的,所述依据所述振幅大小以及获取到的终端设备当前的音量值确定振幅调节系数包括:Correspondingly, the determining of the amplitude adjustment coefficient according to the amplitude and the acquired current volume value of the terminal device includes:
依据所述最大振幅、所述平均振幅以及获取到的终端设备当前的音量值确定振幅调节系数。The amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude and the acquired current volume value of the terminal device.
在一个可能的实施例中,所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数包括:In a possible embodiment, the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value includes:
如果所述最大振幅和所述平均振幅的差值满足预设条件,则依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。If the difference between the maximum amplitude and the average amplitude satisfies a preset condition, an amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude and the volume value.
在一个可能的实施例中,所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数包括:In a possible embodiment, the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value includes:
依据所述最大振幅和所述平均振幅的差值以及所述音量值确定第一振幅调节系数;determining a first amplitude adjustment coefficient according to the difference between the maximum amplitude and the average amplitude and the volume value;
相应的,所述依据所述振幅调节系数对所述音源的振幅进行调节包括:Correspondingly, the adjusting the amplitude of the sound source according to the amplitude adjustment coefficient includes:
依据所述第一振幅调节系数,对所述音源中大于第一预设阈值的振幅进行调节。According to the first amplitude adjustment coefficient, the amplitude of the audio source greater than the first preset threshold is adjusted.
在一个可能的实施例中,在所述依据所述最大振幅和所述平均振幅的差值以及所述音量值确定第一振幅调节系数之后,还包括:In a possible embodiment, after the determining the first amplitude adjustment coefficient according to the difference between the maximum amplitude and the average amplitude and the volume value, the method further includes:
依据所述平均振幅确定第二振幅调节系数;determining a second amplitude adjustment coefficient according to the average amplitude;
相应的,所述依据所述振幅调节系数对所述音源的振幅进行调节还包括:Correspondingly, the adjusting the amplitude of the sound source according to the amplitude adjustment coefficient further includes:
依据所述第二振幅调节系数,对所述音源中小于第二预设阈值且大于第三预设阈值的振幅进行调节,所述第二预设阈值小于第一预设阈值。According to the second amplitude adjustment coefficient, the amplitude of the audio source that is smaller than a second preset threshold and greater than a third preset threshold is adjusted, and the second preset threshold is smaller than the first preset threshold.
在一个可能的实施例中,在所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数之前,还包括:In a possible embodiment, before the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value, the method further includes:
确定所述终端设备播放器件的阻抗值;determining the impedance value of the playback device of the terminal equipment;
相应的,所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数包括:Correspondingly, the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value includes:
依据所述阻抗值、所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。An amplitude adjustment coefficient is determined according to the impedance value, the maximum amplitude, the average amplitude, and the volume value.
在一个可能的实施例中,在所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数之前,还包括:In a possible embodiment, before the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value, the method further includes:
确定所述终端设备当前所处环境的噪声值;determining the noise value of the environment in which the terminal device is currently located;
相应的,所述依据所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数包括:Correspondingly, the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude and the volume value includes:
依据所述噪声值、所述最大振幅、所述平均振幅和所述音量值确定振幅调节系数。An amplitude adjustment coefficient is determined according to the noise value, the maximum amplitude, the average amplitude, and the volume value.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如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 devices; 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. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a second, different 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 (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) 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 operations of the volume adjustment method described above, and can also execute the volume adjustment method provided by any embodiment of the present invention. 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 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. The scope is determined by the scope of the appended claims.
Claims (8)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710711365.9A CN107526570B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, terminal equipment and storage medium |
| PCT/CN2018/098647 WO2019033940A1 (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 |
|---|---|---|---|
| CN201710711365.9A CN107526570B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, terminal equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107526570A CN107526570A (en) | 2017-12-29 |
| CN107526570B true CN107526570B (en) | 2020-01-14 |
Family
ID=60681451
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710711365.9A Active CN107526570B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, terminal equipment and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107526570B (en) |
| WO (1) | WO2019033940A1 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526570B (en) * | 2017-08-18 | 2020-01-14 | Oppo广东移动通信有限公司 | Volume adjusting method and device, terminal equipment and storage medium |
| CN109375893A (en) * | 2018-11-20 | 2019-02-22 | 北京小米移动软件有限公司 | Audio playback method and device |
| CN110661502A (en) * | 2019-10-18 | 2020-01-07 | 上海锐伟电子科技有限公司 | Volume adjusting method based on embedded system |
| CN113497852A (en) | 2020-04-07 | 2021-10-12 | 北京字节跳动网络技术有限公司 | Automatic volume adjustment method, apparatus, medium, and device |
| CN112306451A (en) * | 2020-10-30 | 2021-02-02 | 西安万像电子科技有限公司 | A volume adjustment method, device and system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050180585A1 (en) * | 2004-02-17 | 2005-08-18 | Kuan-Hong Hsieh | System and method for controlling volume with a single knob |
| CN101997498A (en) * | 2009-08-27 | 2011-03-30 | 北京宏景捷讯网络技术股份有限公司 | Volume adjusting method and device |
| CN103916797A (en) * | 2014-04-04 | 2014-07-09 | 安徽森力汽车电子有限公司 | Vehicle-mounted audible device |
| CN104410379A (en) * | 2014-10-29 | 2015-03-11 | 深圳市金立通信设备有限公司 | A volume adjusting method |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070104337A1 (en) * | 2005-11-08 | 2007-05-10 | Shurtz Gregory R | Apparatus and method for automatic volume synchronization of a digital audio device with an analog audio source |
| US8275151B2 (en) * | 2007-12-19 | 2012-09-25 | Agere Systems Inc. | Speakerphone using adaptive phase rotation |
| CN101714855A (en) * | 2009-11-19 | 2010-05-26 | 无敌科技(西安)有限公司 | System and method for automatically adjusting volume |
| CN102075829B (en) * | 2009-11-24 | 2013-11-20 | 鸿富锦精密工业(深圳)有限公司 | Volume adjusting system |
| CN103746668A (en) * | 2013-12-31 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Sound volume control method and system |
| US9794669B2 (en) * | 2014-02-11 | 2017-10-17 | Mediatek Inc. | Devices and methods for headphone speaker impedance detection |
| CN104363510B (en) * | 2014-10-29 | 2019-04-30 | 深圳市金立通信设备有限公司 | A kind of playback terminal |
| CN106775563A (en) * | 2016-12-13 | 2017-05-31 | 珠海市魅族科技有限公司 | The method and device of volume adjusting |
| CN107526570B (en) * | 2017-08-18 | 2020-01-14 | Oppo广东移动通信有限公司 | Volume adjusting method and device, terminal equipment and storage medium |
-
2017
- 2017-08-18 CN CN201710711365.9A patent/CN107526570B/en active Active
-
2018
- 2018-08-03 WO PCT/CN2018/098647 patent/WO2019033940A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050180585A1 (en) * | 2004-02-17 | 2005-08-18 | Kuan-Hong Hsieh | System and method for controlling volume with a single knob |
| CN101997498A (en) * | 2009-08-27 | 2011-03-30 | 北京宏景捷讯网络技术股份有限公司 | Volume adjusting method and device |
| CN103916797A (en) * | 2014-04-04 | 2014-07-09 | 安徽森力汽车电子有限公司 | Vehicle-mounted audible device |
| CN104410379A (en) * | 2014-10-29 | 2015-03-11 | 深圳市金立通信设备有限公司 | A volume adjusting method |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2019033940A1 (en) | 2019-02-21 |
| CN107526570A (en) | 2017-12-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
| US11201598B2 (en) | Volume adjusting method and mobile terminal | |
| CN107465824B (en) | Volume adjustment method, device, mobile terminal and storage medium | |
| CN107566618B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
| CN107509153B (en) | Detection method and device of sound playing device, storage medium and terminal | |
| CN107526570B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
| CN110799936B (en) | Volume adjusting method, volume adjusting device, terminal equipment and storage medium | |
| US10440464B2 (en) | Method and apparatus for adjusting volume, terminal device 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 | |
| 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 | |
| CN107479851B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
| CN107508983A (en) | Volume adjustment method, device, storage medium and terminal equipment | |
| CN110753919B (en) | Volume adjustment method, device, storage medium 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 | |
| HK1247683A1 (en) | Volume adjustment method and apparatus, terminal device and storage medium | |
| CN107404592A (en) | Volume adjustment method, device, storage medium and mobile terminal |
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 | ||
| CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |