CN105827210A - Voltage adjustment method and terminal - Google Patents
Voltage adjustment method and terminal Download PDFInfo
- Publication number
- CN105827210A CN105827210A CN201510546978.2A CN201510546978A CN105827210A CN 105827210 A CN105827210 A CN 105827210A CN 201510546978 A CN201510546978 A CN 201510546978A CN 105827210 A CN105827210 A CN 105827210A
- Authority
- CN
- China
- Prior art keywords
- volume
- terminal
- sound
- voltage
- change trend
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
本发明提供一种电压调节方法及终端。所述方法包括:检测终端播放声音时的音量变化趋势;根据检测到的音量变化趋势调整所述终端电源模块输出的电压,使得电压变化趋势与音量变化趋势一致。所述终端包括:音量变化趋势检测模块:用于检测终端播放声音时的音量变化趋势;电压调节模块:用于根据检测到的音量变化趋势调整所述终端电源模块输出的电压,使得电压变化趋势与音量变化趋势一致。
The invention provides a voltage regulation method and a terminal. The method includes: detecting the volume change trend when the terminal plays sound; adjusting the voltage output by the terminal power module according to the detected volume change trend, so that the voltage change trend is consistent with the volume change trend. The terminal includes: a volume change trend detection module: used to detect the volume change trend when the terminal plays sound; a voltage adjustment module: used to adjust the voltage output by the terminal power supply module according to the detected volume change trend, so that the voltage change trend Consistent with the volume change trend.
Description
技术领域technical field
本发明涉及计算机领域,尤其涉及一种电压调节方法及终端。The invention relates to the field of computers, in particular to a voltage regulation method and a terminal.
背景技术Background technique
现有技术中,包括手机之类的终端基本都具备声音文件的播放功能,例如单纯音频文件播放、声音画面文件播放等。声音播放电路一般都包括运算放大器辅助信号的处理。终端目前在播放声音文件的过程中始终供应恒定的电压,比如±5V或±3V等。在终端播放声音的音量较小和音量较大时均向终端声音播放模块提供恒定的电压,在较小音量播放声音时,运算放大器的效率会降低,同时静态功耗和较大音量播放时一样大,这样导致声音播放电路效率低、播放过程中也会产生不必要的功耗。In the prior art, terminals including mobile phones basically have the function of playing sound files, such as playing pure audio files, playing sound and picture files, and so on. Sound playback circuits generally include operational amplifier auxiliary signal processing. Currently, the terminal always supplies a constant voltage during the playback of sound files, such as ±5V or ±3V. A constant voltage is provided to the terminal sound playback module when the volume of the sound played by the terminal is low or high. When the sound is played at a low volume, the efficiency of the operational amplifier will be reduced, and the static power consumption is the same as when the sound is played at a high volume. Large, which leads to low efficiency of the sound playback circuit and unnecessary power consumption during playback.
发明内容Contents of the invention
有鉴于此,本发明提供一种电压调节方法及终端,旨在解决小音量播放时消耗不必要的电能的问题。In view of this, the present invention provides a voltage regulation method and a terminal, aiming at solving the problem of unnecessary power consumption during low-volume playback.
基于上述目的本发明提供的电压调节方法,应用于终端,包括如下步骤:Based on the above purpose, the voltage regulation method provided by the present invention is applied to the terminal, including the following steps:
检测终端播放声音时的音量变化趋势;Detect the volume change trend when the terminal plays sound;
根据检测到的音量变化趋势调整所述终端电源模块输出的电压,使得电压变化趋势与音量变化趋势一致。The voltage output by the terminal power module is adjusted according to the detected volume change trend, so that the voltage change trend is consistent with the volume change trend.
同时,本发明还提供一种终端,包括:At the same time, the present invention also provides a terminal, including:
音量变化趋势检测模块:用于检测终端播放声音时的音量变化趋势;Volume change trend detection module: used to detect the volume change trend when the terminal plays sound;
电压调节模块:用于根据检测到的音量变化趋势调整所述终端电源模块输出的电压,使得电压变化趋势与音量变化趋势一致。A voltage regulation module: used to adjust the voltage output by the terminal power supply module according to the detected volume change trend, so that the voltage change trend is consistent with the volume change trend.
从上面所述可以看出,本发明所提供的一种电压调节方法及终端,能够根据终端播放声音时的音量调节终端电源模块所输出的电压,使得终端的电压在声音播放的过程中随着音量而变化,且电压供应的变化与音量的变化一致。在音量降低时,降低终端电源模块输出的电压,从而使得终端的声音播放电路中的运算放大器输入电压随之输出电压的降低而降低,在音量较小时,降低供给声音播放电路的运算放大器的输入电压,提高运算放大器的效率,减少音量较小时运算放大器所消耗的不必要的内耗,降低声音播放电路中运算放大器的静态功耗。It can be seen from the above that the voltage adjustment method and terminal provided by the present invention can adjust the voltage output by the terminal power supply module according to the volume when the terminal plays sound, so that the voltage of the terminal increases with the The volume changes, and the voltage supply changes in line with the volume change. When the volume is reduced, reduce the output voltage of the terminal power supply module, so that the input voltage of the operational amplifier in the audio playback circuit of the terminal decreases with the reduction of the output voltage, and when the volume is low, reduce the input of the operational amplifier supplied to the audio playback circuit Voltage, improve the efficiency of the operational amplifier, reduce unnecessary internal friction consumed by the operational amplifier when the volume is low, and reduce the static power consumption of the operational amplifier in the sound playback circuit.
附图说明Description of drawings
图1为本发明实施例的方法流程示意图;Fig. 1 is the schematic flow chart of the method of the embodiment of the present invention;
图2为本发明实施例的终端结构示意图。FIG. 2 is a schematic diagram of a terminal structure according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.
本发明首先提供一种电压调节方法,应用于终端,包括如图1所示的步骤:The present invention firstly provides a voltage regulation method, which is applied to the terminal, including the steps shown in Figure 1:
步骤101:检测终端播放声音时的音量变化趋势;Step 101: Detect the volume change trend when the terminal plays the sound;
步骤102:根据检测到的音量变化趋势调整所述终端电源模块输出的电压,使得电压变化趋势与音量变化趋势一致。Step 102: Adjust the voltage output by the terminal power module according to the detected volume change trend, so that the voltage change trend is consistent with the volume change trend.
从上面所述可以看出,本发明提供的电压调节方法,能够在终端播放声音是检测音量变化趋势,并根据音量变化趋势调整终端电源模块输出的电压,,使得电压变化与音量变化一致,即在音量升高时降低电压,或在音量降低时升高电压,从而在终端采用较小的音量播放声音时,声音播放电路的运算放大器的输入电压和输出电压压差较小,从而运算放大器的效率得到提高,声音播放电路的效率也得到了提高。It can be seen from the above that the voltage adjustment method provided by the present invention can detect the volume change trend when the terminal plays sound, and adjust the voltage output by the terminal power module according to the volume change trend, so that the voltage change is consistent with the volume change, that is When the volume is increased, the voltage is lowered, or when the volume is lowered, the voltage is increased, so that when the terminal uses a lower volume to play the sound, the difference between the input voltage and the output voltage of the operational amplifier of the sound playback circuit is small, so that the operational amplifier Efficiency is improved, as is the efficiency of sound playback circuits.
现有技术中,在声音播放的各个阶段都采用同样大小的电压供应,但终端播放声音的音量变小时,声音播放电路中的运算放大器输出电压变小,而这时若将较大的恒压供应给声音播放电路,那么运算放大器的输入电压和输出电压的差值变大,使得运算放大器的内耗增大,运算放大器的效率降低。本发明在音量变小后降低供给运算放大器的输入电压,使得运算放大器的内耗在音量较小时较小,运算放大器的效率增高,同时,由于在音量较小时供应的电压也较小,相对于现有技术中的恒压供应的方案,本发明能够减少声音播放电路所消耗的电能。In the prior art, the voltage supply of the same size is used in each stage of sound playback, but the volume of the sound played by the terminal becomes smaller, and the output voltage of the operational amplifier in the sound playback circuit becomes smaller. At this time, if a larger constant voltage If it is supplied to the sound playback circuit, the difference between the input voltage and the output voltage of the operational amplifier becomes larger, which increases the internal friction of the operational amplifier and reduces the efficiency of the operational amplifier. The present invention reduces the input voltage supplied to the operational amplifier after the volume is reduced, so that the internal friction of the operational amplifier is smaller when the volume is low, and the efficiency of the operational amplifier is increased. With the solution of constant voltage supply in the art, the present invention can reduce the power consumption of the sound playing circuit.
所述音量变化趋势,包括音量变大的情况以及音量变小的情况。在本发明具体实施例中,执行步骤101时,可通过检测声音信号或者检测音量控制指令等方式来检测终端播放声音时的音量变化趋势。而检测声音信号或检测音量控制指令是检测音量变化趋势较为直接的两种方式,在一些实施例中,还可以单独设置音量检测模块,接收即将播放的声音信号并对音强进行检测,从而获得音量变化趋势。The change trend of the volume includes the situation that the volume becomes larger and the situation that the volume becomes smaller. In a specific embodiment of the present invention, when step 101 is executed, the volume change trend when the terminal plays a sound can be detected by detecting a sound signal or detecting a volume control instruction. However, detecting sound signals or detecting volume control commands are two relatively direct ways to detect volume change trends. In some embodiments, a volume detection module can also be provided separately to receive the sound signal to be played and detect the sound intensity, thereby obtaining Volume change trend.
所述电源模块,为用于向终端的声音播放电路供电的模块,或用于向终端的声音播放电路中的运算放大器供电的模块。The power supply module is a module used to supply power to the sound playing circuit of the terminal, or a module used to supply power to an operational amplifier in the sound playing circuit of the terminal.
在执行步骤102时,可预先通过实验或其它方式确定不同音量所需要的最小电压,并建立对应的关系,当检测到音量变化趋势时,可根据预先建立的音量与电压的对应关系进行电压调节。When executing step 102, the minimum voltage required for different volumes can be determined in advance through experiments or other methods, and the corresponding relationship can be established. When the volume change trend is detected, the voltage can be adjusted according to the pre-established corresponding relationship between volume and voltage .
在其它实施例中,执行步骤102时,为了方便调控,可以通过实验或其它方式确定音量变化量与所需的最小电压的变化量之间的关系,当检测到音量趋势时,可根据预先建立的音量变化量与电压变化量的对应关系进行电压调节。In other embodiments, when step 102 is executed, for the convenience of regulation, the relationship between the volume change and the required minimum voltage change can be determined through experiments or other methods. When the volume trend is detected, the The corresponding relationship between volume change and voltage change is used for voltage adjustment.
在本发明一些实施例中,根据检测到的音量变化趋势调整所述终端电源模块输出的电压包括:In some embodiments of the present invention, adjusting the voltage output by the terminal power module according to the detected volume change trend includes:
当确定终端播放声音的音量变小时,降低所述终端电源模块输出的电压;When it is determined that the volume of the sound played by the terminal becomes smaller, reduce the voltage output by the terminal power module;
当确定终端播放声音的音量变大时,调高所述终端电源模块输出的电压。When it is determined that the volume of the sound played by the terminal increases, the voltage output by the terminal power module is increased.
在本发明一种具体实施例中,所述方法包括下述步骤:In a specific embodiment of the present invention, the method includes the following steps:
检测终端播放声音时的音量变化趋势;Detect the volume change trend when the terminal plays sound;
当根据所述音量变化趋势确定终端播放声音的音量变小时,降低所述终端电源模块输出的电压;When it is determined according to the volume change trend that the volume of the sound played by the terminal becomes smaller, reduce the voltage output by the terminal power module;
当根据所述音量变化趋势确定终端播放声音的音量变大时,调高所述终端电源模块输出的电压。When it is determined according to the volume change trend that the volume of the sound played by the terminal becomes louder, the voltage output by the power module of the terminal is increased.
在本发明一些实施例中,所述检测终端播放声音时的音量变化趋势的步骤具体包括:In some embodiments of the present invention, the step of detecting the volume change trend when the terminal plays the sound specifically includes:
接收终端的音量调节指令;Receive volume adjustment instructions from the terminal;
当所述音量调节指令指示播放音量降低时,确定终端播放声音的音量变小;When the volume adjustment instruction indicates that the playback volume is lowered, it is determined that the volume of the terminal playback sound becomes smaller;
当所述音量调节指令指示播放音量升高时,确定终端播放声音的音量变大。When the volume adjustment instruction indicates that the playback volume is increased, it is determined that the volume of the sound played by the terminal is increased.
上述实施例中的音量调节指令,包括用户通过终端的音量调节按钮发送的音量调节指令、用户通过在终端的手势操作所发送的音量调节指令、用户通过在终端的快捷键操作所发送的音量调节指令、用户通过在终端的其它操作所发送的音量调节指令。所述其它操作,例如可以是插拔耳机的操作;由于现有技术中的移动终端常常会在检测到用户插入耳机后进入耳机模式,相应的播放音量也会有所调整,因此,插拔耳机等其它操作也可能引起终端播放音量的变化。The volume adjustment instructions in the above embodiments include volume adjustment instructions sent by the user through the volume adjustment button on the terminal, volume adjustment instructions sent by the user through gesture operations on the terminal, and volume adjustment instructions sent by the user through shortcut key operations on the terminal. Instructions, volume adjustment instructions sent by the user through other operations on the terminal. The other operations, for example, may be the operation of plugging and unplugging earphones; since mobile terminals in the prior art often enter the earphone mode after detecting that the user plugs in the earphones, the corresponding playback volume will also be adjusted. Therefore, plugging and unplugging the earphones Other operations such as other operations may also cause changes in the playback volume of the terminal.
在本发明一种具体实施例中,所述方法具体包括:In a specific embodiment of the present invention, the method specifically includes:
接收终端的音量调节指令;Receive volume adjustment instructions from the terminal;
当所述音量调节指令指示播放音量降低时,确定终端播放声音的音量变小;降低所述终端电源模块输出的电压;When the volume adjustment instruction indicates that the playback volume is reduced, it is determined that the volume of the terminal playback sound becomes smaller; reduce the voltage output by the terminal power module;
当所述音量调节指令指示播放音量升高时,确定终端播放声音的音量变大;调高所述终端电源模块输出的电压。When the volume adjustment instruction indicates that the playback volume is increased, it is determined that the volume of the sound played by the terminal is increased; and the voltage output by the terminal power module is increased.
在本发明一些具体实施例中,考虑到终端在播放时,用户可能会在短时间内通过反复调整音量调节按钮、或者对终端施加音量调节手势以确定最佳播放音量,因此,可在用户最终确定音量后,在执行电压调节,在这样的实施例中,所述方法包括如下步骤:In some specific embodiments of the present invention, considering that when the terminal is playing, the user may repeatedly adjust the volume adjustment button or apply a volume adjustment gesture to the terminal to determine the optimal playback volume in a short period of time. After determining the volume, the voltage regulation is performed. In such an embodiment, the method includes the steps of:
接收终端最近发出的音量调节指令;Receive the volume adjustment command recently issued by the terminal;
开始计时;start the timer;
当在预定时间内未接收到新的音量调节指令时,分析所述音量调节指令;analyzing the volume adjustment instruction when no new volume adjustment instruction is received within a predetermined time;
当分析所述音量调节指令的结果指示播放音量降低时,确定终端播放声音的音量变小;降低所述终端电源模块输出的电压;When the result of analyzing the volume adjustment instruction indicates that the playback volume is reduced, it is determined that the volume of the terminal playback sound becomes smaller; reduce the voltage output by the terminal power module;
当分析所述音量调节指令的结果指示播放音量升高时,确定终端播放声音的音量变大;调高所述终端电源模块输出的电压;When the result of analyzing the volume adjustment command indicates that the playback volume is increased, determine that the volume of the terminal playback sound becomes larger; increase the voltage output by the terminal power module;
当在预定时间内接收到新的音量调节指令时,返回开始计时的步骤。When a new volume adjustment command is received within the predetermined time, return to the step of starting timing.
上述实施例中所述的预定时间,为较短的时间,例如0-10秒。当预定时间为10秒时,若在接收到一个发送时间最近的音量调节指令之后10秒的时间内未接收到新的音量调节指令,则分析该音量调节指令。The predetermined time described in the above embodiments is a relatively short time, such as 0-10 seconds. When the predetermined time is 10 seconds, if no new volume adjustment instruction is received within 10 seconds after receiving a volume adjustment instruction with the latest sending time, the volume adjustment instruction is analyzed.
在本发明一些实施例中,所述检测终端播放声音时的音量变化趋势的步骤具体包括:In some embodiments of the present invention, the step of detecting the volume change trend when the terminal plays the sound specifically includes:
获取终端播放的声音波形信号;Obtain the sound waveform signal played by the terminal;
根据所述声音波形信号获取信号幅度;Acquiring the signal amplitude according to the sound waveform signal;
当所述信号幅度变小时,确定终端播放声音的音量变小;When the signal amplitude becomes smaller, it is determined that the volume of the sound played by the terminal becomes smaller;
当所述信号幅度变大时,确定终端播放声音的音量变大。When the signal amplitude becomes larger, it is determined that the volume of the sound played by the terminal becomes larger.
在具体实施例中,本发明所提供的方法包括如下步骤:In a specific embodiment, the method provided by the present invention includes the following steps:
获取终端播放的声音波形信号;Obtain the sound waveform signal played by the terminal;
根据所述声音波形信号获取信号幅度;Acquiring the signal amplitude according to the sound waveform signal;
当所述信号幅度变小时,确定终端播放声音的音量变小;降低所述终端电源模块输出的电压;When the signal amplitude becomes smaller, determine that the volume of the sound played by the terminal becomes smaller; reduce the voltage output by the terminal power module;
当所述信号幅度变大时,确定终端播放声音的音量变大,调高所述终端电源模块输出的电压。When the signal amplitude becomes larger, it is determined that the volume of the sound played by the terminal becomes larger, and the voltage output by the terminal power module is increased.
在播放一个声音文件时,该文件的音量可能在不同播放进度处有所不同,例如,在一首歌曲文件中,歌唱者的声音有时较高,有时较低。因此在播放时需要对音量进行实时检测。由于声音波形的信号幅度是与声音响度有关的因素,当声音信号幅度变小时,音量变小;当声音信号幅度变大时,音量变大。因此,可通过检测声音波形的信号幅度判断音量的变化趋势。When playing a sound file, the volume of the file may be different at different playback progresses. For example, in a song file, the singer's voice is sometimes higher and sometimes lower. Therefore, the volume needs to be detected in real time during playback. Since the signal amplitude of the sound waveform is a factor related to the loudness of the sound, when the amplitude of the sound signal becomes smaller, the volume becomes smaller; when the amplitude of the sound signal becomes larger, the volume becomes louder. Therefore, the change trend of the volume can be judged by detecting the signal amplitude of the sound waveform.
在本发明一些具体实施例中,可以通过检测声压判断音量变化趋势。In some specific embodiments of the present invention, the volume change trend can be judged by detecting the sound pressure.
在本发明的一些实施例中,所述获取终端播放的声音波形信号的步骤具体包括:In some embodiments of the present invention, the step of acquiring the sound waveform signal played by the terminal specifically includes:
截取终端当前播放的声音波形信号并开始计时;Intercept the sound waveform signal currently played by the terminal and start timing;
当计时时间达到预定时间时,返回截取终端当前播放的声音波形信号并开始计时的步骤。When the timing time reaches the preset time, return to the step of intercepting the sound waveform signal currently played by the terminal and start timing.
具体实施例中,上述预定时间为一个较短的时间,例如0-1秒。这样可以减少声音波形分析的次数。In a specific embodiment, the aforementioned predetermined time is a relatively short time, such as 0-1 second. This can reduce the number of times of sound waveform analysis.
在本发明一种具体实施例中,所述方法包括如下步骤:In a specific embodiment of the present invention, the method includes the following steps:
截取终端当前播放的声音波形信号并开始计时;Intercept the sound waveform signal currently played by the terminal and start timing;
根据所述声音波形信号获取信号幅度;Acquiring the signal amplitude according to the sound waveform signal;
当所述信号幅度变小时,确定终端播放声音的音量变小;When the signal amplitude becomes smaller, it is determined that the volume of the sound played by the terminal becomes smaller;
当所述信号幅度变大时,确定终端播放声音的音量变大;When the signal amplitude becomes larger, determine that the volume of the sound played by the terminal becomes larger;
当计时时间达到预定时间时,返回截取终端当前播放的声音波形信号并开始计时的步骤。When the timing time reaches the preset time, return to the step of intercepting the sound waveform signal currently played by the terminal and start timing.
在本发明一种具体实施例中,所述电压调节方法包括如下步骤:In a specific embodiment of the present invention, the voltage regulation method includes the following steps:
步骤1011:接收终端的音量调节指令;当所述音量调节指令指示播放音量降低时,确定终端播放声音的音量变小,降低所述终端电源模块输出的电压;当所述音量调节指令指示播放音量升高时,确定终端播放声音的音量变大,调高所述终端电源模块输出的电压;Step 1011: Receive the volume adjustment instruction of the terminal; when the volume adjustment instruction indicates that the playback volume is lowered, determine that the volume of the terminal playback sound becomes smaller, and reduce the output voltage of the terminal power module; when the volume adjustment instruction indicates that the playback volume When it rises, it is determined that the volume of the sound played by the terminal becomes larger, and the voltage output by the terminal power module is increased;
步骤1012:获取终端播放的声音波形信号;根据所述声音波形信号获取信号幅度;当所述信号幅度变小时,确定终端播放声音的音量变小,降低所述终端电源模块输出的电压;当所述信号幅度变大时,确定终端播放声音的音量变大,调高所述终端电源模块输出的电压。Step 1012: Obtain the sound waveform signal played by the terminal; obtain the signal amplitude according to the sound waveform signal; when the signal amplitude becomes smaller, determine that the volume of the sound played by the terminal becomes smaller, and reduce the output voltage of the terminal power module; When the amplitude of the signal becomes larger, it is determined that the volume of the sound played by the terminal becomes larger, and the voltage output by the power module of the terminal is increased.
在具体实施例中,步骤1011和步骤1012可按照任意先后顺序执行,步骤1011也可穿插在步骤1012中,步骤1012也可穿插在步骤1011中。例如,获取终端播放的声音波形信号之后,接收终端的音量调节指令;根据所述声音波形信号获取信号幅度;当所述音量调节指令指示将音量调低,且所述信号幅度变小时,确定终端播放的声音变小,降低所述终端电源模块输出的电压;当所述音量调节指令指示将音量升高,且所述信号幅度变大时,确定终端播放的声音变大,调高所述终端电源模块输出的电压。In a specific embodiment, step 1011 and step 1012 may be performed in any order, step 1011 may also be interspersed in step 1012, and step 1012 may also be interspersed in step 1011. For example, after acquiring the sound waveform signal played by the terminal, the terminal’s volume adjustment instruction is received; the signal amplitude is obtained according to the sound waveform signal; when the volume adjustment instruction indicates to lower the volume and the signal amplitude becomes smaller, determine the terminal The sound played becomes smaller, and the voltage output by the terminal power module is reduced; when the volume adjustment instruction indicates that the volume is increased and the signal amplitude becomes larger, it is determined that the sound played by the terminal becomes louder, and the terminal is turned up The output voltage of the power module.
在具体实施例中,若接收到的音量调节指令指示将音量升高,但终端此时播放的声音波形的信号幅度变小,则计算音量调节指令指示的音量升高量以及信号幅度减小量,并根据音量升高量计算需要的电压提升量以及根据信号幅度减小量计算可以执行的电压降低量;然后根据电压提升量和电压降低量之差判断提升终端电源模块输出的电压或降低终端电源模块输出的电压,以及计算终端电源模块输出的电压变化量。In a specific embodiment, if the received volume adjustment command indicates to increase the volume, but the signal amplitude of the sound waveform played by the terminal at this time becomes smaller, then calculate the volume increase and signal amplitude decrease indicated by the volume adjustment command , and calculate the required voltage increase according to the volume increase and the executable voltage decrease according to the signal amplitude decrease; then judge whether to increase the output voltage of the terminal power module or reduce the terminal according to the difference between the voltage increase and the voltage decrease The voltage output by the power module, and the calculation of the voltage variation output by the terminal power module.
在具体实施例中,若接收到的音量调节指令指示将音量升高,但终端此时播放的声音波形的信号幅度变小,则计算音量调节指令指示的音量升高量以及信号幅度减小量所代表的音量减小量;根据音量升高量和音量减小量计算音量变化量;然后根据音量变化量判断提升终端电源模块输出的电压或降低终端电源模块输出的电压,并根据音量变化量计算终端电源模块输出的电压变化量。In a specific embodiment, if the received volume adjustment command indicates to increase the volume, but the signal amplitude of the sound waveform played by the terminal at this time becomes smaller, then calculate the volume increase and signal amplitude decrease indicated by the volume adjustment command Represented volume reduction; calculate the volume change according to the volume increase and volume decrease; then judge whether to increase the output voltage of the terminal power module or reduce the output voltage of the terminal power module according to the volume change, and according to the volume change Calculate the voltage variation output by the terminal power module.
在具体实施例中,若接收到的音量调节指令指示将音量升高,但终端此时播放的声音波形的信号幅度变小,则计算终端当前播放声音的音量,并根据终端当前播放声音的音量判断终端当前需要的电压值;然后将终端的电源模块输出的电压值调整至计算获得的终端当前需要的电压值。In a specific embodiment, if the received volume adjustment instruction indicates to increase the volume, but the signal amplitude of the sound waveform played by the terminal at this time becomes smaller, then the volume of the sound currently played by the terminal is calculated, and according to the volume of the sound currently played by the terminal Judging the voltage value currently required by the terminal; then adjusting the voltage value output by the power supply module of the terminal to the calculated voltage value currently required by the terminal.
在具体实施例中,若接收到的音量调节指令指示将音量降低,但终端此时播放的声音波形的信号幅度变大,则计算音量调节指令指示的音量升高量以及信号幅度减小量,并根据音量升高量计算需要的电压提升量以及根据信号幅度减小量计算可以执行的电压降低量;然后根据电压提升量和电压降低量之差判断提升终端电源模块输出的电压或降低终端电源模块输出的电压,以及计算终端电源模块输出的电压变化量。In a specific embodiment, if the received volume adjustment instruction indicates to lower the volume, but the signal amplitude of the sound waveform played by the terminal at this time becomes larger, then calculate the volume increase and signal amplitude decrease indicated by the volume adjustment instruction, And calculate the required voltage increase according to the volume increase and calculate the executable voltage decrease according to the signal amplitude decrease; then judge whether to increase the output voltage of the terminal power module or reduce the terminal power supply according to the difference between the voltage increase and the voltage decrease The voltage output by the module, and the calculation of the voltage variation output by the terminal power supply module.
在具体实施例中,若接收到的音量调节指令指示将音量降低,但终端此时播放的声音波形的信号幅度变大,则计算音量调节指令指示的音量升高量以及信号幅度减小量所代表的音量减小量;根据音量升高量和音量减小量计算音量变化量;然后根据音量变化量判断提升终端电源模块输出的电压或降低终端电源模块输出的电压,并根据音量变化量计算终端电源模块输出的电压变化量。In a specific embodiment, if the received volume adjustment command indicates to lower the volume, but the signal amplitude of the sound waveform played by the terminal at this time becomes larger, then calculate the volume increase indicated by the volume adjustment command and the signal amplitude decrease. Represents the amount of volume reduction; calculate the volume change according to the volume increase and volume decrease; then judge whether to increase the output voltage of the terminal power module or reduce the output voltage of the terminal power module according to the volume change, and calculate according to the volume change The output voltage variation of the terminal power module.
在具体实施例中,若接收到的音量调节指令指示将音量降低,但终端此时播放的声音波形的信号幅度变大,则计算终端当前播放声音的音量,并根据终端当前播放声音的音量判断终端当前需要的电压值;然后将终端的电源模块输出的电压值调整至计算获得的终端当前需要的电压值。In a specific embodiment, if the received volume adjustment command indicates to lower the volume, but the signal amplitude of the sound waveform played by the terminal at this time becomes larger, then calculate the volume of the sound currently played by the terminal, and judge according to the volume of the sound currently played by the terminal. The voltage value currently required by the terminal; then adjust the voltage value output by the power module of the terminal to the calculated voltage value currently required by the terminal.
综上,在本发明又一种实施例中,所述方法包括如下步骤:To sum up, in yet another embodiment of the present invention, the method includes the following steps:
接收终端的音量调节指令,并获取终端播放的声音波形信号;Receive the volume adjustment command of the terminal, and obtain the sound waveform signal played by the terminal;
计算所述音量调节指令所指示的音量变化量以及所述声音波形信号的信号幅度变化量;calculating the volume change indicated by the volume adjustment command and the signal amplitude change of the sound waveform signal;
根据所述音量变化量以及所述信号幅度变化量计算音量变化总量;calculating a total volume change amount according to the volume change amount and the signal amplitude change amount;
根据所述音量变化总量计算终端的电源模块的电压调整量;calculating the voltage adjustment amount of the power module of the terminal according to the total amount of volume change;
根据所述电压调整量调整所述终端电源模块输出的电压。The voltage output by the terminal power module is adjusted according to the voltage adjustment amount.
在本发明的又一种实施例中,所述方法包括如下步骤:In yet another embodiment of the present invention, the method includes the steps of:
接收终端的音量调节指令,并获取终端播放的声音波形信号;Receive the volume adjustment command of the terminal, and obtain the sound waveform signal played by the terminal;
当所述音量调节指令所指示的音量变化趋势与所述波形信号所指示的音量变化趋势不一致时,获取当前音量;Acquiring the current volume when the volume change trend indicated by the volume adjustment instruction is inconsistent with the volume change trend indicated by the waveform signal;
根据所述当前音量计算终端电源模块所需要输出的电压值;calculating the voltage value required to be output by the terminal power module according to the current volume;
将终端电源模块输出的电压调整至所述电源模块所需要输出的电压值。The voltage output by the terminal power module is adjusted to the required output voltage value of the power module.
在本发明的又一种实施例中,所述方法包括如下步骤:In yet another embodiment of the present invention, the method includes the steps of:
接收终端的音量调节指令,并获取终端播放的声音波形信号;Receive the volume adjustment command of the terminal, and obtain the sound waveform signal played by the terminal;
计算所述音量调节指令所指示的音量变化量以及所述声音波形信号的信号幅度变化量;calculating the volume change indicated by the volume adjustment command and the signal amplitude change of the sound waveform signal;
根据所述音量变化量以及所述信号幅度变化量分别计算电压调节量;Calculating a voltage adjustment amount respectively according to the volume change amount and the signal amplitude change amount;
根据所述音量变化量所对应计算出的电压调节量和所述信号幅度变化量计算出的电压调节量计算电压调节总量;calculating a total voltage adjustment amount according to the voltage adjustment amount calculated corresponding to the volume change amount and the voltage adjustment amount calculated by the signal amplitude change amount;
根据所述电压调节总量调整所述终端电源模块输出的电压。The voltage output by the terminal power supply module is adjusted according to the total voltage adjustment amount.
同时,本发明提供一种终端,结构如图2所示,包括:At the same time, the present invention provides a terminal, the structure of which is shown in Figure 2, including:
音量变化趋势检测模块:用于检测终端播放声音时的音量变化趋势;Volume change trend detection module: used to detect the volume change trend when the terminal plays sound;
电压调节模块:用于根据检测到的音量变化趋势调整所述终端电源模块输出的电压,使得电压变化趋势与音量变化趋势一致。A voltage regulation module: used to adjust the voltage output by the terminal power supply module according to the detected volume change trend, so that the voltage change trend is consistent with the volume change trend.
在本发明一些实施例中,所述电压调节模块具体包括:In some embodiments of the present invention, the voltage regulation module specifically includes:
电压降低单元:用于当确定终端播放声音的音量变小时,降低所述终端电源模块输出的电压;A voltage reduction unit: used to reduce the voltage output by the terminal power module when it is determined that the volume of the sound played by the terminal becomes smaller;
电压升高单元:用于当确定终端播放声音的音量变小时,降低所述终端电源模块输出的电压。A voltage increasing unit: used to reduce the output voltage of the terminal power module when it is determined that the volume of the sound played by the terminal becomes smaller.
在本发明一些实施例中,所述音量变化趋势检测模块具体包括:In some embodiments of the present invention, the volume change trend detection module specifically includes:
音量调节指令接收单元:用于接收终端的音量调节指令;Volume adjustment instruction receiving unit: used to receive the volume adjustment instruction of the terminal;
第一音量降低分析单元:用于当所述音量调节指令指示播放音量降低时,确定终端播放声音的音量变小;The first volume reduction analysis unit: used to determine that the volume of the sound played by the terminal becomes smaller when the volume adjustment instruction indicates that the playback volume is reduced;
第一音量升高分析单元:用于当所述音量调节指令指示播放音量升高时,确定终端播放声音的音量变大。The first volume increase analysis unit: configured to determine that the volume of the sound played by the terminal is increased when the volume adjustment instruction indicates that the playback volume is increased.
在本发明一些实施例中,所述音量变化趋势检测模块具体包括:In some embodiments of the present invention, the volume change trend detection module specifically includes:
波形信号获取单元:用于获取终端播放的声音波形信号;Waveform signal acquisition unit: used to acquire the sound waveform signal played by the terminal;
信号幅度获取单元:用于根据所述声音波形信号获取信号幅度;A signal amplitude acquisition unit: used to acquire the signal amplitude according to the sound waveform signal;
第二音量降低分析单元:用于当所述信号幅度变小时,确定终端播放声音的音量变小;The second volume reduction analysis unit: used to determine that the volume of the sound played by the terminal becomes smaller when the signal amplitude becomes smaller;
第二量升高分析单元:用于当所述信号幅度变大时,确定终端播放声音的音量变大。The second volume increase analysis unit: configured to determine that the volume of the sound played by the terminal becomes larger when the signal amplitude becomes larger.
在本发明一些实施例中,所述波形信号获取单元具体包括:In some embodiments of the present invention, the waveform signal acquisition unit specifically includes:
声音波形信号截取子单元:用于截取终端当前播放的声音波形信号,并处罚即时子单元Sound waveform signal interception subunit: used to intercept the sound waveform signal currently played by the terminal, and punish the immediate subunit
计时子单元:用于计时;还用于当计时时间达到预定时间时,触发所述声音波形信号截取子单元。Timing subunit: used for timing; also used for triggering the sound waveform signal intercepting subunit when the timing time reaches a predetermined time.
从上面所述可以看出,本发明所提供的一种电压调节方法及终端,能够根据终端播放声音时的音量调节终端电源模块所输出的电压,使得终端的电压在声音播放的过程中随着音量而变化,且电压供应的变化与音量的变化一致。在音量降低时,降低终端电源模块输出的电压,从而使得终端的声音播放电路中的运算放大器输入电压随之输出电压的降低而降低,在音量较小时,降低供给声音播放电路的运算放大器的输入电压,提高运算放大器的效率,减少音量较小时运算放大器所消耗的不必要的内耗,降低声音播放电路中运算放大器的静态功耗。It can be seen from the above that the voltage adjustment method and terminal provided by the present invention can adjust the voltage output by the terminal power supply module according to the volume when the terminal plays sound, so that the voltage of the terminal increases with the The volume changes, and the voltage supply changes in line with the volume change. When the volume is reduced, reduce the output voltage of the terminal power supply module, so that the input voltage of the operational amplifier in the audio playback circuit of the terminal decreases with the reduction of the output voltage, and when the volume is low, reduce the input of the operational amplifier supplied to the audio playback circuit Voltage, improve the efficiency of the operational amplifier, reduce unnecessary internal friction consumed by the operational amplifier when the volume is low, and reduce the static power consumption of the operational amplifier in the sound playback circuit.
应当理解,本说明书所描述的多个实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It should be understood that the multiple embodiments described in this specification are only used to illustrate and explain the present invention, and are not used to limit the present invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510546978.2A CN105827210A (en) | 2015-08-31 | 2015-08-31 | Voltage adjustment method and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510546978.2A CN105827210A (en) | 2015-08-31 | 2015-08-31 | Voltage adjustment method and terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105827210A true CN105827210A (en) | 2016-08-03 |
Family
ID=56514919
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510546978.2A Pending CN105827210A (en) | 2015-08-31 | 2015-08-31 | Voltage adjustment method and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105827210A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106878863A (en) * | 2017-03-03 | 2017-06-20 | 广东欧珀移动通信有限公司 | Power supply, power amplifier system and voltage adjustment method for power amplifier system |
| CN109788402A (en) * | 2019-01-31 | 2019-05-21 | 维沃移动通信有限公司 | A kind of acoustic signal processing method and audio signal processor |
| CN110879316A (en) * | 2018-09-05 | 2020-03-13 | Oppo(重庆)智能科技有限公司 | Terminal charging current detection method, system and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050127991A1 (en) * | 2003-12-16 | 2005-06-16 | Jun Honda | Volume control in class D amplifier using variable supply voltage |
| US20060247920A1 (en) * | 2005-04-28 | 2006-11-02 | Casio Computer Co., Ltd. | Speech output control device and recording medium recorded with speech output control programs |
| CN201608692U (en) * | 2010-02-08 | 2010-10-13 | 新昌有限公司 | Energy-saving power amplifying device |
| CN101990038A (en) * | 2010-12-02 | 2011-03-23 | 惠州Tcl移动通信有限公司 | Method for improving efficiency of audio power amplifier and mobile phone using the same |
| CN103716737A (en) * | 2013-12-31 | 2014-04-09 | 杭州士兰微电子股份有限公司 | Volume adjusting circuit and method |
-
2015
- 2015-08-31 CN CN201510546978.2A patent/CN105827210A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050127991A1 (en) * | 2003-12-16 | 2005-06-16 | Jun Honda | Volume control in class D amplifier using variable supply voltage |
| US20060247920A1 (en) * | 2005-04-28 | 2006-11-02 | Casio Computer Co., Ltd. | Speech output control device and recording medium recorded with speech output control programs |
| CN201608692U (en) * | 2010-02-08 | 2010-10-13 | 新昌有限公司 | Energy-saving power amplifying device |
| CN101990038A (en) * | 2010-12-02 | 2011-03-23 | 惠州Tcl移动通信有限公司 | Method for improving efficiency of audio power amplifier and mobile phone using the same |
| CN103716737A (en) * | 2013-12-31 | 2014-04-09 | 杭州士兰微电子股份有限公司 | Volume adjusting circuit and method |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106878863A (en) * | 2017-03-03 | 2017-06-20 | 广东欧珀移动通信有限公司 | Power supply, power amplifier system and voltage adjustment method for power amplifier system |
| CN110879316A (en) * | 2018-09-05 | 2020-03-13 | Oppo(重庆)智能科技有限公司 | Terminal charging current detection method, system and storage medium |
| CN110879316B (en) * | 2018-09-05 | 2022-03-22 | Oppo(重庆)智能科技有限公司 | Terminal charging current detection method, system and storage medium |
| CN109788402A (en) * | 2019-01-31 | 2019-05-21 | 维沃移动通信有限公司 | A kind of acoustic signal processing method and audio signal processor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103576834B (en) | Electricity-saving control method and the electronic equipment for supporting electricity-saving control method | |
| CN105068692B (en) | A kind of volume adjusting method and user terminal | |
| US20190362714A1 (en) | Electronic device and control method | |
| EP3382707B1 (en) | Audio file re-recording method, device and storage medium | |
| WO2017032123A1 (en) | Video playback control method and device | |
| CN105045489A (en) | Button control method and apparatus | |
| CN110599989B (en) | Audio processing method, device and storage medium | |
| US20140210503A1 (en) | Startup boot cycle testing of a mobile device at diminished power supply current | |
| CN106354471A (en) | Method and device for audio play control and electronic device | |
| CN110675848B (en) | Audio processing method, device and storage medium | |
| US20160056781A1 (en) | Volume control | |
| CN110491419B (en) | A playback control method, system and terminal device | |
| CN107526569B (en) | Volume adjusting method and device, storage medium and mobile terminal | |
| CN105827210A (en) | Voltage adjustment method and terminal | |
| CN106231498A (en) | Method and device for adjusting microphone audio acquisition effect | |
| WO2016187946A1 (en) | Volume control method, electronic device and computer storage medium | |
| WO2017101362A1 (en) | Method and system for managing and controlling power consumption of intelligent terminal | |
| CN105183314B (en) | A kind of bright screen duration adjusting method and mobile terminal | |
| CN103716682A (en) | Volume control method and device | |
| CN105808142A (en) | Method and apparatus for adjusting player of terminal device | |
| CN105242866B (en) | A kind of volume adjusting method and user terminal | |
| US10031189B1 (en) | Power source capability detection | |
| TW201423587A (en) | System and method for providing prompts for callee | |
| WO2018112822A1 (en) | Parameter adjustment method and system for mobile device, and mobile device | |
| CN105242859A (en) | Voice information processing method and terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160803 |