CN107994879A - Volume control method and device - Google Patents

Volume control method and device Download PDF

Info

Publication number
CN107994879A
CN107994879A CN201711261088.2A CN201711261088A CN107994879A CN 107994879 A CN107994879 A CN 107994879A CN 201711261088 A CN201711261088 A CN 201711261088A CN 107994879 A CN107994879 A CN 107994879A
Authority
CN
China
Prior art keywords
audio
loudness
audio file
value
types
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
CN201711261088.2A
Other languages
Chinese (zh)
Other versions
CN107994879B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711261088.2A priority Critical patent/CN107994879B/en
Publication of CN107994879A publication Critical patent/CN107994879A/en
Application granted granted Critical
Publication of CN107994879B publication Critical patent/CN107994879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/3005Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

The disclosure is directed to volume control method and device.This method includes:Obtain audio file and the volume value for playing audio file;Determine the audio types of audio file, audio types include at least at least one in the content type of audio file and provider's type of audio file;Obtain target loudness yield value corresponding with volume value and audio types;Loudness Gain tuning is carried out to audio file according to target loudness yield value.The technical solution can make the loudness that the loudness that audio-frequence player device is exported is the audio file that the audio types are listened to suitable for user, so as to improve user experience on the premise of without the whole loudness yield value of user or volume value.

Description

Volume control method and device
Technical field
This disclosure relates to field of audio processing, more particularly to volume control method and device.
Background technology
With the development of science and technology, audio-frequence player device such as intelligent sound box can be used for broadcasting by network acquisition magnanimity The audio file put, wherein acquired audio file is probably to be provided by more providers, while acquired audio File is also possible that plurality of kinds of contents type such as cross-talk, modern drama, classical music, rock music.In correlation technique, work as audio The timing of volume one of playback equipment, in fact it could happen that it is cross-talk that audio-frequence player device, which plays the content type that a provider is provided, Audio file when the loudness that exports fit into user and listen to, and the audio-frequence player device plays another provider and is provided The content type situation that the larger or smaller unsuitable user of loudness that exports listens to when being the audio file of classical music, therefore User is needed to fit the loudness that audio player exports for different types of audio file adjustment loudness yield value or volume value Share family to listen to, so as to compromise user experience.
The content of the invention
To overcome problem present in correlation technique, embodiment of the disclosure provides a kind of volume control method and device. Technical solution is as follows:
First aspect in accordance with an embodiment of the present disclosure, there is provided a kind of volume control method, this method are broadcast applied to audio Equipment is put, including:
Obtain audio file and the volume value for playing audio file;
Determine the audio types of audio file, audio types include at least the content type and audio file of audio file Provider's type at least one of;
Obtain target loudness yield value corresponding with volume value and audio types;
Loudness Gain tuning is carried out to audio file according to target loudness yield value.
In the technical scheme provided by this disclosed embodiment, by obtaining audio file and for playing audio file Volume value, wherein volume value can reflect that user wishes the size of audio-frequence player device output loudness, by determining audio file Audio types, obtain corresponding with volume value and audio types target loudness yield value, and according to target loudness yield value Loudness Gain tuning is carried out to audio file, wherein target loudness yield value is to be adapted to play the audio types under the volume value Audio file when to audio file carry out loudness Gain tuning used in yield value.Therefore when audio-frequence player device plays warp When crossing the audio file after above-mentioned loudness Gain tuning, on the premise of without the whole loudness yield value of user or volume value, make sound The loudness that frequency playback equipment is exported is the loudness for the audio file that the audio types are listened to suitable for user, so as to improve user Experience.
In one embodiment, method further includes:
The audio identification of audio file is obtained, audio identification is used for the audio types for indicating audio file;
Determine the audio types of audio file, including:
The audio types of audio file are determined according to the audio identification of audio file.
In one embodiment, target loudness yield value corresponding with volume value and audio types is obtained, including:
Inquired about according to volume value and audio types in loudness gain data storehouse to obtain target loudness yield value, Loudness gain data storehouse is used to indicate at least one set of volume value and audio types and the correspondence of loudness yield value.
Second aspect in accordance with an embodiment of the present disclosure, there is provided a kind of loudness gain data library generating method, including:
The audio types of reference audio file and reference audio file are obtained, audio types include at least reference audio text At least one of in the content type of part and provider's type of reference audio file;
Reference volume value is obtained with reference loudness value corresponding with audio types and reference volume value;
Reference audio file is played according to reference volume value and actual loudness yield value to obtain actual loudness value;
When actual loudness value is consistent with reference loudness value, generation is at least used to indicate reference volume value and audio types With the loudness gain data storehouse of the correspondence of actual loudness yield value.
The third aspect in accordance with an embodiment of the present disclosure, there is provided a kind of loudness control device, including:
Audio file acquisition module, the volume value for obtaining audio file and for playing audio file;
Audio types determining module, for determining the audio types of audio file, audio types include at least audio file Content type and audio file provider's type at least one of;
Loudness yield value acquisition module, for obtaining target loudness yield value corresponding with volume value and audio types;
Loudness gain regulation module, for carrying out loudness Gain tuning to audio file according to target loudness yield value.
In one embodiment, device further includes:
Audio identification acquisition module, for obtaining the audio identification of audio file, audio identification is used to indicate audio file Audio types;
Audio types determining module, including:
Audio types determination sub-module, for determining the audio types of audio file according to the audio identification of audio file.
In one embodiment, loudness yield value acquisition module, including:
Loudness yield value acquisition submodule, for being carried out according to volume value and audio types in loudness gain data storehouse To obtain target loudness yield value, loudness gain data storehouse is used to indicate at least one set of volume value and audio types and sound for inquiry Spend the correspondence of yield value.
Fourth aspect in accordance with an embodiment of the present disclosure, there is provided a kind of loudness gain data storehouse generating means, including:
Audio file acquisition module, for obtaining the audio types of reference audio file and reference audio file, audio Type includes at least at least one in the content type of reference audio file and provider's type of reference audio file;
Reference loudness value acquisition module, for obtaining reference volume value with corresponding with audio types and reference volume value Reference loudness value;
Actual loudness value acquisition module, for playing reference audio text according to reference volume value and actual loudness yield value Part is to obtain actual loudness value;
Database generation module, for when actual loudness value is consistent with reference loudness value, generation to be at least used to indicate ginseng Examine volume value and audio types and the loudness gain data storehouse of the correspondence of actual loudness yield value.
The 5th aspect in accordance with an embodiment of the present disclosure, there is provided a kind of loudness control device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, processor is configured as:
Obtain audio file and the volume value for playing audio file;
Determine the audio types of audio file, audio types include at least the content type and audio file of audio file Provider's type at least one of;
Obtain target loudness yield value corresponding with volume value and audio types;
Loudness Gain tuning is carried out to audio file according to target loudness yield value.
The 6th aspect in accordance with an embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, is stored thereon with meter Calculation machine instructs, it is characterised in that the instruction realizes what the first aspect of embodiment of the disclosure was provided when being executed by processor The step of any one method.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is the flow diagram of the volume control method according to an exemplary embodiment;
Fig. 2 is the flow diagram of the volume control method according to an exemplary embodiment;
Fig. 3 is the flow diagram of the loudness gain data storehouse generation according to an exemplary embodiment;
Fig. 4 a are structural representation Fig. 1 of the loudness control device according to an exemplary embodiment;
Fig. 4 b are structural representation Fig. 2 of the loudness control device according to an exemplary embodiment;
Fig. 4 c are structural representation Fig. 3 of the loudness control device according to an exemplary embodiment;
Fig. 5 is the structure diagram of the loudness gain data storehouse generating means according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of device according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
With the high speed development and people's living standards continue to improve of science and technology, in recent years, audio-frequence player device example Such as pocket music player, smart mobile phone, intelligent sound box are gradually popularized in people's lives.With the hair of network technology Exhibition, audio player such as intelligent sound box or smart mobile phone can access network, and can be used for broadcasting by network acquisition magnanimity The audio file put.Wherein, the audio file acquired in audio player is probably to be provided by more providers, while sound Audio file acquired in frequency player is also possible that plurality of kinds of contents type.For example, the audio text acquired in audio player Part is probably that content is the audio of classical music concert live recording in " music that I likes " song list in certain web player File, it is also possible to which the content stored on audio player is the audio file of cross-talk, in some instances it may even be possible to is carrying for audio player Show voice or prompt tone etc..Loudness is an index of voice metric energy when electric signal is converted to acoustic vibration, is that human ear is listened Feel the subjective feeling to sound intensity, when the timing of volume one that user sets for audio-frequence player device, may play audio and set The loudness that the content type that one provider of standby broadcasting is provided exports when being the audio file of cross-talk fits into user and listens to, And the audio-frequence player device plays what is exported when content type that another provider provided is the audio file of classical music The larger or smaller unsuitable user of loudness listens to, therefore when audio-frequence player device plays audio file, it is necessary to which user is not for The audio file adjustment loudness yield value or volume value of same type, make the loudness that audio player exports be adapted to itself listen to, from And compromise user experience.
To solve the above-mentioned problems, in the technical scheme provided by this disclosed embodiment, by obtain audio file and For playing the volume value of audio file, wherein volume value can reflect that user wishes the big of audio-frequence player device output loudness It is small, by determining the audio types of audio file, target loudness yield value corresponding with volume value and audio types is obtained, and Loudness Gain tuning carries out audio file according to target loudness yield value, wherein target loudness yield value is to be adapted in the volume Yield value used in loudness Gain tuning is carried out to audio file when the audio file of the audio types is played under value.Therefore work as When audio-frequence player device plays the audio file after above-mentioned loudness Gain tuning, without the whole loudness yield value of user or sound On the premise of value, make the sound that the loudness that audio-frequence player device is exported is the audio file that the audio types are listened to suitable for user Degree, so as to improve user experience.
Embodiment of the disclosure provides a kind of volume control method, and this method is applied to audio-frequence player device, and audio is broadcast It can be smart mobile phone, tablet computer, walkman, intelligent wearable device and intelligent sound box etc. to put equipment, as shown in Figure 1, Include the following steps 101 to step 104:
In a step 101, audio file and the volume value for playing audio file are obtained.
Exemplary, it can be to download audio text by network when audio-frequence player device accesses network to obtain audio file Part, or read the audio file being previously stored in audio-frequence player device.For example, when audio-frequence player device access network When, audio-frequence player device can obtain online music broadcasting by accessing the audio file sharing interface of online music playing program The audio file that program provides.For playing the volume value of audio file as user for the audio file in audio-frequence player device The volume value of upper setting.It can be to read the pin being stored in audio-frequence player device to obtain the volume value for being used to play audio file Broadcasting to the audio file sets file to obtain volume value, or is filled by the human-computer interaction on audio-frequence player device Put such as touch-screen or the other equipment being connected with audio-frequence player device such as smart mobile phone and receive volume value input by user.
In a step 102, the audio types of audio file are determined.
Wherein, audio types are included at least in the content type of audio file and provider's type of audio file at least One.
It is exemplary, the audio identification of audio file can be obtained before the audio types of audio file are determined, according to sound The audio identification of frequency file determines the audio types of audio file, and wherein audio identification is used for the audio class for indicating audio file Type, audio identification can be to be provided by the provider of audio file, or are specified by user for audio file.Can also Audio file is detected for audio player and the audio types of audio file are determined according to testing result.Wherein, audio The content type of file can be used for further using for music, cross-talk, the tinkle of bells, suggestion voice etc., wherein music type In languages, style, scene, emotion and theme etc. of instruction audio file, for example, languages can be Chinese, America and Europe, Japanese, Chinese, Guangdong language, rare foreign languages etc., style can be prevalence, rock and roll, folk rhyme, electronics, dance music, a Chinese musical telling, gently, jazz, rural area, allusion, Nationality, metal, punk, Blues, Latin etc., scene can be early morning, night, study, work, lunch break, drive, move, travelling, Stroll, bar etc., emotion can be miss old times or old friends, be pure and fresh, is romantic, is sexy, is sentimental, curing, loosening, solitarily, it is moved, excited, happy Can be video display primary sound, animation primary sound, campus, game, network song etc. Deng, theme;Provider's type can be terminal, network Music program etc., wherein terminal can be connected by wirelessly or non-wirelessly mode with audio player, wherein, wired mode can With including audio electrical signal cable, audio optical signal cable etc., wireless mode can be bluetooth, WIFI, infrared signal etc., and terminal can be with Including smart mobile phone, tablet computer, pocket music player, laser disc (Compact Disc, CD) player, mini magneto-optic Disk player (Mini Disc, MD), vinyl record player etc., online music playing program can include millet music, QQ sounds Pleasure, dried shrimp music, Netease's cloud music, Himalaya, dragonfly FM etc..For example, audio player can be by the title of audio file Matched with keyword, when the title of audio file includes keyword " cross-talk ", determine the content type of the audio file For cross-talk, when the title of audio file includes keyword " millet music ", the provider's type for determining the audio file is small Meter Yin Le.
It should be noted that the audio identification by obtaining audio file before the audio types of audio file are determined, and The audio types of audio file are determined according to the audio identification of audio file, can accelerate to determine the audio types of audio file Speed, so as to improve user experience.
In step 103, target loudness yield value corresponding with volume value and audio types is obtained.
It is exemplary, obtain target loudness yield value corresponding with volume value and audio types, can according to volume Value and audio types are inquired about in loudness gain data storehouse to obtain target loudness yield value, wherein loudness gain data Storehouse is used to indicate at least one set of volume value and audio types and the correspondence of loudness yield value, or acquisition and audio The corresponding audio class offset of type, and volume value and audio class offset substitute into preset algorithm and are calculated to obtain target loudness Yield value.It should be noted that loudness gain data storehouse can be to be previously stored in audio player, or audio is broadcast Device is put to obtain at other devices or system.
It should be noted that by being inquired about according to volume value and audio types in loudness gain data storehouse to obtain Target loudness yield value is taken, can improve and determine the accurate of target loudness yield value corresponding with volume value and audio types Property, so as to improve user experience.
At step 104, loudness Gain tuning is carried out to audio file according to target loudness yield value.
In the technical scheme provided by this disclosed embodiment, by obtaining audio file and for playing audio file Volume value, wherein volume value can reflect that user wishes the size of audio-frequence player device output loudness, by determining audio file Audio types, obtain corresponding with volume value and audio types target loudness yield value, and according to target loudness yield value Loudness Gain tuning is carried out to audio file, wherein target loudness yield value is to be adapted to play the audio types under the volume value Audio file when to audio file carry out loudness Gain tuning used in yield value.Therefore when audio-frequence player device plays warp When crossing the audio file after above-mentioned loudness Gain tuning, on the premise of without the whole loudness yield value of user or volume value, make sound The loudness that frequency playback equipment is exported is the loudness for the audio file that the audio types are listened to suitable for user, so as to improve user Experience.
Fig. 2 is that a kind of indicative flowchart of volume control method according to an exemplary embodiment illustrates. As shown in Fig. 2, comprise the following steps:
In step 201, audio file and the volume value for playing audio file are obtained.
In step 202, the audio identification of audio file is obtained.
Wherein audio identification is used for the audio types for indicating audio file.
In step 203, the audio types of audio file are determined according to the audio identification of audio file.
In step 204, inquired about according to volume value and audio types in loudness gain data storehouse to obtain mesh Mark loudness yield value.
Wherein loudness gain data storehouse is used to indicate at least one set of volume value and audio types and pair of loudness yield value It should be related to.
In step 205, loudness Gain tuning is carried out to audio file according to target loudness yield value.
In the technical scheme provided by this disclosed embodiment, by obtaining audio file and for playing audio file Volume value, wherein volume value can reflect that user wishes the size of audio-frequence player device output loudness, by determining audio file Audio types, obtain corresponding with volume value and audio types target loudness yield value, and according to target loudness yield value Loudness Gain tuning is carried out to audio file, wherein target loudness yield value is to be adapted to play the audio types under the volume value Audio file when to audio file carry out loudness Gain tuning used in yield value.Therefore when audio-frequence player device plays warp When crossing the audio file after above-mentioned loudness Gain tuning, on the premise of without the whole loudness yield value of user or volume value, make sound The loudness that frequency playback equipment is exported is the loudness for the audio file that the audio types are listened to suitable for user, so as to improve user Experience.
Embodiment of the disclosure provides a kind of loudness gain data library generating method, this method can be applied to terminal or Server, wherein terminal can be smart mobile phone, tablet computer, walkman, intelligent wearable device and intelligent sound box etc., take Business device can be can be by loudness gain data storehouse generate service provider provides and use provide calculating service equipment, Setting for service can also be calculated to provide the offer used by loudness gain data storehouse generation service provider by Virtual network operator It is standby.As shown in figure 3, this method comprises the following steps 301 to step 304:
In step 301, the audio types of reference audio file and reference audio file are obtained.
Wherein, audio types include at least the content type of reference audio file and provider's class of reference audio file At least one of in type.
In step 302, reference volume value is obtained.
Exemplary, reference volume value can be the volume value being set by the user, and can be the volume value being generated in advance, It can be the volume value generated at random.
In step 303, reference loudness value corresponding with audio types and reference volume value is obtained.
Reference loudness value corresponding with audio types and reference volume value is to play audio types with reference volume value Audio file when can make the size of loudness that user feels comfortably cool, obtain reference loudness value, can be according to reference to sound When value is to user's broadcasting reference audio file, constantly adjustment plays loudness yield value used in the audio file, when institute is defeated When the loudness size gone out makes the user feel comfortably cool, determine that loudness at this time is reference loudness value.
In step 304, reference audio file is played according to reference volume value and actual loudness yield value to obtain reality Border loudness value.
Exemplary, actual loudness yield value can be the loudness yield value being set by the user, and can be generated in advance Loudness yield value, or the loudness yield value generated at random.
In step 305, when actual loudness value is consistent with reference loudness value, generation is at least used to indicate reference volume value And audio types and the loudness gain data storehouse of the correspondence of actual loudness yield value.
Exemplary, in order to make actual loudness value consistent with reference loudness value, it can incrementally increase or reduce actual loudness Yield value, when the actual loudness yield value after increase or diminution is consistent, determines actual loudness yield value at this time with referring to sound Value and audio types correspond to, and generation is used for the loudness gain data storehouse for indicating above-mentioned correspondence.
In the technical scheme provided by this disclosed embodiment, by obtaining reference audio file and reference audio file Audio types, obtain reference volume value, obtain reference loudness value corresponding with audio types and reference volume value to determine The loudness that user can be allowed to feel comfortably cool when playing the audio file of the audio types with reference volume value, according to reference volume value And actual loudness yield value plays reference audio file to obtain actual loudness value, and when actual loudness value and reference loudness value When consistent, determine to export when playing the reference audio file of the audio types according to reference volume value and actual loudness yield value Loudness user can be allowed to feel comfortably cool, be at least used to indicate reference volume value and audio types and actual loudness by generating The loudness gain data storehouse of the correspondence of yield value, enables loudness gain data storehouse to indicate in volume value and audio file On the premise of audio types have determined, playing audio file using great loudness yield value can make user feel comfortably cool, Improve user experience.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.
Fig. 4 a are a kind of structure diagrams of loudness control device 40 according to an exemplary embodiment, loudness control Device 40 processed can be the part that terminal can also be terminal, and loudness control device 40 can pass through software, hardware or two Person's is implemented in combination with as some or all of of electronic equipment.As shown in fig. 4 a, which includes:
Audio file acquisition module 401, the volume value for obtaining audio file and for playing audio file.
Audio types determining module 402, for determining the audio types of audio file, audio types include at least audio text At least one of in the content type of part and provider's type of audio file.
Loudness yield value acquisition module 403, for obtaining target loudness gain corresponding with volume value and audio types Value.
Loudness gain regulation module 404, for carrying out loudness Gain tuning to audio file according to target loudness yield value.
In one embodiment, as shown in Figure 4 b, loudness control device 40 further includes
Audio identification acquisition module 405, for obtaining the audio identification of audio file, audio identification is used to indicate audio text The audio types of part.
Audio types determining module 402, including:
Audio types determination sub-module 4021, for determining the audio class of audio file according to the audio identification of audio file Type.
In one embodiment, as illustrated in fig. 4 c, loudness yield value acquisition module 403, including
Loudness yield value acquisition submodule 4031, for according to volume value and audio types in loudness gain data storehouse Inquired about to obtain target loudness yield value, loudness gain data storehouse is used to indicate at least one set of volume value and audio types With the correspondence of loudness yield value.
Embodiment of the disclosure provides a kind of loudness control device, which can be by obtaining audio file And for playing the volume value of audio file, wherein volume value can reflect that user wishes audio-frequence player device output loudness Size, by determining the audio types of audio file, obtains target loudness yield value corresponding with volume value and audio types, And loudness Gain tuning carries out audio file according to target loudness yield value, wherein target loudness yield value is to be adapted in the sound Yield value used in loudness Gain tuning is carried out to audio file when the audio file of the audio types is played under value.Therefore When audio-frequence player device plays audio file after above-mentioned loudness Gain tuning, without the whole loudness yield value of user or On the premise of volume value, it is that the audio file of the audio types is listened to suitable for user to make the loudness that audio-frequence player device is exported Loudness, so as to improve user experience.
Fig. 5 is a kind of structural representation of loudness gain data storehouse generating means 50 according to an exemplary embodiment Figure, loudness gain data storehouse generating means 50 can be a part for terminal or terminal, or server or server A part, loudness gain data storehouse generating means 50 can be implemented in combination with setting as electronics by software, hardware or both Standby is some or all of.As shown in figure 5, the loudness gain data storehouse generating means 50 include:
Audio file acquisition module 501, for obtaining the audio types of reference audio file and reference audio file, sound Frequency type includes at least at least one in the content type of reference audio file and provider's type of reference audio file.
Reference loudness value acquisition module 502, for obtain reference volume value with audio types and reference volume value pair The reference loudness value answered.
Actual loudness value acquisition module 503, sound is referred to for being played according to reference volume value and actual loudness yield value Frequency file is to obtain actual loudness value.
Database generation module 504, for when actual loudness value is consistent with reference loudness value, generation to be at least used to indicate Reference volume value and audio types and the loudness gain data storehouse of the correspondence of actual loudness yield value.
Embodiment of the disclosure provides a kind of loudness gain data storehouse generating means, the loudness gain data storehouse generating means Reference volume value can be obtained by obtaining the audio types of reference audio file and reference audio file, obtained and audio Type and the corresponding reference loudness value of reference volume value are literary in the audio that the audio types are being played with reference volume value to determine The loudness that user can be allowed to feel comfortably cool during part, reference audio file is played according to reference volume value and actual loudness yield value To obtain actual loudness value, and when actual loudness value is consistent with reference loudness value, determine according to reference volume value and reality Loudness yield value, which plays the loudness exported during the reference audio file of the audio types, to allow user to feel comfortably cool, and pass through generation At least it is used to indicate reference volume value and audio types and the loudness gain data storehouse of the correspondence of actual loudness yield value, Loudness gain data storehouse is set to indicate that use is much on the premise of the audio types of volume value and audio file have determined Loudness yield value play audio file user can be made to feel comfortably cool, improve user experience.
Fig. 6 is a kind of block diagram of loudness control device 60 according to an exemplary embodiment, the loudness control device 60 can be a part for terminal or terminal, or a part for server or server, loudness control device 60 include:
Processor 601;
For storing the memory 602 of 601 executable instruction of processor;
Wherein, processor 601 is configured as:
Obtain audio file and the volume value for playing audio file;
Determine the audio types of audio file, audio types include at least the content type and audio file of audio file Provider's type at least one of;
Obtain target loudness yield value corresponding with volume value and audio types;
Loudness Gain tuning is carried out to audio file according to target loudness yield value.
In one embodiment, above-mentioned processor 601 can be additionally configured to:
The audio identification of audio file is obtained, audio identification is used for the audio types for indicating audio file;
Determine the audio types of audio file, including:
The audio types of audio file are determined according to the audio identification of audio file.
In one embodiment, above-mentioned processor 601 can be additionally configured to:
Inquired about according to volume value and audio types in loudness gain data storehouse to obtain target loudness yield value, Loudness gain data storehouse is used to indicate at least one set of volume value and audio types and the correspondence of loudness yield value.
Embodiment of the disclosure provides a kind of loudness control device, which can be by obtaining audio file And for playing the volume value of audio file, wherein volume value can reflect that user wishes audio-frequence player device output loudness Size, by determining the audio types of audio file, obtains target loudness yield value corresponding with volume value and audio types, And loudness Gain tuning carries out audio file according to target loudness yield value, wherein target loudness yield value is to be adapted in the sound Yield value used in loudness Gain tuning is carried out to audio file when the audio file of the audio types is played under value.Therefore When audio-frequence player device plays audio file after above-mentioned loudness Gain tuning, without the whole loudness yield value of user or On the premise of volume value, it is that the audio file of the audio types is listened to suitable for user to make the loudness that audio-frequence player device is exported Loudness, so as to improve user experience.
Fig. 7 be according to an exemplary embodiment it is a kind of be used for control loudness device 700 block diagram, the device 700 are suitable for terminal.For example, device 700 can be mobile phone, and computer, digital broadcast terminal, messaging devices, trip Play console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 700 can include following one or more assemblies:Processing component 702, memory 704, power supply module 706, Multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor component 714, and communication component 716。
The integrated operation of the usual control device 700 of processing component 702, such as with display, call, data communication, phase The operation that machine operates and record operation is associated.Treatment element 702 can refer to including one or more processors 720 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 702 can include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 can include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured not store various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application program or method for being operated on device 700, and contact data, telephone book data, disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 700.
Multimedia component 708 is included in the screen of one output interface of offer between device 700 and user.In some realities Apply in example, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch-screen, to receive input signal from the user.Touch panel include one or more touch sensors with Gesture on sensing touch, slip and touch panel.The touch sensor can not only sense the side of touch or sliding action Boundary, but also detection and the duration and pressure associated with the touch or slide operation.In certain embodiments, multimedia group Part 708 includes a front camera and/or rear camera.When device 700 is in operator scheme, such as screening-mode or video During pattern, front camera and/or rear camera can receive exterior multi-medium data.Each front camera and postposition Camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set Part 716 is sent.In certain embodiments, audio component 710 further includes a loudspeaker, for exports audio signal.
I/O interfaces 712 provide interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor component 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor component 714 can detect opening/closed mode of device 700, and the relative positioning of component, for example, it is described Component is the display and keypad of device 700, and sensor component 714 can be with 700 1 components of detection device 700 or device Position change, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700 Temperature change.Sensor component 714 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor component 714 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application application-specific integrated circuit (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 704 of instruction, above-metioned instruction can be performed to complete the above method by the processor 720 of device 700.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 700 When device performs so that device 700 is able to carry out above-mentioned volume control method, the described method includes:
Obtain audio file and the volume value for playing audio file;
Determine the audio types of audio file, audio types include at least the content type and audio file of audio file Provider's type at least one of;
Obtain target loudness yield value corresponding with volume value and audio types;
Loudness Gain tuning is carried out to audio file according to target loudness yield value.
In one embodiment, the method further includes:
The audio identification of audio file is obtained, audio identification is used for the audio types for indicating audio file;
Determine the audio types of audio file, including:
The audio types of audio file are determined according to the audio identification of audio file.
In one embodiment, target loudness yield value corresponding with volume value and audio types is obtained, including:
Inquired about according to volume value and audio types in loudness gain data storehouse to obtain target loudness yield value, Loudness gain data storehouse is used to indicate at least one set of volume value and audio types and the correspondence of loudness yield value.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be appreciated that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.

Claims (10)

  1. A kind of 1. volume control method, it is characterised in that the method is applied to audio-frequence player device, including:
    Obtain audio file and the volume value for playing the audio file;
    Determine the audio types of the audio file, the audio types include at least the audio file content type and At least one of in provider's type of the audio file;
    Obtain target loudness yield value corresponding with the volume value and the audio types;
    Loudness Gain tuning is carried out to the audio file according to the target loudness yield value.
  2. 2. volume control method according to claim 1, it is characterised in that the method further includes:
    The audio identification of the audio file is obtained, the audio identification is used for the audio types for indicating the audio file;
    The audio types for determining the audio file, including:
    The audio types of the audio file are determined according to the audio identification of the audio file.
  3. 3. volume control method according to claim 1, it is characterised in that the acquisition and the volume value and described The corresponding target loudness yield value of audio types, including:
    Inquired about in loudness gain data storehouse according to the volume value and the audio types and rung with obtaining the target Yield value is spent, the loudness gain data storehouse is used to indicate at least one set of volume value and audio types and pair of loudness yield value It should be related to.
  4. A kind of 4. loudness gain data library generating method, it is characterised in that including:
    The audio types of reference audio file and the reference audio file are obtained, the audio types include at least the ginseng Examine at least one in the content type of audio file and provider's type of the reference audio file;
    Obtain reference volume value;
    Obtain reference loudness value corresponding with the reference volume value and the audio types;
    The reference audio file is played according to the reference volume value and actual loudness yield value to obtain actual loudness value;
    When the actual loudness value is consistent with the reference loudness value, generation at least be used for indicate the reference volume value and The audio types and the loudness gain data storehouse of the correspondence of the actual loudness yield value.
  5. A kind of 5. loudness control device, it is characterised in that including:
    Audio file acquisition module, the volume value for obtaining audio file and for playing the audio file;
    Audio types determining module, for determining the audio types of the audio file, the audio types include at least described At least one of in provider's type of the content type of audio file and the audio file;
    Loudness yield value acquisition module, for obtaining target loudness gain corresponding with the volume value and the audio types Value;
    Loudness gain regulation module, for carrying out loudness gain tune to the audio file according to the target loudness yield value It is whole.
  6. 6. loudness control device according to claim 5, it is characterised in that described device further includes:
    Audio identification acquisition module, for obtaining the audio identification of the audio file, the audio identification is used to indicate described The audio types of audio file;
    The audio types determining module, including:
    Audio types determination sub-module, for determining the audio class of the audio file according to the audio identification of the audio file Type.
  7. 7. loudness control device according to claim 5, it is characterised in that the loudness yield value acquisition module, including:
    Loudness yield value acquisition submodule, for according to the volume value and the audio types in loudness gain data storehouse Inquired about to obtain the target loudness yield value, the loudness gain data storehouse be used to indicating at least one set of volume value and Audio types and the correspondence of loudness yield value.
  8. A kind of 8. loudness gain data storehouse generating means, it is characterised in that including:
    Audio file acquisition module, it is described for obtaining the audio types of reference audio file and the reference audio file Audio types are included at least in the content type of the reference audio file and provider's type of the reference audio file At least one of;
    Reference loudness value acquisition module, for obtain reference volume value with the audio types and the reference volume value pair The reference loudness value answered;
    Actual loudness value acquisition module, described sound is referred to for being played according to the reference volume value and actual loudness yield value Frequency file is to obtain actual loudness value;
    Database generation module, for when the actual loudness value is consistent with the reference loudness value, generation to be at least used to refer to Show the reference volume value and the audio types and the loudness gain data of the correspondence of the actual loudness yield value Storehouse.
  9. A kind of 9. loudness control device, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    Obtain audio file and the volume value for playing the audio file;
    Determine the audio types of the audio file, the audio types include at least the audio file content type and At least one of in provider's type of the audio file;
    Obtain target loudness yield value corresponding with the volume value and the audio types;
    Loudness Gain tuning is carried out to the audio file according to the target loudness yield value.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is by processor The step of any one of claim 1-4 the method is realized during execution.
CN201711261088.2A 2017-12-04 2017-12-04 Loudness control method and device Active CN107994879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711261088.2A CN107994879B (en) 2017-12-04 2017-12-04 Loudness control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711261088.2A CN107994879B (en) 2017-12-04 2017-12-04 Loudness control method and device

Publications (2)

Publication Number Publication Date
CN107994879A true CN107994879A (en) 2018-05-04
CN107994879B CN107994879B (en) 2022-07-08

Family

ID=62035364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711261088.2A Active CN107994879B (en) 2017-12-04 2017-12-04 Loudness control method and device

Country Status (1)

Country Link
CN (1) CN107994879B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109217834A (en) * 2018-10-19 2019-01-15 歌尔科技有限公司 Gain adjusting method, audio frequency apparatus and readable storage medium storing program for executing
CN109658942A (en) * 2018-12-27 2019-04-19 腾讯音乐娱乐科技(深圳)有限公司 A kind of audio data processing method, device and relevant device
CN111131888A (en) * 2019-12-19 2020-05-08 北京达佳互联信息技术有限公司 Volume control method and device, electronic equipment and storage medium
WO2021195429A1 (en) * 2020-03-27 2021-09-30 Dolby Laboratories Licensing Corporation Automatic leveling of speech content
CN113986183A (en) * 2021-09-30 2022-01-28 青岛海尔科技有限公司 Volume adjusting method and device for intelligent household equipment
CN114579077A (en) * 2022-02-23 2022-06-03 青岛海信宽带多媒体技术有限公司 Volume control equipment
CN114615599A (en) * 2022-03-11 2022-06-10 游密科技(深圳)有限公司 Audio processing method, apparatus, computer device, storage medium, and program product
CN114827337A (en) * 2021-01-19 2022-07-29 博泰车联网(南京)有限公司 Volume adjustment method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693737A (en) * 2012-06-11 2012-09-26 华为终端有限公司 Volume adjusting method and device
CN103618514A (en) * 2013-10-31 2014-03-05 小米科技有限责任公司 Volume adjustment method, device and electronic equipment
CN103812462A (en) * 2012-11-15 2014-05-21 华为技术有限公司 Loudness control method and device
CN104393848A (en) * 2014-10-27 2015-03-04 常州听觉工坊智能科技有限公司 Method and device for adjusting volume
US20160219387A1 (en) * 2013-09-12 2016-07-28 Dolby International Ab Loudness adjustment for downmixed audio content
CN107241497A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Mobile terminal and loudness output adjusting method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693737A (en) * 2012-06-11 2012-09-26 华为终端有限公司 Volume adjusting method and device
CN103812462A (en) * 2012-11-15 2014-05-21 华为技术有限公司 Loudness control method and device
US20160219387A1 (en) * 2013-09-12 2016-07-28 Dolby International Ab Loudness adjustment for downmixed audio content
CN103618514A (en) * 2013-10-31 2014-03-05 小米科技有限责任公司 Volume adjustment method, device and electronic equipment
CN104393848A (en) * 2014-10-27 2015-03-04 常州听觉工坊智能科技有限公司 Method and device for adjusting volume
CN107241497A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Mobile terminal and loudness output adjusting method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109217834A (en) * 2018-10-19 2019-01-15 歌尔科技有限公司 Gain adjusting method, audio frequency apparatus and readable storage medium storing program for executing
CN109658942A (en) * 2018-12-27 2019-04-19 腾讯音乐娱乐科技(深圳)有限公司 A kind of audio data processing method, device and relevant device
CN111131888A (en) * 2019-12-19 2020-05-08 北京达佳互联信息技术有限公司 Volume control method and device, electronic equipment and storage medium
WO2021195429A1 (en) * 2020-03-27 2021-09-30 Dolby Laboratories Licensing Corporation Automatic leveling of speech content
CN114827337A (en) * 2021-01-19 2022-07-29 博泰车联网(南京)有限公司 Volume adjustment method, device, equipment and storage medium
CN114827337B (en) * 2021-01-19 2023-08-18 博泰车联网(南京)有限公司 Method, device, equipment and storage medium for adjusting volume
CN113986183A (en) * 2021-09-30 2022-01-28 青岛海尔科技有限公司 Volume adjusting method and device for intelligent household equipment
CN113986183B (en) * 2021-09-30 2024-03-22 青岛海尔科技有限公司 Volume adjusting method and device for intelligent household equipment
CN114579077A (en) * 2022-02-23 2022-06-03 青岛海信宽带多媒体技术有限公司 Volume control equipment
CN114579077B (en) * 2022-02-23 2024-04-16 青岛海信宽带多媒体技术有限公司 Volume control equipment
CN114615599A (en) * 2022-03-11 2022-06-10 游密科技(深圳)有限公司 Audio processing method, apparatus, computer device, storage medium, and program product

Also Published As

Publication number Publication date
CN107994879B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN107994879A (en) Volume control method and device
CN106464939B (en) The method and device of play sound effect
CN104820678B (en) Audio-frequency information recognition methods and device
CN107871500A (en) One kind plays multimedia method and apparatus
CN105117102B (en) Audio interface display methods and device
CN106024033B (en) Control method for playing back and device
CN107172497A (en) Live broadcasting method, apparatus and system
CN111031386B (en) Video dubbing method and device based on voice synthesis, computer equipment and medium
CN106911967A (en) Direct playing and playback method and device
CN109587549B (en) Video recording method, device, terminal and storage medium
CN109348239A (en) Piece stage treatment method, device, electronic equipment and storage medium is broadcast live
CN109147745A (en) Song editing and processing method, apparatus, electronic equipment and storage medium
CN106484856B (en) Audio frequency playing method and device
CN110248236A (en) Video broadcasting method, device, terminal and storage medium
CN105139848B (en) Data transfer device and device
CN107342082A (en) Audio-frequency processing method, device and audio-frequence player device based on interactive voice
CN109616090B (en) Multi-track sequence generation method, device, equipment and storage medium
CN110266982A (en) The method and system of song is provided in recorded video
CN109743461A (en) Audio data processing method, device, terminal and storage medium
CN109243479A (en) Acoustic signal processing method, device, electronic equipment and storage medium
CN110660375A (en) Method, device and equipment for generating music
CN106681713A (en) Multimedia resource playing operation control method and device
JP2023534975A (en) Music playback method, device, device and storage medium based on user interaction
CN109873905A (en) Audio frequency playing method, audio synthetic method, device and storage medium
CN108717849A (en) The method, apparatus and storage medium of splicing multimedia data

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
GR01 Patent grant
GR01 Patent grant