WO2019033441A1 - 音量调节方法、装置、移动终端及存储介质 - Google Patents

音量调节方法、装置、移动终端及存储介质 Download PDF

Info

Publication number
WO2019033441A1
WO2019033441A1 PCT/CN2017/098177 CN2017098177W WO2019033441A1 WO 2019033441 A1 WO2019033441 A1 WO 2019033441A1 CN 2017098177 W CN2017098177 W CN 2017098177W WO 2019033441 A1 WO2019033441 A1 WO 2019033441A1
Authority
WO
WIPO (PCT)
Prior art keywords
amplitude
audio
adjustment
volume
terminal device
Prior art date
Application number
PCT/CN2017/098177
Other languages
English (en)
French (fr)
Inventor
严锋贵
许钊铵
郑志勇
甘高亭
杨海
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to CN201780093964.7A priority Critical patent/CN111033614B/zh
Priority to PCT/CN2017/098177 priority patent/WO2019033441A1/zh
Priority to EP17921634.6A priority patent/EP3671747A4/en
Publication of WO2019033441A1 publication Critical patent/WO2019033441A1/zh
Priority to US16/790,103 priority patent/US11201598B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/22Automatic control in amplifiers having discharge tubes
    • H03G3/24Control dependent upon ambient noise level or sound level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/02Manually-operated control
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/3005Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/3089Control of digital or coded signals
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/32Automatic control in amplifiers having semiconductor devices the control being dependent upon ambient noise level or sound level
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G9/00Combinations of two or more types of control, e.g. gain control and tone control
    • H03G9/02Combinations of two or more types of control, e.g. gain control and tone control in untuned amplifiers
    • H03G9/12Combinations of two or more types of control, e.g. gain control and tone control in untuned amplifiers having semiconductor devices
    • H03G9/14Combinations of two or more types of control, e.g. gain control and tone control in untuned amplifiers having semiconductor devices for gain control and tone control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Definitions

  • Embodiments of the present invention relate to computer technologies, and in particular, to a volume adjustment method, apparatus, mobile terminal, and storage medium.
  • mobile terminals With the increasing popularity of mobile terminals, more and more users use mobile terminals to perform various functions to meet their own needs, such as reading texts, watching videos, listening to music, playing games, and the like using mobile terminals.
  • the invention provides a volume adjustment method, device, mobile terminal and storage medium, which improves the volume adjustment efficiency and reduces the power consumption of the mobile terminal.
  • an embodiment of the present invention provides a volume adjustment method, including:
  • an embodiment of the present invention further provides a volume adjustment apparatus, including:
  • An acquiring module configured to acquire first audio information corresponding to the sound source when detecting that the terminal device performs sound source playing
  • An amplitude determining module configured to determine a first audio amplitude of the first audio information, and if the first audio amplitude meets a preset query condition, determine a second audio amplitude of the second audio information, the second audio information Playing after the first audio information;
  • An adjustment information determining module configured to determine corresponding adjustment information if the second audio amplitude satisfies a preset adjustment condition
  • an adjustment module configured to adjust a volume of the terminal device according to the adjustment information.
  • an embodiment of the present invention further provides a mobile terminal, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program, such as The volume adjustment method described in the embodiment of the invention.
  • an embodiment of the present invention further provides a storage medium including executable instructions of a mobile terminal, where the executable instructions of the mobile terminal, when executed by a mobile terminal processor, are used to perform volume adjustment according to an embodiment of the present invention. method.
  • FIG. 1 is a flowchart of a volume adjustment method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an amplitude curve corresponding to a first audio amplitude and a second audio amplitude in a sound source according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another volume adjustment method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another volume adjustment method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of another volume adjustment method according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for adjusting a volume according to an embodiment of the present invention.
  • the present embodiment is applicable to a method for adjusting a volume when a terminal device plays a sound source.
  • the method may be performed by a terminal device provided by an embodiment of the present invention.
  • the volume adjustment device of the terminal device can be implemented by using software and/or hardware. As shown in FIG. 1 , the specific solution provided by this embodiment is as follows:
  • Step S101 When detecting that the terminal device performs sound source playing, acquire the first audio information corresponding to the sound source.
  • 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. Among them, it 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; after the sound source file is obtained, it is loaded into a memory buffer; The audio source file of the memory buffer is decoded. Before the decoding starts, if the audio file contains video data at the same time, the audio data and the video data need to be separated, and the separated audio data is input to the audio decoder, wherein the audio decoding is performed.
  • the device 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 audio playback according to the analog audio signal.
  • the sound source playing event it is determined that the terminal device starts to play the sound source, wherein the trigger event may be that the detected play button displayed in the touch screen is pressed, or the terminal device may be detected.
  • a playback device such as a speaker starts playing a sound, it is determined that the terminal device performs sound source playback.
  • the first audio information of the sound source is acquired.
  • the digital audio signal decoded by the audio decoder may be sampled to determine the first audio information corresponding to the audio source.
  • the original file of the currently played source may also be acquired, and the first audio information corresponding to the source is determined by parsing the original file.
  • the first audio information corresponding to the sound source can be obtained through the android.media.MediaRecorder class or the android.media.AudioRecord class.
  • the first audio information may be all audio information corresponding to a sound source.
  • the audio information corresponding to the song may be used as the first audio information.
  • the corresponding subsequent second audio information is audio information corresponding to another audio source (such as a movie, chat voice).
  • the first audio information may also be one of a plurality of audio information included in a sound source system, and may be the currently played audio information as the first audio information.
  • the user may The voice chat interaction with the contact, that is, the voice information can be sent intermittently and at different times, and each intermittent voice information can be recognized as an audio information.
  • Step S102 Determine a first audio amplitude of the first audio information, and if the first audio amplitude meets a preset query condition, determine a second audio amplitude of the second audio information.
  • the second audio information is content played after the first audio information.
  • Amplitude refers to the maximum distance from the original position during the vibration of the object, and the loudness of the sound heard by the human ear. It is related to the amplitude of the sound source. The louder the amplitude, the stronger the loudness.
  • the digital audio signal obtained by decoding the obtained audio information by the audio decoder is sampled to obtain amplitude information in a preset time period T, wherein the amplitude information may be composed of multiple amplitude values. And determining, according to the obtained plurality of amplitude values, an amplitude curve of the sound source played during the preset time period T, that is, determining a first audio amplitude corresponding to the first audio information.
  • the acquired first audio information may be subjected to amplitude extraction by using an android.media.MediaRecorder class or an android.media.AudioRecord class to obtain a corresponding first audio amplitude.
  • the audio information acquired in step S101 is the original file corresponding to the sound source, the original file may be parsed to obtain a corresponding first audio amplitude.
  • determining the first audio amplitude every preset time such as 1s, 3s or 10s
  • determining the amplitude of each frame of the audio information in real time to obtain the first An audio amplitude.
  • the sound source file is parsed to obtain a first audio frame sequence, and the corresponding first audio amplitude is determined according to each frame of the first audio frame sequence.
  • the manner of determining the second audio amplitude refers to the determining manner of the first audio amplitude, and details are not described herein again.
  • the first audio amplitude satisfies a preset query condition
  • the amplitude adjustment coefficient of the first audio amplitude is smaller than a preset adjustment coefficient, or the size of the first audio amplitude is greater than a first preset amplitude Threshold.
  • the preset adjustment coefficient may be 1.2 or 0.8
  • the first preset amplitude threshold may be -5 db.
  • the amplitude adjustment coefficient is used to adjust the amplitude of the audio.
  • the amplitude adjustment coefficient can be allocated to increase the amplitude, thereby increasing the volume, and correspondingly, when the audio amplitude is large, An amplitude adjustment factor of less than 1 is assigned and the audio amplitude is reduced to reduce the volume during playback.
  • Step S103 If the second audio amplitude meets the preset adjustment condition, determine corresponding adjustment information, and adjust the volume of the terminal device according to the adjustment information.
  • the second audio amplitude satisfies the preset adjustment condition, and the size of the second audio amplitude is smaller than the second preset amplitude threshold.
  • the second preset amplitude threshold may be -20 db.
  • the magnitude of the second audio amplitude being less than the second predetermined amplitude threshold comprises: an amplitude peak of the second audio amplitude being less than a second predetermined amplitude threshold, or an average amplitude of the second audio amplitude The value is less than the second predetermined amplitude threshold.
  • FIG. 2 is a sound provided by an embodiment of the present invention.
  • the amplitude adjustment coefficient corresponding to the larger amplitude portion of the sound source is smaller, and the amplitude adjustment coefficient corresponding to the smaller amplitude portion is larger, for example, the amplitude adjustment coefficient corresponding to the first audio amplitude is 1, and the amplitude adjustment corresponding to the second audio amplitude The coefficient is 2).
  • the second audio amplitude is adjusted due to the previous first audio amplitude and the smaller amplitude adjustment coefficient is allocated, and the adjustment coefficient corresponding to the second audio amplitude cannot be adjusted. effect.
  • the corresponding adjustment information is determined, and the volume of the terminal device is adjusted according to the adjustment information, wherein the system volume of the terminal device may be adjusted, or the second audio amplitude may be adjusted to improve The volume at which the second audio information is output.
  • the amplitude of the second audio information or the system volume of the terminal is adjusted to improve the output of the second audio information.
  • the volume avoids the problem that the volume of the second audio information is small, the user cannot hear the sound content, and the user does not need to manually adjust the volume, thereby improving the volume adjustment efficiency, and the sense of hearing is more in line with the user's needs.
  • FIG. 3 is a flowchart of another volume adjustment method according to an embodiment of the present invention.
  • the determining the corresponding adjustment information, and adjusting the volume of the terminal device according to the adjustment information includes: determining a corresponding The amplitude adjustment information adjusts the second audio amplitude according to the amplitude adjustment information.
  • the technical solution is as follows:
  • Step S201 When detecting that the terminal device performs sound source playing, acquire the first audio information corresponding to the sound source.
  • Step S202 Determine a first audio amplitude of the first audio information, and if the first audio amplitude meets a preset query condition, determine a second audio amplitude of the second audio information.
  • Step S203 If the second audio amplitude meets the preset adjustment condition, determine corresponding amplitude adjustment information, and adjust the second audio amplitude according to the amplitude adjustment information.
  • the determining the corresponding amplitude adjustment information comprises: determining corresponding amplitude adjustment information according to the magnitude of the second audio amplitude and the amplitude adjustment mapping table.
  • the relationship between the magnitude of the second audio amplitude and the corresponding amplitude adjustment coefficient in an amplitude adjustment map is as follows:
  • the process of adjusting the second audio amplitude by the amplitude adjustment coefficient may be: modifying the data representing the amplitude information in the obtained audio information by parsing the related sound source file, and modifying the data. Encapsulating, the second audio amplitude is correspondingly increased or decreased when buffered to the corresponding sound source file and being played; or, in the decoding process of the second audio information playing, by performing the second audio information
  • the decoded digital audio signal is analyzed to obtain a second audio amplitude, and the amplitude data corresponding to the second audio amplitude is multiplied by a corresponding amplitude adjustment coefficient to change the amplitude, and then the volume thereof is adjusted.
  • 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 second audio information file does not enter the buffer, or may be for buffering.
  • the second audio information content in the zone is adjusted to improve the adjustment efficiency.
  • FIG. 4 is a flowchart of another volume adjustment method according to an embodiment of the present invention.
  • the determining the corresponding adjustment information, and adjusting the volume of the terminal device according to the adjustment information includes: determining a corresponding The volume adjustment information adjusts the current system volume of the terminal device according to the volume adjustment information.
  • the technical solution is as follows:
  • Step S301 When detecting that the terminal device performs sound source playing, acquire the first audio information corresponding to the sound source.
  • Step S302 Determine a first audio amplitude of the first audio information, and if the first audio amplitude meets a preset query condition, determine a second audio amplitude of the second audio information.
  • Step S303 If the second audio amplitude meets the preset adjustment condition, determine corresponding volume adjustment information, and adjust the current system volume of the terminal device according to the volume adjustment information.
  • the determining the corresponding volume adjustment information, and adjusting the current system volume of the terminal device according to the volume adjustment information comprises: determining a corresponding target volume value or a volume change value according to the target volume The value or volume change value adjusts the current system volume of the terminal device.
  • the volume adjustment information is a corresponding target volume value.
  • Exemplary terminal The device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value.
  • the target volume value corresponding to the volume increase information may be 14 or 15, in the process of adjusting the volume of the terminal device system.
  • the volume value is increased to 14 or 15, optionally, before the volume adjustment is performed using the target value of the volume, the method further includes: determining a playing time of the second audio information, when the playing time is greater than the preset time For example, if 30s, the system volume of the terminal device is adjusted according to the target volume value in the volume adjustment information, thereby further improving the volume adjustment efficiency and reducing the power consumption of the terminal device.
  • the volume adjustment information is a corresponding volume change value.
  • the terminal device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value, and the volume change value is 3, for example, the current terminal device has a volume value of 10, when needed to increase When the volume information is added, the sound volume is increased by 3 based on the current volume value.
  • the method before the volume adjustment is performed by using the volume change value, the method further includes: determining a play time of the second audio information, and when the play time is greater than a preset time, for example, 30s is used according to the volume adjustment information.
  • the volume change value adjusts the current volume value of the terminal device, thereby further improving the volume adjustment efficiency and reducing the power consumption of the terminal device.
  • FIG. 5 is a flowchart of another volume adjustment method according to an embodiment of the present invention.
  • the method further includes: determining the terminal device. Adjusting the impedance of the device according to the impedance value; and adjusting the volume of the terminal device according to the adjustment information, according to the adjustment information The volume of the terminal device is adjusted.
  • Step S401 When detecting that the terminal device performs sound source playing, acquiring first audio information corresponding to the sound source.
  • Step S402 Determine a first audio amplitude of the first audio information, and if the first audio amplitude meets a preset query condition, determine a second audio amplitude of the second audio information.
  • Step S403 If the second audio amplitude satisfies a preset adjustment condition, determine corresponding volume adjustment information.
  • Step S404 Determine an impedance value of the playback device of the terminal device, adjust the adjustment information according to the impedance value, and adjust a volume of the terminal device according to the adjusted adjustment information.
  • 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.
  • the greater the impedance value the greater the adjustment to the volume adjustment information.
  • the nominal impedance value of the playback device is x
  • the impedance value obtained by the detection is 1.2 ⁇
  • the corresponding amplitude adjustment information and the target volume in the adjustment information are correspondingly determined based on the determined adjustment information.
  • the value or volume change value is multiplied by 1.2 as the adjusted adjustment information.
  • the impedance value of the playback device is introduced as one of the parameters for determining the volume adjustment information, thereby avoiding the increase of the impedance value of the playback device with the playing time and thus the normal playback process.
  • the volume level in the middle of the problem affects, so that the adjusted volume is better in line with the user's needs, further improving the volume adjustment effect.
  • FIG. 6 is a flowchart of another volume adjustment method according to an embodiment of the present invention.
  • the method further includes: determining the terminal device. Adjusting the adjustment information according to the noise value; and correspondingly, adjusting the volume of the terminal device according to the adjustment information includes: adjusting the adjusted information according to the adjustment Adjusting the volume of the terminal device.
  • Step S501 When detecting that the terminal device performs sound source playing, acquiring first audio information corresponding to the sound source.
  • Step S502 Determine a first audio amplitude of the first audio information, and if the first audio amplitude meets a preset query condition, determine a second audio amplitude of the second audio information.
  • Step S503 If the second audio amplitude meets the preset adjustment condition, determine corresponding volume adjustment information.
  • Step S504 Determine a noise value of the environment in which the terminal device is located, adjust the adjustment information according to the noise value, and adjust a volume of the terminal device according to the adjusted adjustment information.
  • the noise of the current environment can be collected by the microphone installed by the terminal device to determine a corresponding noise value.
  • the larger the noise value is the larger the adjustment of the volume adjustment information is.
  • the adjustment is performed based on the determined adjustment information.
  • the amplitude adjustment information, the target volume value, or the volume change value in the information is multiplied by 1.5. Adjusted adjustment information. It should be noted that the adjustment information can be adjusted together with the impedance value and the noise value.
  • the influence of the noise on the volume of the terminal device is considered, and the determined noise value is taken as one of the parameters for determining the volume adjustment information, so that the adjusted volume is more in line with the user's demand. Further improved the volume adjustment effect.
  • FIG. 7 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present invention.
  • 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 device specifically includes: an obtaining module 101, an amplitude determining module 102, an adjustment information determining module 103, and an adjusting module 104.
  • the obtaining module 101 is configured to acquire first audio information corresponding to 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. Among them, it 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; after the sound source file is obtained, it is loaded into a memory buffer; The audio source file of the memory buffer is decoded. Before the decoding starts, if the audio file contains video data at the same time, the audio data and the video data need to be separated, and the separated audio data is input to the audio decoder, wherein the audio decoding is performed.
  • the device 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 audio playback according to the analog audio signal.
  • the sound source playing event it is determined that the terminal device starts to play the sound source, wherein the trigger event may be that the detected play button displayed in the touch screen is pressed, or the terminal device may be detected.
  • a playback device such as a speaker starts playing a sound, it is determined that the terminal device performs sound source playback.
  • the first audio information of the sound source is acquired.
  • the digital audio signal decoded by the audio decoder may be sampled to determine the first audio information corresponding to the audio source.
  • the original file of the currently played source may also be acquired, and the first audio information corresponding to the source is determined by parsing the original file.
  • the first audio information corresponding to the sound source can be obtained through the android.media.MediaRecorder class or the android.media.AudioRecord class.
  • the first audio information may be all audio information corresponding to one sound source.
  • the audio information corresponding to the song may be used as the first An audio information
  • the corresponding second audio information that appears subsequently is audio information corresponding to another audio source (such as a movie or a chat voice).
  • the first audio information may also be one of a plurality of audio information included in a sound source system, and may be the currently played audio information as the first audio information.
  • the user may The voice chat interaction with the contact, that is, the voice information can be sent intermittently and at different times, and each intermittent voice information can be recognized as an audio information.
  • the amplitude determining module 102 is configured to determine a first audio amplitude of the first audio information, and if the first audio amplitude meets a preset query condition, determine a second audio amplitude of the second audio information, the second audio The information is played after the first audio information.
  • the second audio information is content played after the first 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 obtained by decoding the obtained audio information by the audio decoder is sampled to obtain amplitude information in a preset time period T, wherein the amplitude information may be composed of multiple amplitude values. And determining, according to the obtained plurality of amplitude values, an amplitude curve of the sound source played during the preset time period T, that is, determining a first audio amplitude corresponding to the first audio information.
  • the acquired first audio information may be subjected to amplitude extraction by using an android.media.MediaRecorder class or an android.media.AudioRecord class to obtain a corresponding first audio amplitude.
  • the audio information acquired in step S101 is the original file corresponding to the sound source, the original file may be parsed to obtain a corresponding first audio amplitude.
  • determining the first audio amplitude every preset time such as 1s, 3s or 10s
  • determining the amplitude of each frame of the audio information in real time to obtain the first An audio amplitude.
  • the sound source file is parsed to obtain a first audio frame sequence, and the corresponding first audio amplitude is determined according to each frame of the first audio frame sequence.
  • the manner of determining the second audio amplitude refers to the determining manner of the first audio amplitude, and details are not described herein again.
  • the first audio amplitude satisfies a preset query condition
  • the amplitude adjustment coefficient of the first audio amplitude is smaller than a preset adjustment coefficient, or the size of the first audio amplitude is greater than a first preset amplitude Threshold.
  • the preset adjustment coefficient may be 1.2 or 0.8
  • the first preset amplitude threshold may be -5 db.
  • the amplitude adjustment factor is used to adjust the amplitude of the audio
  • the amplitude adjustment coefficient can be allocated to increase the amplitude, thereby increasing the volume. Accordingly, when the amplitude of the audio is large, the amplitude adjustment coefficient smaller than 1 can be allocated, and the audio amplitude is reduced to reduce the playback. The volume of the time.
  • the adjustment information determining module 103 is configured to determine corresponding adjustment information if the second audio amplitude satisfies a preset adjustment condition.
  • the second audio amplitude satisfies the preset adjustment condition, and the size of the second audio amplitude is smaller than the second preset amplitude threshold.
  • the second preset amplitude threshold may be -20 db.
  • the magnitude of the second audio amplitude being less than the second predetermined amplitude threshold comprises: an amplitude peak of the second audio amplitude being less than a second predetermined amplitude threshold, or an average amplitude of the second audio amplitude The value is less than the second predetermined amplitude threshold.
  • the adjustment module 104 is configured to adjust the volume of the terminal device according to the adjustment information.
  • the technical solution provided by the embodiment when detecting that the terminal device performs sound source playing, acquiring first audio information corresponding to the sound source; determining a first audio amplitude of the first audio information, if the first audio amplitude is satisfied Determining, by a predetermined query condition, a second audio amplitude of the second audio information, the second audio information being played after the first audio information; if the second audio amplitude satisfies a preset adjustment condition, determining a corresponding Adjusting the information, and adjusting the volume of the terminal device according to the adjustment information.
  • the solution improves the volume adjustment efficiency and reduces the power consumption of the mobile terminal.
  • the first audio amplitude meets a preset query condition, including:
  • the amplitude adjustment coefficient of the first audio amplitude is smaller than a preset adjustment coefficient, or the magnitude of the first audio amplitude is greater than a first preset amplitude threshold;
  • the second audio amplitude satisfies a preset adjustment condition, including:
  • the magnitude of the second audio amplitude is less than a second predetermined amplitude threshold.
  • the magnitude of the second audio amplitude is less than the second preset amplitude threshold, including:
  • the amplitude peak of the second audio amplitude is less than a second predetermined amplitude threshold, or the average amplitude value of the second audio amplitude is less than a second predetermined amplitude threshold.
  • the apparatus according to any one of claims 10 to 12, wherein the adjustment information determining module is specifically configured to:
  • the adjustment module is specifically configured to:
  • the second audio amplitude is adjusted based on the amplitude adjustment information.
  • the adjustment information determining module 103 is specifically configured to:
  • Corresponding amplitude adjustment information is determined according to the magnitude of the second audio amplitude and the amplitude adjustment map.
  • the adjustment information determining module 103 is specifically configured to:
  • the adjustment module 104 is specifically configured to:
  • the adjustment information determining module 103 is specifically configured to:
  • the adjustment module 104 is specifically configured to:
  • the adjustment information determining module 103 is further configured to:
  • the adjustment module 104 is specifically configured to:
  • the adjustment information determining module 103 is further configured to:
  • the adjustment module 104 is specifically configured to:
  • FIG. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the terminal device 200 includes: a memory 201, a central processing unit (CPU) 202, a peripheral interface 203, an RF (Radio Frequency) circuit 205, an audio circuit 206, a speaker 211, a power management chip 208, an input/output (I/O) subsystem 209, Touch screen 212, other input/control devices 210, and external port 204 are communicated via one or more communication buses or signal lines 207.
  • the illustrated terminal device 200 is merely an example of a terminal device, and the terminal Device 200 may have more or fewer components than those shown in the figures, two or more components may be combined, or may have different component configurations.
  • the various components shown in the figures can 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 for rights management of a multi-open application provided in this embodiment is described in detail below.
  • the terminal device takes a smart phone as an example.
  • the memory 201 may be accessed by the CPU 202, the peripheral interface 203, etc., and the memory 201 may include a high speed random access memory, and may 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 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 for controlling 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 (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 2092 can be connected 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, 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 can be operated.
  • the icon of the game, the icon of the network to the corresponding network, and the like.
  • the device may also 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 mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 205 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 205 transmits an electrical signal. Converting to or converting an electromagnetic signal into an electrical signal, and communicating with the communication network and other devices through the electromagnetic signal.
  • 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 ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • an antenna system an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • CODEC COder-DECoder, codec
  • SIM Subscriber Identity Module
  • the audio circuit 206 is mainly used 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 configured 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 used for power supply and power management of 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 invention, 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 invention may perform the volume adjustment method of the terminal device provided by any embodiment of the present invention.
  • An embodiment of the present invention further provides a storage medium including executable instructions of a mobile terminal, the mobile terminal executable instructions, when executed by a mobile terminal processor, for performing a volume adjustment method, the method comprising:
  • the first audio amplitude meets a preset query condition, including:
  • the amplitude adjustment coefficient of the first audio amplitude is smaller than a preset adjustment coefficient, or the magnitude of the first audio amplitude is greater than a first preset amplitude threshold;
  • the second audio amplitude satisfies a preset adjustment condition, including:
  • the magnitude of the second audio amplitude is less than a second predetermined amplitude threshold.
  • the magnitude of the second audio amplitude is less than a second preset amplitude threshold.
  • the amplitude peak of the second audio amplitude is less than a second predetermined amplitude threshold, or the average amplitude value of the second audio amplitude is less than a second predetermined amplitude threshold.
  • the determining the corresponding adjustment information, and adjusting the volume of the terminal device according to the adjustment information includes:
  • Corresponding amplitude adjustment information is determined, and the second audio amplitude is adjusted according to the amplitude adjustment information.
  • the determining the corresponding amplitude adjustment information includes:
  • Corresponding amplitude adjustment information is determined according to the magnitude of the second audio amplitude and the amplitude adjustment map.
  • the determining the corresponding adjustment information, and adjusting the volume of the terminal device according to the adjustment information includes:
  • adjusting the current system volume of the terminal device according to the volume adjustment information includes:
  • the method before the adjusting the volume of the terminal device according to the adjustment information, the method further includes:
  • the adjusting the volume of the terminal device according to the adjustment information comprises:
  • the method before the adjusting the volume of the terminal device according to the adjustment information, the method further includes:
  • the adjusting the volume of the terminal device according to the adjustment information comprises:
  • Storage media any of a variety of types of memory devices or storage devices.
  • the term "storage medium” is intended to include: a mounting medium such as a CD-ROM, a floppy disk or a tape device; a computer system memory or a random access memory such as DRAM, DDR RAM, SRAM, 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 elements, and the like.
  • 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.
  • the computer executable instructions are not limited to the volume adjustment method operation as described above, and may also perform the volume adjustment method provided by any embodiment of the present invention. Related operations in .

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本发明实施例公开了一种音量调节方法、装置、移动终端及存储介质,该方法包括当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息;确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放;如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节。本方案提高了音量调节效率,降低了移动终端的功耗。

Description

音量调节方法、装置、移动终端及存储介质 技术领域
本发明实施例涉及计算机技术,尤其涉及一种音量调节方法、装置、移动终端及存储介质。
背景技术
随着移动终端普及程度的提高,越来越多的用户使用移动终端执行各种各样的功能以满足自身需求,如使用移动终端阅读文字、观看视频、听音乐、玩游戏等。
发明内容
本发明提供了一种音量调节方法、装置、移动终端及存储介质,提高了音量调节效率,降低了移动终端的功耗。
第一方面,本发明实施例提供了一种音量调节方法,包括:
当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息;
确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放;
如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节。
第二方面,本发明实施例还提供了一种音量调节装置,包括:
获取模块,用于当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息;
振幅确定模块,用于确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放;
调节信息确定模块,用于如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息;
调节模块,用于依据所述调节信息对所述终端设备的音量进行调节。
第三方面,本发明实施例还提供了一种移动终端,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本发明实施例所述的音量调节方法。
第四方面,本发明实施例还提供了一种包含移动终端可执行指令的存储介质,所述移动终端可执行指令在由移动终端处理器执行时用于执行本发明实施例所述的音量调节方法。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:
图1是本发明实施例提供的一种音量调节方法的流程图;
图2是本发明实施例提供的一种音源中第一音频振幅和第二音频振幅对应的振幅曲线示意图;
图3是本发明实施例提供的另一种音量调节方法的流程图;
图4是本发明实施例提供的另一种音量调节方法的流程图;
图5是本发明实施例提供的另一种音量调节方法的流程图;
图6是本发明实施例提供的另一种音量调节方法的流程图;
图7是本发明实施例提供的一种音量调节装置的结构框图;
图8是本发明实施例提供的一种终端设备的结构示意图。
具体实施方式
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
图1是本发明实施例提供的一种音量调节方法的流程图,本实施例可适用于对终端设备播放音源时的音量进行调节的情况,该方法可以由本发明实施例提供的终端设备来执行,该终端设备的音量调节装置可采用软件和/或硬件的方式实现,如图1所示,本实施例提供的具体方案如下:
步骤S101、当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息。
终端设备可通过安装的第三方应用程序或系统自带的音视频播放软件进行音源的播放。其中,主要包括音源文件的获取、解码和输出等步骤。示例性的,获取到的音源文件可以是通过网络接收到的组播流,还可以是终端设备本地存储的音视频文件;获取到该音源文件后将其加载到内存缓冲区中;对加载到内存缓冲区的音源文件进行解码,在解码开始之前,如果该音源文件同时包含有视频数据,需要进行音频数据和视频数据的分离,将分离后的音频数据输入至音频解码器,其中,音频解码器主要用于读取内存缓冲区中的音频数据,得到数字音频信号,并将该数字音频信号转换为模拟音频信号,终端设备的播放器件根据该模拟音频信号进行音频播放。在一个实施例中,当监听到音源播放事件被触发时,确定终端设备开始播放音源,其中,该触发事件可以是检测到的触摸屏中显示的播放按钮被按下,还可以是检测到终端设备的播放器件如喇叭开始播放声音时,确定终端设备进行音源播放。
当检测到终端设备进行音源播放时,获取所述音源的第一音频信息。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,确定该音源对应的第一音频信息。在另一实施例中,还可以获取当前播放的音源的原始文件,通过对该原始文件的解析确定音源对应的第一音频信息。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源对应的第一音频信息。
其中,该第一音频信息可以是一个音源对应的全部音频信息,示例性的,当检测到终端设备播放的音源为一歌曲时,该歌曲对应的音频信息可以作为第一音频信息,此时,相应的后续出现的第二音频信息为另一音源(如电影、聊天语音)对应的音频信息。该第一音频信息还可以是一个音源体系中包含的多个音频信息中的一个,可以是当前播放的音频信息作为第一音频信息,示例性的,当用户使用微信进行语音聊天时,用户可和联系人进行语音聊天交互,即可以间断的,在不同的时间发送语音信息,此时每个间断的语音信息可被认定为一个音频信息。
步骤S102、确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅。
其中,所述第二音频信息为在所述第一音频信息之后播放的内容。
振幅指物体震动过程中偏离原来位置的最大距离,人耳听到的声音的响度 与音源的振幅相关,振幅越大响度越强。在一个实施例中,可通过音频解码器对获取的音频信息进行解码得到的数字音频信号后进行取样,以得到预设时间段T内的振幅信息,其中,该振幅信息可由多个振幅值组成,依据得到的多个振幅值可相应的确定在该预设时间段T内播放的音源的振幅曲线,即确定出和第一音频信息对应的第一音频振幅。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类对获取的第一音频信息进行振幅提取,得到对应的第一音频振幅。在另一实施例中,当步骤S101获取到的音频信息为音源对应的原始文件时,可通过对原始文件进行解析以得到对应的第一音频振幅。
在一个实施例中,当检测音源播放时,每隔预设时间(如1s、3s或10s)确定一次第一音频振幅,或者实时的,对音频信息的每一帧的振幅进行确定以得到第一音频振幅。示例性的,当检测到音源播放时,对音源文件进行解析得到第一音频帧序列,根据第一音频帧序列的每一帧确定对应的第一音频振幅。
相应的,确定第二音频振幅的方式参照第一音频振幅的确定方式,此处不再赘述。
在一个实施例中,所述第一音频振幅满足预设查询条件包括:所述第一音频振幅的振幅调节系数小于预设调节系数,或所述第一音频振幅的大小大于第一预设振幅阈值。示例性的,该预设调节系数可以是1.2或0.8,第一预设振幅阈值可以是-5db。其中振幅调节系数用于对音频振幅进行调节,示例性的,当音频振幅较小时可分配以振幅调节系数以使其振幅增大,进而提高音量,相应的,当音频振幅较大时也可通过分配小于1的振幅调整系数另该音频振幅减小以减小播放时的音量。
步骤S103、如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节。
所述第二音频振幅满足预设调节条件包括:所述第二音频振幅的大小小于第二预设振幅阈值。示例性的,该第二预设振幅阈值可以是-20db。在一个实施例中,所述第二音频振幅的大小小于第二预设振幅阈值包括:所述第二音频振幅的振幅峰值小于第二预设振幅阈值,或所述第二音频振幅的平均振幅值小于第二预设振幅阈值。
在一个可能的实施例中,如图2所示,图2是本发明实施例提供的一种音 源中第一音频振幅和第二音频振幅对应的振幅曲线示意图。其中,第一音频振幅较大,峰值为-3db,第二音频振幅的峰值为-30db,此时,如果按照预先分配的振幅调节系数(为了保持音源输出是的音量不至于过大或过小,其音源中振幅较大部分对应的振幅调节系数较小,振幅较小部分对应的振幅调节系数较大,例如:第一音频振幅对应的振幅调节系数为1,第二音频振幅对应的振幅调节系数为2),当第一音频振幅播放完毕后,第二音频振幅由于先前第一音频振幅较大且分配有较小的振幅调整系数,则该第二音频振幅对应的调整系数无法起到调节作用。此时,确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节,其中,可以是对终端设备的系统音量进行调节,还可以是对第二音频振幅进行调节,以提高第二音频信息输出时的音量。
由上述内容可知,当检测到第一音频信息的振幅较大,同时后续的第二音频信息的振幅较小时,对第二音频信息的振幅或终端的系统音量进行调节以提高第二音频信息输出的音量,避免了第二音频信息输出时音量较小,用户无法听清声音内容的问题,同时无需用户手动调节音量,提高了音量调节效率,听感也更加符合用户需求。
图3是本发明实施例提供的另一种音量调节方法的流程图,可选的,所述确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节包括:确定对应的振幅调节信息,依据所述振幅调节信息对所述第二音频振幅进行调节。如图3所示,技术方案具体如下:
步骤S201、当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息。
步骤S202、确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅。
步骤S203、如果所述第二音频振幅满足预设调节条件,则确定对应的振幅调节信息,依据所述振幅调节信息对所述第二音频振幅进行调节。
在一个实施例中,所述确定对应的振幅调节信息包括:依据所述第二音频振幅的大小以及振幅调节映射表确定对应的振幅调节信息。示例性的,一种振幅调节映射表中第二音频振幅的大小和对应的振幅调节系数关系如下:
表1
振幅大小 调节系数
-20db至-30db 1.7
-30db至-40db 1.8
-40db至50db 1.9
在一个实施例中,通过振幅调节系数对第二音频振幅进行调整的过程可以是:通过对相关的音源文件进行解析,对得到的音频信息中的表征振幅信息的数据进行修改,修改完毕后再进行封装,当缓冲到对应的音源文件并被播放时第二音频振幅相应的已被增大或减小;还可以是,在第二音频信息播放的解码过程中,通过对第二音频信息进行解码得到的数字音频信号进行分析得到第二音频振幅,将该第二音频振幅对应的振幅数据乘以对应的振幅调节系数以改变振幅大小,进而对其的音量进行调节。由此,实现了不改变终端设备系统原有音量的前提下对音源音量的大小进行了调节,调节过程可以在第二音频信息文件未进入缓冲区前,以减少播放负载,也可以是针对缓冲区中的第二音频信息内容进行调节以提高调节效率。
图4是本发明实施例提供的另一种音量调节方法的流程图,可选的,所述确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节包括:确定对应的音量调节信息,依据所述音量调节信息对所述终端设备当前的系统音量进行调节。如图4所示,技术方案具体如下:
步骤S301、当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息。
步骤S302、确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅。
步骤S303、如果所述第二音频振幅满足预设调节条件,则确定对应的音量调节信息,依据所述音量调节信息对所述终端设备当前的系统音量进行调节。
在一个实施例中,所述确定对应的音量调节信息,依据所述音量调节信息对所述终端设备当前的系统音量进行调节包括:确定对应的目标音量值或音量改变值,依据所述目标音量值或音量改变值对所述终端设备当前的系统音量进行调节。
在一个实施例中,该音量调节信息为对应的目标音量值。示例性的,终端 设备由静音到最大音量总共分为18个可调等级,每个等级对应一个音量值,该音量增大信息对应的目标音量值可以是14或15,在对终端设备系统音量进行调节的过程中,相应的将音量值增大至14或15,可选的,在使用该音量的目标值进行音量调节之前,还包括:确定所述第二音频信息的播放时间,当播放时间大于预设时间时,如30s则采用依据所述音量调节信息中的目标音量值对所述终端设备的系统音量进行调节,由此进一步提高了音量调节效率,降低了终端设备的能耗。
在一个实施例中,该音量调节信息为对应的音量改变值。示例性的,终端设备由静音到最大音量总共分为18个可调等级,每个等级对应一个音量值,该音量改变值为3,例如,当前终端设备的音量值为10,当需要增大音量信息时,则在当前音量值的基础上增加3即采用第13级音量进行声音播放。可选的,在使用该音量改变值进行音量调节之前,还包括:确定所述第二音频信息的播放时间,当播放时间大于预设时间时,如30s则采用依据所述音量调节信息中的音量改变值对所述终端设备当前的音量值进行调节,由此进一步提高了音量调节效率,降低了终端设备的能耗。
图5是本发明实施例提供的另一种音量调节方法的流程图,可选的,在所述依据所述调节信息对所述终端设备的音量进行调节之前,还包括:确定所述终端设备播放器件的阻抗值,依据所述阻抗值对所述调节信息进行调整;相应的,所述依据所述调节信息对所述终端设备的音量进行调节包括:依据所述调整后的调节信息对所述终端设备的音量进行调节。
如图5所示,技术方案具体如下:
步骤S401、当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息。
步骤S402、确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅。
步骤S403、如果所述第二音频振幅满足预设调节条件,则确定对应的音量调节信息。
步骤S404、确定所述终端设备播放器件的阻抗值,依据所述阻抗值对所述调节信息进行调整,依据所述调整后的调节信息对所述终端设备的音量进行调节。
在一个实施例中,可通过功放芯片检测终端设备中安装的播放器件(如:扬声器)的阻抗值,还可以是通过物理方式检测播放器件的阻抗。示例性的,该阻抗值越大对应的对音量调节信息的调整越大。具体的,假设播放器件的标称阻抗值为x,通过检测得到的阻抗值为1.2x,则相应的在确定出的调节信息的基础上,将该调节信息中对应的振幅调节信息、目标音量值或音量改变值乘以1.2作为调整后的调节信息。
由上述可知,在对音源的振幅进行调节过程中,引入播放器件的阻抗值作为确定音量调节信息的参量之一,避免了播放器件随播放时长的增加阻抗值越来越高进而对正常播放过程中的音量大小产生影响的问题,使得调节后的音量大小更佳符合用户需求,进一步提高了音量调节效果。
图6是本发明实施例提供的另一种音量调节方法的流程图,可选的,在所述依据所述调节信息对所述终端设备的音量进行调节之前,还包括:确定所述终端设备播所处环境的噪声值,依据所述噪声值对所述调节信息进行调整;相应的,所述依据所述调节信息对所述终端设备的音量进行调节包括:依据所述调整后的调节信息对所述终端设备的音量进行调节。
如图6所示,技术方案具体如下:
步骤S501、当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息。
步骤S502、确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅。
步骤S503、如果所述第二音频振幅满足预设调节条件,则确定对应的音量调节信息。
步骤S504、确定所述终端设备所处环境的噪声值,依据所述噪声值对所述调节信息进行调整,依据所述调整后的调节信息对所述终端设备的音量进行调节。
在一个实施例中,可通过终端设备安装的麦克风采集当前所处环境的噪音以确定对应的噪声值。示例性的,该噪声值越大对应的对音量调节信息的调整越大。具体的,假设终端设备在安静环境下的噪声值为y,终端设备处于户外或嘈杂环境中时,确定的噪声值为1.5y,则相应的在确定出的调节信息的基础上,将该调节信息中的振幅调节信息、目标音量值或音量改变值乘以1.5作为 调整后的调节信息。需要说明的是,还可将阻抗值、噪声值共同调整调节信息。
由上述可知,在对音源的振幅进行调节过程中,考虑了噪声对终端设备音量的影响,将确定的噪声值作为确定音量调节信息的参量之一,使得调节后的音量大小更加符合用户需求,进一步提高了音量调节效果。
图7是本发明实施例提供的一种音量调节装置的结构框图,该装置用于执行上述实施例提供的音量调节方法,具备执行方法相应的功能模块和有益效果。如图7所示,该装置具体包括:获取模块101、振幅确定模块102、调节信息确定模块103和调节模块104。
其中,获取模块101,用于当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息。
终端设备可通过安装的第三方应用程序或系统自带的音视频播放软件进行音源的播放。其中,主要包括音源文件的获取、解码和输出等步骤。示例性的,获取到的音源文件可以是通过网络接收到的组播流,还可以是终端设备本地存储的音视频文件;获取到该音源文件后将其加载到内存缓冲区中;对加载到内存缓冲区的音源文件进行解码,在解码开始之前,如果该音源文件同时包含有视频数据,需要进行音频数据和视频数据的分离,将分离后的音频数据输入至音频解码器,其中,音频解码器主要用于读取内存缓冲区中的音频数据,得到数字音频信号,并将该数字音频信号转换为模拟音频信号,终端设备的播放器件根据该模拟音频信号进行音频播放。在一个实施例中,当监听到音源播放事件被触发时,确定终端设备开始播放音源,其中,该触发事件可以是检测到的触摸屏中显示的播放按钮被按下,还可以是检测到终端设备的播放器件如喇叭开始播放声音时,确定终端设备进行音源播放。
当检测到终端设备进行音源播放时,获取所述音源的第一音频信息。在一个实施例中,可对音频解码器解码得到的数字音频信号进行取样,确定该音源对应的第一音频信息。在另一实施例中,还可以获取当前播放的音源的原始文件,通过对该原始文件的解析确定音源对应的第一音频信息。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类获取音源对应的第一音频信息。
其中,该第一音频信息可以是一个音源对应的全部音频信息,示例性的,当检测到终端设备播放的音源为一歌曲时,该歌曲对应的音频信息可以作为第 一音频信息,此时,相应的后续出现的第二音频信息为另一音源(如电影、聊天语音)对应的音频信息。该第一音频信息还可以是一个音源体系中包含的多个音频信息中的一个,可以是当前播放的音频信息作为第一音频信息,示例性的,当用户使用微信进行语音聊天时,用户可和联系人进行语音聊天交互,即可以间断的,在不同的时间发送语音信息,此时每个间断的语音信息可被认定为一个音频信息。
振幅确定模块102,用于确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放。
其中,所述第二音频信息为在所述第一音频信息之后播放的内容。
振幅指物体震动过程中偏离原来位置的最大距离,人耳听到的声音的响度与音源的振幅相关,振幅越大响度越强。在一个实施例中,可通过音频解码器对获取的音频信息进行解码得到的数字音频信号后进行取样,以得到预设时间段T内的振幅信息,其中,该振幅信息可由多个振幅值组成,依据得到的多个振幅值可相应的确定在该预设时间段T内播放的音源的振幅曲线,即确定出和第一音频信息对应的第一音频振幅。在另一实施例中,以Android系统为例,可通过android.media.MediaRecorder类或android.media.AudioRecord类对获取的第一音频信息进行振幅提取,得到对应的第一音频振幅。在另一实施例中,当步骤S101获取到的音频信息为音源对应的原始文件时,可通过对原始文件进行解析以得到对应的第一音频振幅。
在一个实施例中,当检测音源播放时,每隔预设时间(如1s、3s或10s)确定一次第一音频振幅,或者实时的,对音频信息的每一帧的振幅进行确定以得到第一音频振幅。示例性的,当检测到音源播放时,对音源文件进行解析得到第一音频帧序列,根据第一音频帧序列的每一帧确定对应的第一音频振幅。
相应的,确定第二音频振幅的方式参照第一音频振幅的确定方式,此处不再赘述。
在一个实施例中,所述第一音频振幅满足预设查询条件包括:所述第一音频振幅的振幅调节系数小于预设调节系数,或所述第一音频振幅的大小大于第一预设振幅阈值。示例性的,该预设调节系数可以是1.2或0.8,第一预设振幅阈值可以是-5db。其中振幅调节系数用于对音频振幅进行调节,示例性的,当 音频振幅较小时可分配以振幅调节系数以使其振幅增大,进而提高音量,相应的,当音频振幅较大时也可通过分配小于1的振幅调整系数另该音频振幅减小以减小播放时的音量。
调节信息确定模块103,用于如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息。
所述第二音频振幅满足预设调节条件包括:所述第二音频振幅的大小小于第二预设振幅阈值。示例性的,该第二预设振幅阈值可以是-20db。在一个实施例中,所述第二音频振幅的大小小于第二预设振幅阈值包括:所述第二音频振幅的振幅峰值小于第二预设振幅阈值,或所述第二音频振幅的平均振幅值小于第二预设振幅阈值。
调节模块104,用于依据所述调节信息对所述终端设备的音量进行调节。
本实施例提供的技术方案,当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息;确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放;如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节。本方案提高了音量调节效率,降低了移动终端的功耗。
在一个可能的实施例中,所述第一音频振幅满足预设查询条件包括:
所述第一音频振幅的振幅调节系数小于预设调节系数,或所述第一音频振幅的大小大于第一预设振幅阈值;
相应的,所述第二音频振幅满足预设调节条件包括:
所述第二音频振幅的大小小于第二预设振幅阈值。
在一个可能的实施例中,所述第二音频振幅的大小小于第二预设振幅阈值包括:
所述第二音频振幅的振幅峰值小于第二预设振幅阈值,或所述第二音频振幅的平均振幅值小于第二预设振幅阈值。
在一个可能的实施例中,13、根据权利要求10-12中任一项所述的装置,其特征在于,所述调节信息确定模块具体用于:
确定对应的振幅调节信息;
所述调节模块具体用于:
依据所述振幅调节信息对所述第二音频振幅进行调节。
在一个可能的实施例中,所述调节信息确定模块103具体用于:
依据所述第二音频振幅的大小以及振幅调节映射表确定对应的振幅调节信息。
在一个可能的实施例中,所述调节信息确定模块103具体用于:
确定对应的音量调节信息;
所述调节模块104具体用于:
依据所述音量调节信息对所述终端设备当前的系统音量进行调节。
在一个可能的实施例中,所述调节信息确定模块103具体用于:
确定对应的目标音量值或音量改变值;
所述调节模块104具体用于:
依据所述目标音量值或音量改变值对所述终端设备当前的系统音量进行调节。
在一个可能的实施例中,所述调节信息确定模块103还用于:
在所述依据所述调节信息对所述终端设备的音量进行调节之前,确定所述终端设备播放器件的阻抗值,依据所述阻抗值对所述调节信息进行调整;
相应的,所述调节模块104具体用于:
依据所述调整后的调节信息对所述终端设备的音量进行调节。
在一个可能的实施例中,所述调节信息确定模块103还用于:
在所述依据所述调节信息对所述终端设备的音量进行调节之前,确定所述终端设备所处环境的噪声值,依据所述噪声值对所述调节信息进行调整;
相应的,所述调节模块104具体用于:
依据所述调整后的调节信息对所述终端设备的音量进行调节。
本实施例在上述各实施例的基础上提供了一种移动终端,图8是本发明实施例提供的一种移动终端的结构示意图,如图8所示,该终端设备200包括:存储器201、处理器(Central Processing Unit,CPU)202、外设接口203、RF(Radio Frequency,射频)电路205、音频电路206、扬声器211、电源管理芯片208、输入/输出(I/O)子系统209、触摸屏212、其他输入/控制设备210以及外部端口204,这些部件通过一个或多个通信总线或信号线207来通信。
应该理解的是,图示终端设备200仅仅是终端设备的一个范例,并且终端 设备200可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的用于多开应用的权限管理的终端设备进行详细的描述,该终端设备以智能手机为例。
存储器201,所述存储器201可以被CPU202、外设接口203等访问,所述存储器201可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口203,所述外设接口203可以将设备的输入和输出外设连接到CPU202和存储器201。
I/O子系统209,所述I/O子系统209可以将设备上的输入输出外设,例如触摸屏212和其他输入/控制设备210,连接到外设接口203。I/O子系统209可以包括显示控制器2091和用于控制其他输入/控制设备210的一个或多个输入控制器2092。其中,一个或多个输入控制器2092从其他输入/控制设备210接收电信号或者向其他输入/控制设备210发送电信号,其他输入/控制设备210可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器2092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触摸屏212,所述触摸屏212是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。
I/O子系统209中的显示控制器2091从触摸屏212接收电信号或者向触摸屏212发送电信号。触摸屏212检测触摸屏上的接触,显示控制器2091将检测到的接触转换为与显示在触摸屏212上的用户界面对象的交互,即实现人机交互,显示在触摸屏212上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路205,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路205接收并发送RF信号,RF信号也称为电磁信号,RF电路205将电信号 转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路205可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。
音频电路206,主要用于从外设接口203接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器211。
扬声器211,用于将手机通过RF电路205从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片208,用于为CPU202、I/O子系统及外设接口所连接的硬件进行供电及电源管理。
上述实施例中提供的终端设备的音量调节装置及终端设备可执行本发明任意实施例所提供的终端设备的音量调节方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的终端设备的音量调节方法。
本发明实施例还提供一种包含移动终端可执行指令的存储介质,所述移动终端可执行指令在由移动终端处理器执行时用于执行一种音量调节方法,该方法包括:
当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息;
确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放;
如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节。
在一个可能的实施例中,所述第一音频振幅满足预设查询条件包括:
所述第一音频振幅的振幅调节系数小于预设调节系数,或所述第一音频振幅的大小大于第一预设振幅阈值;
相应的,所述第二音频振幅满足预设调节条件包括:
所述第二音频振幅的大小小于第二预设振幅阈值。
在一个可能的实施例中,所述第二音频振幅的大小小于第二预设振幅阈值 包括:
所述第二音频振幅的振幅峰值小于第二预设振幅阈值,或所述第二音频振幅的平均振幅值小于第二预设振幅阈值。
在一个可能的实施例中,所述确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节包括:
确定对应的振幅调节信息,依据所述振幅调节信息对所述第二音频振幅进行调节。
在一个可能的实施例中,所述确定对应的振幅调节信息包括:
依据所述第二音频振幅的大小以及振幅调节映射表确定对应的振幅调节信息。
在一个可能的实施例中,所述确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节包括:
确定对应的音量调节信息,依据所述音量调节信息对所述终端设备当前的系统音量进行调节。
在一个可能的实施例中,依据所述音量调节信息对所述终端设备当前的系统音量进行调节包括:
确定对应的目标音量值或音量改变值,依据所述目标音量值或音量改变值对所述终端设备当前的系统音量进行调节。
在一个可能的实施例中,在所述依据所述调节信息对所述终端设备的音量进行调节之前,还包括:
确定所述终端设备播放器件的阻抗值,依据所述阻抗值对所述调节信息进行调整;
相应的,所述依据所述调节信息对所述终端设备的音量进行调节包括:
依据所述调整后的调节信息对所述终端设备的音量进行调节。
在一个可能的实施例中,在所述依据所述调节信息对所述终端设备的音量进行调节之前,还包括:
确定所述终端设备所处环境的噪声值,依据所述噪声值对所述调节信息进行调整;
相应的,所述依据所述调节信息对所述终端设备的音量进行调节包括:
依据所述调整后的调节信息对所述终端设备的音量进行调节。
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的音量调节方法操作,还可以执行本发明任意实施例所提供的音量调节方法中的相关操作。
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。

Claims (20)

  1. 一种音量调节方法,其特征在于,包括:
    当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息;
    确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放;
    如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节。
  2. 根据权利要求1所述的方法,其特征在于,所述第一音频振幅满足预设查询条件包括:
    所述第一音频振幅的振幅调节系数小于预设调节系数,或所述第一音频振幅的大小大于第一预设振幅阈值;
    相应的,所述第二音频振幅满足预设调节条件包括:
    所述第二音频振幅的大小小于第二预设振幅阈值。
  3. 根据权利要求2所述的方法,其特征在于,所述第二音频振幅的大小小于第二预设振幅阈值包括:
    所述第二音频振幅的振幅峰值小于第二预设振幅阈值,或所述第二音频振幅的平均振幅值小于第二预设振幅阈值。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节包括:
    确定对应的振幅调节信息,依据所述振幅调节信息对所述第二音频振幅进行调节。
  5. 根据权利要求4所述的方法,其特征在于,所述确定对应的振幅调节信息包括:
    依据所述第二音频振幅的大小以及振幅调节映射表确定对应的振幅调节信息。
  6. 根据权利要求1-3中任一项所述的方法,其特征在于,所述确定对应的调节信息,依据所述调节信息对所述终端设备的音量进行调节包括:
    确定对应的音量调节信息,依据所述音量调节信息对所述终端设备当前的系统音量进行调节。
  7. 根据权利要求6所述的方法,其特征在于,所述确定对应的音量调节信 息,依据所述音量调节信息对所述终端设备当前的系统音量进行调节包括:
    确定对应的目标音量值或音量改变值,依据所述目标音量值或音量改变值对所述终端设备当前的系统音量进行调节。
  8. 根据权利要求1所述的方法,其特征在于,在所述依据所述调节信息对所述终端设备的音量进行调节之前,还包括:
    确定所述终端设备播放器件的阻抗值,依据所述阻抗值对所述调节信息进行调整;
    相应的,所述依据所述调节信息对所述终端设备的音量进行调节包括:
    依据所述调整后的调节信息对所述终端设备的音量进行调节。
  9. 根据权利要求1所述的方法,其特征在于,在所述依据所述调节信息对所述终端设备的音量进行调节之前,还包括:
    确定所述终端设备所处环境的噪声值,依据所述噪声值对所述调节信息进行调整;
    相应的,所述依据所述调节信息对所述终端设备的音量进行调节包括:
    依据所述调整后的调节信息对所述终端设备的音量进行调节。
  10. 一种音量调节装置,其特征在于,包括:
    获取模块,用于当检测到终端设备进行音源播放时,获取所述音源对应的第一音频信息;
    振幅确定模块,用于确定所述第一音频信息的第一音频振幅,如果所述第一音频振幅满足预设查询条件,则确定第二音频信息的第二音频振幅,所述第二音频信息在所述第一音频信息之后播放;
    调节信息确定模块,用于如果所述第二音频振幅满足预设调节条件,则确定对应的调节信息;
    调节模块,用于依据所述调节信息对所述终端设备的音量进行调节。
  11. 根据权利要求10所述的装置,其特征在于,所述第一音频振幅满足预设查询条件包括:
    所述第一音频振幅的振幅调节系数小于预设调节系数,或所述第一音频振幅的大小大于第一预设振幅阈值;
    相应的,所述第二音频振幅满足预设调节条件包括:
    所述第二音频振幅的大小小于第二预设振幅阈值。
  12. 根据权利要求11所述的装置,其特征在于,所述第二音频振幅的大小小于第二预设振幅阈值包括:
    所述第二音频振幅的振幅峰值小于第二预设振幅阈值,或所述第二音频振幅的平均振幅值小于第二预设振幅阈值。
  13. 根据权利要求10-12中任一项所述的装置,其特征在于,所述调节信息确定模块具体用于:
    确定对应的振幅调节信息;
    所述调节模块具体用于:
    依据所述振幅调节信息对所述第二音频振幅进行调节。
  14. 根据权利要求13所述的装置,其特征在于,所述调节信息确定模块具体用于:
    依据所述第二音频振幅的大小以及振幅调节映射表确定对应的振幅调节信息。
  15. 根据权利要求10-12中任一项所述的装置,其特征在于,所述调节信息确定模块具体用于:
    确定对应的音量调节信息;
    所述调节模块具体用于:
    依据所述音量调节信息对所述终端设备当前的系统音量进行调节。
  16. 根据权利要求15所述的装置,其特征在于,所述调节信息确定模块具体用于:
    确定对应的目标音量值或音量改变值;
    所述调节模块具体用于:
    依据所述目标音量值或音量改变值对所述终端设备当前的系统音量进行调节。
  17. 根据权利要求10所述的装置,其特征在于,所述调节信息确定模块还用于:
    在所述依据所述调节信息对所述终端设备的音量进行调节之前,确定所述终端设备播放器件的阻抗值,依据所述阻抗值对所述调节信息进行调整;
    相应的,所述调节模块具体用于:
    依据所述调整后的调节信息对所述终端设备的音量进行调节。
  18. 根据权利要求10所述的装置,其特征在于,所述调节信息确定模块还用于:
    在所述依据所述调节信息对所述终端设备的音量进行调节之前,确定所述终端设备所处环境的噪声值,依据所述噪声值对所述调节信息进行调整;
    相应的,所述调节模块具体用于:
    依据所述调整后的调节信息对所述终端设备的音量进行调节。
  19. 一种移动终端,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-9中任一项所述的音量调节方法。
  20. 一种包含移动终端可执行指令的存储介质,其特征在于,所述移动终端可执行指令在由移动终端处理器执行时用于执行如权利要求1-9中任一项所述的音量调节方法。
PCT/CN2017/098177 2017-08-18 2017-08-18 音量调节方法、装置、移动终端及存储介质 WO2019033441A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201780093964.7A CN111033614B (zh) 2017-08-18 2017-08-18 音量调节方法、装置、移动终端及存储介质
PCT/CN2017/098177 WO2019033441A1 (zh) 2017-08-18 2017-08-18 音量调节方法、装置、移动终端及存储介质
EP17921634.6A EP3671747A4 (en) 2017-08-18 2017-08-18 PROCESS AND APPARATUS FOR ADJUSTING SOUND VOLUME, MOBILE TERMINAL AND STORAGE MEDIA
US16/790,103 US11201598B2 (en) 2017-08-18 2020-02-13 Volume adjusting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098177 WO2019033441A1 (zh) 2017-08-18 2017-08-18 音量调节方法、装置、移动终端及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/790,103 Continuation US11201598B2 (en) 2017-08-18 2020-02-13 Volume adjusting method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2019033441A1 true WO2019033441A1 (zh) 2019-02-21

Family

ID=65362060

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098177 WO2019033441A1 (zh) 2017-08-18 2017-08-18 音量调节方法、装置、移动终端及存储介质

Country Status (4)

Country Link
US (1) US11201598B2 (zh)
EP (1) EP3671747A4 (zh)
CN (1) CN111033614B (zh)
WO (1) WO2019033441A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309282A (zh) * 2020-02-11 2020-06-19 RealMe重庆移动通信有限公司 音频设备功耗控制方法、装置、音频设备及存储介质
CN113867680A (zh) * 2021-09-30 2021-12-31 联想(北京)信息技术有限公司 音频输出控制方法、装置及电子设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838488B (zh) * 2020-06-24 2023-03-14 北京字节跳动网络技术有限公司 音频播放包生成方法、装置和音频播放方法、装置
KR102510794B1 (ko) * 2020-10-26 2023-03-16 주식회사 바디프랜드 청각을 보호하는 마사지 장치
CN114827719B (zh) * 2022-03-07 2023-11-28 极米科技股份有限公司 一种音量调节方法、设备及存储介质
CN115942018A (zh) * 2022-12-09 2023-04-07 烽火通信科技股份有限公司 一种外设麦克风的音量调节方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090132242A1 (en) * 2007-11-19 2009-05-21 Cool-Idea Technology Corp. Portable audio recording and playback system
CN103209370A (zh) * 2012-01-16 2013-07-17 联想(北京)有限公司 电子设备以及调节声音播放设备输出文件声音参数的方法
CN103456332A (zh) * 2012-05-28 2013-12-18 富泰华工业(深圳)有限公司 音频播放装置及音量调节方法
CN106325807A (zh) * 2016-08-25 2017-01-11 暴风集团股份有限公司 在音乐切换过程中自动进行音量适应性调节的方法及系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2351881B (en) * 1998-03-30 2001-06-13 Nec Corp Portable terminal device for controlling received voice level and transmitted voice level
CN1783928A (zh) * 2004-12-02 2006-06-07 华为技术有限公司 移动终端中自动调节铃声音量的实现方法及其装置
CN101026363B (zh) 2006-02-18 2010-12-08 鸿富锦精密工业(深圳)有限公司 保护听力的系统、方法及声音输出装置
CN104485911A (zh) * 2014-12-01 2015-04-01 上海斐讯数据通信技术有限公司 一种移动终端及其音量调节方法
CN106328111B (zh) 2016-08-22 2018-09-04 广州酷狗计算机科技有限公司 音频处理方法及装置
US10103699B2 (en) * 2016-09-30 2018-10-16 Lenovo (Singapore) Pte. Ltd. Automatically adjusting a volume of a speaker of a device based on an amplitude of voice input to the device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090132242A1 (en) * 2007-11-19 2009-05-21 Cool-Idea Technology Corp. Portable audio recording and playback system
CN103209370A (zh) * 2012-01-16 2013-07-17 联想(北京)有限公司 电子设备以及调节声音播放设备输出文件声音参数的方法
CN103456332A (zh) * 2012-05-28 2013-12-18 富泰华工业(深圳)有限公司 音频播放装置及音量调节方法
CN106325807A (zh) * 2016-08-25 2017-01-11 暴风集团股份有限公司 在音乐切换过程中自动进行音量适应性调节的方法及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3671747A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309282A (zh) * 2020-02-11 2020-06-19 RealMe重庆移动通信有限公司 音频设备功耗控制方法、装置、音频设备及存储介质
CN111309282B (zh) * 2020-02-11 2023-08-22 RealMe重庆移动通信有限公司 音频设备功耗控制方法、装置、音频设备及存储介质
CN113867680A (zh) * 2021-09-30 2021-12-31 联想(北京)信息技术有限公司 音频输出控制方法、装置及电子设备

Also Published As

Publication number Publication date
EP3671747A4 (en) 2020-08-12
US11201598B2 (en) 2021-12-14
US20200186113A1 (en) 2020-06-11
CN111033614B (zh) 2022-07-12
CN111033614A (zh) 2020-04-17
EP3671747A1 (en) 2020-06-24

Similar Documents

Publication Publication Date Title
US11201598B2 (en) Volume adjusting method and mobile terminal
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN107465824B (zh) 音量调节方法、装置、移动终端及存储介质
US10440464B2 (en) Method and apparatus for adjusting volume, terminal device and storage medium
CN110799936B (zh) 音量调节方法、装置、终端设备及存储介质
CN107526570B (zh) 音量调节方法、装置、终端设备及存储介质
CN107566618B (zh) 音量调节方法、装置、终端设备及存储介质
CN108810749B (zh) 播放器控制方法、装置、终端设备及存储介质
WO2019033942A1 (zh) 音量调节方法、装置、终端设备及存储介质
WO2019033987A1 (zh) 提示方法、装置、存储介质及终端
WO2019033941A1 (zh) 音量调节方法、装置、终端设备及存储介质
CN107483734B (zh) 音量调节方法、装置、终端设备及存储介质
CN107506168B (zh) 音量调节方法、装置、终端设备及存储介质
WO2019033939A1 (zh) 音量调节方法、装置、终端设备及存储介质
CN106293607B (zh) 自动切换音频输出模式的方法及系统
CN110753919B (zh) 音量调节方法、装置、存储介质及移动终端
WO2019033437A1 (zh) 通话控制方法、装置、终端设备及存储介质
CN107506170A (zh) 音量调节方法、装置、终端设备及存储介质
WO2019033434A1 (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: 17921634

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017921634

Country of ref document: EP

Effective date: 20200317