[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107566618B - Volume adjusting method and device, terminal equipment and storage medium - Google Patents

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

Info

Publication number
CN107566618B
CN107566618B CN201710711272.6A CN201710711272A CN107566618B CN 107566618 B CN107566618 B CN 107566618B CN 201710711272 A CN201710711272 A CN 201710711272A CN 107566618 B CN107566618 B CN 107566618B
Authority
CN
China
Prior art keywords
volume
gain
sound source
adjusting
information
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
CN201710711272.6A
Other languages
Chinese (zh)
Other versions
CN107566618A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710711272.6A priority Critical patent/CN107566618B/en
Publication of CN107566618A publication Critical patent/CN107566618A/en
Application granted granted Critical
Publication of CN107566618B publication Critical patent/CN107566618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a volume adjusting method, a volume adjusting device, terminal equipment and a storage medium, wherein the method comprises the steps of acquiring volume information of a sound source and the volume currently used by the terminal equipment when detecting that the terminal equipment plays the sound source; determining the gain of the sound source according to the volume information; and if the gain and the volume meet a preset adjusting condition, adjusting the volume information of the sound source. According to the scheme, the volume adjusting efficiency is improved, and the power consumption of the terminal equipment is reduced.

Description

Volume adjusting method and device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a volume adjusting method, a volume adjusting device, terminal equipment and a storage medium.
Background
With the increasing popularity of terminal devices, more and more users use the terminal devices to perform various functions to meet their own needs, such as reading text, watching video, listening to music, playing games, etc. When the terminal equipment plays audio and video, the adjustment of the volume has defects and needs to be improved.
Disclosure of Invention
The invention provides a volume adjusting method, a volume adjusting device, terminal equipment and a storage medium, which improve the volume adjusting efficiency and reduce the power consumption of the terminal equipment.
In a first aspect, an embodiment of the present invention provides a volume adjustment method, including:
when detecting that terminal equipment plays a sound source, acquiring volume information of the sound source and the volume currently used by the terminal equipment;
determining the gain of the sound source according to the volume information;
and if the gain and the volume meet a preset adjusting condition, adjusting the volume information of the sound source.
In a second aspect, an embodiment of the present invention further provides a volume adjusting apparatus, including:
the information acquisition module is used for acquiring volume information of a sound source and the volume currently used by the terminal equipment when detecting that the terminal equipment plays the sound source;
the gain determining module is used for determining the gain of the sound source according to the volume information;
and the adjusting module is used for adjusting the volume information of the sound source if the gain and the volume meet a preset adjusting condition.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the volume adjustment method according to an embodiment of the present invention when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are used to execute the volume adjustment method according to the embodiment of the present invention when executed by a terminal device processor.
According to the technical scheme provided by the embodiment of the invention, when the terminal equipment is detected to play the sound source, the volume information of the sound source and the volume currently used by the terminal equipment are obtained, the gain of the sound source is determined according to the volume information, and if the gain and the volume meet the preset adjusting condition, the volume information of the sound source is adjusted, so that the volume adjusting efficiency is improved, and the power consumption of the terminal equipment is reduced.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a volume adjustment method according to an embodiment of the present invention;
fig. 2 is a flow chart of another volume adjustment method provided by the embodiment of the invention;
fig. 3 is a flow chart of another volume adjustment method provided by the embodiment of the invention;
fig. 4 is a flow chart of another volume adjustment method provided by the embodiment of the invention;
fig. 5 is a block diagram of a volume adjustment device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a volume adjusting method according to an embodiment of the present invention, where this embodiment is applicable to a situation where a terminal device automatically adjusts playing volume when playing sound source data, and the method may be executed by the terminal device according to the embodiment of the present invention, and a volume adjusting device of the terminal device may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific scheme provided in this embodiment is as follows:
step S101, when detecting that the terminal equipment plays the sound source, obtaining the volume information of the sound source and the volume currently used by the terminal equipment.
In one embodiment, the terminal device may play the sound source through an installed third-party application or audio/video playing software carried by the system. The method mainly comprises the steps of obtaining, decoding, outputting and the like of the sound source file. Illustratively, the obtained sound source file may be a multicast stream received through a network, or may be an audio/video file locally stored by the terminal device; loading the sound source file into a memory buffer area after the sound source file is obtained; the method comprises the steps of decoding a sound source file loaded into a memory buffer area, before decoding starts, if the sound source file simultaneously contains video data, separating the audio data from the video data, and inputting the separated audio data into an audio decoder, wherein the audio decoder is mainly used for reading the audio data in the memory buffer area to obtain a digital audio signal and converting the digital audio signal into an analog audio signal, and a playing device of a terminal device plays audio according to the analog audio signal. In one embodiment, when it is monitored that a sound source playing event is triggered, it is determined that the terminal device starts playing a sound source, where the triggering event may be that a playing button displayed in a touch screen is pressed, or that a playing device of the terminal device, such as a speaker, starts playing sound, and the terminal device is determined to play the sound source.
And when detecting that the terminal equipment plays the sound source, acquiring the volume information of the sound source. In one embodiment, the digital audio signal decoded by the audio decoder may be sampled to determine the volume information corresponding to the sound source. In another embodiment, an original file of a currently played sound source may also be obtained, and volume information corresponding to the sound source may be determined through parsing the original file. In another embodiment, for example, in an Android system, the volume information of the sound source may be obtained through an Android.
The volume currently used by the terminal device may be a set volume of a system in the terminal device, and the volume may be changed according to the adjustment of the volume (e.g., volume key) of the terminal device by the user. Specifically, taking the android system as an example, the current volume of the terminal device may be determined by a getVolume method of the AudioManager.
And step S102, determining the gain of the sound source according to the volume information.
Gain refers to the degree of increase (amplification factor) in decibels of current, voltage, or power in a component, circuit, device, or system. Optionally, the gain of the analog audio signal to be output may be adjusted by controlling the gain amplifier. The gain adjustment is performed by determining the gain, for example, the gain determined by the volume information may be an adjustment gain used by the terminal equipment system when playing the sound source, or may be a gain recorded in the volume information corresponding to the sound source when playing.
And step S103, judging whether the gain and the volume meet preset adjusting conditions, if so, executing step S104, and if not, executing step S105.
In one embodiment, the gain and the volume level satisfying the preset adjustment condition include: the gain is smaller than a preset gain threshold, and the volume is smaller than a preset volume threshold. The terminal equipment is divided into 18 adjustable grades from mute to maximum volume, each grade corresponds to a volume value, and different volume values represent different volume sizes of a terminal equipment system. Illustratively, the preset volume threshold may be 3, 4, or 5, etc. The preset gain threshold may be any value between greater than 1 and less than 2, such as 1.2. In this embodiment, when it is determined that the gain of the sound source is smaller than the preset gain threshold and the volume of the terminal device is smaller than the preset volume threshold, step S101 is executed to perform volume adjustment, otherwise step S105 is executed to end the control of volume adjustment.
And step S104, adjusting the volume information of the sound source.
In one embodiment, the adjusting the volume information of the sound source includes: and adjusting the gain of the sound source according to a preset adjusting algorithm. For example, the preset adjustment algorithm may perform overall gain adjustment on the amplitude of the sound source, and if the gain adjustment coefficient is set to 1.5, the sound source performs gain according to the gain adjustment coefficient of 1.5 when playing. In another embodiment, it may also be that, first, a corresponding sound source amplitude is determined according to the sound source information, where the amplitude refers to the maximum distance from the original position during the vibration of the object, the loudness of the sound heard by the human ear is related to the amplitude of the sound source, and the loudness is stronger when the amplitude is larger. In an embodiment, the audio information decoded by the audio decoder may be sampled to obtain amplitude information within a preset time period T, where the amplitude information may be composed of a plurality of amplitude values, an amplitude curve of a sound source played within the preset time period T may be correspondingly determined according to the obtained plurality of amplitude values, and different gain coefficients may be set according to different magnitudes of the amplitude curve, and for example, specific correspondence may be shown in the following table:
TABLE 1
Amplitude of vibration Gain factor
Greater than-3 db or less than-50 db 1
Less than-10 db and greater than-50 db 2
Less than-3 db and greater than-10 db 1.5
As shown in Table 1, when the amplitude of the source is greater than-3 db or less than-50 db, its gain is not adjusted; when the amplitude is less than-10 db and greater than-50 db, the amplitude is a high amplitude region to which a gain coefficient of 1.5 is assigned, and when the amplitude is less than-10 db and greater than-50 db, the amplitude is a medium amplitude region to which an amplitude coefficient of 2 is assigned to significantly increase the amplitude of the portion of the amplitude.
And step S105, ending.
According to the volume adjusting method, when the gain of the sound source is too small or is 0db gain, and the current volume of the terminal equipment is low, the volume information of the sound source is adjusted, the amplitude of the sound source can be changed in a gain adjusting mode to improve the volume of the sound source, the automatic adjustment of the volume of the sound source is achieved to meet the adjustment requirement of a user on the volume, and the volume adjusting efficiency is improved.
In a possible embodiment, after adjusting the gain of the sound source according to a preset adjustment algorithm, the method further includes: and when the terminal equipment plays the audio signal after the gain adjustment, if a sound breaking signal is detected, reducing the gain of the audio signal and/or reducing the current volume of the terminal equipment. For example, an audio signal with a detected amplitude greater than a certain set amplitude (e.g., 3db) may be determined as a sound break signal, and when the sound break signal is detected, the current volume of the terminal device is reduced or the gain is reduced accordingly to avoid the sound break.
Fig. 2 is a flowchart of another volume adjustment method according to an embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, after adjusting the gain of the sound source according to a preset adjustment algorithm, the method further includes: and carrying out noise filtering on the audio signal obtained after the adjustment according to a noise suppression algorithm. As shown in fig. 2:
step S201, when detecting that the terminal equipment plays the sound source, obtaining the volume information of the sound source and the volume currently used by the terminal equipment.
Step S202, determining the gain of the sound source according to the volume information.
Step S203, determining whether the gain is smaller than a preset gain threshold, and the volume is smaller than a preset volume threshold, if yes, performing step S204, and if no, performing step S205.
And S204, adjusting the gain of the sound source according to a preset adjusting algorithm, and filtering the noise of the audio signal obtained after adjustment according to a noise suppression algorithm. Illustratively, a noise suppression method of Wiener filter, an LMS filter noise suppression algorithm, or the like may be employed.
And step S205 is ended.
As can be seen from the above discussion, in the process of adjusting the sound volume information of the sound source satisfying the condition, the noise amplified by the gain is suppressed and eliminated, and the problem that the noise is amplified and affects the sound quality is avoided.
Fig. 3 is a flowchart of another volume adjustment method according to an embodiment of the present invention, and optionally, before adjusting the gain of the sound source according to a preset adjustment algorithm, the method further includes: determining a corresponding noise amplitude value according to the volume information; and filtering the noise amplitude value larger than the preset noise amplitude. As shown in fig. 3:
step S301, when detecting that the terminal equipment plays the sound source, acquiring the volume information of the sound source and the volume currently used by the terminal equipment.
Step S302, determining the gain of the sound source according to the volume information.
Step S303, determining whether the gain is smaller than a preset gain threshold, and the volume is smaller than a preset volume threshold, if yes, performing step S304, and if no, performing step S306.
Step S304, determining a corresponding noise amplitude value according to the volume information, and filtering the noise amplitude value larger than a preset noise amplitude.
In one embodiment, the identification process of the noise may be to identify the amplitude and frequency in the volume information, and if it is detected that the amplitude and frequency in the volume information segment satisfy a randomness condition, that is, the amplitude and frequency are not regular, the noise may be identified, or, according to the amplitude curve of the audio information, the part with too small amplitude may be identified as the noise. When the amplitude curve of the noise is determined, the noise amplitude value larger than the preset noise amplitude (such as-30 db to-50 db) is filtered correspondingly to avoid the noise from being amplified by the gain.
And S305, adjusting the gain of the sound source according to a preset adjusting algorithm.
And S306, ending.
As can be seen from the above discussion, before the volume information of the sound source is adjusted by changing the gain, the noise reduction process is performed to prevent the sound quality of the sound source from being affected by the noise after the noise is significantly increased, thereby further improving the effect of volume adjustment.
Fig. 4 is a flowchart of another volume adjustment method according to an embodiment of the present invention, and optionally, after adjusting the gain of the audio source, the method further includes: and adjusting the volume of the terminal equipment. Wherein, the adjusting the volume of the terminal device comprises: determining the gain of the sound source gain adjustment, and determining corresponding volume adjustment information according to the gain; and adjusting the volume of the terminal equipment according to the volume adjusting information. As shown in fig. 4, the steps are as follows:
step S401, when detecting that the terminal equipment plays the sound source, acquiring the volume information of the sound source and the volume currently used by the terminal equipment.
Step S402, determining the gain of the sound source according to the volume information.
Step S403, determining whether the gain is smaller than a preset gain threshold, and the volume is smaller than a preset volume threshold, if yes, performing step S404, and if no, performing step S406.
Step S404, determining the gain of the sound source gain adjustment according to a preset adjustment algorithm.
Step S405, determining corresponding volume adjustment information according to the gain, and adjusting the volume of the terminal equipment according to the volume adjustment information.
In one embodiment, the corresponding volume adjustment information is determined based on the gain level. Illustratively, the larger the gain, the larger the current playing volume of the terminal device is increased. In a possible embodiment, a specific way of adjusting the volume is given, and optionally, the current volume value of the terminal device is adjusted by setting a target volume value. Illustratively, the terminal device is divided into 18 adjustable levels from mute to maximum volume, each level corresponds to a volume value, and the target volume value can be any one of 14-18 levels, depending on the specific gain. In a possible embodiment, the volume of the terminal device may be adjusted by using a volume change value, which may be 3,5,8, etc., that is, the volume change value is increased based on the current volume to increase the current system volume of the terminal device.
And step S406, ending.
From the above discussion, it can be known that, when the sound source satisfies the volume adjustment condition, the gain of the sound source is adjusted, and meanwhile, the current playing volume of the terminal device is also synchronously and adaptively adjusted, so that the volume adjustment effect is improved, and meanwhile, the problem that the final volume cannot be obviously improved due to the fact that the current system volume of the terminal device is too small and only the gain of the sound source is adjusted is avoided.
Fig. 5 is a block diagram of a volume adjusting apparatus according to an embodiment of the present invention, where the apparatus is configured to execute the volume adjusting method according to the embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 5, the apparatus specifically includes: an information acquisition module 101, a gain determination module 102 and an adjustment module 103.
The information obtaining module 101 is configured to, when it is detected that the terminal device plays a sound source, obtain volume information of the sound source and a volume currently used by the terminal device.
In one embodiment, the terminal device may play the sound source through an installed third-party application or audio/video playing software carried by the system. The method mainly comprises the steps of obtaining, decoding, outputting and the like of the sound source file. Illustratively, the obtained sound source file may be a multicast stream received through a network, or may be an audio/video file locally stored by the terminal device; loading the sound source file into a memory buffer area after the sound source file is obtained; the method comprises the steps of decoding a sound source file loaded into a memory buffer area, before decoding starts, if the sound source file simultaneously contains video data, separating the audio data from the video data, and inputting the separated audio data into an audio decoder, wherein the audio decoder is mainly used for reading the audio data in the memory buffer area to obtain a digital audio signal and converting the digital audio signal into an analog audio signal, and a playing device of a terminal device plays audio according to the analog audio signal. In one embodiment, when it is monitored that a sound source playing event is triggered, it is determined that the terminal device starts playing a sound source, where the triggering event may be that a playing button displayed in a touch screen is pressed, or that a playing device of the terminal device, such as a speaker, starts playing sound, and the terminal device is determined to play the sound source.
And when detecting that the terminal equipment plays the sound source, acquiring the volume information of the sound source. In one embodiment, the digital audio signal decoded by the audio decoder may be sampled to determine the volume information corresponding to the sound source. In another embodiment, an original file of a currently played sound source may also be obtained, and volume information corresponding to the sound source may be determined through parsing the original file. In another embodiment, for example, in an Android system, the volume information of the sound source may be obtained through an Android.
The volume currently used by the terminal device may be a set volume of a system in the terminal device, and the volume may be changed according to the adjustment of the volume (e.g., volume key) of the terminal device by the user. Specifically, taking the android system as an example, the current volume of the terminal device may be determined by a getVolume method of the AudioManager.
A gain determining module 102, configured to determine a gain of the sound source according to the volume information.
Gain refers to the degree of increase (amplification factor) in decibels of current, voltage, or power in a component, circuit, device, or system. Optionally, the gain of the analog audio signal to be output may be adjusted by controlling the gain amplifier. The gain adjustment is performed by determining the gain, for example, the gain determined by the volume information may be an adjustment gain used by the terminal equipment system when playing the sound source, or may be a gain recorded in the volume information corresponding to the sound source when playing.
And the adjusting module 103 is configured to adjust the volume information of the sound source if the gain and the volume meet a preset adjusting condition.
In one embodiment, the gain and the volume level satisfying the preset adjustment condition include: the gain is smaller than a preset gain threshold, and the volume is smaller than a preset volume threshold. The terminal equipment is divided into 18 adjustable grades from mute to maximum volume, each grade corresponds to a volume value, and different volume values represent different volume sizes of a terminal equipment system. Illustratively, the preset volume threshold may be 3, 4, or 5, etc. The preset gain threshold may be any value between greater than 1 and less than 2, such as 1.2. In this embodiment, when it is determined that the gain of the sound source is smaller than the preset gain threshold and the volume of the terminal device is smaller than the preset volume threshold, step S101 is executed to perform volume adjustment, otherwise step S105 is executed to end the control of volume adjustment.
In one embodiment, the adjusting the volume information of the sound source includes: and adjusting the gain of the sound source according to a preset adjusting algorithm. For example, the preset adjustment algorithm may perform overall gain adjustment on the amplitude of the sound source, and if the gain adjustment coefficient is set to 1.5, the sound source performs gain according to the gain adjustment coefficient of 1.5 when playing. In another embodiment, it may also be that, first, a corresponding sound source amplitude is determined according to the sound source information, where the amplitude refers to the maximum distance from the original position during the vibration of the object, the loudness of the sound heard by the human ear is related to the amplitude of the sound source, and the loudness is stronger when the amplitude is larger. In one embodiment, the audio information decoded by the audio decoder may be sampled to obtain amplitude information within a predetermined time period T, where the amplitude information may be composed of a plurality of amplitude values, an amplitude curve of a sound source played within the predetermined time period T may be correspondingly determined according to the obtained plurality of amplitude values, and different gain coefficients may be set according to different magnitudes of the amplitude curve.
According to the technical scheme provided by the embodiment of the invention, when the terminal equipment is detected to play the sound source, the volume information of the sound source and the volume currently used by the terminal equipment are obtained, the gain of the sound source is determined according to the volume information, and if the gain and the volume meet the preset adjusting condition, the volume information of the sound source is adjusted, so that the volume adjusting efficiency is improved, and the power consumption of the terminal equipment is reduced.
In one possible embodiment, the gain and the volume level satisfying the preset adjustment condition includes:
the gain is smaller than a preset gain threshold, and the volume is smaller than a preset volume threshold;
the adjusting module 103 is specifically configured to:
and adjusting the gain of the sound source according to a preset adjusting algorithm.
In one possible embodiment, the noise suppression module 104 is further included to:
and after the gain of the sound source is adjusted according to a preset adjusting algorithm, carrying out noise filtering on the audio signal obtained after the adjustment according to a noise suppression algorithm.
In one possible embodiment, the noise suppression module 104 is further configured to:
before adjusting the gain of the sound source according to a preset adjusting algorithm, determining a corresponding noise amplitude value according to the volume information;
and filtering the noise amplitude value larger than the preset noise amplitude.
In one possible embodiment, the adjusting module 103 is further configured to:
after the gain of the sound source is adjusted according to a preset adjusting algorithm, when the terminal equipment plays the audio signal after the gain adjustment, if a sound breaking signal is detected, the gain of the audio signal is reduced and/or the current volume of the terminal equipment is reduced.
In one possible embodiment, the adjusting module 103 is further configured to:
and after the gain of the sound source is adjusted, adjusting the volume of the terminal equipment.
In a possible embodiment, the adjusting module 103 is specifically configured to:
determining the gain of the sound source gain adjustment, and determining corresponding volume adjustment information according to the gain;
and adjusting the volume of the terminal equipment according to the volume adjusting information.
In this embodiment, a terminal device is provided on the basis of the foregoing embodiments, and fig. 6 is a schematic structural diagram of a terminal device provided in an embodiment of the present invention, as shown in fig. 6, the terminal device 200 includes: memory 201, processor (CPU) 202, peripheral interfaces 203, RF (Radio Frequency) circuitry 205, audio circuitry 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, other input/control devices 210, and external port 204, which communicate via one or more communication buses or signal lines 207.
It should be understood that the illustrated terminal device 200 is only one example of a terminal device, and that the terminal device 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 201, the memory 201 being accessible by the CPU202, the peripheral interface 203, and the like, the memory 201 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 203, said peripheral interface 203 may connect input and output peripherals of the device to the CPU202 and the memory 201.
An I/O subsystem 209, the I/O subsystem 209 may connect input and output peripherals on the device, such as a touch screen 212 and other input/control devices 210, to the peripheral interface 203. The I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling the other input/control devices 210. Where one or more input controllers 2092 receive electrical signals from or transmit electrical signals to other input/control devices 210, the other input/control devices 210 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 2092 may be coupled to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 212, the touch screen 212 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 2091 within the I/O subsystem 209 receives electrical signals from the touch screen 212 or transmits electrical signals to the touch screen 212. The touch screen 212 detects a contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 212, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 212 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 205 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 205 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203, convert the audio data into an electric signal, and transmit the electric signal to the speaker 211.
And a speaker 211 for reproducing the voice signal received by the handset from the wireless network through the RF circuit 205 into sound and playing the sound to the user.
And the power management chip 208 is used for supplying power and managing power to the hardware connected with the CPU202, the I/O subsystem and the peripheral interface.
The volume adjusting device of the terminal device and the terminal device provided in the above embodiments can execute the volume adjusting method of the terminal device provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For details of the technology not described in detail in the above embodiments, reference may be made to a volume adjustment method of a terminal device provided in any embodiment of the present invention.
An embodiment of the present invention further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are executed by a terminal device processor to perform a volume adjustment method, and the method includes:
when detecting that terminal equipment plays a sound source, acquiring volume information of the sound source and the volume currently used by the terminal equipment;
determining the gain of the sound source according to the volume information;
and if the gain and the volume meet a preset adjusting condition, adjusting the volume information of the sound source.
In one possible embodiment, the gain and the volume level satisfying the preset adjustment condition includes:
the gain is smaller than a preset gain threshold, and the volume is smaller than a preset volume threshold;
the adjusting the volume information of the sound source comprises:
and adjusting the gain of the sound source according to a preset adjusting algorithm.
In a possible embodiment, after adjusting the gain of the sound source according to a preset adjustment algorithm, the method further includes:
and carrying out noise filtering on the audio signal obtained after the adjustment according to a noise suppression algorithm.
In a possible embodiment, before adjusting the gain of the sound source according to a preset adjustment algorithm, the method further includes:
determining a corresponding noise amplitude value according to the volume information;
and filtering the noise amplitude value larger than the preset noise amplitude.
In a possible embodiment, after adjusting the gain of the sound source according to a preset adjustment algorithm, the method further includes:
and when the terminal equipment plays the audio signal after the gain adjustment, if a sound breaking signal is detected, reducing the gain of the audio signal and/or reducing the current volume of the terminal equipment.
In one possible embodiment, after adjusting the gain of the audio source, the method further includes:
and adjusting the volume of the terminal equipment.
In a possible embodiment, the adjusting the volume of the terminal device includes:
determining the gain of the sound source gain adjustment, and determining corresponding volume adjustment information according to the gain;
and adjusting the volume of the terminal equipment according to the volume adjusting information.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the volume adjustment method described above, and may also perform related operations in the volume adjustment method provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method of adjusting volume, comprising:
when detecting that terminal equipment plays a sound source, acquiring volume information of the sound source and the volume currently used by the terminal equipment; wherein the volume information is obtained by sampling an output signal of an audio decoder;
determining the gain of the sound source according to the volume information;
if the gain is smaller than a preset gain threshold value and the volume is smaller than a preset volume threshold value, adjusting the gain of the sound source according to a preset adjustment algorithm, including: and determining amplitude information of the volume information according to the output signal of the decoder, setting corresponding gain coefficients based on the amplitude information, wherein different amplitudes correspond to different gain coefficients, and the amplitude information is the real-time amplitude of the sound source.
2. The method of claim 1, further comprising, after adjusting the gain of the audio source according to a preset adjustment algorithm:
and carrying out noise filtering on the audio signal obtained after the adjustment according to a noise suppression algorithm.
3. The method of claim 1, further comprising, before adjusting the gain of the audio source according to a preset adjustment algorithm:
determining a corresponding noise amplitude value according to the volume information;
and filtering the noise amplitude value larger than the preset noise amplitude.
4. The method of claim 1, further comprising, after adjusting the gain of the audio source according to a preset adjustment algorithm:
and when the terminal equipment plays the audio signal after the gain adjustment, if a sound breaking signal is detected, reducing the gain of the audio signal and/or reducing the current volume of the terminal equipment.
5. The method of any of claims 1-4, further comprising, after adjusting the gain of the audio source:
and adjusting the volume of the terminal equipment.
6. The method of claim 5, wherein the adjusting the volume of the terminal device comprises:
determining the gain of the sound source gain adjustment, and determining corresponding volume adjustment information according to the gain;
and adjusting the volume of the terminal equipment according to the volume adjusting information.
7. A volume adjustment device, comprising:
the information acquisition module is used for acquiring volume information of a sound source and the volume currently used by the terminal equipment when detecting that the terminal equipment plays the sound source; wherein the volume information is obtained by sampling an output signal of an audio decoder;
the gain determining module is used for determining the gain of the sound source according to the volume information;
the adjusting module is used for adjusting the gain of the sound source according to a preset adjusting algorithm, and comprises: and determining amplitude information of the volume information according to the output signal of the decoder, setting corresponding gain coefficients based on the amplitude information, wherein different amplitudes correspond to different gain coefficients, and the amplitude information is the real-time amplitude of the sound source.
8. A terminal device, comprising: processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the volume adjustment method according to any one of claims 1-6 when executing the computer program.
9. A storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform the volume adjustment method of any one of claims 1-6.
CN201710711272.6A 2017-08-18 2017-08-18 Volume adjusting method and device, terminal equipment and storage medium Active CN107566618B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107566618A CN107566618A (en) 2018-01-09
CN107566618B true CN107566618B (en) 2021-01-22

Family

ID=60976321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710711272.6A Active CN107566618B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107566618B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924447B (en) * 2018-08-21 2020-07-10 海信视像科技股份有限公司 Volume adjusting method, equipment, communication device and storage medium
CN112151053B (en) * 2019-06-11 2024-04-16 北京汇钧科技有限公司 Speech enhancement method, system, electronic device and storage medium
CN111049972B (en) * 2019-11-20 2021-04-27 维沃移动通信有限公司 Audio playing method and terminal equipment
CN111163226B (en) * 2019-12-27 2021-06-08 华为技术有限公司 Volume adjusting method, device and system
CN111443889B (en) * 2020-03-24 2023-08-11 捷开通讯(深圳)有限公司 Volume adjusting method and system, storage medium and terminal equipment thereof
CN113741855B (en) * 2020-05-27 2023-10-31 青岛海信移动通信技术有限公司 Audio playing method and terminal
CN112333534B (en) * 2020-09-17 2023-11-14 深圳Tcl新技术有限公司 Noise elimination method and device, intelligent television system and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067571A (en) * 2007-06-18 2007-11-07 中兴通讯股份有限公司 Acoustic automatic gaining effect testing method and system
CN103746668A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Sound volume control method and system
CN106210315A (en) * 2016-07-12 2016-12-07 努比亚技术有限公司 A kind of method for regulation of sound volume and mobile terminal

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753427A (en) * 2004-09-20 2006-03-29 华为技术有限公司 Device and method for automatically regulating mobile terminal loudness
CN101478614A (en) * 2009-01-19 2009-07-08 深圳华为通信技术有限公司 Method, apparatus and communication terminal for adaptively tuning volume
US9225815B2 (en) * 2013-07-23 2015-12-29 Google Technology Holdings LLC Method and device for loudness level determination
CN104348971A (en) * 2014-03-10 2015-02-11 青岛智感信息技术有限公司 Method for locking mobile phone earphone audio output sound volume
CN104104800A (en) * 2014-07-25 2014-10-15 Tcl通讯(宁波)有限公司 Method for adjusting volume output of mobile terminal according to environment noises and mobile terminal
CN104363510B (en) * 2014-10-29 2019-04-30 深圳市金立通信设备有限公司 A kind of playback terminal
JP2017076895A (en) * 2015-10-15 2017-04-20 キヤノン株式会社 Audio signal processing device and method
CN105592222A (en) * 2015-12-22 2016-05-18 努比亚技术有限公司 Device and method for automatically adjusting volume of terminal
CN107172527B (en) * 2016-03-08 2020-06-09 中兴通讯股份有限公司 Volume adjusting method and device for collaborative playing and collaborative playing device
CN106126164B (en) * 2016-06-16 2019-05-17 Oppo广东移动通信有限公司 A kind of sound effect treatment method and terminal device
CN106210879A (en) * 2016-08-16 2016-12-07 微鲸科技有限公司 intelligent volume control system and intelligent volume control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067571A (en) * 2007-06-18 2007-11-07 中兴通讯股份有限公司 Acoustic automatic gaining effect testing method and system
CN103746668A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Sound volume control method and system
CN106210315A (en) * 2016-07-12 2016-12-07 努比亚技术有限公司 A kind of method for regulation of sound volume and mobile terminal

Also Published As

Publication number Publication date
CN107566618A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107566618B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107465824B (en) Volume adjusting method and device, mobile terminal and storage medium
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN111033614B (en) Volume adjusting method and device, mobile terminal and storage medium
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN108810749B (en) Player control method, device, terminal equipment and storage medium
US10440464B2 (en) Method and apparatus for adjusting volume, terminal device and storage medium
WO2017215657A1 (en) Sound effect processing method, and terminal device
CN106791067B (en) Call volume adjusting method and device and mobile terminal
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
WO2019033942A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
WO2019033941A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
US20220255523A1 (en) Dynamic audio broadcasting method and audio broadcasting apparatus
WO2019033939A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN110753919B (en) Volume adjusting method and device, storage medium and mobile terminal
CN110731087A (en) Volume adjusting method and device, mobile terminal and storage medium
CN107506170A (en) volume adjusting method, device, terminal device and storage medium
CN107506169A (en) volume adjusting method, device, terminal device and storage medium
KR20080071860A (en) Method and apparatus for controlling automatically sound level in mobile sounder

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant