CN104332165A - Method and device for balancing volume in portable terminal - Google Patents
Method and device for balancing volume in portable terminal Download PDFInfo
- Publication number
- CN104332165A CN104332165A CN201410166132.1A CN201410166132A CN104332165A CN 104332165 A CN104332165 A CN 104332165A CN 201410166132 A CN201410166132 A CN 201410166132A CN 104332165 A CN104332165 A CN 104332165A
- Authority
- CN
- China
- Prior art keywords
- audio file
- volume
- information
- portable terminal
- special
- 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
Links
Landscapes
- Circuit For Audible Band Transducer (AREA)
- Circuits Of Receivers In General (AREA)
Abstract
The invention provides a method and a device for balancing volume in portable terminal. The method used for balancing the volume comprises the following steps: determining whether an audio file contains RG (Replay Gain) information; if the audio file does not contain the RG information, carrying out RG scanning to the audio file to obtain the RG information; and if the audio file contains the RG information, using RG information to regulate the volume of the audio file.
Description
Technical field
The present invention relates to field of audio processing, more specifically, relate to a kind of method and apparatus for balance volume in portable terminal.
Background technology
Because the audio file of such as music is according to differences such as authorial intention, style, use scenes, different volumes can be presented when playing.Such as, rock music is usually relatively more loud, and the usual smaller sound of classic piano music; In some films, the music that battle scene uses is usually relatively more loud, and the volume of music that scene of expressing one's emotion uses is medium.In addition, some losses can also be there are in the music through lossy compression method in loudness.When the music in various source is put into go to listen in an equipment time, just easily occur that some volume of music is large, the situation that some volume of music is little.
The technology of playback gain (RG) carrys out the volume between Balanced Audio file generally to adopt one to be called in prior art.RG process to be carried out to audio file, mainly be divided into two processes, one is decode to obtain PCM data to audio file, and two is carry out such as peak value (Peak, that is, the maximal value of absolute value) or the calculating of RG value of root-mean-square value (RMS).To audio file decoding process according to the difference of audio file coded format, parameter and audio file playing duration, the cpu resource consumed is not identical yet, such as, on the double-core CPU of 3.3GHz, a playing duration of decoding is that the MP3 format audio file of 4 minutes approximately needs 1.2 seconds, and a playing duration of decoding is the time that the APE formatted audio files of 4 minutes needs 5.6 seconds.The process calculating RG value mainly calculates RMS value, that is, the PCM data decoded are carried out total sum of squares and be averaged.Therefore, audio file playing duration is longer, and the time that RG process consumes is longer.Because RG needs once entirely twist code to all audio files and calculate RG value, therefore for the user that audio file is a lot, particularly portable terminal user, just may because of not think etc. to be decoded and calculate and abandon this function, so the player on portable terminal does not support RG substantially.In addition, not all audio file all carries RG value, and the player on existing portable terminal can only utilize RG value, and can not generate RG value.Although some player on computing machine can support scanning RG value, but the scope of audio file cannot be determined when scanning, substantially be the audio file manually selecting to need scanning by user, like this, if the library of user changes, change particularly on folder structure, then can develop into and all need entirely to select scanning at every turn, because user is disinclined to remember which audio file is scanned, which audio file is not scanned, the frequent active scan RG value of user can be caused like this, reduce and use resource, even if this is also the reason of a lot of user also substantially inapplicable RG on computers.
The technology of the volume in prior art between another Balanced Audio file is the method calculating audio sampling data in real time and do amplification coefficient adjustment, is referred to as auto level control or automatic growth control.Because this process mainly comes from the data of audio sample, not by song cutting, sense of hearing can make the volume fluctuations in single sound frequency file be also averaged, the original appeal of music cannot be reached, and in the audio file less place of head and the tail volume or the less fragment of midway volume, easily amplify together with low noise, thus impact is appreciated.Meanwhile, because the result of above-mentioned adjustment is not recorded in database, listen same audio file all will carry out identical calculating at every turn, thus waste cpu resource.
Can find out, playback gain technology of the prior art is substantially all because need the RG value of run-down audio file in advance just can carry out subsequent treatment, and very long scanning is then directly strangled this function in cradle.In addition, the auto level control based on audio sample also has above-mentioned hard defects, generally not like by wide variety of user.
Summary of the invention
According to an aspect of the present invention, provide a kind of method for balance volume in portable terminal, comprising: determine whether audio file has playback gain (RG) information; If determine that audio file does not have RG information, then RG scanning is carried out to obtain RG information to audio file; If determine that audio file has RG information, then RG information is used to regulate the volume of the audio file play when displaying audio file.
After the RG information determining audio file, the RG information of one or more audio files subsequently can be determined successively.
When the audio file broadcasting of playing terminates and plays one or more audio file subsequently, the RG information of the one or more audio files subsequently determined can be used to regulate the volume of one or more audio files subsequently.
If the data volume of the audio file special audio file subsequently play is greater than predetermined value, then can carry out RG scanning to described special audio file subsequently in advance.
Automatic growth control can be carried out to the audio file play, and noise reduction can be carried out based on the volume amplification coefficient of automatic growth control to the audio file play.
The volume adjusting that special audio file is made can be recorded in, and automatically make identical volume adjusting when next time plays described special audio file.
If volume adjusting is returned the value before not regulating when playing special audio file subsequently after the special audio file broadcasting of adjustment volume terminates, then can be recorded in volume adjusting that special audio file makes and automatically make identical volume adjusting when next time plays this special audio file, if volume adjusting is not returned the value before not regulating, then can not carry out record to the volume adjusting made at special audio file.
According to a further aspect in the invention, provide a kind of device for balance volume in portable terminal, comprising: playback gain (RG) information determination unit, determine whether audio file has RG information; RG scanning element, if determine that audio file does not have RG information, then carries out RG scanning to obtain RG information to audio file; Sound volume regulation unit, if determine that audio file has RG information, then uses RG information to regulate the volume of the audio file play when displaying audio file.
Part in ensuing description is set forth the present invention other in and/or advantage, some will be clearly by describing, or can learn through enforcement of the present invention.
Accompanying drawing explanation
By the detailed description of carrying out below in conjunction with accompanying drawing, above and other objects of the present invention and feature will become apparent, wherein:
Fig. 1 illustrates according to an exemplary embodiment of the present invention for the process flow diagram of the method for balance volume in portable terminal;
Fig. 2 illustrates according to an exemplary embodiment of the present invention for the block diagram of the device of balance volume in portable terminal.
Embodiment
Now, describe exemplary embodiment of the present invention in detail, its example represents in the accompanying drawings, and wherein, identical label represents identical parts all the time.
Fig. 1 illustrates according to an exemplary embodiment of the present invention for the process flow diagram of the method for balance volume in portable terminal.
With reference to Fig. 1, in step S110, when displaying audio file, determine whether to enable RG.
When determining not enabled RG, carrying out step S140, keeping displaying audio file.
When determining to enable RG, carrying out step S120, determining whether audio file has RG information.Here, only exemplarily unrestricted, RG information can be peak value (Peak) and/or the root-mean-square value (RMS) of audio file.In addition, should understand, when not displaying audio file, the present invention can determine whether audio file has RG information, and be not limited to determine when displaying audio file whether audio file has RG information, that is, can come to determine in all cases whether audio file has RG information as required.
When determining that audio file does not have RG information, carry out step S160, RG scanning is carried out to obtain RG information to audio file.Here, before RG scanning is carried out to audio file, first can determine whether the RG information producing audio file, when not producing the RG information of audio file, again RG scanning is carried out to audio file, and can by the RG information determined together with audio files storage.Here, should understand, in step S120 and step S160, after the RG information determining current audio file, the RG information of one or more audio files subsequently can be determined successively, wherein, the one or more audio files can determining subsequently according to predetermined broadcast strategy (such as, sequentially, random etc.).In addition, if special audio file subsequently can spend the more time to carry out RG scanning (such as, the WMA audio file that data volume is very large), RG scanning can be carried out in advance to described special audio file, to ensure can complete RG scanning before the described special audio file of broadcasting, such as, if the data volume of described special audio file is greater than predetermined value (such as but not limited to 5MB), then can carry out RG scanning to described special audio file in advance.
When determining that audio file has RG information, carrying out step S130, using RG information to regulate the volume of audio file.
Subsequently, carry out step S140, keep displaying audio file.Here, can adjustment in use volume keep displaying audio file.
Subsequently, carry out step S150, at the end of current audio file is play, play audio file subsequently, and return step S110.That is, in step below, the RG information of the audio file subsequently determined can be used to regulate the volume of audio file subsequently.
In addition, according to exemplary embodiment, also can carry out automatic growth control to audio file, and based on the volume amplification coefficient of automatic growth control, noise reduction be carried out to audio file, to realize better sound effect.Here, only exemplarily unrestricted, described noise reduction can be sampling noise reduction.Should be appreciated that, this automatic growth control and noise reduction operation can carry out before the RG scanning shown in Fig. 1, and also can carry out after RG scanning, this can be selected according to actual conditions accordingly by those skilled in the art.In addition, only exemplarily unrestricted, above-mentioned automatic growth control and noise reduction operation can be realized by automatic growth control DSP and noise reduction DSP respectively.
In addition, according to exemplary embodiment, can the volume adjusting made at special audio file of recording user, and automatically make identical volume adjusting when next time plays this special audio file.More specifically, the play time of special audio file and the regulated quantity of volume can be regulated by recording user, and based on play time and the regulated quantity of volume automatically make identical volume adjusting when next time plays this special audio file.In addition, during the audio file playing subsequently after user regulates the special audio file of volume to play to terminate, can determine whether user returns volume adjusting to the value before not regulating, if volume adjusting is returned the value before not regulating by user, then can think that special audio file needs to do interim volume adjusting, otherwise, think that user needs to regulate overall loudness temporarily.That is, if volume adjusting is returned the value before not regulating by user, then recording user makes identical volume adjusting at the volume adjusting that special audio file is made automatically when next time plays this special audio file, if volume adjusting is not returned the value before not regulating by user, then record is not carried out to the volume adjusting that user makes at special audio file.In addition, when automatically making identical volume adjusting, can make and have the identical volume adjusting that flat volume changes effect, this calculates by envelope.
Fig. 2 illustrates according to an exemplary embodiment of the present invention for the block diagram of the device of balance volume in portable terminal.
With reference to Fig. 2, the device according to an exemplary embodiment of the present invention for balance volume in portable terminal can comprise RG information determination unit 210, RG scanning element 220 and sound volume regulation unit 230.
RG information determination unit 210 determines whether the audio file play has RG information;
If determine that the audio file play does not have RG information, then RG scanning element 220 carries out RG scanning to obtain RG information to the audio file play.That is, RG scanning element 220 can be used as a stand-alone assembly and provides to obtain better versatility in portable terminal, such as but not limited to, in the portable terminal adopting Android, RG scanning element 220 can be a service, and player need only send to described service the RG information that corresponding request can scan audio file.
If determine that the audio file play has RG information, then sound volume regulation unit 230 uses RG information to regulate the volume of the audio file play.
In addition, device for balance volume also can comprise other unit, such as, RG enables each step to realize the method for balance volume described in Fig. 1 respectively such as determining unit, audio file broadcast unit, automatic growth control and noise reduction unit, user's volume regulating and controlling unit.
Should understand, above-mentioned according to an exemplary embodiment of the present invention for the method for balance volume and for the device of balance volume except can be applicable to portable terminal, also can be applicable to other non-portable terminal, with user-friendly.
According to exemplary embodiment of the present invention, owing to directly carrying out RG scanning to audio file when displaying audio file, therefore do not need the volume of user's manual adjustments displaying audio file, do not need user manually to intervene RG scanning yet, thus promote user to the overall experience of player; In addition, because the volume amplification coefficient based on automatic growth control while carrying out automatic growth control to audio file carries out noise reduction to audio file, therefore better sound effect can be realized; In addition, the volume adjusting made due to recording user also makes identical volume adjusting automatically when next time plays, therefore can realize better Consumer's Experience.
Although illustrate and describe the present invention with reference to certain exemplary embodiments, but it will be apparent to one skilled in the art that the various changes can made when not departing from the spirit and scope of the present invention of scope by claim and equivalents thereof in form and details.
Claims (8)
1., for a method for balance volume in portable terminal, comprising:
Determine whether audio file has playback gain (RG) information;
If determine that audio file does not have RG information, then RG scanning is carried out to obtain RG information to audio file;
If determine that audio file has RG information, then RG information is used to regulate the volume of the audio file play when displaying audio file.
2., as claimed in claim 1 for the method for balance volume in portable terminal, wherein, after the RG information determining audio file, determine the RG information of one or more audio files subsequently successively.
3. as claimed in claim 2 for the method for balance volume in portable terminal, wherein, when the audio file broadcasting of playing terminates and plays one or more audio file subsequently, the RG information of the one or more audio files subsequently determined is used to regulate the volume of one or more audio files subsequently.
4., as claimed in claim 1 for the method for balance volume in portable terminal, wherein, if the data volume of audio file special audio file is subsequently greater than predetermined value, then in advance RG scanning is carried out to described special audio file subsequently.
5. as claimed in claim 1 for the method for balance volume in portable terminal, wherein, automatic growth control is carried out to the audio file play, and based on the volume amplification coefficient of automatic growth control, noise reduction is carried out to the audio file play.
6., as claimed in claim 1 for the method for balance volume in portable terminal, wherein, be recorded in the volume adjusting that special audio file is made, and automatically make identical volume adjusting when next time plays described special audio file.
7. as claimed in claim 6 for the method for balance volume in portable terminal, wherein, if volume adjusting is returned the value before not regulating when playing special audio file subsequently after the special audio file broadcasting of adjustment volume terminates, then be recorded in volume adjusting that special audio file makes and automatically make identical volume adjusting when next time plays this special audio file
If volume adjusting is not returned the value before not regulating, then record is not carried out to the volume adjusting made at special audio file.
8., for a device for balance volume in portable terminal, comprising:
Playback gain (RG) information determination unit, determines whether audio file has RG information;
RG scanning element, if determine that audio file does not have RG information, then carries out RG scanning to obtain RG information to audio file;
Sound volume regulation unit, if determine that audio file has RG information, then uses RG information to regulate the volume of the audio file play when displaying audio file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410166132.1A CN104332165B (en) | 2014-04-23 | 2014-04-23 | For the method and apparatus of the balance volume in portable terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410166132.1A CN104332165B (en) | 2014-04-23 | 2014-04-23 | For the method and apparatus of the balance volume in portable terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104332165A true CN104332165A (en) | 2015-02-04 |
CN104332165B CN104332165B (en) | 2017-06-27 |
Family
ID=52406880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410166132.1A Active CN104332165B (en) | 2014-04-23 | 2014-04-23 | For the method and apparatus of the balance volume in portable terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104332165B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108231088A (en) * | 2018-01-08 | 2018-06-29 | 北京小鱼在家科技有限公司 | A kind of rapid automatic gain control method and device applied to voice digital signal |
CN110010154A (en) * | 2019-03-26 | 2019-07-12 | 北京雷石天地电子技术有限公司 | A kind of volume equalization methods and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1591573A (en) * | 2003-08-25 | 2005-03-09 | Lg电子株式会社 | Apparatus and method for adjusting output level of audio data to be reproduced |
CN1829253A (en) * | 2005-03-04 | 2006-09-06 | 乐金电子(中国)研究开发中心有限公司 | Mobile terminal with receiving volume automatic regualting function and its volume regulation method |
CN1885285A (en) * | 2005-06-24 | 2006-12-27 | 鸿富锦精密工业(深圳)有限公司 | Play list generation system and method |
KR20070074266A (en) * | 2006-01-09 | 2007-07-12 | 삼성전자주식회사 | Method for volume control of play music in portable terminal |
CN102568531A (en) * | 2011-12-15 | 2012-07-11 | 惠州Tcl移动通信有限公司 | Volume management method and radio communication equipment for volume management |
CN102592626A (en) * | 2011-12-20 | 2012-07-18 | 广东步步高电子工业有限公司 | Intelligent management method and system for play volume of audio file |
CN102693737A (en) * | 2012-06-11 | 2012-09-26 | 华为终端有限公司 | Volume adjusting method and device |
CN103456334A (en) * | 2012-06-01 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Method and device for playing audio file |
CN103489461A (en) * | 2013-09-18 | 2014-01-01 | 广东欧珀移动通信有限公司 | Method, system and player for playing audio file |
-
2014
- 2014-04-23 CN CN201410166132.1A patent/CN104332165B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1591573A (en) * | 2003-08-25 | 2005-03-09 | Lg电子株式会社 | Apparatus and method for adjusting output level of audio data to be reproduced |
CN1829253A (en) * | 2005-03-04 | 2006-09-06 | 乐金电子(中国)研究开发中心有限公司 | Mobile terminal with receiving volume automatic regualting function and its volume regulation method |
CN1885285A (en) * | 2005-06-24 | 2006-12-27 | 鸿富锦精密工业(深圳)有限公司 | Play list generation system and method |
KR20070074266A (en) * | 2006-01-09 | 2007-07-12 | 삼성전자주식회사 | Method for volume control of play music in portable terminal |
CN102568531A (en) * | 2011-12-15 | 2012-07-11 | 惠州Tcl移动通信有限公司 | Volume management method and radio communication equipment for volume management |
CN102592626A (en) * | 2011-12-20 | 2012-07-18 | 广东步步高电子工业有限公司 | Intelligent management method and system for play volume of audio file |
CN103456334A (en) * | 2012-06-01 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Method and device for playing audio file |
CN102693737A (en) * | 2012-06-11 | 2012-09-26 | 华为终端有限公司 | Volume adjusting method and device |
CN103489461A (en) * | 2013-09-18 | 2014-01-01 | 广东欧珀移动通信有限公司 | Method, system and player for playing audio file |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108231088A (en) * | 2018-01-08 | 2018-06-29 | 北京小鱼在家科技有限公司 | A kind of rapid automatic gain control method and device applied to voice digital signal |
CN108231088B (en) * | 2018-01-08 | 2021-04-06 | 北京小鱼在家科技有限公司 | Fast automatic gain control method and device applied to voice digital signals |
CN110010154A (en) * | 2019-03-26 | 2019-07-12 | 北京雷石天地电子技术有限公司 | A kind of volume equalization methods and device |
CN110010154B (en) * | 2019-03-26 | 2021-04-09 | 北京雷石天地电子技术有限公司 | Volume balancing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104332165B (en) | 2017-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI664623B (en) | Audio processor and corresponding method for loudness control for user interactivity in audio coding systems, and audio encoder | |
JP6945092B2 (en) | Efficient DRC profile transmission | |
US9154102B2 (en) | System for combining loudness measurements in a single playback mode | |
US11824507B2 (en) | Methods and apparatus for volume adjustment | |
US7596234B2 (en) | Method and apparatus for playback of audio files | |
TW201443886A (en) | Metadata for loudness and dynamic range control | |
US20080002839A1 (en) | Smart equalizer | |
KR20070082529A (en) | Musical piece extraction program, apparatus, and method | |
US6889193B2 (en) | Method and system for smart cross-fader for digital audio | |
CN102693737A (en) | Volume adjusting method and device | |
KR100924731B1 (en) | Playback device, playback method and recording medium having computer-readable playback program | |
CN104332165A (en) | Method and device for balancing volume in portable terminal | |
CN101562037B (en) | Multimedia file playing method and device thereof | |
US10346472B2 (en) | Method and a portable electronic device for automatically rating a music track | |
US6759585B2 (en) | Musical-file-processing apparatus, musical-file-processing method and musical-file-processing method program | |
CN115268828A (en) | Audio playing method, electronic equipment and readable storage medium | |
JP2004334160A (en) | Characteristic amount extraction device | |
KR101085567B1 (en) | Device for auto controll an gain of sound source | |
US20210185446A1 (en) | System and method for customizing sound and equalization for audio devices | |
KR102722619B1 (en) | Methods and Apparatus for Volume Adjustment | |
JP2008079047A (en) | Data reproducing device, data reproduction method and data reproduction program | |
US20140185830A1 (en) | Methods, systems, and apparatus for audio backtracking control | |
KR20240156434A (en) | Methods and Apparatus for Volume Adjustment | |
JP2009104680A (en) | Sound recording level setting device, program, sound recording device, and sound recording level setting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |