WO2019033941A1 - Appareil et procédé de réglage de volume, dispositif terminal, et support d'informations - Google Patents

Appareil et procédé de réglage de volume, dispositif terminal, et support d'informations Download PDF

Info

Publication number
WO2019033941A1
WO2019033941A1 PCT/CN2018/098651 CN2018098651W WO2019033941A1 WO 2019033941 A1 WO2019033941 A1 WO 2019033941A1 CN 2018098651 W CN2018098651 W CN 2018098651W WO 2019033941 A1 WO2019033941 A1 WO 2019033941A1
Authority
WO
WIPO (PCT)
Prior art keywords
amplitude
audio
information
adjustment coefficient
volume
Prior art date
Application number
PCT/CN2018/098651
Other languages
English (en)
Chinese (zh)
Inventor
严锋贵
许钊铵
郑志勇
甘高亭
杨海
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019033941A1 publication Critical patent/WO2019033941A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device

Definitions

  • the present disclosure relates to the field of computer technology, for example, to a volume adjustment method, apparatus, terminal device, and storage medium.
  • terminal devices With the increasing popularity of terminal devices, more and more users use terminal devices to perform various functions to meet their own needs, such as reading text, watching videos, listening to music, and playing games using terminal devices.
  • terminal device is playing audio and video, the adjustment of the volume level is flawed and needs to be improved.
  • the disclosure provides a volume adjustment method, device, terminal device and storage medium, which improves the volume adjustment efficiency and reduces the power consumption of the terminal device.
  • Embodiments of the present disclosure provide a volume adjustment method, including:
  • the audio amplitude is adjusted according to the amplitude adjustment coefficient.
  • the embodiment of the present disclosure further provides a volume adjustment apparatus, including:
  • An amplitude determining module configured to determine an audio amplitude corresponding to the audio information according to the audio information
  • the adjustment coefficient determining module is configured to obtain volume information of the terminal device, and determine an amplitude adjustment coefficient corresponding to the volume information according to the volume information;
  • the adjustment module is configured to adjust the audio amplitude according to the amplitude adjustment coefficient.
  • An embodiment of the present disclosure 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 executing the computer program to implement an embodiment of the present disclosure The volume adjustment method described.
  • Embodiments of the present disclosure also provide a storage medium including terminal device executable instructions for performing a volume adjustment method according to an embodiment of the present disclosure when executed by a terminal device processor.
  • the technical solution provided by the embodiment of the present disclosure improves the volume adjustment efficiency and reduces the power consumption of the terminal device.
  • FIG. 1 is a flowchart of a volume adjustment method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • FIG. 4 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • FIG. 5 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a method for adjusting a volume according to an embodiment of the present disclosure.
  • the present embodiment is applicable to a situation in which a terminal device performs volume adjustment when playing a sound source.
  • the method may be performed by a terminal device provided by an embodiment of the present disclosure.
  • the volume adjustment device of the terminal device can be implemented by using software and/or hardware. As shown in FIG. 1 , the volume adjustment method provided in this embodiment includes the following steps.
  • Step 101 Acquire audio information of the sound source when detecting that the terminal device performs sound source playback.
  • the terminal device can play the sound source through the installed third-party application or the audio and video playback software that comes with the system.
  • the playing of the sound source mainly includes the steps of acquiring, decoding, and outputting the sound source file.
  • the obtained sound source file may be a multicast stream received through a network, or may be an audio and video file stored locally by the terminal device.
  • the sound source file is loaded into a memory buffer, and the sound source file loaded into the memory buffer is decoded. Before the decoding starts, if the sound source file contains video data at the same time, separation of the audio data and the video data is required, and the separated audio data is input to the audio decoder.
  • the audio decoder is mainly used for reading audio data in the memory buffer, obtaining a digital audio signal, and converting the digital audio signal into an analog audio signal, and the playing device of the terminal device performs the analog audio signal according to the analog audio signal. Audio Player.
  • the triggering event may be that the playing button displayed in the touch screen is detected to be pressed, or may be determined to determine that the terminal device performs sound source playing when the playing device of the terminal device detects that the sound starts playing.
  • the audio information of the sound source is acquired.
  • the digital audio signal decoded by the audio decoder may be sampled to determine audio information corresponding to the audio source.
  • the original file of the currently played sound source may also be acquired, and the audio information corresponding to the sound source is determined by parsing the original file.
  • the audio information of the sound source can be obtained through the android.media.MediaRecorder class or the android.media.AudioRecord class.
  • Step 102 Determine an audio amplitude corresponding to the audio information according to the audio information.
  • 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. The louder the amplitude, the stronger the loudness.
  • the digital audio signal decoded by the audio decoder may be sampled to obtain amplitude information within a preset time period T.
  • the amplitude information may be composed of a plurality of amplitude values, and the amplitude curves of the sound sources played during the preset time period T may be correspondingly determined according to the obtained plurality of amplitude values.
  • the audio information of the audio source can be obtained by using the android.media.MediaRecorder class or the android.media.AudioRecord class to obtain the amplitude of the audio amplitude corresponding to the audio information.
  • the amplitude of the audio amplitude corresponding to the audio information may be obtained by parsing the original file.
  • the amplitude is determined every preset time (eg, 1 second (s), 3 s, or 10 s), or the amplitude of each frame of the audio information is determined in real time.
  • the acquiring the audio information of the sound source includes: acquiring audio frame information of the sound source; and correspondingly, determining an audio amplitude corresponding to the audio information according to the audio information, including: according to the audio The frame information determines an audio amplitude of each frame of the audio frame information.
  • the sound source file is parsed to obtain an audio frame sequence, and the audio amplitude corresponding to each frame is determined according to each frame of the audio frame sequence.
  • Step 103 Obtain volume information of the terminal device, determine an amplitude adjustment coefficient corresponding to the volume information according to the volume information, and adjust the audio amplitude according to the amplitude adjustment coefficient.
  • the acquired volume information may be one or more of current volume value information, volume increase information, and volume decrease information of the terminal device. Determining, according to the volume information, the amplitude adjustment coefficient corresponding to the volume information may be determined according to one or more of current volume value information, volume increase information, and volume decrease information in the volume information.
  • the terminal device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value.
  • the volume can be acquired by the volume management component of the system (get volume)
  • the method obtains the current volume value of the system; when the user increases or decreases the volume through the adjustment button or the touch screen of the terminal device, it is determined whether the volume of the current terminal device is increased or decreased.
  • the amplitude adjustment coefficient corresponding to the volume information is determined according to the current volume value, as shown in Table 1:
  • the amplitude adjustment coefficient corresponding to the volume information is determined according to the current volume increase information or volume reduction information, as shown in Table 2:
  • the amplitude adjustment coefficient may be jointly determined according to the volume increase information or the volume decrease information in combination with the volume value of the current terminal to implement adjustment on the audio amplitude.
  • the amplitudes of the audio amplitudes to be adjusted are respectively assigned different amplitudes according to the amplitudes of the audio amplitudes of different amplitudes.
  • the adjustment factor is shown in Table 3:
  • Audio amplitude Amplitude adjustment factor Less than -10db and greater than -50db 2 Less than -3db and greater than -10db 1.5
  • the audio amplitude belongs to the high amplitude region, and the amplitude adjustment coefficient is 1.5 for the audio amplitude, and the amplitude of the audio amplitude is smaller than
  • -10 db is greater than -50 db
  • the audio amplitude belongs to the mid-amplitude region, and the amplitude of the audio amplitude is assigned an amplitude adjustment coefficient of 2 to significantly increase the amplitude of the mid-amplitude region.
  • the determined amplitude adjustment coefficient is reasonably allocated according to different amplitudes to obtain a suitable output volume, so that the user's sense of hearing is better, and the volume adjustment efficiency is improved.
  • the amplitude distribution according to the amplitude of the audio amplitude is an amplitude amplitude of different amplitudes.
  • the different amplitude adjustment coefficients include: assigning a first amplitude adjustment coefficient to the audio amplitude whose amplitude is greater than the first preset threshold or less than the third preset threshold, and the amplitude is less than or equal to the first preset threshold and greater than the second preset.
  • the audio amplitude of the threshold is assigned a second amplitude adjustment coefficient
  • the third amplitude adjustment coefficient is allocated to the audio amplitude whose amplitude magnitude is less than or equal to the second preset threshold and greater than the third preset threshold, wherein the first amplitude adjustment coefficient is smaller than The second amplitude adjustment coefficient is smaller than the third amplitude adjustment coefficient.
  • the first preset threshold may be -3 db
  • the second preset threshold may be -10 db
  • the third preset threshold may be -50 db
  • the first amplitude adjustment coefficient is 1 (ie, no adjustment is performed)
  • the second amplitude adjustment coefficient is 1.4
  • the third amplitude adjustment coefficient is 1.8.
  • amplitude adjustment is not performed for an audio amplitude having an excessively large amplitude (for example, greater than -3 db) or an amplitude being too small (for example, less than -50 db), thereby avoiding breakage caused by excessive amplitude adjustment.
  • the problem of noise enhancement caused by the increase of too small noise is avoided, and the volume adjustment method is further optimized.
  • adjusting the audio amplitude according to the amplitude adjustment coefficient comprises: adjusting an audio amplitude of each frame of the audio frame according to the amplitude adjustment coefficient.
  • the data representing the amplitude information in the obtained audio data may be modified by parsing the sound source file containing the audio information, and then the package is modified after the modification.
  • the audio amplitude is correspondingly modified when buffered to the corresponding sound source file and played; or, in the decoding process of the sound source playing, the amplitude data is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by The corresponding adjustment factor is used to change the amplitude and thus adjust the volume of the sound source.
  • the implementation of the embodiment provides that the volume of the sound source is adjusted without changing the original volume of the terminal device system, and the adjustment process may reduce the playback load before the sound source file does not enter the buffer, or It adjusts the content of the sound source in the buffer to improve the adjustment efficiency, thereby improving the volume adjustment efficiency and reducing the power consumption of the terminal device.
  • FIG. 2 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the method before the assigning different amplitude adjustment coefficients according to the amplitudes of the amplitudes of the audio amplitudes of different amplitudes, the method further includes: determining that the audio amplitude corresponding to the audio information meets the preset frequency Allocating different amplitude adjustment coefficients according to amplitude amplitudes in the audio amplitudes for different amplitude magnitudes of audio amplitudes: assigning a first amplitude adjustment coefficient to the audio amplitudes satisfying the preset frequencies;
  • the audio amplitude of the preset frequency is the first amplitude adjustment coefficient that is allocated to the audio amplitude whose amplitude is greater than the first preset threshold or less than the third preset threshold, and the amplitude is less than or equal to the first preset threshold and greater than
  • the audio amplitude of the second preset threshold is assigned a second amplitude adjustment coefficient, and the third amplitude adjustment coefficient
  • Step 310 Acquire audio information of the sound source when detecting that the terminal device performs sound source playing.
  • Step 320 Determine an audio amplitude corresponding to the audio information according to the audio information.
  • Step 330 Acquire volume information of the terminal device, and determine three amplitude adjustment coefficients corresponding to the volume information according to the volume information.
  • the determined three amplitude adjustment coefficients are a first amplitude adjustment coefficient, a second amplitude adjustment coefficient, and a third amplitude adjustment coefficient, respectively.
  • the first amplitude adjustment coefficient is smaller than the second amplitude adjustment coefficient
  • the second amplitude adjustment coefficient is smaller than the third amplitude adjustment coefficient.
  • the first amplitude adjustment coefficient is 1 (ie, no adjustment is made)
  • the second amplitude adjustment coefficient is 1.4
  • the third amplitude adjustment coefficient is 1.8.
  • Step 340 Determine an audio amplitude that satisfies a preset frequency in the audio information, and allocate a first amplitude adjustment coefficient to the audio amplitude that satisfies the preset frequency.
  • the first amplitude adjustment factor may be 1, ie, the magnitude of the audio amplitude is not adjusted.
  • the preset frequency may be 300 Hz (hz), that is, when an audio amplitude of a fixed frequency of 300 hz is detected in the audio information, the audio amplitude is used as noise, and the amplitude of the audio is not amplitude-adjusted to Avoid the problem of synchronously amplifying the noise, and at the same time, further improve the volume adjustment efficiency.
  • Step 350 For an audio amplitude that does not satisfy the preset frequency, assign the first amplitude adjustment coefficient to an audio amplitude whose amplitude is greater than a first preset threshold or less than a third preset threshold, and the amplitude is less than or equal to the first
  • the audio amplitude of the preset threshold and greater than the second preset threshold is assigned a second amplitude adjustment coefficient, and the third amplitude adjustment coefficient is allocated for the audio amplitude whose amplitude is less than or equal to the second preset threshold and greater than the third preset threshold.
  • the first preset threshold is greater than the second preset threshold, and the second preset threshold is greater than the third preset threshold.
  • the first preset threshold is -3db
  • the second preset threshold is -10db
  • the third preset threshold is -50db.
  • the volume adjustment efficiency is further improved.
  • FIG. 3 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the method before determining the amplitude adjustment coefficient corresponding to the volume information according to the volume information, the method further includes: determining an impedance value of the playing device of the terminal device; determining the volume according to the volume information
  • the amplitude adjustment coefficient corresponding to the information includes: determining an amplitude adjustment coefficient corresponding to the volume information according to the impedance value and the volume information.
  • the solution provided in this embodiment includes:
  • Step 301 Acquire audio information of the sound source when detecting that the terminal device performs sound source playing.
  • Step 302 Determine an audio amplitude corresponding to the audio information according to the audio information.
  • Step 303 Acquire volume information of the terminal device and determine an impedance value of the playback device of the terminal device.
  • the impedance value of the playback device (eg, speaker) installed in the terminal device may be detected by the power amplifier chip, or the impedance of the playback device may be physically detected.
  • Step 304 Determine an amplitude adjustment coefficient corresponding to the volume information according to the impedance value and the volume information.
  • the amplitude adjustment coefficient is determined together with the impedance values of the playback device of the terminal device determined in step 303.
  • the larger the impedance value the larger the amplitude adjustment coefficient determined by the impedance value and the volume information.
  • the corresponding amplitude adjustment coefficient determined by the impedance value and the volume information may be determined only by the volume information.
  • the amplitude adjustment coefficient is 1.2 times as the final determined amplitude adjustment coefficient.
  • the impedance value of the playback device is introduced as one of the parameters for determining the amplitude adjustment coefficient, thereby avoiding the increase of the playing device with the playing time, and the impedance value is getting higher and higher, resulting in normal
  • the volume of the playback process has an impact problem, so that the adjusted volume is better in accordance with the user's needs, further improving the volume adjustment effect.
  • Step 305 Adjust the audio amplitude according to the amplitude adjustment coefficient.
  • FIG. 4 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the method before determining the amplitude adjustment coefficient corresponding to the audio amplitude according to the volume information, the method further includes: determining a noise value of an environment in which the terminal device is currently located; the determining according to the volume information
  • the amplitude adjustment coefficient corresponding to the volume information includes: determining an amplitude adjustment coefficient corresponding to the volume information according to the noise value and the volume information.
  • the solution provided in this embodiment includes:
  • Step 401 Acquire audio information of the sound source when detecting that the terminal device performs sound source playback.
  • Step 402 Determine an audio amplitude corresponding to the audio information according to the audio information.
  • Step 403 Obtain volume information of the terminal device and determine a noise value of the environment in which the terminal device is currently located.
  • the noise of the current environment can be collected by a microphone installed by the terminal device to determine a corresponding noise value.
  • Step 404 Determine an amplitude adjustment coefficient corresponding to the volume information according to the noise value and the volume information.
  • the noise value of the terminal device in a quiet environment is y
  • the determined noise value is 1.5 y when the terminal device is in an outdoor or noisy environment
  • the corresponding amplitude adjustment determined by the noise value and the volume information is performed.
  • the coefficient may be 1.5 times the amplitude adjustment coefficient determined only by the volume information.
  • the amplitude adjustment coefficient may also be determined jointly based on the impedance value, the noise value, and the volume information.
  • Step 405 Adjust the audio amplitude according to the amplitude adjustment coefficient.
  • FIG. 5 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure.
  • the apparatus is configured to perform the volume adjustment method provided by the foregoing embodiment, and has a function module and a beneficial effect corresponding to the execution method.
  • the apparatus includes an acquisition module 10, an amplitude determination module 20, an adjustment coefficient determination module 30, and an adjustment module 40.
  • the obtaining module 10 is configured to acquire audio information of the sound source when detecting that the terminal device performs sound source playing.
  • the terminal device can play the sound source through the installed third-party application or the audio and video playback software that comes with the system.
  • the playing of the sound source mainly includes the steps of acquiring, decoding, and outputting the sound source file.
  • the obtained sound source file may be a multicast stream received through a network, or may be an audio and video file stored locally by the terminal device.
  • the sound source file is loaded into the memory buffer, and the sound source file loaded into the memory buffer is decoded. Before the decoding starts, if the sound source file contains video data at the same time, separation of the audio data and the video data is required, and the separated audio data is input to the audio decoder.
  • the audio decoder is mainly used for reading audio data in the memory buffer, obtaining a digital audio signal, and converting the digital audio signal into an analog audio signal, and the playing device of the terminal device performs the audio signal according to the analog audio signal. Audio Player.
  • the triggering event may be that the playing button displayed in the touch screen is detected to be pressed, or may be determined to determine that the terminal device performs sound source playing when the playing device of the terminal device detects that the sound starts playing.
  • the audio information of the sound source is acquired.
  • the digital audio signal decoded by the audio decoder may be sampled to determine audio information corresponding to the audio source.
  • the original file of the currently played sound source may also be acquired, and the audio information corresponding to the sound source is determined by parsing the original file.
  • the audio information of the audio source can be obtained through the android.media.MediaRecorder class or the android.media.AudioRecord class.
  • the amplitude determining module 20 is configured to determine an audio amplitude corresponding to the audio information according to the audio information.
  • 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. The louder the amplitude, the stronger the loudness.
  • the digital audio signal decoded by the audio decoder may be sampled to obtain amplitude information within a preset time period T.
  • the amplitude information may be composed of a plurality of amplitude values, and the amplitude curves of the sound sources played during the preset time period T may be correspondingly determined according to the obtained plurality of amplitude values.
  • the audio information of the audio source can be obtained by using the android.media.MediaRecorder class or the android.media.AudioRecord class to obtain the amplitude corresponding to the audio information.
  • the amplitude of the audio information may be obtained by parsing the original file.
  • the amplitude when detecting the sound source playing, the amplitude is determined once every preset time (eg, 1 s, 3 s, or 10 s), or the amplitude of each frame of the audio information of the audio information is determined in real time.
  • the acquiring module 10 is configured to: when detecting that the terminal device performs sound source playing, acquire audio frame information of the sound source; the amplitude determining module 20 is configured to: according to the audio frame information The audio amplitude of each frame of the audio frame information is determined.
  • the sound source file is parsed to obtain an audio frame sequence, and the corresponding audio amplitude is determined according to each frame of the audio frame sequence.
  • the adjustment coefficient determining module 30 is configured to acquire volume information of the terminal device, and determine an amplitude adjustment coefficient corresponding to the audio amplitude according to the volume information.
  • the adjustment module 40 is configured to adjust the audio amplitude according to the amplitude adjustment coefficient.
  • the acquired volume information may be one or more of current volume value information, volume increase information, and volume decrease information of the terminal device.
  • determining the amplitude adjustment coefficient corresponding to the volume information according to the volume information may be determined according to one or more of current volume value information, volume increase information, and volume decrease information in the volume information.
  • the terminal device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value.
  • the system can be obtained by the get volume method of the volume management component of the system.
  • the current volume value when the user adjusts the volume or decreases the adjustment through the adjustment button or the touch screen of the terminal device, it is determined whether the volume of the current terminal device is increased or decreased.
  • the amplitude adjustment factor corresponding to the volume information is determined based on the current volume value.
  • the amplitude adjustment coefficient corresponding to the volume information is determined according to the current volume increase information or volume reduction information.
  • the amplitude adjustment factor may also be determined in conjunction with the volume increase information or volume reduction information in conjunction with the volume value of the current terminal to effect adjustment of the audio amplitude.
  • the adjustment coefficient determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the volume information by determining at least two amplitude adjustment coefficients corresponding to the volume information according to the volume information;
  • the module 40 is configured to assign different amplitude adjustment coefficients to the audio amplitudes of different amplitude sizes according to the amplitude of the audio amplitude, and adjust the audio amplitude of the corresponding amplitude according to the allocated amplitude adjustment coefficients.
  • two amplitude adjustment coefficients corresponding to the volume information such as 1.5 and 2 are determined according to the volume information, different amplitude adjustments are assigned to the audio amplitudes of different amplitudes according to the magnitude of the audio amplitude to be adjusted. coefficient.
  • the audio amplitude of the amplitude of the audio amplitude when the amplitude of the amplitude of the audio amplitude is less than -3 db and greater than -10 db, the audio amplitude belongs to a high amplitude region, and the amplitude of the audio amplitude is assigned an amplitude adjustment coefficient of 1.5, when the amplitude of the audio amplitude is less than -10 db and When it is larger than -50 db, the audio amplitude belongs to the medium amplitude region, and the amplitude adjustment coefficient is 2 for the audio amplitude to significantly increase the amplitude of the medium amplitude region.
  • the determined amplitude adjustment coefficient is reasonably allocated according to different amplitudes to obtain a suitable output volume, so that the user's sense of hearing is more improved, and the volume adjustment efficiency is improved.
  • the adjustment module 40 is configured to be based on the amplitude of the audio amplitude according to the following manner. Audio amplitudes of different amplitudes are assigned different amplitude adjustment coefficients: a first amplitude adjustment coefficient is allocated for an audio amplitude whose amplitude is larger than a first preset threshold or smaller than a third preset threshold, and the amplitude is less than or equal to a first preset threshold.
  • the second amplitude adjustment coefficient is allocated to the audio amplitude that is greater than the second preset threshold
  • the third amplitude adjustment coefficient is allocated to the audio amplitude whose amplitude is less than or equal to the second preset threshold and greater than the third preset threshold.
  • An amplitude adjustment coefficient is smaller than the second amplitude adjustment coefficient
  • the second amplitude adjustment coefficient is smaller than the third amplitude adjustment coefficient.
  • the first preset threshold may be -3db
  • the second preset threshold may be -10db
  • the third preset threshold may be -50db
  • the first amplitude adjustment coefficient is 1 (ie, no The adjustment is made)
  • the second amplitude adjustment coefficient is 1.4
  • the third amplitude adjustment coefficient is 1.8.
  • amplitude adjustment is not performed for an audio amplitude having an excessively large amplitude (for example, greater than -3 db) or an amplitude being too small (for example, less than -50 db), thereby avoiding breakage caused by excessive amplitude adjustment.
  • the problem of noise enhancement caused by the increase of too small noise is avoided, and the volume adjustment method is further optimized.
  • the adjustment module 40 is configured to adjust an audio amplitude of each frame of the audio frame according to the amplitude adjustment coefficient.
  • the data representing the amplitude information in the obtained audio data may be modified by parsing the sound source file containing the audio information, and then the package is modified after the modification.
  • the audio amplitude is correspondingly modified when buffered to the corresponding sound source file and played; or, in the decoding process of the sound source playing, the amplitude data is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by The corresponding adjustment factor is used to change the amplitude and thus adjust the volume of the sound source.
  • the volume of the sound source is adjusted without changing the original volume of the terminal device system, and the adjustment process may reduce the playback load before the sound source file does not enter the buffer, or may be in the buffer.
  • the sound source content is adjusted to improve the adjustment efficiency, thereby improving the volume adjustment efficiency and reducing the power consumption of the terminal device.
  • the technical solution provided by the embodiment when detecting that the terminal device performs sound source playing, acquires audio information of the sound source; determines an audio amplitude corresponding to the audio information according to the audio information; and acquires volume information of the terminal device, according to The volume information determines an amplitude adjustment coefficient corresponding to the volume information; and the audio amplitude is adjusted according to the amplitude adjustment coefficient.
  • the solution improves the volume adjustment efficiency and reduces the power consumption of the terminal device.
  • the adjustment factor determination module 30 is configured to:
  • the amplitude adjustment coefficient corresponding to the volume information is determined according to the current volume value information, the volume increase information, or the volume decrease information of the terminal device.
  • the adjustment factor determination module 30 is configured to:
  • the adjustment module 40 is configured to:
  • Different amplitude adjustment coefficients are assigned to the audio amplitudes of different amplitude magnitudes according to the magnitude of the amplitude in the audio amplitude, and the allocated amplitude adjustment coefficients adjust the audio amplitudes corresponding to the amplitude magnitudes.
  • the adjustment module 40 is configured to be different according to the amplitude of the audio amplitude according to the following manner.
  • the amplitude of the audio amplitude is assigned different amplitude adjustment factors:
  • the amplitude determining module 20 is further configured to:
  • the audio amplitudes corresponding to the preset frequencies are determined among the audio amplitudes corresponding to the audio information.
  • the adjusting module 40 is configured to allocate different amplitude adjustment coefficients according to amplitude amplitudes in the audio amplitudes to different amplitude magnitudes by assigning a first amplitude adjustment coefficient to the audio amplitude satisfying the preset frequency. And for the audio amplitude that does not satisfy the preset frequency, the first amplitude adjustment coefficient is allocated for an audio amplitude whose amplitude is greater than a first preset threshold or less than a third preset threshold, and the amplitude is less than or equal to the first pre-
  • the second amplitude adjustment coefficient is allocated to the audio amplitude of the threshold and greater than the second preset threshold, and the third amplitude adjustment coefficient is allocated to the audio amplitude whose amplitude is less than or equal to the second preset threshold and greater than the third preset threshold;
  • the first preset threshold is greater than the second preset threshold, the second preset threshold is greater than the third preset threshold, and the first amplitude adjustment coefficient is smaller than the second amplitude adjustment coefficient,
  • the adjustment coefficient determining module 30 is further configured to determine an impedance value of the playing device of the terminal device before determining the amplitude adjusting coefficient corresponding to the volume information according to the volume information;
  • the adjustment coefficient determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the volume information by determining an amplitude adjustment coefficient corresponding to the volume information according to the impedance value and the volume information.
  • the adjustment coefficient determining module 30 is further configured to: before determining the amplitude adjustment coefficient corresponding to the volume information according to the volume information, determining a noise value of an environment in which the terminal device is currently located; The adjustment coefficient determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the volume information by determining an amplitude adjustment coefficient corresponding to the volume information according to the noise value and the volume information.
  • the volume information includes: current volume value information of the terminal device and one of the following two information: volume increase information and volume decrease information.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device 200 includes: a memory 201, a central processing unit (CPU) 202, a peripheral interface 203, and a radio frequency. (Radio Frequency, RF) circuit 205, audio circuit 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, these components pass One or more communication buses or signal lines 207 are in communication.
  • RF Radio Frequency
  • the terminal device 200 illustrated in FIG. 6 is merely an example of a terminal device, and the terminal device 200 may have more or fewer components than those illustrated in FIG. 6, and two or more components may be combined, or Can have different component configurations.
  • the various components shown in FIG. 6 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 terminal device 200 provided in this embodiment is described below.
  • the terminal device 200 takes a smart phone as an example.
  • the memory 201 can be accessed by the CPU 202 and the peripheral interface 203, etc., and the memory 201 can include a high speed random access memory, and can also include a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 203 which can connect the input and output peripherals of the device to CPU 202 and memory 201.
  • the I/O subsystem 209 which can connect input peripherals and output peripherals on the device, such as touch screen 212 and other input/control devices 210, to peripheral interface 203.
  • the I/O subsystem 209 can include a display controller 2091 and one or more input controllers 2092 that are configured to control other input/control devices 210.
  • one or more input controllers 2092 receive electrical signals from other input/control devices 210 or transmit electrical signals to other input/control devices 210, and other input/control devices 210 may include physical buttons (pressing buttons or rocker buttons, etc.) ), dial, slide switch, joystick or click on the wheel.
  • the input controller 2092 can be coupled to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 212 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • Display controller 2091 in I/O subsystem 209 receives electrical signals from touch screen 212 or transmits electrical signals to touch screen 212.
  • the touch screen 212 detects the contact on the touch screen 212, and the display controller 2091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 212, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 212 may be Run the game's icons or icons that are networked to the appropriate network.
  • the terminal device 200 may further include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the RF circuit 205 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages or emails.
  • the RF circuit 205 receives and transmits an RF signal, also referred to as an electromagnetic signal, and the RF circuit 205 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate.
  • the RF circuit 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, Coder-CODEter (CODEC) chipset and Subscriber Identity Module (SIM) and so on.
  • CDDEC Coder-CODEter
  • SIM Subscriber Identity Module
  • the audio circuit 206 is arranged to receive audio data from the peripheral interface 203, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 211.
  • the speaker 211 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 205 to sound and play the sound to the user.
  • the power management chip 208 is configured to provide power and power management for the hardware connected to the CPU 202, the I/O subsystem, and the peripheral interface.
  • the volume adjustment device and the terminal device of the terminal device provided in the foregoing embodiments may perform the volume adjustment method of the terminal device provided by any embodiment of the present disclosure, and have corresponding function modules and beneficial effects for performing the method.
  • the volume adjustment method of the terminal device provided by any embodiment of the present disclosure may perform the volume adjustment method of the terminal device provided by any embodiment of the present disclosure, and have corresponding function modules and beneficial effects for performing the method.
  • Embodiments of the present disclosure also provide a storage medium including terminal device executable instructions for performing a volume adjustment method when executed by a terminal device processor, the method comprising:
  • the determining, according to the volume information, an amplitude adjustment coefficient corresponding to the volume information including:
  • determining the amplitude adjustment coefficient corresponding to the volume information according to the volume information comprises: determining at least two amplitude adjustment coefficients corresponding to the volume information according to the volume information.
  • the adjusting the audio amplitude according to the amplitude adjustment coefficient comprises:
  • Different amplitude adjustment coefficients are assigned to the amplitudes of the amplitudes of the audio amplitudes according to the amplitudes of the amplitudes, and the audio amplitudes of the corresponding amplitudes are adjusted according to the allocated amplitude adjustment coefficients.
  • the magnitude of the amplitude according to the audio amplitude is an audio amplitude of the different amplitude magnitude.
  • Assigning different amplitude adjustment factors includes:
  • the method further includes: determining an audio amplitude of the audio information that satisfies a preset frequency; and assigning different amplitude adjustment coefficients to the audio amplitudes of different amplitudes according to the amplitude of the audio amplitudes, including : assigning a first amplitude adjustment coefficient to the audio amplitude that satisfies the preset frequency; and for an audio amplitude that does not satisfy the preset frequency, the audio amplitude distribution that is greater than the first preset threshold or smaller than the third preset threshold
  • the first amplitude adjustment coefficient is an audio amplitude distribution second amplitude adjustment coefficient whose amplitude magnitude is less than or equal to the first preset threshold and greater than the second preset threshold, and the amplitude
  • the third amplitude adjustment coefficient is allocated to the audio amplitude of the three preset thresholds; wherein the first preset threshold is greater than the a second preset threshold, the second preset threshold is greater than the third preset threshold, the first amplitude adjustment coefficient is smaller than the second amplitude adjustment coefficient, and the second amplitude adjustment coefficient is smaller than the third amplitude Adjustment coefficient. .
  • the method before determining the amplitude adjustment coefficient corresponding to the volume information according to the volume information, the method further includes: determining an impedance value of the playback device of the terminal device; determining, according to the volume information
  • the amplitude adjustment coefficient corresponding to the volume information includes: determining an amplitude adjustment coefficient corresponding to the volume information according to the impedance value and the volume information.
  • the method before determining the amplitude adjustment coefficient corresponding to the volume information according to the volume information, the method further includes: determining a noise value of an environment in which the terminal device is currently located; and determining, according to the volume information
  • the amplitude adjustment coefficient corresponding to the volume information includes: determining an amplitude adjustment coefficient corresponding to the volume information according to the noise value and the volume information.
  • the volume information includes: current volume value information of the terminal device and one of the following two information: volume increase information and volume decrease information.
  • the acquiring the audio information of the sound source includes: acquiring audio frame information of the sound source; and determining, according to the audio information, an audio amplitude corresponding to the audio information, including: according to the audio The frame information determines an audio amplitude of each frame of the audio frame information; the adjusting the audio amplitude according to the amplitude adjustment coefficient, comprising: performing audio frames for each frame according to the amplitude adjustment coefficient The audio amplitude is adjusted.
  • Storage medium any one or more types of memory devices or storage devices.
  • the term “storage medium” includes: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as dynamic random access. Memory (Dynamic Random Access Memory, DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Extended Data Output Random Access Memory (EDO RAM), Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory components, etc. .
  • the storage medium may also include other types of memory or a combination thereof.
  • 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, the second computer system being coupled to the first computer system via a network, such as the Internet.
  • the second computer system can provide program instructions to the first computer for execution.
  • the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
  • a storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
  • a storage medium containing computer executable instructions, the computer executable instructions are not limited to the volume adjustment method as described above, and may also perform related operations in the volume adjustment method provided by any embodiment of the present disclosure. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

La présente invention concerne un appareil et un procédé de réglage de volume, un dispositif de terminal, et un support d'informations. Le procédé comprend les étapes consistant : lors de la détection du fait qu'un dispositif terminal est en train de lire une source sonore, à obtenir des informations audio de la source sonore; conformément aux informations audio, à déterminer une amplitude audio correspondant aux informations audio; à obtenir des informations de volume du dispositif terminal, et conformément aux informations de volume, à déterminer un coefficient de réglage d'amplitude correspondant aux informations de volume; à régler l'amplitude audio conformément au coefficient de réglage d'amplitude.
PCT/CN2018/098651 2017-08-18 2018-08-03 Appareil et procédé de réglage de volume, dispositif terminal, et support d'informations WO2019033941A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710711385.6 2017-08-18
CN201710711385.6A CN107479852B (zh) 2017-08-18 2017-08-18 音量调节方法、装置、终端设备及存储介质

Publications (1)

Publication Number Publication Date
WO2019033941A1 true WO2019033941A1 (fr) 2019-02-21

Family

ID=60601622

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/098651 WO2019033941A1 (fr) 2017-08-18 2018-08-03 Appareil et procédé de réglage de volume, dispositif terminal, et support d'informations

Country Status (2)

Country Link
CN (1) CN107479852B (fr)
WO (1) WO2019033941A1 (fr)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479852B (zh) * 2017-08-18 2019-08-30 Oppo广东移动通信有限公司 音量调节方法、装置、终端设备及存储介质
CN108829370B (zh) * 2018-05-31 2020-01-21 百度在线网络技术(北京)有限公司 有声资源播放方法、装置、计算机设备及存储介质
CN113824835A (zh) * 2021-10-25 2021-12-21 Oppo广东移动通信有限公司 音量控制方法及装置、电子设备及存储介质
CN117687595B (zh) * 2024-01-30 2024-05-28 知鱼智联科技股份有限公司 一种基于物联网的音量调整方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770626A (zh) * 2004-11-06 2006-05-10 腾讯科技(深圳)有限公司 一种音量限制方法和系统
US20080228473A1 (en) * 2007-02-09 2008-09-18 Ari Associates, Inc. Method and apparatus for adjusting hearing intelligibility in mobile phones
CN101729034A (zh) * 2008-10-31 2010-06-09 美商富迪科技股份有限公司 语音处理装置、动态范围控制模块及语音振幅调整的方法
CN101923860A (zh) * 2009-06-11 2010-12-22 英华达(南京)科技有限公司 音讯柔化系统、装置与方法
CN104410379A (zh) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 一种音量调节方法
US20150098589A1 (en) * 2013-10-08 2015-04-09 Qnx Software Systems Limited System and method for dynamically mixing audio signals
CN107479852A (zh) * 2017-08-18 2017-12-15 广东欧珀移动通信有限公司 音量调节方法、装置、终端设备及存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007228411A (ja) * 2006-02-24 2007-09-06 Funai Electric Co Ltd 音響機器及びテレビジョン受像機
CN103746668A (zh) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 音量控制方法及系统
CN105185396B (zh) * 2015-07-28 2018-03-20 小米科技有限责任公司 一种播放音频信号的方法和装置
CN106024007B (zh) * 2016-06-21 2019-10-15 维沃移动通信有限公司 一种声音处理方法及移动终端
CN106453940B (zh) * 2016-11-07 2019-10-25 武汉斗鱼网络科技有限公司 一种调整音量的方法及装置
CN106775563A (zh) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 音量调节的方法及装置
CN106878866B (zh) * 2017-03-03 2020-01-10 Oppo广东移动通信有限公司 音频信号处理方法、装置及终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770626A (zh) * 2004-11-06 2006-05-10 腾讯科技(深圳)有限公司 一种音量限制方法和系统
US20080228473A1 (en) * 2007-02-09 2008-09-18 Ari Associates, Inc. Method and apparatus for adjusting hearing intelligibility in mobile phones
CN101729034A (zh) * 2008-10-31 2010-06-09 美商富迪科技股份有限公司 语音处理装置、动态范围控制模块及语音振幅调整的方法
CN101923860A (zh) * 2009-06-11 2010-12-22 英华达(南京)科技有限公司 音讯柔化系统、装置与方法
US20150098589A1 (en) * 2013-10-08 2015-04-09 Qnx Software Systems Limited System and method for dynamically mixing audio signals
CN104410379A (zh) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 一种音量调节方法
CN107479852A (zh) * 2017-08-18 2017-12-15 广东欧珀移动通信有限公司 音量调节方法、装置、终端设备及存储介质

Also Published As

Publication number Publication date
CN107479852B (zh) 2019-08-30
CN107479852A (zh) 2017-12-15

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
US10440464B2 (en) Method and apparatus for adjusting volume, terminal device and storage medium
US11201598B2 (en) Volume adjusting method and mobile terminal
CN110799936B (zh) 音量调节方法、装置、终端设备及存储介质
CN107465824B (zh) 音量调节方法、装置、移动终端及存储介质
CN107526570B (zh) 音量调节方法、装置、终端设备及存储介质
CN107566618B (zh) 音量调节方法、装置、终端设备及存储介质
WO2019033941A1 (fr) Appareil et procédé de réglage de volume, dispositif terminal, et support d'informations
WO2019033942A1 (fr) Procédé et appareil de réglage de volume, dispositif terminal et support d'informations
WO2017215657A1 (fr) Procédé de traitement d'effet sonore et dispositif terminal
US10027299B2 (en) Volume control
CN107483734B (zh) 音量调节方法、装置、终端设备及存储介质
CN111508510A (zh) 音频处理方法、装置、存储介质及电子设备
CN107506168B (zh) 音量调节方法、装置、终端设备及存储介质
WO2019033939A1 (fr) Procédé et appareil de réglage de volume, dispositif terminal et support d'informations
CN106293607B (zh) 自动切换音频输出模式的方法及系统
CN107506170A (zh) 音量调节方法、装置、终端设备及存储介质
WO2019033439A1 (fr) Procédé de réglage de volume, appareil, support d'informations et terminal mobile
CN110753919B (zh) 音量调节方法、装置、存储介质及移动终端
CN107506169A (zh) 音量调节方法、装置、终端设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18846860

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18846860

Country of ref document: EP

Kind code of ref document: A1