CN110012386B - A kind of terminal volume adjustment method and terminal - Google Patents

A kind of terminal volume adjustment method and terminal Download PDF

Info

Publication number
CN110012386B
CN110012386B CN201910253263.6A CN201910253263A CN110012386B CN 110012386 B CN110012386 B CN 110012386B CN 201910253263 A CN201910253263 A CN 201910253263A CN 110012386 B CN110012386 B CN 110012386B
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.)
Active
Application number
CN201910253263.6A
Other languages
Chinese (zh)
Other versions
CN110012386A (en
Inventor
刘亚美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910253263.6A priority Critical patent/CN110012386B/en
Publication of CN110012386A publication Critical patent/CN110012386A/en
Application granted granted Critical
Publication of CN110012386B publication Critical patent/CN110012386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

本发明提供了一种终端的音量调节方法及终端,该方法包括:在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线;所述音量特征曲线上包括对应于不同音量值的至少两个离散点;根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量。因此,本发明的方案解决了现有技术中将音量调节到适合用户实际需求程度的过程较为繁琐的问题。

Figure 201910253263

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.

Figure 201910253263

Description

Volume adjusting method of terminal and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a volume adjustment method for a terminal and a terminal.
Background
The current smart phone only has one fixed volume adjustment bar. The volume adjustment range of the volume up and down keys is fixed, the initial volume is the last volume set last time and is not necessarily suitable for the user requirement, so that the volume is adjusted frequently when the user volume is adjusted, the volume is adjusted once by adding or subtracting the volume, the ear of the user is not comfortable due to the fact that the adjustment range of the volume is too large, multiple times of adjustment is needed when the adjustment range is too small, and the operation process is complex.
Therefore, in the prior art, the process of adjusting the volume to the degree suitable for the actual requirement of the user is complicated.
Disclosure of Invention
The embodiment of the invention provides a volume adjusting method of a terminal and the terminal, and solves the problem that in the prior art, the process of adjusting the volume to the degree suitable for the actual requirement of a user is complicated.
In a first aspect, an embodiment of the present invention provides a method for adjusting a volume of a terminal, where the method includes:
under the condition that the playing operation of the target audio data is detected, acquiring the current value of the volume adjustment influence factor;
adjusting a volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influence factor to obtain an updated volume characteristic curve; at least two discrete points corresponding to different volume values are included on the volume characteristic curve;
and setting the initial volume for playing the target audio data according to the updated volume characteristic curve.
In a second aspect, an embodiment of the present invention provides a terminal, including:
the influence factor acquisition module is used for acquiring the current value of the influence factor of volume adjustment under the condition of detecting the playing operation of the target audio data;
the adjusting module is used for adjusting a volume characteristic curve obtained by pre-training according to the current value of the volume adjusting influence factor to obtain an updated volume characteristic curve; at least two discrete points corresponding to different volume values are included on the volume characteristic curve;
and the initial volume determining module is used for setting 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 executable on the processor; the method for adjusting the volume of the terminal is characterized in that the processor realizes the method for adjusting the volume of the terminal when executing the program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the steps in the volume adjustment of the terminal described above.
The embodiment of the invention has the beneficial effects that:
according to the embodiment of the invention, when the terminal needs to play the audio data, the volume characteristic curve obtained by pre-training can be adjusted according to the current value of the volume adjustment influence factor, so that the initial volume of the audio data can be determined according to the updated volume characteristic curve. Therefore, the embodiment of the invention can determine the appropriate initial volume for the user according to the specific conditions of the volume adjustment influence factors, reduces the steps of adjusting the volume by the user and improves the comfort of ears.
Drawings
Fig. 1 is a flowchart illustrating a volume adjustment method of a terminal according to an embodiment of the present invention;
fig. 2 shows a block diagram of a terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware configuration of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a volume adjustment method for a terminal, as shown in fig. 1, the method includes:
step 101: in the case where a play operation on the target audio data is detected, a current value of the volume adjustment influencing factor is acquired.
The same volume is adopted, and the auditory sensation of the user is different under different volume adjustment influence factors, so the volume adjustment influence factors can also be called as factors influencing the auditory sensation of the user.
Optionally, the volume adjustment influencing factor comprises at least one of the following factors: whether the terminal is plugged into a headset, a noise value of an environment in which the terminal is located, and a music type of the audio data.
The same volume is adopted, and under different conditions that the earphone is input into the terminal and the earphone is not inserted (namely, the earphone is externally placed), the sound heard by the user is different in size, namely, the auditory perception of the user is different.
In addition, the same volume is adopted, and the sound heard by the user is different when the terminal is in different environments, namely the auditory sense of the user is different. Specifically, the environment in which the terminal is located may be divided into a plurality of levels from quiet to noisy according to the magnitude of the specific noise value.
In addition, different types of audio data are played with the same volume level, and the user's hearing experience may also be different. For example, the ease, and rock types of music may vary in the user's auditory experience when played at the same volume level.
Based on the above-mentioned factors (i.e. volume adjustment influencing factors) influencing the user's hearing, in the embodiment of the present invention, under the condition that the playing operation of the target audio data is detected, the current value of the volume adjustment influencing factor is obtained, so that the initial volume of the played target audio data can be determined according to the specific value of the volume adjustment influencing factor, and the purpose of satisfying the user's hearing is achieved.
Step 102: and adjusting the volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influence factor to obtain an updated volume characteristic curve.
Wherein at least two discrete points corresponding to different volume values are included on the volume profile.
Optionally, the volume characteristic curve obtained by pre-training is obtained under the condition of a predetermined volume adjustment influence factor, where the predetermined volume adjustment influence factor includes: the terminal is not inserted into the earphone, the noise value of the environment where the terminal is located is in a first preset range, and the first type of audio data is played.
Namely, the volume characteristic curve pre-stored in the terminal is obtained by training under the condition that the earphone is not inserted into the terminal, the noise value of the environment where the terminal is located is in the first preset range, and the first type of audio data is played.
Specifically, for example, a volume profile stored in advance in the terminal is obtained in a case where the terminal is not inserted into a headphone, and the terminal is in a quiet environment and plays a relaxing type of music.
Optionally, the adjusting a volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influence factor to obtain an updated volume characteristic curve includes:
determining an adjustment value corresponding to each volume adjustment influence factor according to the current value of each volume adjustment influence factor;
summing the adjustment values corresponding to the volume adjustment influence factors to obtain the adjustment value of the volume characteristic curve;
and adjusting the volume value corresponding to each discrete point in the volume characteristic curve according to the adjustment value of the volume characteristic curve.
That is, in the embodiment of the present invention, when the volume characteristic curve obtained by the pre-training is adjusted according to the current value of the volume adjustment influence factor, an adjustment value that needs to be adjusted for the volume characteristic curve is determined for each influence factor included in the volume adjustment influence factor, and then the adjustment values corresponding to all influence factors included in the volume adjustment influence factor are superimposed on the pre-obtained volume characteristic curve.
Therefore, the embodiment of the invention trains in advance to obtain the volume characteristic curve under the specific scene, stores the volume characteristic curve in the terminal, and then updates the pre-stored volume characteristic curve according to the specific value of the current volume adjustment influence factor when the audio data is actually required to be played, so that the volume characteristic curve accords with the current prospect.
For example, the volume characteristic curve that the terminal is not inserted into the earphone and is in a quiet environment to play light music is obtained through pre-training, when audio data needs to be played actually, the terminal is inserted into the earphone and is in a noisy environment, and the audio data needs to be played in a rock type, each volume adjustment influence factor needs to be determined, and the difference between the current actual playing scene and the application scene of the pre-trained volume characteristic curve is obtained, so that the adjustment value corresponding to each influence factor is obtained according to the specific difference.
In the embodiment of the present invention, an application scenario of the volume characteristic curve is predetermined, and then, for an influence factor of whether the terminal is plugged in the earphone, there are two specific situations of whether the terminal is plugged in the earphone and not plugged in the earphone, and there are two values for the adjustment value of the volume characteristic curve obtained in advance corresponding to the influence factor of whether the terminal is plugged in the earphone.
That is, optionally, in a case that the volume adjustment influencing factors include whether a terminal is plugged into an earphone, determining, according to a current value of each of the volume adjustment influencing factors, an adjustment value corresponding to each of the volume adjustment influencing factors includes:
under the condition that the terminal is inserted into the earphone, determining that an adjustment value corresponding to the earphone inserted into the terminal is a first preset value, wherein the first preset value is smaller than zero;
and under the condition that the terminal is not inserted with the earphone, determining that the corresponding adjustment value of the terminal without the earphone is zero.
Under the condition that the terminal is inserted into the earphone, the user can hear the audio data clearly without needing large volume, so that under the premise that the application scene of the volume characteristic curve obtained by pre-training is that the earphone is not inserted into the terminal, if the earphone is inserted into the terminal when the audio data is actually played, the volume value in the volume characteristic curve obtained by pre-training needs to be reduced by a certain amplitude.
However, if the earphone is inserted into the terminal in the application scenario of the volume characteristic curve obtained by the pre-training, and the earphone is not inserted into the terminal when the audio data is actually played, the volume value in the volume characteristic curve obtained by the pre-training needs to be increased by a certain amplitude.
In addition, the adjustment value for the volume characteristic curve obtained in advance 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 a case that the volume adjustment affecting factor includes a noise value of an environment where the terminal is located, determining, according to a current value of each of the volume adjustment affecting factors, an adjustment value corresponding to each of the volume adjustment affecting factors, including:
under the condition 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;
under the condition that the current noise value of the environment where the terminal is located is smaller than the lower limit value of the first preset range, determining a first adjustment amplitude corresponding to the difference between the lower limit value and the current noise value according to the corresponding relation between the predetermined noise value difference and the adjustment amplitude, and determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is a negative number of which the absolute value is the first adjustment amplitude;
and under the condition that the current noise value of the environment where the terminal is located is larger than the upper limit value of the first preset range, determining a second adjustment amplitude corresponding to the difference between the upper limit value and the current noise value according to the corresponding relation between the predetermined noise value difference and the adjustment amplitude, and determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is a positive number of which the absolute value is the second adjustment amplitude.
It can be seen from the above description that, if the actual environmental noise value when the terminal needs to play the audio data is within the noise range applicable to the volume characteristic curve obtained by the pre-training, the volume characteristic curve does not need to be adjusted in terms of the environmental noise, and if the actual environmental noise is quieter than the environmental noise applicable to the volume characteristic curve, the volume value of the volume characteristic curve needs to be reduced by a certain amplitude, and if the actual environmental noise is noisier than the environmental noise applicable to the volume characteristic curve, the volume value of the volume characteristic curve needs to be increased by a certain amplitude.
Further, the adjustment value for the volume characteristic curve obtained in advance corresponding to the influence factor of the music type of the audio data is determined as follows:
that is, optionally, in a case that the volume adjustment influencing factors include a music type of the audio data, the determining, according to a current value of each of the volume adjustment influencing factors, an adjustment value corresponding to each of the volume adjustment influencing factors includes:
determining that an adjustment value corresponding to playing of the second type of audio data is a second preset value under the condition that the music type of the target audio data is a second type;
and under the condition that the music type of the target audio data is a third type, determining that an adjustment value corresponding to the playing of the third type of audio data is a third preset value.
For example, the volume characteristic curve obtained by pre-training is suitable for playing relaxed music, and when the relaxed music needs to be played actually, the volume value of the volume characteristic curve needs to be increased by a certain amplitude, and when rock-and-roll type music needs to be played actually, the volume value of the volume characteristic curve needs to be increased by a certain amplitude.
Step 103: and setting the initial volume for playing the target audio data according to the updated volume characteristic curve.
After the updated volume characteristic curve is obtained through the above steps, the initial volume of the playing target audio data can be further set.
Optionally, a default discrete point corresponding to a default volume value is included in the at least two discrete points; setting an initial volume for playing the target audio data according to the updated volume characteristic curve, including:
and setting the initial volume for playing the target audio data as a default volume value corresponding to the default discrete point.
That is, a default discrete point is set on the volume characteristic curve obtained by pre-training, a default discrete point also exists 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 of the playing target audio data. The updated volume characteristic curve is obtained after adjustment according to the current value of the volume adjustment influence factor, so that the initial volume of the played target audio data is matched with the specific situation of the volume adjustment influence factor, the steps of adjusting the volume by a user are reduced, and the comfort of ears is improved.
Optionally, after the step of setting the initial volume for playing the target audio data, the method further comprises:
in the playing process of the target audio data, if a volume adjusting instruction input by a user is detected, after the volume adjusting instruction is received every time, determining a first discrete point corresponding to a first volume value of the currently played target audio data on the updated volume characteristic curve;
determining a second volume value corresponding to a second discrete point adjacent to the first discrete point according to the volume adjusting direction indicated by the volume adjusting instruction;
adjusting the volume of playing the target audio data to the second volume value.
For example, nine points-4 to 4 are included on the volume characteristic curve, the middle position point 0 represents the initial volume position (default optimal volume), -4 to-1 four points are the adjustment points of the "volume down key", and 1 to 4 are the adjustment points of the "volume up key". The volume amplitude where the 0 point is located is initially played in a default mode, and when a user presses a volume adding key, the volume amplitude where the 1 point is located is pressed for playing; and when the user presses the volume reduction key, the volume amplitude at the-1 point is pressed for playing.
Among the discrete points included on the volume characteristic curve, the difference between the volume values corresponding to every two adjacent discrete points is different, so that the most suitable and fastest volume adjustment amplitude is provided for a user.
As can be seen from the above, in the embodiment of the present invention, when it is detected that the terminal needs to play audio data, multiple external conditions (i.e., volume adjustment influencing factors) are triggered and extracted, the most suitable user volume is calculated, the most suitable user volume is skipped to the most suitable user volume position once, and around the upper and lower positions of the optimal point, 4 to 8 non-constant amplitude volume plus-minus adjustment fine areas suitable for the current user volume are designed, and the most suitable fast volume adjustment amplitude is provided for the user.
Optionally, in the playing process of the target audio data, if it is detected that the user finishes volume adjustment, a third volume value currently played by the target audio data is obtained;
and according to the third volume value, retraining the volume characteristic curve.
Specifically, if the third volume value is greater than the initial volume, the volume values of discrete points on a volume characteristic curve obtained through pre-training are respectively increased; and if the third volume value is smaller than the initial volume, respectively reducing the volume values of discrete points on a volume characteristic curve obtained by pre-training.
If the volume adjustment instruction is not received again within the preset time after the volume adjustment instruction is received once, it is determined that the user has finished the volume adjustment, that is, the third volume value of the playing target audio data meets the auditory sensation of the user.
In addition, the volume characteristic curve is optimized according to the third volume value finally meeting the auditory sensation of the user, so that the volume meeting the auditory sensation of the user can be adjusted more quickly when the volume is adjusted according to the volume characteristic curve subsequently.
In addition, in the process of playing the target audio data, whether the volume adjustment influence factor changes or not can be detected at regular time, and the volume adjustment process is actively triggered when the volume adjustment influence factor changes.
An embodiment of the present invention further provides a terminal, as shown in fig. 2, where the terminal 200 includes:
an influence factor obtaining module 201, configured to obtain a current value of a volume adjustment influence factor when a play operation on target audio data is detected;
the adjusting module 202 is configured to adjust a volume characteristic curve obtained through pre-training according to the current value of the volume adjustment influence factor, so as to obtain an updated volume characteristic curve; at least two discrete points corresponding to different volume values are included on the volume characteristic curve;
and the initial volume determining module 203 is configured to set an 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 a predetermined volume adjustment influence factor, where the predetermined volume adjustment influence factor includes: the terminal is not inserted into the earphone, the noise value of the environment where the terminal is located is in a first preset range, and the first type of audio data is played.
Optionally, the volume adjustment influencing factor comprises at least one of the following factors: whether the terminal is plugged into a headset, a noise value of an environment in which the terminal is located, and a music type of the audio data.
Optionally, the adjusting module 202 includes:
an adjustment value determining unit, configured to determine, according to a current value of each of the volume adjustment influencing factors, an adjustment value corresponding to each of the volume adjustment influencing factors;
the summation unit is used for summing the adjustment values corresponding to the volume adjustment influence factors to obtain the adjustment values of the volume characteristic curve;
and the adjusting unit is used for adjusting the volume value corresponding to each discrete point in the volume characteristic curve according to the adjusting value of the volume characteristic curve.
Optionally, in a case that the volume adjustment affecting factor includes whether the terminal is plugged into an earphone, the adjustment value determining unit is specifically configured to:
under the condition that the terminal is inserted into the earphone, determining that an adjustment value corresponding to the earphone inserted into the terminal is a first preset value, wherein the first preset value is smaller than zero;
and under the condition that the terminal is not inserted with the earphone, determining that the corresponding adjustment value of the terminal without the earphone is zero.
Optionally, in a case that the volume adjustment affecting factor includes a noise value of an environment where the terminal is located, the adjustment value determining unit is specifically configured to:
under the condition 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;
under the condition that the current noise value of the environment where the terminal is located is smaller than the lower limit value of the first preset range, determining a first adjustment amplitude corresponding to the difference between the lower limit value and the current noise value according to the corresponding relation between the predetermined noise value difference and the adjustment amplitude, and determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is a negative number of which the absolute value is the first adjustment amplitude;
and under the condition that the current noise value of the environment where the terminal is located is larger than the upper limit value of the first preset range, determining a second adjustment amplitude corresponding to the difference between the upper limit value and the current noise value according to the corresponding relation between the predetermined noise value difference and the adjustment amplitude, and determining that the adjustment value corresponding to the current noise value of the environment where the terminal is located is a positive number of which the absolute value is the second adjustment amplitude.
Optionally, in a case that the volume adjustment influencing factor includes a music type of the audio data, the adjustment value determining unit is specifically configured to:
determining that an adjustment value corresponding to playing of the second type of audio data is a second preset value under the condition that the music type of the target audio data is a second type;
and under the condition that the music type of the target audio data is a third type, determining that an adjustment value corresponding to the playing of the third type of audio data is a third preset value.
Optionally, a default discrete point corresponding to a default volume value is included in the at least two discrete points; the initial volume determining module 203 is specifically configured to:
and setting the initial volume for playing the target audio data as a default volume value corresponding to the default discrete point.
Optionally, the terminal further includes:
the instruction receiving module is used for determining a first discrete point, corresponding to a first volume value of the target audio data played currently, on the updated volume characteristic curve after receiving a volume adjusting instruction every time when the volume adjusting instruction input by a user is detected in the playing process of the target audio data;
the volume value determining module is used for determining a second volume value corresponding to a second discrete point adjacent to the first discrete point according to the volume adjusting direction indicated by the volume adjusting instruction;
and the volume adjusting module is used for adjusting the volume for playing the target audio data into the second volume value.
Optionally, the terminal further includes:
a volume value obtaining module, configured to, in the process of playing the target audio data, if it is detected that the user has finished adjusting the volume, obtain a third volume value currently played by the target audio data;
and the priority module is used for retraining the volume characteristic curve according to the third volume value.
As can be seen from the above, the terminal 200 according to the embodiment of the present invention can adjust the volume characteristic curve obtained by the pre-training according to the current value of the volume adjustment influencing factor when the terminal needs to play the audio data, so as to determine the initial volume of playing the audio data according to the updated volume characteristic curve. Therefore, the embodiment of the invention can determine the appropriate initial volume for the user according to the specific conditions of the volume adjustment influence factors, reduces the steps of adjusting the volume by the user and improves the comfort of ears.
Embodiments of the present invention also provide a terminal, as shown in fig. 3, where the terminal 300 includes but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 306, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the terminal structure shown in fig. 3 is not intended to be limiting and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of 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 palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 310 is configured to obtain a current value of the volume adjustment influencing factor when a play operation on the target audio data is detected; adjusting a volume characteristic curve obtained by pre-training according to the current value of the volume adjustment influence factor to obtain an updated volume characteristic curve; at least two discrete points corresponding to different volume values are included on the volume characteristic curve; and setting the initial volume for playing the target audio data according to the updated volume characteristic curve.
Therefore, the terminal 300 according to the embodiment of the present invention can adjust the volume characteristic curve obtained by the pre-training according to the current value of the volume adjustment influencing factor when the terminal needs to play the audio data, so as to determine the initial volume of playing the audio data according to the updated volume characteristic curve. Therefore, the embodiment of the invention can determine the appropriate initial volume for the user according to the specific conditions of the volume adjustment influence factors, reduces the steps of adjusting the volume by the user and improves the comfort of ears.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, 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 a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 302, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
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 an audio signal 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 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic 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 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The terminal 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the terminal 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), 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, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
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.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs 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, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 3 to implement the input and output functions of the terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 308 is an interface through which an external device is connected to the terminal 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., 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 to transmit data between the terminal 300 and an external device.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the 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.
The processor 310 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the terminal. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The terminal 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal 300 includes some functional modules that are not shown, and are not described in detail herein.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the method for adjusting a volume of a terminal, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1.一种终端的音量调节方法,其特征在于,包括:1. a volume adjustment method of a terminal, is characterized in that, comprises: 在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;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, adjust the volume characteristic curve obtained by pre-training 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, set the initial volume of playing the target audio data; 其中,所述音量特征曲线上包括的离散点中,每相邻两个离散点对应的音量值之差不同。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. 2.根据权利要求1所述的终端的音量调节方法,其特征在于,所述音量调节影响因素包括以下因素中的至少一者:终端是否插入耳机、终端所处环境的噪声值和音频数据的音乐类型。2. The method for adjusting the volume of a terminal according to claim 1, wherein the volume adjustment influencing factor comprises at least one of the following factors: whether the terminal is inserted into an earphone, the noise value of the environment where the terminal is located, and the amount of audio data. type of music. 3.根据权利要求2所述的终端的音量调节方法,其特征在于,预先训练得到的音量特征曲线是在预定音量调节影响因素的情况下得到的,所述预定音量调节影响因素包括:终端未插入耳机、终端所处环境的噪声值处于第一预设范围、播放第一类型的音频数据。3. The volume adjustment method of the terminal according to claim 2, wherein the volume characteristic curve obtained by pre-training is obtained under the condition of a predetermined volume adjustment influencing factor, and the predetermined volume adjustment influencing factor comprises: The earphone is inserted, 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. 4.根据权利要求3所述的终端的音量调节方法,其特征在于,所述根据所述音量调节影响因素的当前值,调整预先训练得到的音量特征曲线,获得更新的音量特征曲线,包括:4. The volume adjustment method of a terminal according to claim 3, wherein the volume characteristic curve obtained by adjusting the pre-trained volume according to the current value of the volume adjustment influence factor is adjusted to obtain an updated volume characteristic curve, comprising: 根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值;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. 5.根据权利要求4所述的终端的音量调节方法,其特征在于,在所述音量调节影响因素包括终端是否插入耳机的情况下,所述根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值,包括:5. The method for adjusting the volume of a terminal according to claim 4, wherein, in the case that the volume adjustment influencing factor includes whether the terminal is inserted into an earphone, the current value of each of the volume adjustment influencing factors, Determine the adjustment value corresponding to each of the volume adjustment influencing factors, including: 在终端插入耳机的情况下,确定终端插入耳机对应的调整值为第一预设值,所述第一预设值小于零;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. 6.根据权利要求4所述的终端的音量调节方法,其特征在于,在所述音量调节影响因素包括终端所处环境的噪声值的情况下,所述根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值,包括:6 . The method for adjusting the volume of a terminal according to claim 4 , wherein, in the case that the volume adjustment influencing factor includes a noise value of the environment in which the terminal is located, the current value, determine the adjustment value corresponding to each of the volume adjustment influencing factors, 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. 7.根据权利要求4所述的终端的音量调节方法,其特征在于,在所述音量调节影响因素包括音频数据的音乐类型的情况下,所述根据每个所述音量调节影响因素的当前值,确定每个所述音量调节影响因素对应的调整值,包括:7. The volume adjustment method of a terminal according to claim 4, wherein, in the case that the volume adjustment influencing factor includes a music type of audio data, the current value of each of the volume adjustment influencing factors , determine the adjustment value corresponding to each of the volume adjustment influencing factors, including: 在所述目标音频数据的音乐类型为第二类型的情况下,确定播放所述第二类型的音频数据对应的调整值为第二预设值;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. 8.根据权利要求1所述的终端的音量调节方法,其特征在于,所述至少两个离散点中包括对应于默认音量值的默认离散点;所述根据所述更新的音量特征曲线,设置播放所述目标音频数据的初始音量,包括:8. The method for adjusting the volume of a terminal according to claim 1, wherein the at least two discrete points include a default discrete point corresponding to a default volume value; and the updated volume characteristic curve is set according to the Play the initial volume of the target audio data, including: 将播放所述目标音频数据的初始音量,设置为所述默认离散点对应的默认音量值。The initial volume for playing the target audio data is set as the default volume value corresponding to the default discrete point. 9.根据权利要求1所述的终端的音量调节方法,其特征在于,在设置播放所述目标音频数据的初始音量的步骤之后,所述方法还包括:9. The method for adjusting the volume of the terminal according to claim 1, wherein after the step of setting the initial volume of playing the target audio data, the method further comprises: 在所述目标音频数据的播放过程中,若检测到用户输入的音量调节指令,则在每接收到一次音量调节指令后,确定所述更新后的音量特征曲线上,与当前播放所述目标音频数据的第一音量值对应的第一离散点;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. 10.根据权利要求9所述的终端的音量调节方法,其特征在于,所述方法还包括:10. The method for adjusting the volume of a terminal according to claim 9, wherein the method further comprises: 在所述目标音频数据播放过程中,若检测到用户结束音量调节,则获取所述目标音频数据当前播放的第三音量值;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 obtained; 根据所述第三音量值,重新训练所述音量特征曲线。The volume characteristic curve is retrained according to the third volume value. 11.一种终端,其特征在于,包括:11. A terminal, characterized in that, comprising: 影响因素获取模块,用于在检测到对目标音频数据的播放操作的情况下,获取音量调节影响因素的当前值;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, for setting the initial volume for playing the target audio data according to the updated volume characteristic curve; 其中,所述音量特征曲线上包括的离散点中,每相邻两个离散点对应的音量值之差不同。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. 12.一种终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;其特征在于,所述处理器执行所述程序时实现如权利要求1-10任一项所述的终端的音量调节方法。12. A terminal, comprising a memory, a processor and a computer program stored on the memory and running on the processor; it is characterized in that, when the processor executes the program, the program according to claim 1- 10. The volume adjustment method of the terminal according to any one of 10. 13.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-10任一项所述的终端的音量调节中的步骤。13. 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 according to any one of claims 1-10 are implemented.
CN201910253263.6A 2019-03-29 2019-03-29 A kind of terminal volume adjustment method and terminal Active CN110012386B (en)

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 CN110012386A (en) 2019-07-12
CN110012386B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456022B (en) * 2023-04-19 2024-02-23 东莞恒泰数字技术有限公司 Equipment control method, device, equipment and storage medium based on Internet of things
CN119576271B (en) * 2024-12-23 2025-06-17 荣耀终端股份有限公司 Audio playback loudness control method and electronic device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827852B (en) * 2016-04-29 2019-11-19 维沃移动通信有限公司 A 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
CN108521521B (en) * 2018-04-19 2021-04-02 Oppo广东移动通信有限公司 Volume adjustment method, mobile terminal and computer-readable storage medium
CN108733342B (en) * 2018-05-22 2021-03-26 Oppo(重庆)智能科技有限公司 Volume adjustment method, mobile terminal and computer-readable storage medium
CN109147816B (en) * 2018-06-05 2021-08-24 安克创新科技股份有限公司 Method and device for volume adjustment of music

Also Published As

Publication number Publication date
CN110012386A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN109509473B (en) Voice control method and terminal equipment
CN109905812B (en) Input power control method and device and terminal equipment
CN109918039B (en) A kind of volume adjustment method and mobile terminal
CN110209313B (en) Icon moving method and terminal equipment
CN107562406B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108848267B (en) Audio playback method and mobile terminal
CN109215683B (en) A prompt method and terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN111049972B (en) A kind of audio playback method and terminal device
CN109542321B (en) Control method and device for screen display content
CN111093137B (en) A volume control method, device and computer-readable storage medium
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN109302207B (en) A kind of parameter setting method and mobile terminal
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
CN108512615B (en) Signal intensity display method and mobile terminal
CN111010608A (en) Video playing method and electronic equipment
CN109873894B (en) A kind of volume adjustment method and mobile terminal
CN108008808B (en) Operation parameter adjusting method and mobile terminal
CN110058837B (en) Audio output method and terminal
CN111314639A (en) A video recording method and electronic device
CN111459447A (en) A volume adjustment display method and electronic device
CN111261128B (en) Screen brightness adjustment method and electronic device
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN110456959B (en) A terminal control method and terminal
CN110012386A (en) A kind of volume adjusting method and terminal of terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant