WO2019033943A1 - Procédé et dispositif de réglage de volume, terminal mobile et support de stockage - Google Patents

Procédé et dispositif de réglage de volume, terminal mobile et support de stockage Download PDF

Info

Publication number
WO2019033943A1
WO2019033943A1 PCT/CN2018/098656 CN2018098656W WO2019033943A1 WO 2019033943 A1 WO2019033943 A1 WO 2019033943A1 CN 2018098656 W CN2018098656 W CN 2018098656W WO 2019033943 A1 WO2019033943 A1 WO 2019033943A1
Authority
WO
WIPO (PCT)
Prior art keywords
amplitude
audio
information
adjustment coefficient
amplitude adjustment
Prior art date
Application number
PCT/CN2018/098656
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 WO2019033943A1 publication Critical patent/WO2019033943A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • 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
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • Embodiments of the present disclosure relate to the field of computer technologies, for example, to a volume adjustment method, apparatus, mobile terminal, and storage medium.
  • 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 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
  • An adjustment information determining module configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude and noise reduction information
  • the adjustment module is configured to adjust the audio amplitude according to the amplitude adjustment coefficient and the noise reduction information.
  • 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 flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • FIG. 7 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • FIG. 8 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • FIG. 9 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a volume adjustment method according to an embodiment of the present disclosure. This embodiment can be applied to the case where the volume is adjusted when the terminal device plays the sound source.
  • the method can be implemented by the terminal device provided by the embodiment, and 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 audio signal according to the analog audio signal. Audio Player.
  • the sound source playing event it is determined that the terminal device starts to play the sound source.
  • the trigger event may be that the play button displayed in the touch screen is detected to be pressed, or may be detected.
  • the playback device such as the speaker of the terminal device starts playing the sound, it is determined that the terminal device performs the sound source playback.
  • 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 once every predetermined time (eg, 1 second (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 the audio information of the sound source includes: acquiring audio frame information of the sound source; determining an audio amplitude corresponding to the audio information according to the audio information, including: according to the audio frame information Determining an audio amplitude of each frame of the audio information.
  • the sound source file is parsed to obtain an audio frame sequence, and the amplitude corresponding to each frame is determined according to each frame of the audio frame sequence.
  • Step 103 Determine an amplitude adjustment coefficient corresponding to the audio amplitude and noise reduction information, and adjust an audio amplitude of the sound source according to the amplitude adjustment coefficient and the noise reduction information.
  • the noise reduction information may be inverted output information of the noise information determined from the audio amplitude.
  • the noise amplitude corresponding to the audio amplitude determined according to the audio amplitude is larger, the amplitude of the reverse output in the noise reduction information is correspondingly increased, and the noise amplitude corresponding to the audio amplitude determined according to the audio amplitude is relatively larger. In hours, the amplitude of the reverse output in the noise reduction information is also reduced accordingly.
  • the noise reduction information interval is reasonably determined by analyzing the audio amplitude, thereby completing the automatic noise reduction, and no need to artificially set the noise reduction level, and at the same time, since the noise reduction information is determined for the audio amplitude of the real-time input, the noise reduction effect is better.
  • the method further includes: dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients; And adjusting the audio amplitude by the noise reduction information comprises: adjusting the audio amplitude according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • a large amplitude adjustment coefficient is assigned to the low-amplitude audio amplitude, and a high-amplitude audio amplitude is correspondingly assigned a smaller amplitude adjustment coefficient.
  • the amplitude adjustment factor is assigned to an audio amplitude of less than -3 decibels (db) and greater than -10 db, and an amplitude adjustment factor of two is allocated to an audio amplitude of less than -10 db and greater than -50 db.
  • the amplitude adjustment coefficient of the previous audio amplitude is 1.2, and the amplitude of the adjustment to the adjacent next audio amplitude requires an amplitude adjustment coefficient of 2, the adjusted audio amplitude will be clearly heard.
  • the problem is abrupt, which is caused by the jump of the amplitude adjustment factor.
  • the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients comprises: when detecting that an amplitude adjustment coefficient corresponding to different audio amplitudes satisfies a preset condition, dividing the amplitude adjustment coefficient into A preset number of sub-amplitude adjustment factors.
  • the sub-amplitude adjustment coefficients are obtained by linear or non-linear division of the amplitude adjustment coefficients.
  • the preset condition may be that the amplitude adjustment coefficients of the adjacent audio amplitudes are different, for example, the amplitude adjustment coefficient is changed from the amplitude adjustment coefficient 1 of the previous audio amplitude to the amplitude of the latter audio amplitude.
  • the adjustment coefficient 2, or the amplitude adjustment coefficient is changed from 2 to 1.2, etc., at this time, a preset number of sub-amplitude adjustment coefficients can be added between the two amplitude adjustment coefficients corresponding to the adjacent two audio amplitudes.
  • a preset number of sub-amplitude adjustment coefficients can be added between the two amplitude adjustment coefficients corresponding to the adjacent two audio amplitudes.
  • an additional 9 levels that is, 1.28, 1.36, 1.42, ..., 1.92, may be added between 1.2 and 2.
  • each n (for example, n is greater than 1 and less than or equal to 20) frame audio frames may be corresponding to one sub-amplitude adjustment coefficient, and the amplitude of each audio frame is sequentially performed. Adjustment.
  • the sub-amplitude adjustment coefficient corresponding to the 1-20th audio frame at the beginning of the change is 1.28
  • the sub-amplitude adjustment coefficient corresponding to the 21-40th frame audio frame is 1.36. ,And so on.
  • the amplitude adjustment coefficient 2 needs to be adjusted from the 101st frame. Then, if every 20 frames corresponds to the first-level sub-amplitude adjustment coefficient, 180 frames from the beginning of 101 frames, that is, to the 280th frame, the audio frame is completed with the sub-amplitude adjustment coefficient to adjust the transition period of the audio frame, and the amplitude adjustment coefficient 2 can be adjusted from the 281-frame audio frame to avoid obvious hearing acuity. problem.
  • the process of adjusting the audio amplitude may be: parsing the audio file, modifying the data representing the amplitude information in the obtained audio data, and then performing the encapsulation after the modification, when buffering to the corresponding audio source.
  • the audio amplitude corresponding to the file and the sound source file is correspondingly increased; or, in the decoding process of the sound source playing, the audio amplitude is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding amplitude. Adjust the coefficient to change the amplitude and adjust the volume of the 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, reducing the power consumption of the terminal device, and adjusting the audio amplitude by using the noise reduction information to achieve automatic noise reduction, without artificially setting the noise reduction level, and simultaneously Since the noise reduction information is determined for the audio amplitude of the real-time input, the noise reduction effect is better.
  • FIG. 2 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the volume adjustment method provided in this embodiment includes the following steps.
  • Step 110 Acquire audio information of the sound source when detecting that the terminal device performs sound source playback.
  • Step 120 Determine, according to the audio information, a plurality of audio amplitudes corresponding to the audio information of the plurality of preset time segments in the audio information.
  • the determining, according to the audio information, the plurality of audio amplitudes corresponding to the audio information of the plurality of preset time segments in the audio information including:
  • the average amplitude between the at least two audio amplitudes is determined as the audio amplitude corresponding to the audio information for each of the preset time periods.
  • every 10s is a preset time period
  • the digital audio signal decoded by the audio decoder can be sampled 5 times in the first 10s to obtain 5 audio amplitudes, and the average between 5 audio amplitudes is calculated.
  • the amplitude, the average amplitude is taken as the first 10s corresponding audio amplitude
  • the digital audio signal decoded by the audio decoder is sampled 5 times in the second 10s to obtain 5 audio amplitudes, and 5 audio amplitudes are calculated.
  • the average amplitude between the two is used as the audio amplitude corresponding to the second 10s, thereby obtaining a plurality of audio amplitudes corresponding to the audio information of the plurality of preset time periods.
  • the determining, according to the audio information, the plurality of audio amplitudes corresponding to the audio information of the plurality of preset time segments in the audio information including:
  • the audio amplitude is determined once according to the audio information every predetermined period of time.
  • every 10 s is a preset time period
  • the digital audio signal decoded by the audio decoder can be sampled once every 10 s to obtain an audio amplitude, and the sampled audio amplitude is used as the audio corresponding to the audio information of the previous 10 s. amplitude.
  • the determining, according to the audio information, the plurality of audio amplitudes corresponding to the audio information of the plurality of preset time segments in the audio information including:
  • each frame of the audio information corresponds to a preset time period, for example, each 26s is a preset time period, and the audio amplitude corresponding to each frame of the audio information may be determined according to the audio information. Thereby, a plurality of audio amplitudes corresponding to the audio information of the plurality of preset time periods are respectively obtained.
  • Step 130 Determine an amplitude adjustment coefficient and noise reduction information corresponding to each audio amplitude.
  • the determining a plurality of amplitude adjustment coefficients corresponding to the plurality of audio amplitudes one by one includes: determining, according to an amplitude magnitude of the plurality of audio amplitudes, one-to-one correspondence with the plurality of audio amplitudes Multiple amplitude adjustment factors.
  • the plurality of audio amplitudes include an audio amplitude A, an audio amplitude B, and an audio amplitude C, and an amplitude adjustment coefficient 1 is allocated for an audio amplitude having an amplitude greater than -3 db or less than -50 db, which is an amplitude smaller than -10 db and greater than -50 db.
  • the audio amplitude distribution amplitude adjustment coefficient 2 is an amplitude adjustment coefficient of 1.5 for an amplitude of an amplitude smaller than -3 db and greater than -10 db.
  • the amplitude adjustment coefficient corresponding to the audio amplitude A is 1, if the audio When the amplitude B is smaller than -10 db and larger than -50 db, the amplitude adjustment coefficient corresponding to the audio amplitude B is 2.
  • Step 140 When the first amplitude adjustment coefficient corresponding to the first audio amplitude and the second amplitude adjustment coefficient corresponding to the adjacent second audio amplitude are different, the first amplitude adjustment coefficient and the second amplitude adjustment coefficient A preset number of sub-amplitude adjustment coefficients are added between them.
  • the preset number of sub-amplitude adjustment coefficients are sequentially incremented or sequentially decremented between the first amplitude adjustment coefficient and the second amplitude adjustment coefficient.
  • the preset number of sub-amplitude adjustment coefficients are obtained by equally spaced between the first amplitude adjustment coefficient and the second amplitude adjustment coefficient.
  • the method further includes: adjusting the amplitude adjustment coefficient according to at least one of the following information: an impedance value of the playback device of the terminal device The noise value of the environment in which the terminal device is located.
  • the first amplitude adjustment coefficient and the second amplitude adjustment coefficient are Adding a preset number of sub-amplitude adjustment coefficients, including: an adjusted first amplitude adjustment coefficient corresponding to the first audio amplitude and an adjusted second amplitude adjustment coefficient corresponding to the adjacent second audio amplitude
  • a preset number of sub-amplitude adjustment coefficients are added between the adjusted first amplitude adjustment coefficient and the adjusted second amplitude adjustment coefficient.
  • Step 150 Adjust a preset number of audio frames starting from a start frame in the audio information according to the preset number of sub-amplitude adjustment coefficients and noise reduction information corresponding to the second audio amplitude.
  • the start frame is a first audio frame when the amplitude adjustment coefficient is changed from the first amplitude adjustment coefficient to the second amplitude adjustment coefficient.
  • the preset number of audio frames includes: a first group of audio frames to an Mth group of audio frames; and the preset number of sub-amplitude adjustment coefficients includes: a first sub-increment or decrement An amplitude adjustment coefficient to a Nth sub-amplitude adjustment coefficient, wherein M and N are both positive integers greater than or equal to 1, and M is greater than or equal to N; the predetermined number of sub-amplitude adjustment coefficients and the first
  • the noise reduction information corresponding to the two audio amplitudes adjusts a preset number of audio frames from the start frame in the audio information, including: using the first sub-amplitude adjustment coefficient and the second audio amplitude corresponding to The noise reduction information adjusts the first set of audio frames, and adjusts the second set of audio frames using the second sub-amplitude adjustment coefficient and the noise reduction information corresponding to the second audio amplitude until the Nth sub-amplitude is used
  • the adjustment coefficient and the noise reduction information corresponding to the second audio amplitude adjust the Nth group of audio frames.
  • step 120 the audio amplitude A corresponding to the audio information of the preset time period a, the audio amplitude B corresponding to the audio information of the preset time period b, and the audio amplitude C corresponding to the audio information of the preset time period c are obtained.
  • step 130 it is determined that the amplitude adjustment coefficient corresponding to the audio amplitude A is i and the noise reduction information is R, the amplitude adjustment coefficient corresponding to the audio amplitude B is j and the noise reduction information is S, and the amplitude adjustment coefficient corresponding to the audio amplitude B is k and the noise reduction information is T, first adjusting the audio amplitude of the audio frame from the first frame audio frame in the audio information using the amplitude adjustment coefficient i and the noise reduction information R until the preset time period b is reached At the beginning time, for example, the amplitude adjustment coefficient i and the noise reduction information R are used to adjust the 1-100th frame audio frame.
  • the amplitude adjustment coefficient j corresponding to the audio amplitude B is the same as the amplitude adjustment coefficient i corresponding to the audio amplitude A. Then continue to use the amplitude adjustment coefficient i (ie, the amplitude adjustment coefficient j), and use the noise reduction information S to adjust the audio amplitude of the audio frame from the 101st frame audio frame until the preset time period c is reached. For example, the amplitude adjustment coefficient i and the noise reduction information S are used to adjust the 101st to 300th frame audio frames.
  • each 10 frames of audio frames corresponds to a sub-amplitude adjustment coefficient, and the sub-amplitude adjustment coefficient k1 and the noise reduction information T are used to adjust the 301-310 frame audio frame, and the amplitude adjustment coefficient k2 and the noise reduction information T are used.
  • the 311-320-frame audio frame is adjusted until the 391-400-frame audio frame is adjusted using the amplitude adjustment coefficient k10 and the noise reduction information T, and then the amplitude adjustment coefficient k and the noise reduction information are used from the 401-frame audio frame. T is adjusted.
  • the volume of the sound source is adjusted without changing the original volume of the terminal device system, thereby improving the efficiency of the volume adjustment, reducing the power consumption of the terminal device, and using the sub-amplitude adjustment coefficient to the preset number.
  • the audio frame is adjusted to avoid the sudden hearing problem caused by the jump of the amplitude adjustment coefficient and improve the user experience.
  • FIG. 3 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises: determining an amplitude adjustment coefficient corresponding to the audio amplitude according to an amplitude magnitude of the audio amplitude.
  • the volume adjustment method provided in this embodiment includes the following steps.
  • 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, and determine noise reduction information corresponding to the audio amplitude.
  • Step 330 Determine an amplitude adjustment coefficient corresponding to the audio amplitude according to the amplitude of the audio amplitude.
  • the average amplitude of the audio amplitude of the preset length may be determined by acquiring an audio amplitude of a preset length, and then determining an amplitude adjustment coefficient corresponding to the audio amplitude of the preset length according to the average amplitude.
  • the amplitude adjustment coefficient corresponding to the average amplitude may be determined by a pre-stored mapping table, as shown in Table 1:
  • Average amplitude Amplitude adjustment factor Greater than -3db or less than -50db 1 Less than -10db and greater than -50db 2 Less than -3db and greater than -10db 1.5
  • Step 340 The amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients, and the audio amplitude is adjusted according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • the noise is reduced and the amplitude of the noise is reduced, and on the basis of this, the difference of the adjacent audio amplitudes is further After the amplitude adjustment coefficient is subdivided, the preset number of audio frames in the audio amplitude is adjusted step by step, which can make the sound size reasonable and the sense of hearing smooth during the sound source playing.
  • FIG. 4 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises: determining an amplitude adjustment coefficient corresponding to the audio amplitude according to an amplitude magnitude of the audio amplitude and volume information of the terminal device.
  • the volume information includes volume value information, volume increase information, or volume reduction information. As shown in FIG. 4, the volume adjustment method provided in this embodiment includes the following steps.
  • 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, and determine noise reduction information corresponding to the audio amplitude.
  • Step 303 Determine an amplitude adjustment coefficient corresponding to the audio amplitude according to the amplitude magnitude of the audio amplitude and the volume information of the terminal device.
  • 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, an amplitude adjustment coefficient corresponding to the audio amplitude 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 obtained by the volume management component of the system (getvolume).
  • the method obtains the current volume value of the terminal device; 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 factor corresponding to the audio amplitude is determined based on the current volume value, as shown in Table 2:
  • the amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the current volume increase information or volume reduction information, as shown in Table 3:
  • the amplitude adjustment coefficient may be jointly determined according to the volume increase information or the volume reduction information in conjunction with the volume value of the terminal to achieve adjustment of the audio amplitude.
  • a plurality of amplitude adjustment coefficients may be determined according to volume information of the terminal device, for example, determining a first amplitude adjustment coefficient, a second amplitude adjustment coefficient, and a third amplitude adjustment coefficient according to volume information of the terminal device, where An 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, and then according to the amplitude of the audio amplitude, which of the three amplitude adjustment coefficients is corresponding to each audio amplitude, for example, And an audio amplitude that is greater than the first preset threshold or less than the third preset threshold, the first amplitude adjustment coefficient is allocated, and the second amplitude adjustment coefficient is allocated to the audio amplitude that is less than or equal to the first preset threshold and greater than the second preset threshold.
  • a third amplitude adjustment coefficient is allocated to the audio amplitude that is less than or equal to the second preset threshold and greater than the third preset threshold, where the first preset threshold is greater than the second preset threshold, and the second preset threshold is greater than the third preset threshold And if the amplitude of the amplitude of the audio amplitude is less than the third preset threshold, determining the audio amplitude corresponding to A first amplitude adjustment factor is an amplitude adjustment coefficient.
  • determining an amplitude adjustment coefficient corresponding to the audio amplitude may be: assigning a first amplitude adjustment coefficient to an audio amplitude greater than a first preset threshold or less than a third preset threshold, being less than or equal to the first a second amplitude adjustment coefficient is allocated to the audio amplitude of the preset threshold and greater than the second preset threshold, and the third amplitude adjustment coefficient is allocated to the audio amplitude that is less than or equal to the second preset threshold and greater than the third preset threshold, where 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 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.
  • Step 304 Divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients, and adjust the audio amplitude according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • FIG. 5 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises: determining an amplitude adjustment coefficient corresponding to the audio amplitude according to a maximum amplitude and an average amplitude of the audio information.
  • the volume adjustment method provided in this embodiment includes the following steps.
  • 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, and determine noise reduction information corresponding to the audio amplitude.
  • Step 403 Determine an amplitude adjustment coefficient corresponding to the audio amplitude according to the maximum amplitude and the average amplitude of the audio information.
  • the digital audio signal decoded by the audio decoder is sampled to obtain the amplitude information in the preset time period T, wherein the amplitude information is composed of multiple amplitude values, and multiple amplitude values can be determined. The maximum amplitude in and the average amplitude of multiple amplitudes.
  • the preset length of the audio information may be acquired, and the maximum amplitude and the average amplitude of the acquired preset length audio information are taken as the maximum amplitude and the average amplitude of the audio information, or in real time.
  • Determining the audio amplitude of each frame of audio information of the audio information determining the maximum amplitude of the audio amplitude of the multi-frame audio frame and the average amplitude of the audio amplitude of the multi-frame audio frame, thereby determining the maximum amplitude and average amplitude of the audio information. And determining the amplitude adjustment coefficient based on the maximum amplitude and the average amplitude of the audio information.
  • the determining, according to the maximum amplitude and the average amplitude of the audio information, an amplitude adjustment coefficient corresponding to the audio amplitude, if the difference between the maximum amplitude and the average amplitude satisfies a preset condition An amplitude adjustment coefficient corresponding to the audio amplitude is determined based on the maximum amplitude and the average amplitude. For example, when the difference between the maximum amplitude and the average amplitude is greater than a preset threshold (eg, 2 db), an amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the maximum amplitude and the average amplitude, if the difference is not greater than a pre- If the threshold is set, the volume adjustment will not be performed.
  • a preset threshold eg, 2 db
  • a smaller amplitude adjustment coefficient (such as 0.7) is determined.
  • the higher amplitude is adjusted to lower the volume.
  • Step 404 Adjust an audio amplitude of the sound source according to the amplitude adjustment coefficient and the noise reduction information.
  • the audio amplitude of the sound source can be adjusted according to the finally determined amplitude adjustment coefficient and noise reduction information.
  • the solution provided by the embodiment determines that the amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the maximum amplitude and the average amplitude of the audio information, so that the volume of the sound source with a large amplitude is prevented from being played, and the sound source is improved.
  • FIG. 6 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises: determining an amplitude adjustment coefficient corresponding to the audio amplitude according to a maximum amplitude, an average amplitude of the audio information, and volume information of the terminal device,
  • the volume information includes volume value information, volume increase information, or volume decrease information.
  • the volume adjustment method provided in this embodiment includes the following steps.
  • Step 501 Acquire audio information of the audio source when detecting that the terminal device performs sound source playback.
  • Step 502 Determine, according to the audio information, an audio amplitude corresponding to the audio information, and determine noise reduction information corresponding to the audio amplitude.
  • Step 503 Determine an amplitude adjustment coefficient corresponding to the audio amplitude according to the maximum amplitude, the average amplitude of the audio information, and the volume information of the terminal device.
  • the volume information of the terminal device may also be acquired, and then the audio is determined according to the maximum amplitude, the average amplitude of the audio information, and the volume information of the terminal device.
  • the amplitude adjustment factor corresponding to the amplitude.
  • the determining, according to the maximum amplitude of the audio information, the average amplitude, and the volume information of the terminal device, the amplitude adjustment coefficient corresponding to the audio amplitude comprises: if the difference between the maximum amplitude and the average amplitude When the value satisfies the preset condition, the amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude, and the volume value. In one embodiment, when the difference between the maximum amplitude and the average amplitude is large (e.g., 0.2 db), to avoid a louder volume when playing to a larger amplitude source, the higher amplitude is adjusted to lower the volume. In an embodiment, if the difference between the maximum amplitude and the average amplitude does not satisfy the preset condition, that is, the phase difference is not large, the audio amplitude of the sound source is not adjusted.
  • the amplitude adjustment coefficient may be determined according to the difference between the maximum amplitude and the average amplitude and the volume value. And adjusting, according to the amplitude adjustment coefficient, an audio amplitude of the sound source that is greater than a preset amplitude threshold.
  • the relationship between the amplitude adjustment coefficients is determined according to the difference between the maximum amplitude and the average amplitude and the current volume value of the terminal device, as shown in Table 4:
  • Amplitude difference Volume value Amplitude adjustment factor Greater than 0.4db 8 0.3 Greater than 0.3db and less than 0.4db 10 0.7 Greater than 0.2db and less than 0.3db 15 0.9
  • the preset amplitude threshold may be -2 db, that is, the amplitude of the amplitude greater than the preset amplitude threshold is multiplied by the corresponding amplitude adjustment coefficient to perform amplitude attenuation to reduce the volume.
  • Step 504 Adjust an audio amplitude of the sound source according to the amplitude adjustment coefficient and the noise reduction information.
  • the amplitude adjustment coefficient is allocated according to the magnitude of the difference and the current volume of the terminal device, thereby improving the playback effect of the sound source.
  • the amplitude adjustment coefficient adjusts the amplitude of the sound source that satisfies the condition, improves the volume adjustment efficiency, and avoids the problem that the adjustment effect caused by the synchronous adjustment of the unrelated amplitude in the sound source is poor.
  • FIG. 7 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the method further includes: adjusting the amplitude adjustment coefficient according to an impedance value of the terminal device, and correspondingly, adjusting the amplitude
  • the dividing the coefficient into a preset number of sub-amplitude adjustment coefficients comprises: dividing the adjusted amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients.
  • the volume adjustment provided by this embodiment includes the following steps.
  • Step 601 Acquire audio information of the sound source when detecting that the terminal device performs sound source playing.
  • Step 602 Determine an audio amplitude corresponding to the audio information according to the audio information, and determine noise reduction information corresponding to the audio amplitude.
  • Step 603 Determine an amplitude adjustment coefficient corresponding to the audio amplitude, and adjust the amplitude adjustment coefficient according to an impedance value of a 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.
  • the greater the impedance value the greater the adjustment to the amplitude adjustment factor.
  • the amplitude adjustment coefficient is multiplied by 1.2 according to the determined amplitude adjustment coefficient. Adjusted amplitude adjustment factor.
  • Step 604 The adjusted amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients, and the audio amplitude is adjusted according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • 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 impedance value of the playback device with the increase of the playing time, and thus the normal playing.
  • the volume of the 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.
  • FIG. 8 is a flowchart of a volume adjustment method according to another embodiment of the present disclosure.
  • the method further includes: adjusting the amplitude adjustment coefficient according to a noise value of an environment in which the terminal device is located; correspondingly, the amplitude is
  • the dividing the adjustment coefficient into the preset number of sub-amplitude adjustment coefficients comprises: dividing the adjusted amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients.
  • the volume adjustment method provided in this embodiment includes the following steps.
  • Step 701 Acquire audio information of the sound source when detecting that the terminal device performs sound source playing.
  • Step 702 Determine an audio amplitude corresponding to the audio information according to the audio information, and determine noise reduction information corresponding to the audio amplitude.
  • Step 703 Determine an amplitude adjustment coefficient corresponding to the audio amplitude, and adjust the amplitude adjustment coefficient according to a noise value of an environment where the terminal device is located.
  • the noise of the current environment can be collected by the microphone installed by the terminal device to determine a corresponding noise value.
  • the greater the noise value the greater the adjustment to the amplitude adjustment factor.
  • the corresponding amplitude adjustment coefficient is determined. The amplitude adjustment coefficient is multiplied by 1.5 as the adjusted amplitude adjustment coefficient.
  • the amplitude adjustment coefficient of the sound source may also be determined jointly according to the impedance value, the noise value, and the magnitude of the audio amplitude.
  • Step 704 The adjusted amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients, and the audio amplitude is adjusted according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • the influence of 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 amplitude adjustment coefficient, so that the adjusted volume is more in line with the user's demand. Further improved the volume adjustment effect.
  • FIG. 9 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure.
  • the device 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 information 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 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 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 sound source can be obtained by the android.media.MediaRecorder class or the android.media.AudioRecord class to obtain the corresponding amplitude.
  • the acquired audio information is the original file corresponding to the sound source, the original file may be parsed to obtain a corresponding amplitude size.
  • 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 Determining an audio amplitude of each frame of the audio information.
  • the sound source file is parsed to obtain an audio frame sequence, and the amplitude corresponding to each frame is determined according to each frame of the audio frame sequence.
  • the adjustment information determining module 30 is configured to determine an amplitude adjustment coefficient and noise reduction information corresponding to the audio amplitude.
  • the noise reduction information may be inverted output information of the noise information determined from the audio amplitude.
  • the noise amplitude corresponding to the audio amplitude determined according to the audio amplitude is larger, the amplitude of the reverse output in the noise reduction information is correspondingly increased, and the noise amplitude corresponding to the audio amplitude determined according to the audio amplitude is relatively larger.
  • the amplitude of the reverse output in the noise reduction information is also reduced accordingly, thereby realizing the reasonable determination of the noise reduction information interval by analyzing the audio amplitude, thereby completing the automatic noise reduction, without artificially setting the noise reduction level, and at the same time,
  • the audio amplitude of the real-time input determines the noise reduction information, and the noise reduction effect is better.
  • the adjustment module 40 is configured to adjust the audio amplitude of the sound source according to the adjustment coefficient and the noise reduction information.
  • the adjustment information determining module 30 is further configured to: after determining the amplitude adjustment coefficient corresponding to the audio amplitude, dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients;
  • the module 40 is configured to adjust the audio amplitude according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • a large amplitude adjustment coefficient is assigned to the low-amplitude audio amplitude, and a high-amplitude audio amplitude is correspondingly assigned a smaller amplitude adjustment coefficient.
  • the amplitude adjustment coefficient is 1.2 for audio amplitudes less than -3 db and greater than -10 db, and the amplitude adjustment coefficient is 2 for audio amplitudes less than -10 db and greater than -50 db.
  • the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients comprises: when detecting that an amplitude adjustment coefficient corresponding to different audio amplitudes satisfies a preset condition, dividing the amplitude adjustment coefficient into A preset number of sub-amplitude adjustment factors.
  • the sub-amplitude adjustment coefficients are obtained by linear or non-linear division of the amplitude adjustment coefficients.
  • the preset condition may be that the amplitude adjustment coefficients of the adjacent audio amplitudes are different, for example, the amplitude adjustment coefficient is changed from the amplitude adjustment coefficient 1 of the previous audio amplitude to the amplitude of the latter audio amplitude.
  • the adjustment coefficient 2, or the amplitude adjustment coefficient is changed from 2 to 1.2, etc., at this time, a preset number of sub-amplitude adjustment coefficients can be added between the two amplitude adjustment coefficients corresponding to the adjacent two audio amplitudes.
  • each n (for example, n is greater than 1 and less than or equal to 20) frame audio frames may be corresponding to one sub-amplitude adjustment coefficient, and the amplitude of each audio frame is sequentially adjusted. .
  • the sub-amplitude adjustment coefficient corresponding to the 1-20th audio frame at the beginning of the change is 1.28
  • the sub-amplitude adjustment coefficient corresponding to the 21-40th frame audio frame is 1.36. ,And so on.
  • the process of adjusting the audio amplitude may be: parsing the audio file, modifying the data representing the amplitude information in the obtained audio data, and then performing the encapsulation after the modification, when buffering to the corresponding audio source.
  • the audio amplitude is correspondingly increased; or, in the decoding process of the sound source playing, the audio amplitude is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding amplitude adjustment coefficient.
  • adjust the volume of the source adjust the volume of the source. Therefore, 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.
  • the technical solution provided by the embodiment improves the volume adjustment efficiency, reduces the power consumption of the mobile terminal, and automatically adjusts the audio amplitude by using the noise reduction information, and does not need to manually set the noise reduction level, and at the same time,
  • the audio amplitude of the real-time input determines the noise reduction information, and the noise reduction effect is better.
  • the adjustment information determining module 30 is further configured to:
  • the amplitude adjustment coefficient After determining the amplitude adjustment coefficient corresponding to the audio amplitude, the amplitude adjustment coefficient is divided into a preset number of sub-amplitude adjustment coefficients.
  • the adjustment module 40 is configured to:
  • the audio amplitude is adjusted according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • the adjustment information determining module 30 is configured to divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients by:
  • the adjustment information determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude by:
  • An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the amplitude magnitude of the audio amplitude.
  • the adjustment information determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude by:
  • An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to a maximum amplitude and an average amplitude of the audio information.
  • the adjustment information determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude as follows:
  • volume information includes volume value information, volume increase information, or volume decrease information.
  • the adjustment information determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude as follows:
  • volume information includes volume value information, volume increase information, or volume reduction information.
  • the adjustment information determining module 30 is further configured to:
  • the adjustment information determining module 30 is configured to divide the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients by dividing the adjusted amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients.
  • FIG. 9 is a structural block diagram of a volume adjustment apparatus according to another embodiment of the present disclosure.
  • the device 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 information determination module 30, and an adjustment module 40.
  • the obtaining module 10 is configured to acquire audio information of the sound source when the terminal device detects the sound source playing, and the amplitude determining module 20 is configured to determine the audio corresponding to the audio information according to the audio information.
  • An amplitude adjustment adjustment module 30 is configured to determine an amplitude adjustment coefficient and noise reduction information corresponding to the audio amplitude; and an adjustment module 40 configured to adjust an audio amplitude of the sound source according to the adjustment coefficient and the noise reduction information Make adjustments.
  • the amplitude determining module 20 is configured to determine, according to the audio information, a plurality of audio amplitudes respectively corresponding to audio information of the plurality of preset time segments in the audio information; the adjustment information determining module 30 Is configured to: determine an amplitude adjustment coefficient and noise reduction information corresponding to each of the audio amplitudes; the adjustment module 40 is configured to: the first amplitude adjustment coefficient corresponding to the first audio amplitude and the adjacent second audio amplitude When a corresponding second amplitude adjustment coefficient is different, a preset number of sub-amplitude adjustment coefficients are added between the first amplitude adjustment coefficient and the second amplitude adjustment coefficient, wherein the preset number of sub-amplitude adjustments The coefficient is sequentially incremented or sequentially decreased between the first amplitude adjustment coefficient and the second amplitude adjustment coefficient; and the noise reduction information corresponding to the preset number of sub-amplitude adjustment coefficients and the second audio amplitude Adjusting a preset number of audio frames from a start frame in the audio information, where
  • the amplitude determining module 20 is configured to: perform at least two sampling of the audio information in each of the preset time periods to obtain at least two corresponding to each of the preset time periods. Audio amplitude; determining an average amplitude between the at least two audio amplitudes corresponding to each of the preset time periods as an audio amplitude corresponding to audio information of each of the preset time periods.
  • the amplitude determining module 20 is configured to determine an audio amplitude according to the audio information every the preset time period.
  • the amplitude determining module 20 is configured to: determine an audio amplitude corresponding to each frame of the audio information of the audio information according to the audio information, where each frame of the audio frame corresponds to one Preset time period.
  • the preset number of audio frames includes: a first group of audio frames to an Mth group of audio frames; and the preset number of sub-amplitude adjustment coefficients includes: a first sub-increment or decrement The amplitude adjustment coefficient to the Nth sub-amplitude adjustment coefficient, wherein M and N are both positive integers greater than or equal to 1, and M is greater than or equal to N;
  • the adjustment module is configured to be implemented according to the preset number as follows a sub-amplitude adjustment coefficient and a noise reduction information corresponding to the second audio amplitude to adjust a preset number of audio frames from a start frame in the audio information: using the first sub-amplitude adjustment coefficient and Adjusting the first set of audio frames by using the noise reduction information corresponding to the second audio amplitude, and adjusting the second set of audio frames by using the second sub-amplitude adjustment coefficient and the noise reduction information corresponding to the second audio amplitude, until And adjusting the Nth group of audio frames by using the Nth sub-amplitude adjustment coefficient and the noise reduction information corresponding
  • the adjustment information determining module 30 is configured to determine, according to the manner, a plurality of amplitude adjustment coefficients that are in one-to-one correspondence with the plurality of audio amplitudes: determining and determining according to the amplitude magnitude of the plurality of audio amplitudes A plurality of amplitude adjustment coefficients corresponding to the plurality of audio amplitudes in one-to-one correspondence.
  • the adjustment information determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude by determining: corresponding to the audio amplitude according to a maximum amplitude and an average amplitude of the audio information. Amplitude adjustment factor.
  • the adjustment information determining module 30 is configured to determine an amplitude adjustment coefficient corresponding to the audio amplitude by determining a sum according to a maximum amplitude, an average amplitude of the audio information, and volume information of the terminal device.
  • the adjustment information determining module 30 is further configured to: adjust the amplitude adjustment coefficient according to at least one of the following information: an impedance value of the playback device of the terminal device and an environment where the terminal device is located a noise value; the adjustment module 40 is configured to increase a preset number of sub-amplitude adjustment coefficients by: adjusting the first amplitude adjustment coefficient corresponding to the first audio amplitude and the adjacent second When the adjusted second amplitude adjustment coefficients corresponding to the audio amplitudes are different, a preset number of sub-amplitude adjustment coefficients are added between the adjusted first amplitude adjustment coefficient and the adjusted second amplitude adjustment coefficient.
  • FIG. 10 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.
  • 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 terminal device 200 illustrated in FIG. 10 is merely an example of a terminal device, and the terminal device 200 may have more or fewer components than those illustrated in FIG. 10, and two or more components may be combined, or Can have different component configurations.
  • the various components shown in FIG. 10 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 in detail 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 and 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 method further includes: dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients;
  • the adjusting, by the noise reduction information, the audio amplitude comprises: adjusting the audio amplitude according to the sub-amplitude adjustment coefficient and the noise reduction information.
  • the dividing the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients comprises:
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises:
  • An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to the amplitude magnitude of the audio amplitude.
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises:
  • An amplitude adjustment coefficient corresponding to the audio amplitude is determined according to a maximum amplitude and an average amplitude of the audio information.
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises:
  • volume information includes volume value information, volume increase information, or volume decrease information.
  • the determining an amplitude adjustment coefficient corresponding to the audio amplitude comprises:
  • volume information includes volume value information, volume increase information, or volume reduction information.
  • the method further includes: performing the amplitude adjustment coefficient according to an impedance value of the playback device of the terminal device and/or a noise value of an environment in which the terminal device is located
  • the adjusting the amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients comprises: dividing the adjusted amplitude adjustment coefficient into a preset number of sub-amplitude adjustment coefficients.
  • 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 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 a dynamic random Random Access Memory (DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random 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 of which are not limited to the volume adjustment method as described above, and may also perform correlation in the volume adjustment method provided by any embodiment of the present disclosure. operating.

Abstract

Procédé et dispositif de réglage de volume, terminal mobile et support de stockage. Le procédé comporte les étapes consistant: lorsqu'il est détecté qu'un dispositif terminal reproduit une source sonore, à acquérir des informations audio de la source sonore; déterminer une amplitude audio correspondant aux informations audio d'après les informations audio; et déterminer un coefficient de réglage d'amplitude et des informations de réduction de bruit correspondant à l'amplitude audio, et régler l'amplitude audio d'après le coefficient de réglage et les informations de réduction de bruit.
PCT/CN2018/098656 2017-08-18 2018-08-03 Procédé et dispositif de réglage de volume, terminal mobile et support de stockage WO2019033943A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710711588.5A CN107465824B (zh) 2017-08-18 2017-08-18 音量调节方法、装置、移动终端及存储介质
CN201710711588.5 2017-08-18

Publications (1)

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

Family

ID=60550109

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/098656 WO2019033943A1 (fr) 2017-08-18 2018-08-03 Procédé et dispositif de réglage de volume, terminal mobile et support de stockage

Country Status (2)

Country Link
CN (1) CN107465824B (fr)
WO (1) WO2019033943A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112185338A (zh) * 2020-09-30 2021-01-05 北京大米科技有限公司 音频处理方法、装置、可读存储介质和电子设备

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465824B (zh) * 2017-08-18 2020-06-05 Oppo广东移动通信有限公司 音量调节方法、装置、移动终端及存储介质
CN108737648B (zh) * 2018-05-10 2020-12-04 上海麦克风文化传媒有限公司 音乐音量自适应调节方法、装置、存储介质及终端
CN108897516B (zh) * 2018-06-13 2021-04-09 Oppo广东移动通信有限公司 一种可穿戴设备音量调整方法及相关产品
CN109375893A (zh) * 2018-11-20 2019-02-22 北京小米移动软件有限公司 音频播放方法及装置
CN112558916B (zh) * 2020-12-24 2024-01-05 阿波罗智联(北京)科技有限公司 音频调节的方法、装置、电子设备及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140086422A1 (en) * 2012-09-21 2014-03-27 Hon Hai Precision Industry Co., Ltd. Electronic device, system and method for managing sound effect
CN103701419A (zh) * 2013-12-06 2014-04-02 乐视致新电子科技(天津)有限公司 一种音量调节方法及装置
CN103761063A (zh) * 2013-12-19 2014-04-30 北京百度网讯科技有限公司 一种在播放设备中控制音频的输出音量的方法和装置
CN203596902U (zh) * 2013-12-05 2014-05-14 无锡焺通微电子有限公司 具有线性功率音量控制的音频功率放大集成电路芯片
CN106648527A (zh) * 2016-11-08 2017-05-10 乐视控股(北京)有限公司 一种音量控制方法、装置以及播放设备
CN106792386A (zh) * 2016-12-05 2017-05-31 青岛海信电器股份有限公司 一种终端音量调节方法及装置
CN106878866A (zh) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 音频信号处理方法、装置及终端
CN107465824A (zh) * 2017-08-18 2017-12-12 广东欧珀移动通信有限公司 音量调节方法、装置、移动终端及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775563A (zh) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 音量调节的方法及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140086422A1 (en) * 2012-09-21 2014-03-27 Hon Hai Precision Industry Co., Ltd. Electronic device, system and method for managing sound effect
CN203596902U (zh) * 2013-12-05 2014-05-14 无锡焺通微电子有限公司 具有线性功率音量控制的音频功率放大集成电路芯片
CN103701419A (zh) * 2013-12-06 2014-04-02 乐视致新电子科技(天津)有限公司 一种音量调节方法及装置
CN103761063A (zh) * 2013-12-19 2014-04-30 北京百度网讯科技有限公司 一种在播放设备中控制音频的输出音量的方法和装置
CN106648527A (zh) * 2016-11-08 2017-05-10 乐视控股(北京)有限公司 一种音量控制方法、装置以及播放设备
CN106792386A (zh) * 2016-12-05 2017-05-31 青岛海信电器股份有限公司 一种终端音量调节方法及装置
CN106878866A (zh) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 音频信号处理方法、装置及终端
CN107465824A (zh) * 2017-08-18 2017-12-12 广东欧珀移动通信有限公司 音量调节方法、装置、移动终端及存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112185338A (zh) * 2020-09-30 2021-01-05 北京大米科技有限公司 音频处理方法、装置、可读存储介质和电子设备
CN112185338B (zh) * 2020-09-30 2024-01-23 北京大米科技有限公司 音频处理方法、装置、可读存储介质和电子设备

Also Published As

Publication number Publication date
CN107465824B (zh) 2020-06-05
CN107465824A (zh) 2017-12-12

Similar Documents

Publication Publication Date Title
WO2019033943A1 (fr) Procédé et dispositif de réglage de volume, terminal mobile et support de stockage
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
US11201598B2 (en) Volume adjusting method and mobile terminal
US10440464B2 (en) Method and apparatus for adjusting volume, terminal device and storage medium
CN107566618B (zh) 音量调节方法、装置、终端设备及存储介质
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
WO2019033940A1 (fr) Procédé et appareil de réglage de volume, dispositif terminal et support d'informations
WO2019033941A1 (fr) Appareil et procédé de réglage de volume, dispositif terminal, et support d'informations
CN110799936B (zh) 音量调节方法、装置、终端设备及存储介质
CN107799113B (zh) 音频处理方法、装置、存储介质及移动终端
CN107508983B (zh) 音量调节方法、装置、存储介质及终端设备
CN107483734B (zh) 音量调节方法、装置、终端设备及存储介质
WO2019033939A1 (fr) Procédé et appareil de réglage de volume, dispositif terminal et support d'informations
CN107506168B (zh) 音量调节方法、装置、终端设备及存储介质
CN106293607B (zh) 自动切换音频输出模式的方法及系统
CN112307161B (zh) 用于播放音频的方法和装置
TW201830229A (zh) 校正方法與電腦可讀取之記錄媒體
WO2019033439A1 (fr) Procédé de réglage de volume, appareil, support d'informations et terminal mobile
CN107506170A (zh) 音量调节方法、装置、终端设备及存储介质
CN116627377A (zh) 音频处理方法、装置、电子设备和存储介质
CN117061946A (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: 18847075

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: 18847075

Country of ref document: EP

Kind code of ref document: A1