WO2019033940A1 - Procédé et appareil de réglage de volume, dispositif terminal et support d'informations - Google Patents
Procédé et appareil de réglage de volume, dispositif terminal et support d'informations Download PDFInfo
- Publication number
- WO2019033940A1 WO2019033940A1 PCT/CN2018/098647 CN2018098647W WO2019033940A1 WO 2019033940 A1 WO2019033940 A1 WO 2019033940A1 CN 2018098647 W CN2018098647 W CN 2018098647W WO 2019033940 A1 WO2019033940 A1 WO 2019033940A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- amplitude
- sound source
- adjustment coefficient
- determining
- terminal device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Definitions
- the present disclosure relates to the field of computer technology, for example, to a volume adjustment method, apparatus, terminal device, and storage medium.
- terminal devices With the increasing popularity of terminal devices, more and more users use terminal devices to perform various functions to meet their own needs, such as reading text, watching videos, listening to music, playing games, and the like using terminal devices.
- terminal device is playing audio and video, the adjustment of the volume level is flawed and needs to be improved.
- the disclosure provides a volume adjustment method, device, terminal device and storage medium, which improves the volume adjustment efficiency and reduces the power consumption of the terminal device.
- Embodiments of the present disclosure provide a volume adjustment method, including:
- the amplitude of the sound source is adjusted according to the amplitude adjustment coefficient.
- the embodiment of the present disclosure further provides a volume adjustment apparatus, including:
- An amplitude determining module configured to determine an amplitude corresponding to the audio information according to the audio information
- the adjustment coefficient determining module is configured to determine an amplitude adjustment coefficient according to the amplitude size and the current volume value of the obtained terminal device;
- the adjustment module is configured to adjust the amplitude of the sound source according to the amplitude adjustment coefficient.
- An embodiment of the present disclosure further provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement an embodiment of the present disclosure The volume adjustment method described.
- Embodiments of the present disclosure also provide a storage medium including terminal device executable instructions for performing a volume adjustment method according to an embodiment of the present disclosure when executed by a terminal device processor.
- the technical solution provided by the embodiment of the present disclosure when detecting that the terminal device performs sound source playing, acquiring audio information of the sound source; determining, according to the audio information, an amplitude corresponding to the audio information; The current volume value of the terminal device determines an amplitude adjustment coefficient; the amplitude of the sound source is adjusted according to the amplitude adjustment coefficient.
- the solution 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 structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure.
- FIG. 7 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.
- the method is applicable to a terminal device that is provided by the terminal device according to the embodiment of the present disclosure.
- the volume adjustment device of the terminal device can be implemented by using software and/or hardware. As shown in FIG. 1 , the solution provided by this embodiment is as follows:
- 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 audio source through the installed third-party application or the audio and video playback software that comes with the system.
- the playing of the sound source mainly includes the steps of acquiring, decoding, and outputting the sound source file.
- the obtained sound source file may be a multicast stream received through a network, or may be an audio and video file stored locally by the terminal device.
- the sound source file is loaded into the memory buffer, and the sound source file loaded into the memory buffer is decoded. Before the decoding starts, if the sound source file contains video data at the same time, separation of the audio data and the video data is required, and the separated audio data is input to the audio decoder.
- the audio decoder is mainly used for reading audio data in the memory buffer, obtaining a digital audio signal, and converting the digital audio signal into an analog audio signal, and the playing device of the terminal device performs audio playback according to the analog audio signal.
- the triggering event may be that the playing button displayed in the touch screen is detected to be pressed, or may be determined to determine that the terminal device performs sound source playing when the playing device of the terminal device detects that the sound starts playing.
- the audio information of the sound source is acquired.
- the digital audio signal decoded by the audio decoder may be sampled to determine audio information corresponding to the audio source.
- the original file of the currently played sound source may also be acquired, and the audio information corresponding to the sound source is determined by parsing the original file.
- the audio information of the sound source can be obtained through the android.media.MediaRecorder class or the android.media.AudioRecord class.
- Step 102 Determine, according to the audio information, an amplitude corresponding 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 audio information acquired in step 101 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 in real time, the amplitude of each frame of the audio information is determined.
- the acquiring the audio information of the sound source comprises: acquiring audio frame information of the sound source; and correspondingly, determining the amplitude of the sound source according to the audio information comprises: determining, according to the audio frame information, The amplitude of the audio frame per frame of the source.
- the sound source file is parsed to obtain an audio frame sequence, and the corresponding amplitude is determined according to each frame of the audio frame sequence.
- Step 103 Determine an amplitude adjustment coefficient according to the amplitude magnitude and the current volume value of the obtained terminal device, and adjust an amplitude of the sound source according to the amplitude adjustment coefficient.
- the fixed amplitude adjustment coefficient may be determined according to the determined amplitude magnitude and the current volume value of the obtained terminal device, or may be determined by using different amplitude adjustment coefficients according to the magnitude of the specific sound source amplitude. Perform amplitude adjustment.
- the terminal device is divided into 18 adjustable levels from mute to maximum volume, and each level corresponds to a volume value.
- the data representing the amplitude information in the obtained audio data may be modified by parsing the sound source file, and then the package is modified after being modified, and buffered to the corresponding sound source file and The amplitude of the sound source is correspondingly increased during playback; or, during the decoding process of the sound source playing, the amplitude data is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding adjustment coefficient to change the amplitude.
- the size which in turn adjusts 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 amplitude magnitude of each frame of the audio source is adjusted.
- different amplitude adjustment coefficients are assigned to different amplitude amplitudes of each frame of the audio frame during the adjustment process to perform corresponding adjustments. For example, several possible correspondences may be given as shown in Table 1:
- the corresponding setting adjustment coefficient is 0.5, which lowers the high amplitude portion of the sound source; when the amplitude of the audio frame is smaller than -3db and greater than -10db, and the current terminal device volume value is moderate, the corresponding setting adjustment coefficient is 0.8, fine-tuning the amplitude of the sound source located in the medium amplitude region; when the amplitude of the audio frame is less than -20db and the current terminal device volume value is compared When high, the corresponding lower amplitude portion of the sound source is increased.
- the terminal device detects the sound source playing, by analyzing the amplitude of the sound source and the volume of the current terminal, the corresponding amplitude adjustment coefficient is obtained, and the amplitude of the sound source is adjusted, so that when the sound source is played,
- the automatic adjustment of the volume is completed under the premise of changing the volume of the terminal, so that the amplitude of the sound source is more reasonable, and the adjustment of the volume is more automated.
- FIG. 2 is a flowchart of another volume adjustment method according to an embodiment of the present disclosure.
- the obtaining the audio information of the sound source and determining the corresponding amplitude according to the audio information comprises: acquiring audio information of a preset length of the sound source, and determining the audio information according to the audio information.
- Corresponding maximum amplitude and average amplitude; correspondingly, determining the amplitude adjustment coefficient according to the amplitude magnitude and the current volume value of the acquired terminal device comprises: determining, according to the maximum amplitude, the average amplitude, and the volume value Amplitude adjustment factor.
- the technical solution provided by this embodiment is as follows:
- Step 310 Acquire audio information of a preset length of the sound source when detecting that the terminal device performs sound source playing.
- the preset length 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 preset length may be 3 seconds (s), 5s or 10s, and the like.
- the original file of the currently played sound source may also be acquired, and the audio information of the preset length corresponding to the sound source is determined by parsing the original file.
- Step 320 Determine a maximum amplitude and an average amplitude in the audio information according to the audio information.
- the digital audio signal decoded by the audio decoder can be sampled to obtain amplitude information.
- the amplitude information may consist of a plurality of amplitude values.
- the acquiring the preset length of the audio information of the sound source comprises: acquiring the preset length of the audio frame information of the sound source; and correspondingly, determining the maximum amplitude of the preset length of the audio information.
- the average amplitude includes determining a maximum amplitude and an average amplitude in the audio frame information of the preset length according to the audio frame information.
- the sound source file is parsed to obtain an audio frame sequence, and the audio frame of each frame of the predetermined length of audio information is determined to determine a corresponding amplitude, thereby determining a maximum amplitude and an average amplitude.
- Step 330 Determine an amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the current volume value of the obtained terminal device.
- the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value comprises: if the difference between the maximum amplitude and the average amplitude satisfies a preset condition, The maximum amplitude, the average amplitude, and the volume value determine an amplitude adjustment factor.
- 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.
- the difference between the maximum amplitude and the average amplitude does not satisfy the preset condition, i.e., the phase difference is not large, the amplitude of the sound source is not adjusted.
- the first amplitude adjustment coefficient may be determined according to the difference between the maximum amplitude and the average amplitude and the volume value, Correspondingly, the amplitude of the sound source greater than the first preset threshold may be adjusted according to the first amplitude adjustment coefficient. In an embodiment, the relationship between the first amplitude adjustment coefficient is determined according to the difference between the maximum amplitude and the average amplitude and the current volume value of the terminal device.
- 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 first predetermined amplitude threshold may be -2 db, that is, the amplitude of the amplitude greater than the first amplitude threshold is multiplied by a corresponding amplitude adjustment coefficient to perform amplitude attenuation to reduce the volume.
- Step 340 Adjust the amplitude of the sound source according to the amplitude adjustment coefficient.
- the amplitude adjustment coefficient is allocated according to the size of the difference and the current volume of the terminal device, and 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. 3 is a flowchart of another volume adjustment method according to an embodiment of the present disclosure.
- the adjusting the amplitude of the sound source according to the amplitude adjustment coefficient further comprises: according to the second amplitude adjustment coefficient, being less than a second preset threshold and greater than a third preset threshold in the sound source The amplitude is adjusted, and the second preset threshold is smaller than the first preset threshold.
- the solution provided in this embodiment includes:
- Step 301 Acquire audio information of a preset length of the sound source when detecting that the terminal device performs sound source playing.
- Step 302 Determine a maximum amplitude and an average amplitude in the audio information, and obtain a current volume value of the terminal device.
- Step 303 Determine, according to the difference between the maximum amplitude and the average amplitude, and the volume value, a first amplitude adjustment coefficient, and according to the first amplitude adjustment coefficient, an amplitude greater than a first preset threshold in the sound source. Make adjustments.
- Step 304 Determine a second amplitude adjustment coefficient according to the average amplitude, and adjust an amplitude of the sound source that is smaller than a second preset threshold and greater than a third preset threshold according to the second amplitude adjustment coefficient.
- the second preset threshold is smaller than the first preset threshold.
- the second amplitude adjustment factor is determined based on the average amplitude. In one embodiment, the correspondence between the average amplitude and the second amplitude adjustment factor is as follows:
- the second preset threshold may be -30 db
- the third preset amplitude threshold may be -50 db.
- the corresponding amplitude adjustment coefficient is determined according to the magnitude of the average amplitude of the sound source, and the larger the average amplitude is, the higher the amplitude adjustment coefficient is, and the condition that satisfies the condition (less than the second preset threshold and greater than the third preset threshold)
- the amplitude is adjusted according to the amplitude adjustment coefficient, and the volume of the lower part of the sound source is increased, so that the playing effect is better during the playing of the sound source, and the manual volume adjustment is avoided, thereby improving the volume adjustment efficiency.
- FIG. 4 is a flowchart of another volume adjustment method according to an embodiment of the present disclosure.
- the method before determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value, the method further includes: determining an impedance value of the playback device of the terminal device; correspondingly, the Determining the amplitude adjustment coefficient based on the maximum amplitude, the average amplitude, and the volume value includes determining an amplitude adjustment coefficient based on the impedance value, the maximum amplitude, the average amplitude, and the volume value.
- the solution provided in this embodiment includes:
- Step 401 Acquire audio information of a preset length of the sound source when detecting that the terminal device performs sound source playing.
- Step 402 Determine a maximum amplitude and an average amplitude in the audio information, and obtain a current volume value of the terminal device.
- Step 403 Determine an impedance value of the playback device of the terminal device.
- the impedance value of the playback device (eg, speaker) installed in the terminal device may be detected by the power amplifier chip, or the impedance of the playback device may be physically detected.
- Step 404 Determine a first amplitude adjustment coefficient according to the impedance value, the maximum amplitude, the average amplitude, and the volume value.
- the first amplitude adjustment coefficient is further determined in conjunction with the impedance values of the playback devices of the terminal device determined in step 403. In an embodiment, the greater the impedance value, the greater the corresponding determined first amplitude adjustment factor. In an embodiment, assuming that the nominal impedance value of the playback device is x and the impedance value obtained by the detection is 1.2x, the corresponding first amplitude adjustment coefficient may be an amplitude determined only by the maximum amplitude, the average amplitude, and the volume value. The adjustment coefficient is 1.2 times as the final determined amplitude adjustment coefficient.
- Step 405 Adjust an amplitude of the sound source that is greater than a first preset threshold according to the first amplitude adjustment coefficient.
- Step 406 Determine a second amplitude adjustment coefficient according to the average amplitude, and adjust an amplitude of the sound source that is smaller than a second preset threshold and greater than a third preset threshold according to the second amplitude adjustment coefficient.
- the impedance value of the playing device is introduced as one of the parameters for determining the amplitude adjusting coefficient, thereby avoiding the increase of the impedance value of the playing device with the playing time and the normal playing 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. 5 is a flowchart of another volume adjustment method according to an embodiment of the present disclosure.
- the method before determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value, the method further includes: determining a noise value of a current environment of the terminal device; correspondingly, Determining the amplitude adjustment coefficient based on the maximum amplitude, the average amplitude, and the volume value includes determining an amplitude adjustment coefficient based on the noise value, the maximum amplitude, the average amplitude, and the volume value.
- the solution provided in this embodiment includes:
- Step 501 Acquire audio information of a preset length of the sound source when detecting that the terminal device performs sound source playing.
- Step 502 Determine a maximum amplitude and an average amplitude in the audio information, and obtain a current volume value of the terminal device.
- Step 503 Determine a noise value of an environment in which the terminal device is currently located.
- the noise of the current environment can be collected by the microphone installed by the terminal device to determine a corresponding noise value.
- Step 504 Determine a first amplitude adjustment coefficient according to the noise value, the maximum amplitude, the average amplitude, and the volume value.
- the first amplitude adjustment coefficient is determined together with the noise value of the environment in which the terminal device is currently determined in step 503. In an embodiment, the greater the noise value, the greater the corresponding determined first amplitude adjustment factor. In an embodiment, assuming that the noise value of the terminal device in a quiet environment is y, and the determined noise value is 1.2y when the terminal device is in an outdoor or noisy environment, the corresponding first amplitude adjustment coefficient may be only the maximum The amplitude, the average amplitude, and the volume value determine 1.2 times the amplitude adjustment coefficient as the final determined amplitude adjustment coefficient. In one embodiment, the impedance value, the noise value, the maximum amplitude of the sound source, and the average amplitude may also be used together to determine an amplitude adjustment factor of the sound source.
- Step 505 Adjust an amplitude of the sound source that is greater than a first preset threshold according to the first amplitude adjustment coefficient.
- Step 506 Determine a second amplitude adjustment coefficient according to the average amplitude, and adjust an amplitude of the sound source that is smaller than a second preset threshold and greater than a third preset threshold according to the second amplitude adjustment coefficient.
- 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 better in accordance with the user's demand. , further improve the volume adjustment effect.
- FIG. 6 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure.
- the apparatus is configured to perform the volume adjustment method provided by the foregoing embodiment, and has a function module and a beneficial effect corresponding to the execution method.
- the apparatus includes an acquisition module 10, an amplitude determination module 20, an adjustment coefficient determination module 30, and an adjustment module 40.
- the obtaining module 10 is configured to acquire audio information of the sound source when detecting that the terminal device performs sound source playing.
- the terminal device can play the sound source through the installed third-party application or the audio and video playback software that comes with the system.
- the playing of the sound source mainly includes the steps of acquiring, decoding, and outputting the sound source file.
- the acquired 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, the sound source file is loaded into the memory buffer, and the sound source file loaded into the memory buffer is decoded. Before the decoding starts, if the sound source file contains video data at the same time, separation of the audio data and the video data is required, and the separated audio data is input to the audio decoder.
- the audio decoder is mainly used for reading audio data in the memory buffer, obtaining a digital audio signal, and converting the digital audio signal into an analog audio signal, and the playing device of the terminal device performs audio playback according to the analog audio signal.
- the triggering event may be that it is detected that the play button displayed in the touch screen is pressed, or may be determined that the playing device of the terminal device, such as the horn, starts playing the sound, and determines that the terminal device performs the sound source 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 determination module 120 is configured to determine a corresponding amplitude magnitude based on 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 in real time, the amplitude of each frame of the audio information is determined.
- the obtaining module 10 is configured to acquire audio frame information of the sound source when detecting the sound source playing by the terminal device; correspondingly, the amplitude determining module 20 is configured to determine the audio frame information according to the audio frame information. The amplitude of the audio frame per frame of the source.
- the sound source file is parsed to obtain an audio frame sequence, and the corresponding amplitude is determined according to each frame of the audio frame sequence.
- the adjustment coefficient determining module 30 is configured to determine an amplitude adjustment coefficient according to the amplitude magnitude and the current volume value of the acquired terminal device.
- the adjustment module 40 is configured to adjust the amplitude of the sound source according to the amplitude adjustment coefficient.
- the fixed amplitude adjustment coefficient may be determined according to the determined amplitude magnitude and the current volume value of the obtained terminal device, or may be determined by using different amplitude adjustment coefficients according to the magnitude of the specific sound source amplitude. Perform amplitude adjustment.
- the terminal device is divided into 18 adjustable levels from mute to maximum volume, each level corresponding to a volume value.
- the data representing the amplitude information in the obtained audio data may be modified by parsing the sound source file, and then the package is modified after being modified, and buffered to the corresponding sound source file and The amplitude of the sound source is correspondingly increased during playback; or, during the decoding process of the sound source playing, the amplitude data is obtained by analyzing the obtained digital audio signal, and the amplitude data is multiplied by the corresponding adjustment coefficient to change the amplitude.
- the size which in turn adjusts 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 when detecting that the terminal device performs sound source playing, acquiring audio information of the sound source; determining, according to the audio information, an amplitude corresponding to the audio information; according to the amplitude and the acquired The current volume value of the terminal device determines an amplitude adjustment coefficient; the amplitude of the sound source is adjusted according to the amplitude adjustment coefficient.
- the solution improves the volume adjustment efficiency and reduces the power consumption of the terminal device.
- the obtaining module 10 is configured to: acquire audio information of a preset length of the sound source when detecting the sound source playing by the terminal device; the amplitude determining module 20 is configured to: according to the preset The length of the audio information determines a maximum amplitude and an average amplitude of the preset length of audio information; the adjustment coefficient determining module 30 is configured to: according to the maximum amplitude, the average amplitude, and the current state of the acquired terminal device The volume value determines the amplitude adjustment factor.
- the adjustment factor determination module 30 is configured to:
- the amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude, and the volume value.
- the adjustment coefficient determination module 30 is configured to determine an amplitude adjustment coefficient by determining a first amplitude adjustment coefficient according to the difference between the maximum amplitude and the average amplitude and the volume value;
- the adjustment module 40 is configured to adjust an amplitude of the sound source that is greater than a first predetermined threshold according to the first amplitude adjustment coefficient.
- the adjustment coefficient determining module 30 is further configured to: after determining the first amplitude adjustment coefficient according to the difference between the maximum amplitude and the average amplitude and the volume value, according to the average The amplitude determines a second amplitude adjustment coefficient; the adjustment module 104 is further configured to: adjust, according to the second amplitude adjustment coefficient, an amplitude of the sound source that is smaller than a second preset threshold and greater than a third preset threshold, wherein The second preset threshold is smaller than the first preset threshold.
- the adjustment factor determination module 30 is configured to determine an amplitude adjustment factor by:
- the adjustment factor determination module 30 is configured to determine an amplitude adjustment factor by:
- the acquiring module 10 is configured to acquire audio frame information of a preset length of the sound source when detecting that the terminal device performs sound source playing;
- the amplitude determining module 20 is configured to determine a maximum amplitude and an average amplitude in the audio frame information of the preset length according to the audio frame information of the preset length.
- FIG. 7 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. 7 is merely an example of a terminal device, and the terminal device 200 may have more or fewer components than those illustrated in FIG. 7, and two or more components may be combined, or Can have different component configurations.
- the various components shown in Figure 7 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 200 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 peripherals 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 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, or video.
- Display controller 2091 in I/O subsystem 209 receives electrical signals from touch screen 212 or transmits electrical signals to touch screen 212.
- the touch screen 212 detects the contact on the touch screen 212, and the display controller 2091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 212, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 212 may be Run the game's icons or icons that are networked to the appropriate network.
- the terminal device 200 may further include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
- the RF circuit 205 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages or emails.
- the RF circuit 205 receives and transmits an RF signal, also referred to as an electromagnetic signal, and the RF circuit 205 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate.
- the RF circuit 205 may include known circuitry for performing these functions, including but not limited to an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, Coder-CODEter (CODEC) chipset and Subscriber Identity Module (SIM) and so on.
- CDDEC Coder-CODEter
- SIM Subscriber Identity Module
- the audio circuit 206 is arranged to receive audio data from the peripheral interface 203, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 211.
- the speaker 211 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 205 to sound and play the sound to the user.
- the power management chip 208 is configured to provide power and power management for the hardware connected to the CPU 202, the I/O subsystem, and the peripheral interface.
- the volume adjustment device and the terminal device of the terminal device provided in the foregoing embodiments may perform the volume adjustment method of the terminal device provided by any embodiment of the present disclosure, and have corresponding function modules and beneficial effects for performing the method.
- the volume adjustment method of the terminal device provided by any embodiment of the present disclosure may perform the volume adjustment method of the terminal device provided by any embodiment of the present disclosure, and have corresponding function modules and beneficial effects for performing the method.
- Embodiments of the present disclosure also provide a storage medium including terminal device executable instructions for performing a volume adjustment method when executed by a terminal device processor, the method comprising:
- the amplitude of the sound source is adjusted according to the amplitude adjustment coefficient.
- the acquiring the audio information of the sound source, and determining the corresponding amplitude size according to the audio information includes:
- determining the amplitude adjustment coefficient according to the amplitude magnitude and the current volume value of the obtained terminal device includes:
- the amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude, and the current volume value of the acquired terminal device.
- the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value comprises:
- the amplitude adjustment coefficient is determined according to the maximum amplitude, the average amplitude, and the volume value.
- the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value comprises:
- adjusting the amplitude of the sound source according to the amplitude adjustment coefficient comprises:
- the method further includes:
- the adjusting the amplitude of the sound source according to the amplitude adjustment coefficient further includes:
- the method before the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value, the method further includes:
- determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value comprises:
- An amplitude adjustment coefficient is determined based on the impedance value, the maximum amplitude, the average amplitude, and the volume value.
- the method before the determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value, the method further includes:
- determining the amplitude adjustment coefficient according to the maximum amplitude, the average amplitude, and the volume value comprises:
- An amplitude adjustment coefficient is determined based on the noise value, the maximum amplitude, the average amplitude, and the volume value.
- the acquiring the audio information of the sound source includes: acquiring audio frame information of the sound source; and determining, according to the audio information, an amplitude corresponding to the audio information, including: according to the audio The frame information determines an amplitude of the audio frame of each frame of the sound source; the determining the amplitude adjustment coefficient according to the amplitude magnitude and the current volume value of the obtained terminal device, including: each frame of the audio frame according to the sound source The magnitude of the amplitude and the current volume value of the obtained terminal device determine an amplitude adjustment coefficient of each frame of the audio source of the sound source; the adjusting the amplitude of the sound source according to the amplitude adjustment coefficient, including: according to the The amplitude adjustment factor of each frame of the audio source adjusts the amplitude of each frame of the audio source of the source.
- the acquiring the audio information of the preset length of the sound source, determining the maximum amplitude and the average amplitude corresponding to the audio information according to the audio information including:
- Storage medium any one or more types of memory devices or storage devices.
- the term “storage medium” includes: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as dynamic random access. Memory (Dynamic Random Access Memory, DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Extended Data Output Random Access Memory (EDO RAM) and 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.
- the computer executable instructions are not limited to the volume adjustment method as described above, and may also perform the volume adjustment method provided by any embodiment of the present disclosure. Related operations.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
La présente invention concerne un procédé et un appareil de réglage de volume, un dispositif terminal et un support d'informations. Le procédé comprend : lors de la détection du fait qu'un dispositif terminal lit une source sonore, l'obtention d'informations audio de la source sonore; selon les informations audio, la détermination d'une grandeur d'amplitude correspondant aux informations audio; la détermination d'un coefficient de réglage d'amplitude selon la grandeur d'amplitude et une valeur obtenue du volume actuel du dispositif terminal; la réalisation d'un réglage d'amplitude sur la source sonore selon le coefficient de réglage d'amplitude.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710711365.9 | 2017-08-18 | ||
| CN201710711365.9A CN107526570B (zh) | 2017-08-18 | 2017-08-18 | 音量调节方法、装置、终端设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019033940A1 true WO2019033940A1 (fr) | 2019-02-21 |
Family
ID=60681451
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/098647 Ceased WO2019033940A1 (fr) | 2017-08-18 | 2018-08-03 | Procédé et appareil de réglage de volume, dispositif terminal et support d'informations |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107526570B (fr) |
| WO (1) | WO2019033940A1 (fr) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11822854B2 (en) | 2020-04-07 | 2023-11-21 | Beijing Bytedance Network Technology Co., Ltd. | Automatic volume adjustment method and apparatus, medium, and device |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526570B (zh) * | 2017-08-18 | 2020-01-14 | Oppo广东移动通信有限公司 | 音量调节方法、装置、终端设备及存储介质 |
| CN109375893A (zh) * | 2018-11-20 | 2019-02-22 | 北京小米移动软件有限公司 | 音频播放方法及装置 |
| CN110661502A (zh) * | 2019-10-18 | 2020-01-07 | 上海锐伟电子科技有限公司 | 基于嵌入式系统的音量调节方法 |
| CN112306451A (zh) * | 2020-10-30 | 2021-02-02 | 西安万像电子科技有限公司 | 一种音量调整方法、装置及系统 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070104337A1 (en) * | 2005-11-08 | 2007-05-10 | Shurtz Gregory R | Apparatus and method for automatic volume synchronization of a digital audio device with an analog audio source |
| CN101714855A (zh) * | 2009-11-19 | 2010-05-26 | 无敌科技(西安)有限公司 | 自动调整音量系统及其方法 |
| CN102075829A (zh) * | 2009-11-24 | 2011-05-25 | 鸿富锦精密工业(深圳)有限公司 | 音量调节系统 |
| US20130034245A1 (en) * | 2007-12-19 | 2013-02-07 | Agere Systems Inc. | Speakerphone using adaptive phase rotation |
| CN103746668A (zh) * | 2013-12-31 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | 音量控制方法及系统 |
| CN104363510A (zh) * | 2014-10-29 | 2015-02-18 | 深圳市金立通信设备有限公司 | 一种终端 |
| CN107526570A (zh) * | 2017-08-18 | 2017-12-29 | 广东欧珀移动通信有限公司 | 音量调节方法、装置、终端设备及存储介质 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI352310B (en) * | 2004-02-17 | 2011-11-11 | Hon Hai Prec Ind Co Ltd | System and method for controlling volume with a si |
| CN101997498A (zh) * | 2009-08-27 | 2011-03-30 | 北京宏景捷讯网络技术股份有限公司 | 音量调节方法和装置 |
| US9794669B2 (en) * | 2014-02-11 | 2017-10-17 | Mediatek Inc. | Devices and methods for headphone speaker impedance detection |
| CN103916797A (zh) * | 2014-04-04 | 2014-07-09 | 安徽森力汽车电子有限公司 | 一种车载音响装置 |
| CN104410379B (zh) * | 2014-10-29 | 2019-05-14 | 深圳市金立通信设备有限公司 | 一种音量调节方法 |
| CN106775563A (zh) * | 2016-12-13 | 2017-05-31 | 珠海市魅族科技有限公司 | 音量调节的方法及装置 |
-
2017
- 2017-08-18 CN CN201710711365.9A patent/CN107526570B/zh active Active
-
2018
- 2018-08-03 WO PCT/CN2018/098647 patent/WO2019033940A1/fr not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070104337A1 (en) * | 2005-11-08 | 2007-05-10 | Shurtz Gregory R | Apparatus and method for automatic volume synchronization of a digital audio device with an analog audio source |
| US20130034245A1 (en) * | 2007-12-19 | 2013-02-07 | Agere Systems Inc. | Speakerphone using adaptive phase rotation |
| CN101714855A (zh) * | 2009-11-19 | 2010-05-26 | 无敌科技(西安)有限公司 | 自动调整音量系统及其方法 |
| CN102075829A (zh) * | 2009-11-24 | 2011-05-25 | 鸿富锦精密工业(深圳)有限公司 | 音量调节系统 |
| CN103746668A (zh) * | 2013-12-31 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | 音量控制方法及系统 |
| CN104363510A (zh) * | 2014-10-29 | 2015-02-18 | 深圳市金立通信设备有限公司 | 一种终端 |
| CN107526570A (zh) * | 2017-08-18 | 2017-12-29 | 广东欧珀移动通信有限公司 | 音量调节方法、装置、终端设备及存储介质 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11822854B2 (en) | 2020-04-07 | 2023-11-21 | Beijing Bytedance Network Technology Co., Ltd. | Automatic volume adjustment method and apparatus, medium, and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107526570A (zh) | 2017-12-29 |
| CN107526570B (zh) | 2020-01-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| 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 | |
| CN107580113B (zh) | 提示方法、装置、存储介质及终端 | |
| CN107566618B (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| CN107479852B (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| CN107465824B (zh) | 音量调节方法、装置、移动终端及存储介质 | |
| CN110799936B (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| WO2019033940A1 (fr) | Procédé et appareil de réglage de volume, dispositif terminal et support d'informations | |
| CN107509153A (zh) | 声音播放器件的检测方法、装置、存储介质及终端 | |
| WO2017215657A1 (fr) | Procédé de traitement d'effet sonore et dispositif terminal | |
| CN107506168B (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| WO2019033942A1 (fr) | Procédé et appareil de réglage de volume, dispositif terminal et support d'informations | |
| CN107483734B (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| CN107479851B (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| CN110753919B (zh) | 音量调节方法、装置、存储介质及移动终端 | |
| CN116132869A (zh) | 耳机音量的调节方法、耳机及存储介质 | |
| CN107506170A (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| CN106293607A (zh) | 自动切换音频输出模式的方法及系统 | |
| CN107506169A (zh) | 音量调节方法、装置、终端设备及存储介质 | |
| HK1247683A1 (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: 18847073 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: 18847073 Country of ref document: EP Kind code of ref document: A1 |