CN110012386A - A kind of volume adjusting method and terminal of terminal - Google Patents
A kind of volume adjusting method and terminal of terminal Download PDFInfo
- Publication number
- CN110012386A CN110012386A CN201910253263.6A CN201910253263A CN110012386A CN 110012386 A CN110012386 A CN 110012386A CN 201910253263 A CN201910253263 A CN 201910253263A CN 110012386 A CN110012386 A CN 110012386A
- Authority
- CN
- China
- Prior art keywords
- volume
- adjustment
- value
- terminal
- characteristic curve
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
- H04R2430/01—Aspects of volume control, not necessarily automatic, in sound systems
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
本发明提供了一种终端的音量调节方法及终端,该方法包括:在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线;所述音量特征曲线上包括对应于不同音量值的至少两个离散点;根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量。因此,本发明的方案解决了现有技术中将音量调节到适合用户实际需求程度的过程较为繁琐的问题。
The present invention provides a method for adjusting volume of a terminal and the terminal. The method includes: when a playback operation on target audio data is detected, obtaining a current value of a volume adjustment influencing factor; value, adjust the volume characteristic curve obtained by pre-training, and obtain an updated volume characteristic curve; the volume characteristic curve includes at least two discrete points corresponding to different volume values; according to the updated volume characteristic curve, set to play the The initial volume of the target audio data. Therefore, the solution of the present invention solves the problem that the process of adjusting the volume to a level suitable for the user's actual needs in the prior art is relatively cumbersome.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种终端的音量调节方法及终端。The present invention relates to the technical field of communications, and in particular, to a method for adjusting volume of a terminal and a terminal.
背景技术Background technique
当前智能手机只有一个固定的音量调节条。其中,音量加、减键的音量调节幅度固定,而且初始音量是上次最后设置的音量,不一定适合本次的用户需求,从而使得用户音量调节时需要频繁的调节加减音量,并且加减一次音量的调节幅度太大会造成用户耳朵的不适,调节幅度太小则需要多次调节,操作过程较为繁琐。Current smartphones have only one fixed volume bar. Among them, the volume adjustment range of the volume plus and minus keys is fixed, and the initial volume is the last volume set last time, which may not be suitable for the user's needs this time, so that the user needs to frequently adjust the volume when adjusting the volume. If the adjustment range of the volume is too large at one time, it will cause discomfort to the user's ears, and if the adjustment range is too small, multiple adjustments are required, and the operation process is cumbersome.
由此可知,现有技术中,将音量调节到适合用户实际需求程度的过程较为繁琐。It can be seen from this that, in the prior art, the process of adjusting the volume to a level suitable for the actual needs of the user is rather cumbersome.
发明内容SUMMARY OF THE INVENTION
本发明的实施例,提供了一种终端的音量调节方法及终端,解决了现有技术中将音量调节到适合用户实际需求程度的过程较为繁琐的问题。The embodiments of the present invention provide a method and terminal for adjusting the volume of a terminal, which solves the problem that the process of adjusting the volume to a level suitable for the user's actual needs in the prior art is cumbersome.
第一方面,本发明的实施例提供了一种终端的音量调节方法,其特征在于,包括:In a first aspect, an embodiment of the present invention provides a method for adjusting the volume of a terminal, which is characterized by comprising:
在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;In the case of detecting the playback operation on the target audio data, obtain the current value of the influence factor of volume adjustment;
根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线;所述音量特征曲线上包括对应于不同音量值的至少两个离散点;According to the current value of the volume adjustment influencing factor, the volume characteristic curve obtained by pre-training is adjusted to obtain an updated volume characteristic curve; the volume characteristic curve includes at least two discrete points corresponding to different volume values;
根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量。According to the updated volume characteristic curve, the initial volume for playing the target audio data is set.
第二方面,本发明的实施例提供了一种终端,包括:In a second aspect, an embodiment of the present invention provides a terminal, including:
影响因素获取模块,用于在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;The influencing factor acquisition module is used to obtain the current value of the influence factor of volume adjustment when the playback operation on the target audio data is detected;
调整模块,用于根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线;所述音量特征曲线上包括对应于不同音量值的至少两个离散点;an adjustment module, configured to adjust the volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influencing factor to obtain an updated volume characteristic curve; the volume characteristic curve includes at least two discrete points corresponding to different volume values ;
初始音量确定模块,用于根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量。An initial volume determination module, configured to set the initial volume for playing the target audio data according to the updated volume characteristic curve.
第三方面,本发明的实施例提供了一种终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;其特征在于,所述处理器执行所述程序时实现上述所述的终端的音量调节方法。In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored on the memory and running on the processor; characterized in that, the processor executes all When the program is executed, the volume adjustment method of the terminal described above is realized.
第四方面,本发明的实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述所述的终端的音量调节中的步骤。In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps in the volume adjustment of the terminal described above are implemented.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明的实施例,能够在终端需要播放音频数据时,根据音量调节影响因素的当前取值,调整预先训练获得的音量特征曲线,从而根据更新的音量特征曲线确定播放音频数据的初始音量。由此可知,本发明的实施例,可以根据音量调节影响因素的具体情况为用户确定出合适的初始音量,减少了用户调整音量的步骤,提升了耳朵的舒适感。The embodiment of the present invention can adjust the volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influence factor when the terminal needs to play audio data, so as to determine the initial volume of playing audio data according to the updated volume characteristic curve. It can be seen that, in the embodiments of the present invention, an appropriate initial volume can be determined for the user according to the specific situation of the influencing factors of volume adjustment, which reduces the steps for the user to adjust the volume and improves the comfort of the ears.
附图说明Description of drawings
图1表示本发明实施例的终端的音量调节方法的流程图;1 shows a flowchart of a method for adjusting volume of a terminal according to an embodiment of the present invention;
图2表示本发明实施例的终端的模块示意图;FIG. 2 is a schematic diagram of a module of a terminal according to an embodiment of the present invention;
图3表示本发明实施例的终端的硬件结构示意图。FIG. 3 shows a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的实施例提供了一种终端的音量调节方法,如图1所示,该方法包括:An embodiment of the present invention provides a method for adjusting the volume of a terminal. As shown in FIG. 1 , the method includes:
步骤101:在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值。Step 101 : in the case of detecting the playback operation on the target audio data, obtain the current value of the influence factor of volume adjustment.
其中,采用相同的音量大小,在不同的音量调节影响因素下,用户的听觉感受不同,因此,音量调节影响因素也可称为影响用户听觉感受的因素。Wherein, with the same volume level, the user's auditory experience is different under different volume adjustment factors. Therefore, the volume adjustment factors can also be referred to as factors affecting the user's auditory experience.
可选地,所述音量调节影响因素包括以下因素中的至少一者:终端是否插入耳机、终端所处环境的噪声值和音频数据的音乐类型。Optionally, the volume adjustment influencing factor includes at least one of the following factors: whether the terminal is plugged into an earphone, the noise value of the environment where the terminal is located, and the music type of the audio data.
其中,采用相同的音量大小,在终端输入耳机,以及未插入耳机(即外放)的不同情况下,用户所听到的声音大小不同,即用户的听觉感受不同。Wherein, with the same volume, the user hears different sounds in different situations when the terminal inputs the earphone and does not insert the earphone (ie, external playback), that is, the user's hearing experience is different.
另外,采用相同的音量大小,在终端处于不同环境下,用户所听到的声音大小不同,即用户的听觉感受不同。其中,具体地,终端所处环境可以按照具体噪声值的大小,从安静到嘈杂分为多个等级。In addition, with the same volume, when the terminal is in different environments, the sound heard by the user is different, that is, the user's hearing experience is different. Specifically, the environment in which the terminal is located may be classified into multiple levels from quiet to noisy according to the magnitude of the specific noise value.
此外,采用相同的音量大小播放不同类型的音频数据,用户的听觉感受也会不同。例如,轻松、舒缓以及摇滚类型的音乐,在采用相同音量大小播放时,用户的听觉感受会各不相同。In addition, when different types of audio data are played at the same volume level, the user's hearing experience will also be different. For example, relaxing, soothing, and rock-type music will be heard differently by users when played at the same volume level.
基于上述影响用户听觉感受的因素(即音量调节影响因素),本发明的实施例中,在检测到对目标音频数据的播放操作的情况下,即获取音量调节影响因素的当前值,从而可以根据音量调节影响因素的具体取值,确定播放目标音频数据的初始音量,达到满足用户听觉感受的目的。Based on the above-mentioned factors affecting the user's auditory experience (ie, the volume adjustment influencing factor), in the embodiment of the present invention, in the case of detecting the playback operation of the target audio data, the current value of the volume adjustment influencing factor is obtained, so that the current value of the volume adjustment influencing factor can be obtained according to the The specific values of the influencing factors for volume adjustment determine the initial volume of the playback target audio data, so as to satisfy the user's auditory experience.
步骤102:根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线。Step 102: According to the current value of the volume adjustment influencing factor, adjust the volume characteristic curve obtained by pre-training to obtain an updated volume characteristic curve.
其中,所述音量特征曲线上包括对应于不同音量值的至少两个离散点。Wherein, the volume characteristic curve includes at least two discrete points corresponding to different volume values.
可选地,预先训练得到的音量特征曲线是在预定音量调节影响因素的情况下得到的,所述预定音量调节影响因素包括:终端未插入耳机、终端所处环境的噪声值处于第一预设范围、播放第一类型的音频数据。Optionally, the volume characteristic curve obtained by pre-training is obtained under the condition of predetermined volume adjustment influencing factors, and the predetermined volume adjustment influencing factors include: the terminal is not plugged into the earphone, and the noise value of the environment in which the terminal is located is in the first preset value. Scope, play audio data of the first type.
即终端中预先存储的音量特征曲线是在终端未插入耳机,且终端所处环境的噪声值处于第一预设范围,且播放第一类型的音频数据的情况下训练获得的。That is, the volume characteristic curve pre-stored in the terminal is obtained by training when the terminal is not plugged into the earphone, the noise value of the environment where the terminal is located is in the first preset range, and the audio data of the first type is played.
具体地,例如终端中预先存储的音量特征曲线是在终端未插入耳机,且终端处于安静的环境中,且播放轻松类型的音乐的情况下获得的。Specifically, for example, the volume characteristic curve pre-stored in the terminal is obtained when the terminal is not plugged into an earphone, and the terminal is in a quiet environment and plays music of a relaxed type.
可选地,所述根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线,包括:Optionally, according to the current value of the volume adjustment influencing factor, adjusting the volume characteristic curve obtained by pre-training to obtain an updated volume characteristic curve, including:
根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值;According to the current value of each of the volume adjustment influence factors, determine the adjustment value corresponding to each of the volume adjustment influence factors;
对每个所述音量调节影响因素对应的调整值进行求和,得到所述音量特征曲线的调整值;Summing the adjustment values corresponding to each of the volume adjustment influencing factors to obtain the adjustment value of the volume characteristic curve;
按照所述音量特征曲线的调整值,调整所述音量特征曲线中的每个离散点对应的音量值。According to the adjustment value of the volume characteristic curve, the volume value corresponding to each discrete point in the volume characteristic curve is adjusted.
即本发明的实施例中,在根据音量调节影响因素的当前值,调整预先训练获得的音量特征曲线时,针对音量调节影响因素所包括的每一项影响因素,确定需要对音量特征曲线进行调整的调整值,然后将与音量调节影响因素所包括的所有影响因素对应的调整值叠加到预先获得的音量特征曲线中。That is, in the embodiment of the present invention, when adjusting the volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influence factor, it is determined that the volume characteristic curve needs to be adjusted for each influence factor included in the volume adjustment influence factor. and then superimpose the adjustment values corresponding to all the influence factors included in the volume adjustment influence factors into the pre-obtained volume characteristic curve.
由此可知,本发明的实施例是预先训练获得特定场景下的音量特征曲线,并存储在终端中,然后再实际需要播放音频数据时,根据当前音量调节影响因素的具体取值,去更新预先存储的音量特征曲线,使得音量特征曲线符合当前景。It can be seen from this that the embodiment of the present invention obtains the volume characteristic curve in a specific scene by pre-training, and stores it in the terminal, and then when the audio data actually needs to be played, according to the specific value of the current volume adjustment influencing factor, to update the preset volume The stored volume characteristic curve makes the volume characteristic curve conform to the current foreground.
例如,预先训练获得终端未插入耳机且处于安静环境中播放轻松类型的音乐的音量特征曲线,而实际需要播放音频数据时,终端插入了耳机,且处于嘈杂的环境中,且需要播放的音频数据为摇滚类型,则需要确定出每一项音量调节影响因素,在当前实际播放场景与预先训练的音量特征曲线的应用场景之间的区别,从而根据具体的区别,得到各项影响因素对应的调整值。For example, pre-training is used to obtain the volume characteristic curve of the terminal that is not plugged into the earphone and is in a quiet environment to play relaxing music, but when the terminal actually needs to play audio data, the terminal is inserted into the earphone and is in a noisy environment, and the audio data that needs to be played For the rock type, it is necessary to determine the influencing factors of each volume adjustment, the difference between the current actual playback scene and the application scene of the pre-trained volume characteristic curve, so as to obtain the corresponding adjustment of each influencing factor according to the specific difference value.
在本发明的实施例中,预先确定了音量特征曲线的应用场景,那么,对于终端是否插入耳机的影响因素,存在终端插入耳机与未插入耳机两种具体情况,则与终端是否插入耳机的这一项影响因素对应、针对预先获得的音量特征曲线的调整值存在两种取值。In the embodiment of the present invention, the application scenario of the volume characteristic curve is pre-determined. Then, as to the influencing factors of whether the terminal is inserted into the earphone, there are two specific situations: the terminal is inserted into the earphone and the earphone is not inserted, and this is related to whether the terminal is inserted into the earphone There are two values for the adjustment value of the pre-obtained volume characteristic curve corresponding to an influencing factor.
即可选地,在所述音量调节影响因素包括终端是否插入耳机的情况下,所述根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值,包括:That is, when the volume adjustment influencing factor includes whether the terminal is plugged into an earphone, the adjustment value corresponding to each of the volume adjustment influencing factors is determined according to the current value of each of the volume adjustment influencing factors, include:
在终端插入耳机的情况下,确定终端插入耳机对应的调整值为第一预设值,所述第一预设值小于零;In the case where the terminal is plugged into the earphone, determine that the adjustment value corresponding to the terminal plugged into the earphone is a first preset value, and the first preset value is less than zero;
在终端未插入耳机的情况下,则确定终端未插入耳机对应的调整值为零。In the case that the earphone is not inserted into the terminal, it is determined that the adjustment value corresponding to the earphone not inserted into the terminal is zero.
其中,终端插入耳机的情况下,播放音频数据不需要很大音量,用户就可以听得很清楚,因此,在预先训练获得的音量特征曲线的应用场景为未终端插入耳机的前提下,若实际播放音频数据时,终端插入了耳机,则需要将预先训练获得的音量特征曲线中的音量值降低一定幅值。Among them, when the terminal is plugged into the earphone, the audio data does not need a high volume to play the audio data, and the user can hear it clearly. Therefore, the application scenario of the volume characteristic curve obtained by pre-training is on the premise of When playing audio data, if the terminal is plugged into an earphone, the volume value in the volume characteristic curve obtained by pre-training needs to be reduced by a certain magnitude.
然而,若预先训练获得的音量特征曲线的应用场景为终端插入耳机,而在实际播放音频数据时,终端未插入了耳机,则需要将预先训练获得的音量特征曲线中的音量值提高一定幅值。However, if the application scenario of the volume characteristic curve obtained by pre-training is that the terminal is plugged into an earphone, but the terminal is not plugged into the earphone when the audio data is actually played, the volume value in the volume characteristic curve obtained by pre-training needs to be increased by a certain magnitude .
另外,对于与终端所处环境的噪声值这一项影响因素对应、针对预先获得的音量特征曲线的调整值,按照如下方式进行确定:In addition, the adjustment value for the pre-obtained volume characteristic curve corresponding to the influence factor of the noise value of the environment where the terminal is located is determined as follows:
即可选地,在所述音量调节影响因素包括终端所处环境的噪声值的情况下,所述根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值,包括:That is, optionally, in the case where the volume adjustment influencing factor includes the noise value of the environment in which the terminal is located, determining the corresponding volume adjustment influence factor according to the current value of each of the volume adjustment influencing factors. Adjustment values, including:
在终端所处环境的当前噪声值处于所述第一预设范围内的情况下,确定终端所处环境的当前噪声值对应的调整值为零;In the case that the current noise value of the environment where the terminal is located is within the first preset range, determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is zero;
在终端所处环境的当前噪声值小于所述第一预设范围的下限值的情况下,根据预先确定的噪声值之差与调整幅度的对应关系,确定所述下限值与所述当前噪声值之差对应的第一调整幅度,并确定终端所处环境的当前噪声值对应的调整值为绝对值为所述第一调整幅度的负数;When the current noise value of the environment where the terminal is located is less than the lower limit value of the first preset range, determine the lower limit value and the current a first adjustment range corresponding to the difference between the noise values, and determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is a negative number whose absolute value is the first adjustment range;
在终端所处环境的当前噪声值大于所述第一预设范围的上限值的情况下,根据预先确定的噪声值之差与调整幅度的对应关系,确定所述上限值与所述当前噪声值之差对应的第二调整幅度,并确定终端所处环境的当前噪声值对应的调整值为绝对值为所述第二调整幅度的正数。When the current noise value of the environment where the terminal is located is greater than the upper limit value of the first preset range, determine the upper limit value and the current noise value according to the predetermined correspondence between the difference between the noise values and the adjustment range The second adjustment range corresponding to the difference between the noise values is determined, and the adjustment value corresponding to the current noise value of the environment in which the terminal is located is determined to be a positive number whose absolute value is the second adjustment range.
由上述可知,若终端需要播放音频数据时的实际环境噪声值处于预先训练获得的音量特征曲线所适用的噪声范围之内,则不需要在环境噪声方面对音量特征曲线进行调整,而若实际环境噪声与音量特征曲线所适用的环境噪声相比较为安静,则需要将音量特征曲线的音量值降低一定幅值,若实际环境噪声与音量特征曲线所适用的环境噪声相比较为嘈杂,则需要将音量特征曲线的音量值提高一定幅值。It can be seen from the above that if the actual environmental noise value when the terminal needs to play audio data is within the noise range to which the volume characteristic curve obtained by pre-training is applicable, it is not necessary to adjust the volume characteristic curve in terms of environmental noise. If the noise is quieter than the ambient noise to which the volume characteristic curve applies, it is necessary to reduce the volume value of the volume characteristic curve by a certain amount. The volume value of the volume characteristic curve is increased by a certain amount.
此外,对于与音频数据的音乐类型这一项影响因素对应、针对预先获得的音量特征曲线的调整值,按照如下方式进行确定:In addition, the adjustment value for the pre-obtained volume characteristic curve corresponding to the influence factor of the music type of the audio data is determined as follows:
即可选地,在所述音量调节影响因素包括音频数据的音乐类型的情况下,所述根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值,包括:That is, when the volume adjustment influencing factor includes the music type of the audio data, the adjustment value corresponding to each of the volume adjustment influencing factors is determined according to the current value of each of the volume adjustment influencing factors. ,include:
在所述目标音频数据的音乐类型为第二类型的情况下,确定播放所述第二类型的音频数据对应的调整值为第二预设值;In the case that the music type of the target audio data is the second type, determine that the adjustment value corresponding to playing the audio data of the second type is a second preset value;
在所述目标音频数据的音乐类型为第三类型的情况下,确定播放所述第三类型的音频数据对应的调整值为第三预设值。In the case that the music type of the target audio data is the third type, it is determined that the adjustment value corresponding to playing the audio data of the third type is a third preset value.
例如,预先训练获得的音量特征曲线适用于播放轻松的音乐,则在实际需要播放舒缓的音乐时,需要将音量特征曲线的音量值提高一定幅值,在实际需要播放摇滚类型的音乐时,需要将音量特征曲线的音量值也提高一定幅值。For example, if the volume characteristic curve obtained by pre-training is suitable for playing relaxing music, when you actually need to play soothing music, you need to increase the volume value of the volume characteristic curve by a certain amount. When you actually need to play rock-type music, you need to The volume value of the volume characteristic curve is also increased by a certain amount.
步骤103:根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量。Step 103: Set the initial volume for playing the target audio data according to the updated volume characteristic curve.
其中,通过上述步骤获得更新的音量特征曲线后,则可以进一步设置播放目标音频数据的初始音量。Wherein, after the updated volume characteristic curve is obtained through the above steps, the initial volume of the playback target audio data can be further set.
可选地,所述至少两个离散点中包括对应于默认音量值的默认离散点;所述根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量,包括:Optionally, the at least two discrete points include a default discrete point corresponding to a default volume value; and the setting of the initial volume for playing the target audio data according to the updated volume characteristic curve includes:
将播放所述目标音频数据的初始音量,设置为所述默认离散点对应的默认音量值。The initial volume for playing the target audio data is set as the default volume value corresponding to the default discrete point.
即在预先训练获得的音量特征曲线上设置一默认离散点,则更新后的音量特征曲线上也存在一个默认离散点,而更新后的音量特征曲线上的默认离散点的音量值,则可以作为播放目标音频数据的初始音量。其中,更新后的音量特征曲线是根据音量调节影响因素的当前取值调整后获得的,因此,播放目标音频数据的初始音量与音量调节影响因素的具体情况相匹配,从而减少了用户调整音量的步骤,提升了耳朵的舒适感。That is, if a default discrete point is set on the volume characteristic curve obtained by pre-training, there is also a default discrete point on the updated volume characteristic curve, and the volume value of the default discrete point on the updated volume characteristic curve can be used as The initial volume at which the target audio data is played. The updated volume characteristic curve is obtained after adjustment according to the current value of the volume adjustment influencing factor. Therefore, the initial volume of the playback target audio data matches the specific situation of the volume adjustment influencing factor, thereby reducing the need for users to adjust the volume. steps to enhance the comfort of the ear.
可选地,在设置播放所述目标音频数据的初始音量的步骤之后,所述方法还包括:Optionally, after the step of setting the initial volume for playing the target audio data, the method further includes:
在所述目标音频数据的播放过程中,若检测到用户输入的音量调节指令,则在每接收到一次音量调节指令后,确定所述更新后的音量特征曲线上,与当前播放所述目标音频数据的第一音量值对应的第一离散点;During the playback of the target audio data, if a volume adjustment instruction input by the user is detected, after each volume adjustment instruction is received, it is determined that the updated volume characteristic curve is the same as the current playback of the target audio the first discrete point corresponding to the first volume value of the data;
根据所述音量调节指令指示的音量调节方向,确定所述第一离散点相邻的第二离散点对应的第二音量值;determining the second volume value corresponding to the second discrete point adjacent to the first discrete point according to the volume adjustment direction indicated by the volume adjustment instruction;
将播放所述目标音频数据的音量调整为所述第二音量值。Adjust the volume of playing the target audio data to the second volume value.
例如,音量特征曲线上包括-4~4九个点,中间位置点0表示初始音量位置(默认最优音量),-4~-1四个点是“音量减键”的调节点,1~4是“音量加键”的调节点。默认初始播放0点所在的音量幅值,当用户按下音量加键则按1点的所在音量幅值播放;当用户按下音量减键则按-1点的所在音量幅值播放。For example, the volume characteristic curve includes nine points from -4 to 4, the middle position point 0 represents the initial volume position (the default optimal volume), the four points from -4 to -1 are the adjustment points of the "volume minus key", 1 to 4 is the adjustment point of the "volume plus key". By default, the volume amplitude of the 0 point is initially played. When the user presses the volume up key, it will be played at the volume amplitude of the 1 point; when the user presses the volume down key, it will be played at the volume amplitude of the -1 point.
其中,音量特征曲线上包括的离散点中,每相邻两个离散点对应的音量值之差不同,为用户提供最合适以及最快速的音量调节幅度。Among the discrete points included in the volume characteristic curve, the difference between the volume values corresponding to every two adjacent discrete points is different, so as to provide the user with the most suitable and fastest volume adjustment range.
由上述可知,本发明的实施例,在检测到终端需要播放音频数据时,触发提取多种外部条件(即音量调节影响因素),计算出最适合的用户音量,一次跳到最适合用户音量位置,并围绕最优点的上下位置,设计出适合当前用户音量的如4~8个非等幅音量加减调节精细区域,提供给用户最合适的快速音量调节幅度。It can be seen from the above that in the embodiment of the present invention, when it is detected that the terminal needs to play audio data, it triggers the extraction of various external conditions (that is, the influencing factors of volume adjustment), calculates the most suitable user volume, and jumps to the most suitable user volume position at one time. , and around the upper and lower positions of the optimal point, design for the current user volume, such as 4 to 8 non-equal-amplitude volume addition and subtraction adjustment fine areas, to provide users with the most suitable rapid volume adjustment range.
可选地,在所述目标音频数据播放过程中,若检测到用户结束音量调节,则获取所述目标音频数据当前播放的第三音量值;Optionally, during the playback of the target audio data, if it is detected that the user ends the volume adjustment, the third volume value currently played by the target audio data is acquired;
根据所述第三音量值,重新训练所述音量特征曲线。The volume characteristic curve is retrained according to the third volume value.
具体地,若所述第三音量值大于所述初始音量,则分别增大预先训练得到的音量特征曲线上的离散点的音量值;若所述第三音量值小于所述初始音量,则分别减小将预先训练得到的音量特征曲线上的离散点的音量值。Specifically, if the third volume value is greater than the initial volume, the volume values of discrete points on the volume characteristic curve obtained by pre-training are respectively increased; if the third volume value is less than the initial volume, the Decrease the volume value of discrete points on the volume characteristic curve that will be pre-trained.
其中,在接收到一次音量调节指令之后的预设时间内,若未再次接收到音量调节指令,则确定用户结束了音量调节,即此时播放目标音频数据的第三音量值满足用户的听觉感受。Wherein, within the preset time after receiving the volume adjustment instruction once, if the volume adjustment instruction is not received again, it is determined that the user has finished the volume adjustment, that is, the third volume value of the playback target audio data at this time satisfies the user's auditory experience .
另外,根据最终满足用户听觉感受的第三音量值去优化音量特征曲线,从而使得后续依据音量特征曲线进行音量调节时,可以更加快速地调节到符合用户听觉感受的音量。In addition, the volume characteristic curve is optimized according to the third volume value that finally satisfies the user's auditory experience, so that when the volume is subsequently adjusted according to the volume characteristic curve, the volume that meets the user's auditory experience can be adjusted more quickly.
此外,在播放目标音频数据的过程中,还可定时检测音量调节影响因素是否变化,音量调节影响因素变化时主动触发上述音量调节过程。In addition, in the process of playing the target audio data, it is also possible to regularly detect whether the influence factor of volume adjustment changes, and the above-mentioned volume adjustment process is actively triggered when the influence factor of volume adjustment changes.
本发明的实施例还提供了一种终端,如图2所示,该终端200包括:An embodiment of the present invention also provides a terminal. As shown in FIG. 2 , the terminal 200 includes:
影响因素获取模块201,用于在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;Influencing factor acquisition module 201, configured to acquire the current value of the volume adjustment influence factor when a playback operation on the target audio data is detected;
调整模块202,用于根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线;所述音量特征曲线上包括对应于不同音量值的至少两个离散点;The adjustment module 202 is configured to adjust the volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influencing factor to obtain an updated volume characteristic curve; the volume characteristic curve includes at least two discrete volume values corresponding to different volume values. point;
初始音量确定模块203,用于根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量。The initial volume determination module 203 is configured to set the initial volume for playing the target audio data according to the updated volume characteristic curve.
可选地,预先训练得到的音量特征曲线是在预定音量调节影响因素的情况下得到的,所述预定音量调节影响因素包括:终端未插入耳机、终端所处环境的噪声值处于第一预设范围、播放第一类型的音频数据。Optionally, the volume characteristic curve obtained by pre-training is obtained under the condition of predetermined volume adjustment influencing factors, and the predetermined volume adjustment influencing factors include: the terminal is not plugged into the earphone, and the noise value of the environment in which the terminal is located is in the first preset value. Scope, play audio data of the first type.
可选地,所述音量调节影响因素包括以下因素中的至少一者:终端是否插入耳机、终端所处环境的噪声值和音频数据的音乐类型。Optionally, the volume adjustment influencing factor includes at least one of the following factors: whether the terminal is plugged into an earphone, the noise value of the environment where the terminal is located, and the music type of the audio data.
可选地,所述调整模块202包括:Optionally, the adjustment module 202 includes:
调整值确定单元,用于根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值;an adjustment value determination unit, configured to determine an adjustment value corresponding to each of the volume adjustment influence factors according to the current value of each of the volume adjustment influence factors;
求和单元,用于对每个所述音量调节影响因素对应的调整值进行求和,得到所述音量特征曲线的调整值;A summation unit, for summing the adjustment values corresponding to each of the volume adjustment influencing factors to obtain the adjustment value of the volume characteristic curve;
调整单元,用于按照所述音量特征曲线的调整值,调整所述音量特征曲线中的每个离散点对应的音量值。An adjustment unit, configured to adjust the volume value corresponding to each discrete point in the volume characteristic curve according to the adjustment value of the volume characteristic curve.
可选地,在所述音量调节影响因素包括终端是否插入耳机的情况下,所述调整值确定单元具体用于:Optionally, when the volume adjustment influencing factor includes whether the terminal is plugged into an earphone, the adjustment value determining unit is specifically configured to:
在终端插入耳机的情况下,确定终端插入耳机对应的调整值为第一预设值,所述第一预设值小于零;In the case where the terminal is plugged into the earphone, determine that the adjustment value corresponding to the terminal plugged into the earphone is a first preset value, and the first preset value is less than zero;
在终端未插入耳机的情况下,则确定终端未插入耳机对应的调整值为零。In the case that the earphone is not inserted into the terminal, it is determined that the adjustment value corresponding to the earphone not inserted into the terminal is zero.
可选地,在所述音量调节影响因素包括终端所处环境的噪声值的情况下,所述调整值确定单元具体用于:Optionally, when the volume adjustment influencing factor includes a noise value of the environment where the terminal is located, the adjustment value determining unit is specifically configured to:
在终端所处环境的当前噪声值处于所述第一预设范围内的情况下,确定终端所处环境的当前噪声值对应的调整值为零;In the case that the current noise value of the environment where the terminal is located is within the first preset range, determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is zero;
在终端所处环境的当前噪声值小于所述第一预设范围的下限值的情况下,根据预先确定的噪声值之差与调整幅度的对应关系,确定所述下限值与所述当前噪声值之差对应的第一调整幅度,并确定终端所处环境的当前噪声值对应的调整值为绝对值为所述第一调整幅度的负数;When the current noise value of the environment where the terminal is located is less than the lower limit value of the first preset range, determine the lower limit value and the current a first adjustment range corresponding to the difference between the noise values, and determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is a negative number whose absolute value is the first adjustment range;
在终端所处环境的当前噪声值大于所述第一预设范围的上限值的情况下,根据预先确定的噪声值之差与调整幅度的对应关系,确定所述上限值与所述当前噪声值之差对应的第二调整幅度,并确定终端所处环境的当前噪声值对应的调整值为绝对值为所述第二调整幅度的正数。When the current noise value of the environment where the terminal is located is greater than the upper limit value of the first preset range, determine the upper limit value and the current noise value according to the predetermined correspondence between the difference between the noise values and the adjustment range The second adjustment range corresponding to the difference between the noise values is determined, and the adjustment value corresponding to the current noise value of the environment in which the terminal is located is determined to be a positive number whose absolute value is the second adjustment range.
可选地,在所述音量调节影响因素包括音频数据的音乐类型的情况下,所述调整值确定单元具体用于:Optionally, when the volume adjustment influencing factor includes the music type of the audio data, the adjustment value determination unit is specifically configured to:
在所述目标音频数据的音乐类型为第二类型的情况下,确定播放所述第二类型的音频数据对应的调整值为第二预设值;In the case that the music type of the target audio data is the second type, determine that the adjustment value corresponding to playing the audio data of the second type is a second preset value;
在所述目标音频数据的音乐类型为第三类型的情况下,确定播放所述第三类型的音频数据对应的调整值为第三预设值。In the case that the music type of the target audio data is the third type, it is determined that the adjustment value corresponding to playing the audio data of the third type is a third preset value.
可选地,所述至少两个离散点中包括对应于默认音量值的默认离散点;所述初始音量确定模块203具体用于:Optionally, the at least two discrete points include a default discrete point corresponding to a default volume value; the initial volume determination module 203 is specifically configured to:
将播放所述目标音频数据的初始音量,设置为所述默认离散点对应的默认音量值。The initial volume for playing the target audio data is set as the default volume value corresponding to the default discrete point.
可选地,所述终端还包括:Optionally, the terminal further includes:
指令接收模块,用于在所述目标音频数据的播放过程中,若检测到用户输入的音量调节指令,则在每接收到一次音量调节指令后,确定所述更新后的音量特征曲线上,与当前播放所述目标音频数据的第一音量值对应的第一离散点;The instruction receiving module is used for, during the playback of the target audio data, if a volume adjustment instruction input by the user is detected, after each volume adjustment instruction is received, determine the updated volume characteristic curve, and Currently playing the first discrete point corresponding to the first volume value of the target audio data;
音量值确定模块,用于根据所述音量调节指令指示的音量调节方向,确定所述第一离散点相邻的第二离散点对应的第二音量值;a volume value determination module, configured to determine a second volume value corresponding to a second discrete point adjacent to the first discrete point according to the volume adjustment direction indicated by the volume adjustment instruction;
音量调整模块,用于将播放所述目标音频数据的音量调整为所述第二音量值。A volume adjustment module, configured to adjust the volume of playing the target audio data to the second volume value.
可选地,所述终端还包括:Optionally, the terminal further includes:
音量值获取模块,用于在所述目标音频数据播放过程中,若检测到用户结束音量调节,则获取所述目标音频数据当前播放的第三音量值;A volume value acquisition module, configured to acquire the third volume value currently played by the target audio data if it is detected that the user ends the volume adjustment during the playback of the target audio data;
优先模块,用于根据所述第三音量值,重新训练所述音量特征曲线。A priority module, configured to retrain the volume characteristic curve according to the third volume value.
由上述可知,本发明实施例的终端200,能够在终端需要播放音频数据时,根据音量调节影响因素的当前取值,调整预先训练获得的音量特征曲线,从而根据更新的音量特征曲线确定播放音频数据的初始音量。由此可知,本发明的实施例,可以根据音量调节影响因素的具体情况为用户确定出合适的初始音量,减少了用户调整音量的步骤,提升了耳朵的舒适感。It can be seen from the above that the terminal 200 in the embodiment of the present invention can adjust the volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influencing factor when the terminal needs to play audio data, so as to determine the playback audio according to the updated volume characteristic curve. The initial volume of the data. It can be seen that, in the embodiments of the present invention, an appropriate initial volume can be determined for the user according to the specific situation of the influencing factors of volume adjustment, which reduces the steps for the user to adjust the volume and improves the comfort of the ears.
本发明的实施例还提供了一种终端,如图3所示,该终端300包括但不限于:射频单元301、网络模块302、音频输出单元303、输入单元304、传感器306、显示单元306、用户输入单元307、接口单元308、存储器309、处理器310、以及电源311等部件。本领域技术人员可以理解,图3中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。An embodiment of the present invention also provides a terminal. As shown in FIG. 3 , the terminal 300 includes but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 306, a display unit 306, User input unit 307, interface unit 308, memory 309, processor 310, and power supply 311 and other components. Those skilled in the art can understand that the terminal structure shown in FIG. 3 does not constitute a limitation on the terminal, and the terminal may include more or less components than the one shown, or combine some components, or arrange different components. In the embodiment of the present invention, the terminal includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
其中,处理器310用于在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线;所述音量特征曲线上包括对应于不同音量值的至少两个离散点;根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量。Wherein, the processor 310 is configured to obtain the current value of the volume adjustment influencing factor when the playback operation on the target audio data is detected; according to the current value of the volume adjustment influencing factor, adjust the volume characteristic curve obtained by pre-training, An updated volume characteristic curve is obtained; the volume characteristic curve includes at least two discrete points corresponding to different volume values; and an initial volume for playing the target audio data is set according to the updated volume characteristic curve.
因此,本发明实施例的终端300,能够在终端需要播放音频数据时,根据音量调节影响因素的当前取值,调整预先训练获得的音量特征曲线,从而根据更新的音量特征曲线确定播放音频数据的初始音量。由此可知,本发明的实施例,可以根据音量调节影响因素的具体情况为用户确定出合适的初始音量,减少了用户调整音量的步骤,提升了耳朵的舒适感。Therefore, the terminal 300 according to the embodiment of the present invention can adjust the volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influencing factor when the terminal needs to play audio data, so as to determine the volume of the audio data to be played according to the updated volume characteristic curve. initial volume. It can be seen that, in the embodiments of the present invention, an appropriate initial volume can be determined for the user according to the specific situation of the influencing factors of volume adjustment, which reduces the steps for the user to adjust the volume and improves the comfort of the ears.
应理解的是,本发明实施例中,射频单元301可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器310处理;另外,将上行的数据发送给基站。通常,射频单元301包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元301还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 310; The uplink data is sent to the base station. Generally, the radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with the network and other devices through a wireless communication system.
终端通过网络模块302为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal provides the user with wireless broadband Internet access through the network module 302, such as helping the user to send and receive emails, browse web pages, and access streaming media.
音频输出单元303可以将射频单元301或网络模块302接收的或者在存储器309中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元303还可以提供与终端300执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元303包括扬声器、蜂鸣器以及受话器等。The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into audio signals and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the terminal 300 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
输入单元304用于接收音频或视频信号。输入单元304可以包括图形处理器(Graphics Processing Unit,GPU)3041和麦克风3042,图形处理器3041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元306上。经图形处理器3041处理后的图像帧可以存储在存储器309(或其它存储介质)中或者经由射频单元301或网络模块302进行发送。麦克风3042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元301发送到移动通信基站的格式输出。The input unit 304 is used to receive audio or video signals. The input unit 304 may include a graphics processor (Graphics Processing Unit, GPU) 3041 and a microphone 3042, and the graphics processor 3041 captures images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 306 . The image frames processed by the graphics processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302 . The microphone 3042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 301 for output in the case of a telephone call mode.
终端300还包括至少一种传感器305,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板3061的亮度,接近传感器可在终端300移动到耳边时,关闭显示面板3061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器305还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal 300 also includes at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 3061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 3061 and/or when the terminal 300 is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, The sensor 305 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared Sensors, etc., will not be repeated here.
显示单元306用于显示由用户输入的信息或提供给用户的信息。显示单元306可包括显示面板3061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板3061。The display unit 306 is used to display information input by the user or information provided to the user. The display unit 306 may include a display panel 3061, and the display panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
用户输入单元307可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元307包括触控面板3071以及其他输入设备3072。触控面板3071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板3071上或在触控面板3071附近的操作)。触控面板3071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器310,接收处理器310发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板3071。除了触控面板3071,用户输入单元307还可以包括其他输入设备3072。具体地,其他输入设备3072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 307 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the terminal. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072 . The touch panel 3071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 3071). operate). The touch panel 3071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 310, the command sent by the processor 310 is received and executed. In addition, the touch panel 3071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 3071 , the user input unit 307 may also include other input devices 3072 . Specifically, other input devices 3072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板3071可覆盖在显示面板3061上,当触控面板3071检测到在其上或附近的触摸操作后,传送给处理器310以确定触摸事件的类型,随后处理器310根据触摸事件的类型在显示面板3061上提供相应的视觉输出。虽然在图3中,触控面板3071与显示面板3061是作为两个独立的部件来实现终端的输入和输出功能,但是在某些实施例中,可以将触控面板3071与显示面板3061集成而实现终端的输入和输出功能,具体此处不做限定。Further, the touch panel 3071 can be covered on the display panel 3061. When the touch panel 3071 detects a touch operation on or near it, it transmits it to the processor 310 to determine the type of the touch event, and then the processor 310 determines the type of the touch event according to the touch The type of event provides corresponding visual output on display panel 3061. Although in FIG. 3, the touch panel 3071 and the display panel 3061 are used as two independent components to realize the input and output functions of the terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to form a Realize the input and output functions of the terminal, which is not limited here.
接口单元308为外部装置与终端300连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元308可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端300内的一个或多个元件或者可以用于在终端300和外部装置之间传输数据。The interface unit 308 is an interface for connecting an external device to the terminal 300 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 308 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 300 or may be used between the terminal 300 and the external device. transfer data between.
存储器309可用于存储软件程序以及各种数据。存储器309可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器309可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 309 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理器310是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器309内的软件程序和/或模块,以及调用存储在存储器309内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。处理器310可包括一个或多个处理单元;优选的,处理器310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器310中。The processor 310 is the control center of the terminal, using various interfaces and lines to connect various parts of the entire terminal, by running or executing the software programs and/or modules stored in the memory 309, and calling the data stored in the memory 309. Various functions of the terminal and processing data, so as to monitor the terminal as a whole. The processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 310.
终端300还可以包括给各个部件供电的电源311(比如电池),优选的,电源311可以通过电源管理系统与处理器310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal 300 may also include a power supply 311 (such as a battery) for supplying power to various components. Preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. Function.
另外,终端300包括一些未示出的功能模块,在此不再赘述。In addition, the terminal 300 includes some unshown functional modules, which are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述终端的音量调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiment of the method for adjusting volume of a terminal can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910253263.6A CN110012386B (en) | 2019-03-29 | 2019-03-29 | A kind of terminal volume adjustment method and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910253263.6A CN110012386B (en) | 2019-03-29 | 2019-03-29 | A kind of terminal volume adjustment method and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110012386A true CN110012386A (en) | 2019-07-12 |
| CN110012386B CN110012386B (en) | 2021-05-11 |
Family
ID=67169003
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910253263.6A Active CN110012386B (en) | 2019-03-29 | 2019-03-29 | A kind of terminal volume adjustment method and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110012386B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116456022A (en) * | 2023-04-19 | 2023-07-18 | 东莞恒泰数字技术有限公司 | Equipment control method, device, equipment and storage medium based on Internet of things |
| CN119576271A (en) * | 2024-12-23 | 2025-03-07 | 荣耀终端股份有限公司 | Audio playback loudness control method and electronic device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105827852A (en) * | 2016-04-29 | 2016-08-03 | 维沃移动通信有限公司 | Method and terminal for adjusting volume |
| CN107766030A (en) * | 2017-11-13 | 2018-03-06 | 百度在线网络技术(北京)有限公司 | Volume adjusting method, device, equipment and computer-readable medium |
| CN108521521A (en) * | 2018-04-19 | 2018-09-11 | Oppo广东移动通信有限公司 | Volume adjustment method, mobile terminal and computer-readable storage medium |
| CN108536420A (en) * | 2018-04-16 | 2018-09-14 | Oppo广东移动通信有限公司 | Volume adjusting method, electronic device and computer readable storage medium |
| CN108733342A (en) * | 2018-05-22 | 2018-11-02 | Oppo(重庆)智能科技有限公司 | volume adjusting method, mobile terminal and computer readable storage medium |
| CN109147816A (en) * | 2018-06-05 | 2019-01-04 | 安克创新科技股份有限公司 | The method and apparatus of volume adjustment is carried out to music |
-
2019
- 2019-03-29 CN CN201910253263.6A patent/CN110012386B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105827852A (en) * | 2016-04-29 | 2016-08-03 | 维沃移动通信有限公司 | Method and terminal for adjusting volume |
| CN107766030A (en) * | 2017-11-13 | 2018-03-06 | 百度在线网络技术(北京)有限公司 | Volume adjusting method, device, equipment and computer-readable medium |
| CN108536420A (en) * | 2018-04-16 | 2018-09-14 | Oppo广东移动通信有限公司 | Volume adjusting method, electronic device and computer readable storage medium |
| CN108521521A (en) * | 2018-04-19 | 2018-09-11 | Oppo广东移动通信有限公司 | Volume adjustment method, mobile terminal and computer-readable storage medium |
| CN108733342A (en) * | 2018-05-22 | 2018-11-02 | Oppo(重庆)智能科技有限公司 | volume adjusting method, mobile terminal and computer readable storage medium |
| CN109147816A (en) * | 2018-06-05 | 2019-01-04 | 安克创新科技股份有限公司 | The method and apparatus of volume adjustment is carried out to music |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116456022A (en) * | 2023-04-19 | 2023-07-18 | 东莞恒泰数字技术有限公司 | Equipment control method, device, equipment and storage medium based on Internet of things |
| CN116456022B (en) * | 2023-04-19 | 2024-02-23 | 东莞恒泰数字技术有限公司 | Equipment control method, device, equipment and storage medium based on Internet of things |
| CN119576271A (en) * | 2024-12-23 | 2025-03-07 | 荣耀终端股份有限公司 | Audio playback loudness control method and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110012386B (en) | 2021-05-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108449489B (en) | Flexible screen control method, mobile terminal and server | |
| CN108848267B (en) | Audio playback method and mobile terminal | |
| CN109918039B (en) | A kind of volume adjustment method and mobile terminal | |
| CN109905812B (en) | Input power control method and device and terminal equipment | |
| CN108196815B (en) | Method for adjusting call sound and mobile terminal | |
| CN108551631A (en) | A kind of sound quality compensation method and mobile terminal | |
| CN109086027B (en) | Audio signal playing method and terminal | |
| US12238491B2 (en) | Control method for a blocked receiver and device, and electronic device | |
| CN109788402B (en) | Audio signal processing method and audio signal processing device | |
| CN110753201A (en) | A video recording method, device, electronic device and storage medium | |
| CN107562406A (en) | A kind of volume adjusting method, mobile terminal and computer-readable recording medium | |
| CN107948874A (en) | A kind of terminal control method, mobile terminal | |
| CN109474784B (en) | A preview image processing method and terminal device | |
| WO2021098698A1 (en) | Audio playback method and terminal device | |
| CN111510623A (en) | Shooting method and electronic equipment | |
| CN107786751A (en) | A kind of method for broadcasting multimedia file and mobile terminal | |
| CN108196753B (en) | Interface switching method and mobile terminal | |
| CN109873894B (en) | A kind of volume adjustment method and mobile terminal | |
| CN111614329A (en) | A power amplifier, electronic equipment, voltage control method and device | |
| CN110620837A (en) | Receiver control method and electronic equipment | |
| CN108008808B (en) | Operation parameter adjusting method and mobile terminal | |
| CN111078186A (en) | Playing method and electronic equipment | |
| CN109992228A (en) | A kind of interface display parameter method of adjustment and terminal device | |
| CN110058837B (en) | Audio output method and terminal | |
| CN111459447A (en) | A volume adjustment display method and electronic device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |