CN107506168A - volume adjusting method, device, terminal device and storage medium - Google Patents

volume adjusting method, device, terminal device and storage medium Download PDF

Info

Publication number
CN107506168A
CN107506168A CN201710711363.XA CN201710711363A CN107506168A CN 107506168 A CN107506168 A CN 107506168A CN 201710711363 A CN201710711363 A CN 201710711363A CN 107506168 A CN107506168 A CN 107506168A
Authority
CN
China
Prior art keywords
amplitude
sound
source
audio
adjusted
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.)
Granted
Application number
CN201710711363.XA
Other languages
Chinese (zh)
Other versions
CN107506168B (en
Inventor
严锋贵
许钊铵
甘高亭
郑志勇
杨海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710711363.XA priority Critical patent/CN107506168B/en
Publication of CN107506168A publication Critical patent/CN107506168A/en
Application granted granted Critical
Publication of CN107506168B publication Critical patent/CN107506168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

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

The embodiment of the invention discloses a kind of volume adjusting method, device, terminal device and storage medium, this method includes when detecting that terminal device carries out source of sound broadcasting, obtaining the audio-frequency information of the preset length of the source of sound;Determine the difference of vibration in the audio-frequency information of the preset length;If the difference of vibration meets preparatory condition, the amplitude of the source of sound is adjusted.This programme improves volume adjusting efficiency, reduces the power consumption of terminal device.

Description

Volume adjusting method, device, terminal device and storage medium
Technical field
The present embodiments relate to computer technology, more particularly to a kind of volume adjusting method, device, terminal device and deposit Storage media.
Background technology
With the raising of terminal device popularity, increasing user's using terminal equipment performs various work( Can be to meet self-demand, such as using terminal equipment reads word, watches video, listen music, play game.When terminal device exists During playing audio-video, the regulation existing defects of volume are, it is necessary to improve.
The content of the invention
The invention provides a kind of volume adjusting method, device, terminal device and storage medium, improves volume adjusting effect Rate, reduce the power consumption of terminal device.
In a first aspect, the embodiments of the invention provide a kind of volume adjusting method, including:
When detecting that terminal device carries out source of sound broadcasting, the audio-frequency information of the preset length of the source of sound is obtained;
Determine the difference of vibration in the audio-frequency information of the preset length;
If the difference of vibration meets preparatory condition, the amplitude of the source of sound is adjusted.
Second aspect, the embodiment of the present invention additionally provide a kind of volume adjustment device, including:
Acquisition module, for when detecting that terminal device carries out source of sound broadcasting, obtaining the preset length of the source of sound Audio-frequency information;
Amplitude determination module, the difference of vibration in audio-frequency information for determining the preset length;
Adjustment module, if meeting preparatory condition for the difference of vibration, the amplitude of the source of sound is adjusted.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal device, including:Processor, memory and storage On a memory and the computer program that can run on a processor, realized such as during computer program described in the computing device Volume adjusting method described in the embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of storage medium for including terminal device executable instruction, institute Terminal device executable instruction is stated as being adjusted during terminal device computing device for the volume described in performing the embodiment of the present invention Section method.
Technical scheme provided in an embodiment of the present invention, when detecting that terminal device carries out source of sound broadcasting, obtain the sound The audio-frequency information of the preset length in source, the difference of vibration in the audio-frequency information of the preset length is determined, if the difference of vibration is expired Sufficient preparatory condition, then the amplitude of the source of sound is adjusted.This programme improves volume adjusting efficiency, reduces terminal device Power consumption.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another volume adjusting method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another volume adjusting method provided in an embodiment of the present invention;
Fig. 4 is a kind of structured flowchart of volume adjustment device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another terminal device provided in an embodiment of the present invention.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used to explain the present invention, rather than limitation of the invention.It also should be noted that for the ease of retouching State, part related to the present invention rather than entire infrastructure are illustrate only in accompanying drawing.
Fig. 1 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention, and the present embodiment was applicable to end End equipment carried out during source of sound broadcasting the situation of volume adjusting, and this method can be by terminal device provided in an embodiment of the present invention To perform, the volume adjustment device of the terminal device can be realized by the way of software and/or hardware, as shown in figure 1, this implementation The concrete scheme that example provides is as follows:
Step S101, when detecting that terminal device carries out source of sound broadcasting, the audio of the preset length of the source of sound is obtained Information.
Terminal device can carry out source of sound by the audio and video playing software that the third party application or system of installation carry Broadcasting.Wherein, the steps such as acquisition, decoding and output of audio files are mainly included.Exemplary, the audio files got It can be the multicast data flow received by network, can also be the audio-video document that terminal device is locally stored;Get the sound It is loaded into after source file in core buffer;The audio files for being loaded into core buffer are decoded, opened in decoding Before beginning, if the audio files include video data, it is necessary to carry out the separation of voice data and video data simultaneously, it will divide Voice data from after is inputted to audio decoder, wherein, audio decoder is mainly used in reading the audio in core buffer Data, digital audio and video signals are obtained, and the digital audio and video signals are converted into simulated audio signal, the broadcasting device of terminal device Audio broadcasting is carried out according to the simulated audio signal.In one embodiment, when listening to source of sound broadcast event and being triggered, really Determine terminal device and commence play out source of sound, wherein, the trigger event can be the broadcast button quilt shown in the touch-screen detected Press, can also be when detecting the broadcasting device of terminal device for example loudspeaker commencing play out sound, determine that terminal device carries out sound Source plays.
When detecting that terminal device carries out source of sound broadcasting, the audio-frequency information of the preset length of the source of sound is obtained.One In individual embodiment, the digital audio and video signals that can decode to obtain to audio decoder are sampled, and determine audio corresponding to the source of sound Information, wherein preset length can be 3s, 5s or 10s etc..In another embodiment, currently playing source of sound can also be obtained Original document, the audio-frequency information of preset length corresponding to source of sound is determined by the parsing to the original document.In another embodiment In, by taking android system as an example, can by android.media.MediaRecorder classes or Android.media.AudioRecord classes obtain the audio-frequency information of source of sound.
Step S102, the difference of vibration in the audio-frequency information of the preset length is determined.
Amplitude refers to the ultimate range of deviation origin-location during object vibrations, the loudness and source of sound of the sound that human ear is heard Amplitude it is related, amplitude is bigger, and loudness is stronger.In one embodiment, obtained DAB letter can be decoded to audio decoder Number it is sampled, obtains amplitude information, wherein, the amplitude information can be made up of multiple amplitudes, according to obtained multiple amplitudes Value can determine difference of vibration accordingly.Exemplary, by taking 3s as an example, in the source of sound played in 3s durations, corresponding obtained audio letter Multiple amplitudes in breath, the peak swing value and minimum amplitude value of acquisition are recorded, by peak swing value and minimum amplitude value Difference be defined as the preset length audio-frequency information difference of vibration.
In one embodiment, when detecting source of sound broadcasting, determined every preset time (such as 1s, 3s or 10s) once pre- If the audio-frequency information of length, or in real time, the amplitude of each frame of audio-frequency information is determined, when reaching preset length Determine difference of vibration.Specifically, the audio-frequency information for obtaining the source of sound includes:The preset length for obtaining the source of sound Audio-frequency information includes:Obtain the audio frame information of the preset length of the source of sound;Accordingly, it is described to determine the preset length Difference of vibration in audio-frequency information includes:The amplitude in the audio-frequency information of the preset length is determined according to the audio frame information Difference.Exemplary, when detecting that source of sound plays, audio files are parsed to obtain audio frame sequence, determine preset length Audio-frequency information under each frame determine corresponding to amplitude, and then determine difference of vibration.
Step S103, judge whether the difference of vibration meets preparatory condition, if it is, performing step S104, if not Then perform step S105.
In one embodiment, the difference of vibration meets that preparatory condition includes:The difference of vibration is more than default difference of vibration.Show The default difference of vibration of example property can be 0.2db.When amplitude difference is bigger, it is meant that source of sound play when sound highest volume and Minimum volume difference is larger so that user sounds wave volume big rise and fall, loftier.
Step S104, the amplitude of the source of sound is adjusted.
In one embodiment, the amplitude to the source of sound be adjusted including:To being more than the in the source of sound One amplitude threshold and size less than the amplitude of the second amplitude threshold are adjusted.Wherein, the first amplitude threshold is shaken more than second Width threshold value.Exemplary, the size of first amplitude threshold can be -2db, size of the second default amplitude can be - 30db。
In one embodiment, unified amplitude adjustment factor can be used or according to amplitude by amplitude size being adjusted The difference of size is specifically distributed different amplitude adjustment factors and is adjusted with the amplitude to source of sound.Optionally, when it is determined that source of sound , can be by being parsed to audio files, to the number of the sign amplitude information in obtained voice data after meeting adjusting condition According to modifying, it is packaged again after modification, the amplitude phase of source of sound when being buffered to corresponding audio files and being played That answers has been increased;It is also possible that in the decoding process that source of sound plays, by analyzing obtained digital audio and video signals Amplitude data is obtained, the amplitude data is multiplied by corresponding adjustment factor to change amplitude size, and then the volume of source of sound is entered Row regulation.Hereby it is achieved that the size of source of sound volume is adjusted on the premise of not changing the original volume of terminal device system Section, regulation process can play load or in buffering area before audio files are introduced into buffering area to reduce Source of sound content is adjusted to improve regulation efficiency.
In another embodiment, the amplitude size of each frame of source of sound is adjusted.Specifically, it is directed to during regulation The difference of the amplitude size of each frame distributes different amplitude adjustment factors to carry out corresponding regulation, exemplary, specific corresponding Relation can be with as shown in the table:
Table 1
Amplitude Adjustment factor
More than -3db or less than -50db 1
It is more than -50db less than -10db 2
It is more than -10db less than -3db 1.5
As shown in table 1, when the amplitude of audio frame is more than -3db or less than -50db, its gain is not adjusted;When shaking When width is more than -50db less than -10db, amplitude is high amplitude area, is that its distribution gain coefficient is 1.5, when amplitude is big less than -10db Be middle amplitude area when -50db, be its to distribute peak factor be 2 to significantly improve the amplitude size of the fractional amplitude.
Step S105, terminate.
As shown in the above, when it is determined that the difference of vibration of source of sound meets preparatory condition, the amplitude of source of sound is adjusted, Make it that sound will not be suddenly big or suddenly small in source of sound playing process, the uniformity of volume output ensure that.
In a possible embodiment, determine that the difference of vibration in the audio-frequency information of the preset length includes:Determine institute The mean amplitude of tide stated in the audio-frequency information of preset length is poor;If the difference of vibration meets preparatory condition, to the source of sound Amplitude be adjusted including:If the mean amplitude of tide difference meets preparatory condition, the amplitude of the source of sound is adjusted.
Fig. 2 is the flow chart of another volume adjusting method provided in an embodiment of the present invention, optionally, to the source of sound Amplitude be adjusted including:The amplitude that will be greater than first amplitude threshold is adjusted to the first amplitude, will be shaken less than described second The amplitude of width threshold value is adjusted to the second amplitude.The amplitude by less than the second amplitude threshold, which is adjusted to the second amplitude, to be included:Will Adjusted less than the second amplitude threshold and more than the amplitude of the 3rd amplitude threshold to the second amplitude.As shown in Fig. 2 scheme is specific such as Under:
Step S201, when detecting that terminal device carries out source of sound broadcasting, the audio of the preset length of the source of sound is obtained Information, determine the difference of vibration in the audio-frequency information of the preset length.
Step S202, judge whether the difference of vibration meets preparatory condition, if it is, performing step S203.
Step S203, judge whether the amplitude of the source of sound is more than the first default amplitude threshold, if it is, performing step S204, if it is not, then performing step S205.Exemplary, the first default amplitude threshold can be -2db.
Step S204, amplitude is adjusted to the first amplitude.Exemplary, first amplitude can be in -4db to -10db Any value.
Step S205, judge whether the amplitude of the source of sound is less than the second default amplitude threshold, if it is, performing step S206, if it is not, then performing step S208.Exemplary, the second default amplitude threshold can be -30db.
Step S206, judge whether the amplitude of the source of sound is more than the 3rd default amplitude threshold, if it is, performing step S207, if it is not, then performing step S208.Exemplary, the 3rd default amplitude threshold can be -50db.
Step S207, amplitude is adjusted to the second amplitude.Exemplary, the size of second amplitude can be -20db.
Step S308, terminate.
From the foregoing, during the amplitude of source of sound is adjusted, the amplitude for meeting adjusting condition is adjusted to solid Determine amplitude section, improve amplitude regulated efficiency, meanwhile, for amplitude information corresponding to noise, without regulation, avoid by The problem of Noise Synchronization is amplified and then influences source of sound playback quality.
Fig. 3 is the flow chart of another volume adjusting method provided in an embodiment of the present invention, optionally, to the amplitude Size be adjusted after, in addition to:According to volume adjusting information corresponding to the amplitude determination of the source of sound;According to the sound The amount regulation information volume current to the terminal device is adjusted.As shown in figure 3, including:
Step S301, when detecting that terminal device carries out source of sound broadcasting, the audio of the preset length of the source of sound is obtained Information.
Step S302, the difference of vibration in the audio-frequency information of the preset length is determined.
If step S303, described difference of vibration meets preparatory condition, the amplitude of the source of sound is adjusted.
Step S304, according to volume adjusting information corresponding to the amplitude determination of the source of sound, believe according to the volume adjusting The breath volume current to the terminal device is adjusted.
In one embodiment, the volume adjusting information according to corresponding to determining the amplitude of source of sound.Exemplary, when source of sound (such as -40db) when amplitude is less than normal, it is determined that corresponding volume increases information, when the amplitude of source of sound is bigger than normal (such as 0db), it is determined that Corresponding volume reduces information.Specifically, in one embodiment, the information of volume increase or volume reduction is corresponding mesh Mark with phonetic symbols value.Exemplary, terminal device is always divided into 18 grade-adjustables, each grade corresponding one to max volume by Jing Yin Individual volume value, target sound value corresponding to volume reduction information can be 3 or 4, target sound corresponding to volume increase information Value can be 14 or 15, when the source of sound amplitude determined is less than normal, then volume value be increased into 14 or 15 accordingly, when it is determined that When the source of sound amplitude gone out is bigger than normal, then volume value is decreased to 3 or 4 accordingly.In another embodiment, volume increase or volume The information of reduction is corresponding volume change value.It is exemplary, terminal device by it is Jing Yin be always divided into 18 to max volume can Grade, the corresponding volume value of each grade are adjusted, volume change value corresponding to volume increase information and volume reduction information is 3, for example, the volume value of present terminal equipment is 10, when needing to increase information volume, then increase on the basis of current volume value Add 3 to carry out sound broadcasting using the 13rd grade of volume, when needing to reduce information volume, then subtract on the basis of current volume value Small 3 carry out sound broadcasting using the 7th grade of volume.Optionally, before the volume of terminal device is adjusted, in addition to: The reproduction time of the source of sound is determined, when reproduction time is more than preset time, using the volume increase information according to as described in if 30s Or volume reduces the mode that the volume change value volume value current to the terminal device in information is adjusted, and thus enters one Step improves volume adjusting efficiency, reduces the energy consumption of terminal device.
Fig. 4 is a kind of structured flowchart of volume adjustment device provided in an embodiment of the present invention, and the device is above-mentioned for performing The volume adjusting method that embodiment provides, possesses the corresponding functional module of execution method and beneficial effect.As shown in figure 4, the dress Put and specifically include:Acquisition module 101, amplitude determination module 102 and adjustment module 103.
Wherein, acquisition module 101, for when detecting that terminal device carries out source of sound broadcasting, obtaining the pre- of the source of sound If the audio-frequency information of length.
Terminal device can carry out source of sound by the audio and video playing software that the third party application or system of installation carry Broadcasting.Wherein, the steps such as acquisition, decoding and output of audio files are mainly included.Exemplary, the audio files got It can be the multicast data flow received by network, can also be the audio-video document that terminal device is locally stored;Get the sound It is loaded into after source file in core buffer;The audio files for being loaded into core buffer are decoded, opened in decoding Before beginning, if the audio files include video data, it is necessary to carry out the separation of voice data and video data simultaneously, it will divide Voice data from after is inputted to audio decoder, wherein, audio decoder is mainly used in reading the audio in core buffer Data, digital audio and video signals are obtained, and the digital audio and video signals are converted into simulated audio signal, the broadcasting device of terminal device Audio broadcasting is carried out according to the simulated audio signal.In one embodiment, when listening to source of sound broadcast event and being triggered, really Determine terminal device and commence play out source of sound, wherein, the trigger event can be the broadcast button quilt shown in the touch-screen detected Press, can also be when detecting the broadcasting device of terminal device for example loudspeaker commencing play out sound, determine that terminal device carries out sound Source plays.
When detecting that terminal device carries out source of sound broadcasting, the audio-frequency information of the preset length of the source of sound is obtained.One In individual embodiment, the digital audio and video signals that can decode to obtain to audio decoder are sampled, and determine audio corresponding to the source of sound Information, wherein preset length can be 3s, 5s or 10s etc..In another embodiment, currently playing source of sound can also be obtained Original document, the audio-frequency information of preset length corresponding to source of sound is determined by the parsing to the original document.In another embodiment In, by taking android system as an example, can by android.media.MediaRecorder classes or Android.media.AudioRecord classes obtain the audio-frequency information of source of sound.
Amplitude determination module 102, the difference of vibration in audio-frequency information for determining the preset length.
Amplitude refers to the ultimate range of deviation origin-location during object vibrations, the loudness and source of sound of the sound that human ear is heard Amplitude it is related, amplitude is bigger, and loudness is stronger.In one embodiment, obtained DAB letter can be decoded to audio decoder Number it is sampled, obtains amplitude information, wherein, the amplitude information can be made up of multiple amplitudes, according to obtained multiple amplitudes Value can determine difference of vibration accordingly.Exemplary, by taking 3s as an example, in the source of sound played in 3s durations, corresponding obtained audio letter Multiple amplitudes in breath, the peak swing value and minimum amplitude value of acquisition are recorded, by peak swing value and minimum amplitude value Difference be defined as the preset length audio-frequency information difference of vibration.
In one embodiment, when detecting source of sound broadcasting, determined every preset time (such as 1s, 3s or 10s) once pre- If the audio-frequency information of length, or in real time, the amplitude of each frame of audio-frequency information is determined, when reaching preset length Determine difference of vibration.Specifically, the audio-frequency information for obtaining the source of sound includes:The preset length for obtaining the source of sound Audio-frequency information includes:Obtain the audio frame information of the preset length of the source of sound;Accordingly, it is described to determine the preset length Difference of vibration in audio-frequency information includes:The amplitude in the audio-frequency information of the preset length is determined according to the audio frame information Difference.Exemplary, when detecting that source of sound plays, audio files are parsed to obtain audio frame sequence, determine preset length Audio-frequency information under each frame determine corresponding to amplitude, and then determine difference of vibration.
Adjustment module 103, if meeting preparatory condition for the difference of vibration, the amplitude of the source of sound is adjusted Section.
In one embodiment, the difference of vibration meets that preparatory condition includes:The difference of vibration is more than default difference of vibration.Show The default difference of vibration of example property can be 0.2db.When amplitude difference is bigger, it is meant that source of sound play when sound highest volume and Minimum volume difference is larger so that user sounds wave volume big rise and fall, loftier.In one embodiment, it is described The amplitude of the source of sound is adjusted including:To being more than the first amplitude threshold and less than the second amplitude threshold in the source of sound The size of amplitude be adjusted.Wherein, the first amplitude threshold is more than the second amplitude threshold.Exemplary, the first amplitude threshold The size of value can be -2db, and the size of the second default amplitude can be -30db.
In one embodiment, unified amplitude adjustment factor can be used or according to amplitude by amplitude size being adjusted The difference of size is specifically distributed different amplitude adjustment factors and is adjusted with the amplitude to source of sound.Optionally, when it is determined that source of sound , can be by being parsed to audio files, to the number of the sign amplitude information in obtained voice data after meeting adjusting condition According to modifying, it is packaged again after modification, the amplitude phase of source of sound when being buffered to corresponding audio files and being played That answers has been increased;It is also possible that in the decoding process that source of sound plays, by analyzing obtained digital audio and video signals Amplitude data is obtained, the amplitude data is multiplied by corresponding adjustment factor to change amplitude size, and then the volume of source of sound is entered Row regulation.Hereby it is achieved that the size of source of sound volume is adjusted on the premise of not changing the original volume of terminal device system Section, regulation process can play load or in buffering area before audio files are introduced into buffering area to reduce Source of sound content is adjusted to improve regulation efficiency.
From the foregoing, when detecting that terminal device carries out source of sound broadcasting, the sound of the preset length of the source of sound is obtained Frequency information;Determine the difference of vibration in the audio-frequency information of the preset length;If the difference of vibration meets preparatory condition, to institute The amplitude for stating source of sound is adjusted.This programme improves volume adjusting efficiency, reduces the power consumption of terminal device.
In a possible embodiment, the difference of vibration meets that preparatory condition includes:
The difference of vibration is more than default difference of vibration;
The adjustment module 103 is specifically used for:
The size more than the first amplitude threshold and less than the amplitude of the second amplitude threshold in the source of sound is adjusted.
In a possible embodiment, the acquisition module 101 is specifically used for:
Obtain the audio frame information of the preset length of the source of sound;
The amplitude determination module 102 is specifically used for:
The difference of vibration in the audio-frequency information of the preset length is determined according to the audio frame information.
In a possible embodiment, the adjustment module 103 is specifically used for:
The amplitude size of each frame of the source of sound is adjusted.
In a possible embodiment, the adjustment module 103 is specifically used for:
The amplitude that will be greater than first amplitude threshold is adjusted to the first amplitude, by shaking less than second amplitude threshold Width is adjusted to the second amplitude.
In a possible embodiment, the adjustment module 103 is specifically used for:
It will be adjusted less than the second amplitude threshold and more than the amplitude of the 3rd amplitude threshold to the second amplitude.
In a possible embodiment, the adjustment module 103 is additionally operable to:
After the size of the amplitude is adjusted, according to volume adjusting letter corresponding to the amplitude determination of the source of sound Breath;
The volume current to the terminal device according to the volume adjusting information is adjusted.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 5 is that the embodiment of the present invention carries The structural representation of a kind of terminal device supplied, as shown in figure 5, the terminal device 200 includes:Memory 201, processor (Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205, Voicefrequency circuit 206, loudspeaker 211, power management chip 208, input/output (I/O) subsystem 209, touch-screen 212, other Input/control devices 210 and outside port 204, these parts are led to by one or more communication bus or signal wire 207 Letter.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200 Can have than more or less parts shown in figure, can combine two or more parts, or can be with Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
The terminal device for being used to open the rights management of application more that the present embodiment provides is described in detail below, should Terminal device is by taking smart mobile phone as an example.
Memory 201, the memory 201 can be accessed by CPU202, Peripheral Interface 203 etc., and the memory 201 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203 Reservoir 201.
I/O subsystems 209, the I/O subsystems 209 can be by the input/output peripherals in equipment, such as touch-screen 212 With other input/control devicess 210, Peripheral Interface 203 is connected to.I/O subsystems 209 can include the He of display controller 2091 For controlling one or more input controllers 2092 of other input/control devicess 210.Wherein, one or more input controls Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210, Other input/control devicess 210 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 2092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 212, the touch-screen 212 are the input interface and output interface between user terminal and user, can It can include figure, text, icon, video etc. to user, visual output depending on output display.
Display controller 2091 in I/O subsystems 209 receives electric signal from touch-screen 212 or sent out to touch-screen 212 Electric signals.Touch-screen 212 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 2091 The interaction of user interface object on touch-screen 212, that is, realize man-machine interaction, the user interface being shown on touch-screen 212 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 205, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 205 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 205 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 205 can include being used to perform The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206, it is mainly used in receiving voice data from Peripheral Interface 203, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 211.
Loudspeaker 211, for the voice signal for receiving mobile phone from wireless network by RF circuits 205, it is reduced to sound And play the sound to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered And power management.
The executable present invention of the volume adjustment device and terminal device of the terminal device provided in above-described embodiment is any real The volume adjusting method for the terminal device that example is provided is applied, possesses and performs the corresponding functional module of this method and beneficial effect.Not The ins and outs of detailed description in the above-described embodiments, reference can be made to the volume for the terminal device that any embodiment of the present invention is provided Adjusting method.
The embodiment of the present invention also provides a kind of storage medium for including terminal device executable instruction, and the terminal device can Execute instruction is used to perform a kind of volume adjusting method when by terminal device computing device, and this method includes:
After monitoring that destination application is opened, view control is called to be shown in the active window interface that touch-screen is shown One preset pattern, the destination application include the application program that display word in interface be present;
After the preset pattern is selected, the preset pattern movement is controlled according to the slide detected, in institute When stating preset pattern mobile end, the word of the preset pattern region is obtained;
The word got is inquired about.
In a possible embodiment, the difference of vibration meets that preparatory condition includes:
The difference of vibration is more than default difference of vibration;
Accordingly, the amplitude to the source of sound be adjusted including:
The size more than the first amplitude threshold and less than the amplitude of the second amplitude threshold in the source of sound is adjusted.
In a possible embodiment, the audio-frequency information of the preset length for obtaining the source of sound includes:
Obtain the audio frame information of the preset length of the source of sound;
Accordingly, the difference of vibration in the audio-frequency information for determining the preset length includes:
The difference of vibration in the audio-frequency information of the preset length is determined according to the audio frame information.
In a possible embodiment, the amplitude to the source of sound be adjusted including:
The amplitude size of each frame of the source of sound is adjusted.
In a possible embodiment, the amplitude of the source of sound is adjusted including:
The amplitude that will be greater than first amplitude threshold is adjusted to the first amplitude, by shaking less than second amplitude threshold Width is adjusted to the second amplitude.
In a possible embodiment, the amplitude by less than the second amplitude threshold is adjusted to the second amplitude and included:
It will be adjusted less than the second amplitude threshold and more than the amplitude of the 3rd amplitude threshold to the second amplitude.
In a possible embodiment, after the size of the amplitude is adjusted, in addition to:
According to volume adjusting information corresponding to the amplitude determination of the source of sound;
The volume current to the terminal device according to the volume adjusting information is adjusted.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums (such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer The volume adjusting method operation that executable instruction is not limited to the described above, can also carry out what any embodiment of the present invention was provided Associative operation in volume adjusting method.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. volume adjusting method, it is characterised in that including:
    When detecting that terminal device carries out source of sound broadcasting, the audio-frequency information of the preset length of the source of sound is obtained;
    Determine the difference of vibration in the audio-frequency information of the preset length;
    If the difference of vibration meets preparatory condition, the amplitude of the source of sound is adjusted.
  2. 2. according to the method for claim 1, it is characterised in that the difference of vibration meets that preparatory condition includes:
    The difference of vibration is more than default difference of vibration;
    Accordingly, the amplitude to the source of sound be adjusted including:
    The size more than the first amplitude threshold and less than the amplitude of the second amplitude threshold in the source of sound is adjusted.
  3. 3. according to the method for claim 2, it is characterised in that the audio-frequency information of the preset length for obtaining the source of sound Including:
    Obtain the audio frame information of the preset length of the source of sound;
    Accordingly, the difference of vibration in the audio-frequency information for determining the preset length includes:
    The difference of vibration in the audio-frequency information of the preset length is determined according to the audio frame information.
  4. 4. according to the method for claim 3, it is characterised in that the amplitude to the source of sound be adjusted including:
    The amplitude size of each frame of the source of sound is adjusted.
  5. 5. according to the method any one of claim 2-4, it is characterised in that bag is adjusted to the amplitude of the source of sound Include:
    The amplitude that will be greater than first amplitude threshold is adjusted to the first amplitude, by the amplitude tune less than second amplitude threshold It is whole to the second amplitude.
  6. 6. according to the method for claim 5, it is characterised in that the amplitude by less than the second amplitude threshold is adjusted to the Two amplitudes include:
    It will be adjusted less than the second amplitude threshold and more than the amplitude of the 3rd amplitude threshold to the second amplitude.
  7. 7. according to the method for claim 6, it is characterised in that after the size of the amplitude is adjusted, also wrap Include:
    According to volume adjusting information corresponding to the amplitude determination of the source of sound;
    The volume current to the terminal device according to the volume adjusting information is adjusted.
  8. A kind of 8. volume adjustment device, it is characterised in that including:
    Acquisition module, for when detecting that terminal device carries out source of sound broadcasting, obtaining the audio of the preset length of the source of sound Information;
    Amplitude determination module, the difference of vibration in audio-frequency information for determining the preset length;
    Adjustment module, if meeting preparatory condition for the difference of vibration, the amplitude of the source of sound is adjusted.
  9. 9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realized described in the computing device during computer program such as any one of claim 1-7 institutes The volume adjusting method stated.
  10. A kind of 10. storage medium for including terminal device executable instruction, it is characterised in that the terminal device executable instruction As volume adjusting method during terminal device computing device for execution as any one of claim 1-7.
CN201710711363.XA 2017-08-18 2017-08-18 Volume adjusting method and device, terminal equipment and storage medium Active CN107506168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710711363.XA CN107506168B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710711363.XA CN107506168B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107506168A true CN107506168A (en) 2017-12-22
CN107506168B CN107506168B (en) 2022-06-14

Family

ID=60691109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710711363.XA Active CN107506168B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107506168B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408025A (en) * 2018-10-25 2019-03-01 北京小米移动软件有限公司 Audio frequency playing method, device and storage medium
CN110062309A (en) * 2019-04-28 2019-07-26 百度在线网络技术(北京)有限公司 Method and apparatus for controlling intelligent sound box
CN113986187A (en) * 2018-12-28 2022-01-28 阿波罗智联(北京)科技有限公司 Method and device for acquiring range amplitude, electronic equipment and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929298A (en) * 2005-09-07 2007-03-14 鸿富锦精密工业(深圳)有限公司 Audio frequency processing system and method
JP2011015266A (en) * 2009-07-03 2011-01-20 Panasonic Corp Sound-volume adjusting device
CN102104822A (en) * 2009-12-18 2011-06-22 新唐科技股份有限公司 Audio frequency adjusting system and method
CN103746668A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Sound volume control method and system
US20140115468A1 (en) * 2012-10-24 2014-04-24 Benjamin Guerrero Graphical user interface for mixing audio using spatial and temporal organization
CN103929140A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Method and device for pre-processing voice frequency
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
CN104486668A (en) * 2014-11-20 2015-04-01 深圳市金立通信设备有限公司 Volume adjustment method
WO2016029688A1 (en) * 2014-08-29 2016-03-03 中兴通讯股份有限公司 Automatic volume adjusting method and electronic device thereof
WO2016097058A1 (en) * 2014-12-16 2016-06-23 Devialet Method for controlling an operating parameter of an acoustic apparatus
CN105812586A (en) * 2016-06-01 2016-07-27 维沃移动通信有限公司 Quick muting method and mobile terminal
CN105828254A (en) * 2016-05-09 2016-08-03 青岛海信电器股份有限公司 Audio adjusting method and device
CN106024007A (en) * 2016-06-21 2016-10-12 维沃移动通信有限公司 Sound processing method and mobile terminal
CN106126170A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 The audio method to set up of a kind of terminal and terminal
CN106126164A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of sound effect treatment method and terminal unit
US20170126192A1 (en) * 2015-10-29 2017-05-04 Xiaomi Inc. Method, device, and computer-readable medium for adjusting volume
CN106775563A (en) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 The method and device of volume adjusting

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929298A (en) * 2005-09-07 2007-03-14 鸿富锦精密工业(深圳)有限公司 Audio frequency processing system and method
JP2011015266A (en) * 2009-07-03 2011-01-20 Panasonic Corp Sound-volume adjusting device
CN102104822A (en) * 2009-12-18 2011-06-22 新唐科技股份有限公司 Audio frequency adjusting system and method
US20140115468A1 (en) * 2012-10-24 2014-04-24 Benjamin Guerrero Graphical user interface for mixing audio using spatial and temporal organization
CN103746668A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Sound volume control method and system
CN103929140A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Method and device for pre-processing voice frequency
WO2016029688A1 (en) * 2014-08-29 2016-03-03 中兴通讯股份有限公司 Automatic volume adjusting method and electronic device thereof
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
CN104486668A (en) * 2014-11-20 2015-04-01 深圳市金立通信设备有限公司 Volume adjustment method
WO2016097058A1 (en) * 2014-12-16 2016-06-23 Devialet Method for controlling an operating parameter of an acoustic apparatus
US20170126192A1 (en) * 2015-10-29 2017-05-04 Xiaomi Inc. Method, device, and computer-readable medium for adjusting volume
CN105828254A (en) * 2016-05-09 2016-08-03 青岛海信电器股份有限公司 Audio adjusting method and device
CN105812586A (en) * 2016-06-01 2016-07-27 维沃移动通信有限公司 Quick muting method and mobile terminal
CN106126170A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 The audio method to set up of a kind of terminal and terminal
CN106126164A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of sound effect treatment method and terminal unit
CN106024007A (en) * 2016-06-21 2016-10-12 维沃移动通信有限公司 Sound processing method and mobile terminal
CN106775563A (en) * 2016-12-13 2017-05-31 珠海市魅族科技有限公司 The method and device of volume adjusting

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FEDAR SEVERIN; ARYAZ BARADARANI: "Auto-adjustment of image produced by multi-transducer ultrasonic system", 《2014 IEEE INTERNATIONAL ULTRASONICS SYMPOSIUM》 *
李佳: "扬声器谐振频率测量***的开发", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408025A (en) * 2018-10-25 2019-03-01 北京小米移动软件有限公司 Audio frequency playing method, device and storage medium
CN109408025B (en) * 2018-10-25 2021-10-22 北京小米移动软件有限公司 Audio playing method, device and storage medium
CN113986187A (en) * 2018-12-28 2022-01-28 阿波罗智联(北京)科技有限公司 Method and device for acquiring range amplitude, electronic equipment and storage medium
CN113986187B (en) * 2018-12-28 2024-05-17 阿波罗智联(北京)科技有限公司 Audio region amplitude acquisition method and device, electronic equipment and storage medium
CN110062309A (en) * 2019-04-28 2019-07-26 百度在线网络技术(北京)有限公司 Method and apparatus for controlling intelligent sound box
CN110062309B (en) * 2019-04-28 2021-04-27 百度在线网络技术(北京)有限公司 Method and device for controlling intelligent loudspeaker box

Also Published As

Publication number Publication date
CN107506168B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
US10657964B2 (en) Method for controlling smart device, computer device and storage medium
CN107526568A (en) volume adjusting method, device, terminal device and storage medium
CN107566618A (en) volume adjusting method, device, terminal device and storage medium
CN107465824A (en) volume adjusting method, device, mobile terminal and storage medium
CN107436751A (en) volume adjusting method, device, terminal device and storage medium
CN107526570A (en) volume adjusting method, device, terminal device and storage medium
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
US11201598B2 (en) Volume adjusting method and mobile terminal
CN107483734A (en) volume adjusting method, device, terminal device and storage medium
JP6785907B2 (en) How to arrange wireless speakers, wireless speakers and terminal devices
CN107479852B (en) Volume adjusting method, device, terminal device and storage medium
CN107506168A (en) volume adjusting method, device, terminal device and storage medium
CN107799113A (en) Audio-frequency processing method, device, storage medium and mobile terminal
CN110677774A (en) Volume self-adaptive adjusting method and device, computer equipment and storage medium
CN107145327A (en) A kind of audio frequency playing method, device and smart machine
CN103456334B (en) Audio file play method and playing device
CN107479851B (en) Volume adjusting method, device, terminal device and storage medium
CN107506170A (en) volume adjusting method, device, terminal device and storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN1835107B (en) Mobile communication terminal with music automatic stop function and music stop method
CN107506169A (en) volume adjusting method, device, terminal device and storage medium
CN110753919B (en) Volume adjusting method and device, storage medium and mobile terminal
CN112185414A (en) Method and device for adjusting audio playing volume and storage medium

Legal Events

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

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

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

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

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

GR01 Patent grant
GR01 Patent grant