CN103871439A - Method, device and system for audio playing - Google Patents

Method, device and system for audio playing Download PDF

Info

Publication number
CN103871439A
CN103871439A CN201210529887.4A CN201210529887A CN103871439A CN 103871439 A CN103871439 A CN 103871439A CN 201210529887 A CN201210529887 A CN 201210529887A CN 103871439 A CN103871439 A CN 103871439A
Authority
CN
China
Prior art keywords
audio file
average volume
gain information
volume gain
file
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
CN201210529887.4A
Other languages
Chinese (zh)
Other versions
CN103871439B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210529887.4A priority Critical patent/CN103871439B/en
Publication of CN103871439A publication Critical patent/CN103871439A/en
Application granted granted Critical
Publication of CN103871439B publication Critical patent/CN103871439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

An embodiment of the invention discloses a method, device and system for audio playing. The method includes: obtaining average volume gain information set in an audio file, and decoding the audio file; regulating the player output volume of voice frequency obtained by currently decoding the audio file according to the average volume gain information; and controlling the playing volume of the voice frequency obtained by currently decoding the audio file. By adoption of the method, the volume of a player can be regulated directly according to the average volume gain information set in the audio file, a function of completing average gain regulation of voice frequency played by the player can be basically realized, and the problem that when different audio files are played, the volume output by the player is suddenly high or suddenly low.

Description

Method, Apparatus and system that a kind of audio frequency is play
Technical field
The present invention relates to field of audio play, relate in particular to method, Apparatus and system that a kind of audio frequency is play.
Background technology
Music is a kind of art of expressing one's feeling, entrusting to the care of emotion, is also that society is the most popular a kind of artistic instantly.Volume is the important parameter of a piece of music, and the volume of different music is not identical, and the musical sound of some song is larger, and some is less than normal.
When the audio file of audio player plays music, if directly play music according to original volume in music, can cause user in the time listening to the music, sound is suddenly big or suddenly small, front a piece of music volume is suitable, and then a piece of music volume uprises suddenly or step-down, and volume is wayward.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of method, Apparatus and system of audio frequency broadcasting is provided, and can automatically carry out volume control.
In order to solve the problems of the technologies described above, a kind of method that the embodiment of the present invention provides audio frequency to play, comprising:
Obtain the average volume gain information being arranged in audio file, and the described audio file of decoding;
Adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information;
According to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
Wherein, described in obtain the average volume gain information being arranged in audio file, and the described audio file of decoding, comprising:
Download audio files, obtains the file header part of described audio file, and obtains the average volume gain information that is preset at the described audio file in described file header part;
Download the voice data of described audio file, and the voice data obtaining is downloaded in decoding.
Wherein, described obtain the average volume gain information being arranged in audio file before, also comprise:
Obtain complete audio file;
Compare according to the average volume value in described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file;
Described average volume gain information is set to described audio file.
Wherein, described in obtain the average volume gain information being arranged in audio file, comprising:
From server, download described audio file;
Obtain the average volume gain information of described Servers installed in described audio file;
Wherein, described server arranges average volume gain information and comprises in described audio file: described server gets after the described audio file of uploading, compare according to the average volume value of described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file, described average volume gain information is set to described audio file.
Wherein, described average volume gain information comprises the average volume gain information in the label tag information that is preset at described audio file; Or comprise the average volume gain information that is preset at the file of the audio description for describing described audio file.
Correspondingly, the embodiment of the present invention also provides a kind of terminal device of playing for audio frequency, comprising:
Acquisition module, for obtaining the average volume gain information that is arranged on audio file, the described audio file of decoding;
Adjusting module, current to the decode player output volume of the audio frequency obtaining of described audio file for adjusting according to described average volume gain information;
Control module, for the player output volume according to after adjusting, controls the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
Wherein, described acquisition module comprises:
Acquiring unit, for obtain the file header part of described audio file from download audio files, and obtains the average volume gain information that is preset at the described audio file in described file header part;
Decoding unit, the voice data of the described audio file of downloading for decoding.
Wherein, also comprise:
Memory module, for obtaining complete audio file;
Computing module, for comparing according to the average volume value of described complete audio file and preset standard pronunciation value, determines the average volume gain information of described audio file;
Module is set, for described average volume gain information is set to described audio file.
Wherein, also comprise:
Download module, for downloading described audio file from server;
Described acquisition module, specifically for obtaining the average volume gain information of described Servers installed in described audio file;
Wherein, described server arranges average volume gain information and comprises in described audio file: described server gets after the described audio file of uploading, compare according to the average volume value in described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file, described average volume gain information is set to described audio file.
Wherein, the described module that arranges, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
Correspondingly, the embodiment of the present invention also provides a kind of server of playing for audio frequency, comprising:
Receiver module, the audio file of uploading for receiving user;
Processing module, for after uploading at described audio file, compares according to the average volume value of described complete audio file and preset standard pronunciation value, determines the average volume gain information of described audio file;
Add module, for described average volume gain information is set to described audio file.
Wherein, described interpolation module, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
Correspondingly, the embodiment of the present invention also provides a kind of system of playing for audio frequency, comprising: terminal device and server, wherein, store the audio file that user uploads in described server;
Described terminal device, for downloading described audio file to described server, obtain the average volume gain information being arranged in audio file, the described audio file of decoding, adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information, and according to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file;
Described server, for comparing according to the average volume value of described audio file and preset standard pronunciation value, determines the average volume gain information of described audio file, and described average volume gain information is set to described audio file.
Wherein, described server, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
Implement the embodiment of the present invention, there is following beneficial effect:
Can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of the method for a kind of audio frequency broadcasting of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another audio frequency broadcasting of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for the another kind of audio frequency broadcasting of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the method for another audio frequency broadcasting of the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the method broadcast below of the audio file limit of the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of terminal device of playing for audio frequency of the embodiment of the present invention;
Fig. 7 is that the another kind of the embodiment of the present invention is for the structural representation of the terminal device of audio frequency broadcasting;
Fig. 8 is the structural representation of a kind of server of playing for audio frequency of the embodiment of the present invention;
Fig. 9 is the structural representation of a kind of system of playing for audio frequency of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, is the schematic flow sheet of the method for a kind of audio frequency broadcasting of the embodiment of the present invention; The described method of the present embodiment can be applicable to mobile phone, computer etc. and plays in the terminal device of music, and the described method of the present embodiment specifically comprises:
S101: obtain the average volume gain information being arranged in audio file, the described audio file of decoding.
Described average volume gain information is a yield value that is used to indicate the volume while regulating player output audio, and this average volume yield value can have been recorded successor at described audio file and be arranged in described audio file one time.For example can, in having recorded, calculate average volume gain information and be arranged in described audio file by recording arrangement; Or after uploading described audio file to music servers and completing, by music servers, described audio file is calculated and the volume gain information calculating is arranged in described audio file; Or got after described audio file by terminal device, in the time detecting that described audio file does not comprise average volume gain information, described audio file is calculated and the volume gain information calculating is arranged in described audio file.
Average volume gain information can be arranged in the file header of audio file in label tag information, download described audio file with broadcasting from server time, first can download the tag information that obtains described audio file, while broadcasting on download limit, limit, player can acquire described average volume gain information from the tag information of the described audio file downloaded.Or in the time that the audio file that reads local storage is play, first player can read the tag information in the file header of described audio file, acquires described average volume gain information.Described average volume gain is to draw according to the volume value of standard, so that in the time playing this audio file, its volume is at a standard value annex, wherein, this standard pronunciation value can be for calculating the preset value that local terminal audio file is calculated such as server or terminal device of average volume gain.
S102: adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information.
Obtaining after average volume gain information, the volume of the audio frequency that can obtain decoding according to the described average volume gain information having obtained regulates, and increases adaptively or reduce the volume of player.
S103: according to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
According to the player output volume after adjusting, media player is controlled, with the audio frequency to loudspeaker apparatus output respective output volume size, the audio frequency that completes described audio file is play, and the volume of described loudspeaker apparatus is that the volume that volume after being conditioned according to media player and user regulate by hardware volume knob comprehensively draws.
Description by above-described embodiment is known, and the present invention has following beneficial effect:
Can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
Referring to Fig. 2, is the schematic flow sheet of the method for another audio frequency broadcasting of the embodiment of the present invention again; The embodiment of the present invention is applied in the scene that audio file broadcast below by limit, and described method can be applicable to mobile phone, computer etc. and plays in the terminal device of music, and concrete, described method comprises:
S201: download audio files, obtains the file header part of described audio file, and obtain the average volume gain information that is preset at the described audio file in described file header part.
Open the corresponding software of downloading and enable download thread download audio files from the equipment such as server, first download the file header part that obtains audio file, from tag information wherein, obtain default average audio gain, so that gain and adjust the volume of audio frequency according to average audio in the time of audio plays.
S202: download the voice data of described audio file, and the voice data obtaining is downloaded in decoding.
Continue by the voice data part of download thread download audio files, and decode according to corresponding agreement, play so that convert corresponding voice signal to.
S203: adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information.
Obtaining after average volume gain information, can carry out audio decoder to the some or all of voice data having obtained, the volume of the audio frequency then according to the described average volume gain information having obtained, decoding being obtained regulates, and increases adaptively or reduce the volume of player.
S204: according to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
According to the player output volume after adjusting, media player is controlled, with the audio frequency to loudspeaker apparatus output respective output volume size, the audio frequency that completes described audio file is play, and the volume of described loudspeaker apparatus is that the volume that volume after being conditioned according to media player and user regulate by hardware volume knob comprehensively draws.
Implement the embodiment of the present invention and can to audio file, average volume gain information be set according to a standard pronunciation value, make arbitrary time afterwards play described audio file, can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, realize download limit, limit and play, avoid the suddenly big or suddenly small problem of volume of player output in the time downloading and play different audio files.
Referring to Fig. 3, is the schematic flow sheet of the method for the another kind of audio frequency broadcasting of the embodiment of the present invention again; The described method of the present embodiment can be applicable to mobile phone, computer etc. and plays in the terminal device of music, in the present embodiment, described audio files storage is in mobile phone, apparatus such as computer, calculate the setting up procedure of average volume gain information and average volume gain information by corresponding mobile phone or computer, concrete, the described method of the present embodiment comprises:
S301: obtain complete audio file.
Can be by downloading or getting complete audio file by the mode of other mobile memory unloadings.
S302: compare according to the average volume value in described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file.
In described S302, the step of obtaining average volume gain can comprise: obtain the complete code rate information of described audio file and carry out track analysis; According to the average volume information of audio file described in track Analysis result calculation; Carry out difference comparison according to average volume information and a standard pronunciation value, obtain described average volume gain information.Described mark volume value is value preset in the terminal device such as mobile phone or computer, in the terminal devices such as corresponding mobile phone or computer, all adopts this standard pronunciation value to carry out corresponding average volume gain and calculates.
S303: described average volume gain information is set to described audio file.
Specifically can in the label tag of described audio file information, described average volume gain information be set.Or at the audio description file for describing described audio file, described average volume gain information is set, for example, this average volume gain information is set in the associated with that comprises the described audio file lyrics.
The setting up procedure of the average volume gain information that above-mentioned three steps are audio file, can get after complete audio file at the terminal device such as mobile phone or computer, arbitrary time before need to playing described audio file completes.After having completed above-mentioned average gain information and arranging, user can carry out following step at any time.
S304: obtain the average volume gain information being arranged in audio file, and the described audio file of decoding.
S305: adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information.
S306: according to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
The processing of described S304 to S306 is identical with above-mentioned the first embodiment to the process of playing, and is not repeated herein.
Description by above-described embodiment is known, and the present invention has following beneficial effect:
Can to audio file, average volume gain information be set according to a standard pronunciation value, make arbitrary time afterwards play described audio file, can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
Referring to Fig. 4, is the schematic flow sheet of the method for another audio frequency broadcasting of the embodiment of the present invention again; The described method of the present embodiment can be applicable to mobile phone, computer etc. and plays in the terminal device of music, in the present embodiment, described audio files storage offers the terminal device such as mobile phone, computer and downloads in the server of network side, the setting up procedure of described average volume gain information and the average volume gain information whether server of described network side is carried out, concrete, the described method of the present embodiment comprises:
S401: server gets after the described audio file of uploading, compares according to the average volume value of described complete audio file and preset standard pronunciation value, determines the average volume gain information of described audio file.
In described S401, described server is receiving after complete audio file, and the step that server obtains average volume gain can comprise: obtain the complete code rate information of described audio file and carry out track analysis; According to the average volume information of audio file described in track Analysis result calculation; Carry out difference comparison according to average volume information and a standard pronunciation value, obtain described average volume gain information.Described mark volume value is value preset in the terminal device such as mobile phone or computer, in the terminal devices such as corresponding mobile phone or computer, all adopts this standard pronunciation value to carry out corresponding average volume gain and calculates.
S402: described average volume gain information is set to described audio file by server.
Server specifically can arrange described average volume gain information in the label tag of described audio file information.Or at the audio description file for describing described audio file, described average volume gain information is set, for example, this average volume gain information is set in the associated with that comprises the described audio file lyrics.
S403: terminal device is downloaded described audio file from server.
S404: terminal device obtains the average volume gain information of described Servers installed in described audio file, and the described audio file of decoding.
Terminal device comprises mobile phone, apparatus such as computer.In the time of download audio files, terminal device is all the header files that first download to described audio file, obtains the tag information of described audio file, thereby reads average volume gain information wherein.Or first download to the header file of the lyrics file associated with described audio file, thereby obtain described average volume gain information.
S405: terminal device is adjusted current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information.
S406: terminal device, according to the player output volume after adjusting, is controlled the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
Identical with above-mentioned the first embodiment of the process that is decoded to broadcasting of described S405 and S406, is not repeated herein.
Refer to again Fig. 5, it is the schematic flow sheet of the method broadcast below of the audio file limit of the embodiment of the present invention, in embodiments of the present invention, audio files storage is in the server of network side, the terminal device such as mobile phone, computer starts download thread and plays thread, downloaded described audio file and play in described server by corresponding network entry, concrete, the described method of the embodiment of the present invention comprises:
S4001: player obtains song link, and downloads described audio file according to song linking request;
S4002: download described audio file by corresponding download protocol; Described download protocol comprises http protocol, P2P agreement, BT agreement etc.
S4003: download audio files head part; After download obtains audio file header and divides, continuing to download described audio file until in having downloaded and carrying out following S4004, carry out following S4011.
S4004: download voice data.After completing, download can close download thread.
S4011: read tag information from audio file header is divided, obtain average audio gain wherein;
S4012: read the voice data of downloading the described audio file obtaining; Read the voice data of downloading in described S404.
S4013: judge whether to read voice data; If carry out following S4014, otherwise continue to carry out described S4012, if do not judge and do not read voice data in certain hour section, for example default 10 seconds, can determine that audio frequency finishes, close corresponding broadcasting process.
S4014: decoding reads voice data;
S4015: utilize average audio gain to adjust the volume of player output;
S4016: according to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.After broadcasting finishes, can close corresponding broadcasting thread, if fruit does not finish to continue to carry out above-mentioned S4012 to S4016.
Description by above-described embodiment is known, and the present invention has following beneficial effect:
Can in server, to audio file, average volume gain information be set according to a standard pronunciation value, make the terminal device time in office of downloading described audio file from server play described audio file, can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
Below terminal device and the system play for audio frequency of the embodiment of the present invention are described in detail.
Referring to Fig. 6, is the structural representation of a kind of terminal device of playing for audio frequency of the embodiment of the present invention; The described terminal device of playing for audio frequency of the embodiment of the present invention is specifically as follows the equipment that mobile phone, computer etc. can displaying audio files, and it specifically can comprise:
Acquisition module 11, for obtaining the average volume gain information that is arranged on audio file, the described audio file of decoding;
Adjusting module 12, current to the decode player output volume of the audio frequency obtaining of described audio file for adjusting according to described average volume gain information;
Control module 13, for the player output volume according to after adjusting, controls the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
The average volume gain information that described acquisition module 11 gets is a yield value that is used to indicate the volume while regulating player output audio, and this average volume yield value can have been recorded successor at described audio file and be arranged in described audio file one time.For example can, in having recorded, calculate average volume gain information and be arranged in described audio file by recording arrangement; Or after uploading described audio file to music servers and completing, by music servers, described audio file is calculated and the volume gain information calculating is arranged in described audio file, or by getting after described audio file for the terminal device of storing displaying audio file, in the time detecting that described audio file does not comprise average volume gain information, described audio file is calculated and the volume gain information calculating is arranged in described audio file.
Average volume gain information can be arranged in the file header of audio file in label tag information, download described audio file with broadcasting from server time, first can download the tag information that obtains described audio file, while broadcasting on download limit, limit, player can acquire described average volume gain information from the tag information of the described audio file downloaded.Or in the time that the audio file that reads local storage is play, first described acquisition module 11 can read the tag information in the file header of described audio file, acquires described average volume gain information.Described average volume gain is to draw according to the volume value of standard, so that in the time playing this audio file, its volume is at a standard value annex, wherein, this standard pronunciation value can be for calculating the preset value that local terminal audio file is calculated such as server or terminal device of average volume gain.
Obtain after average volume gain information at described acquisition module 11, described adjusting module 12 can carry out audio decoder to the some or all of voice data having obtained, the volume of the audio frequency then according to the described average volume gain information having obtained, decoding being obtained regulates, and increases adaptively or reduce the volume of player.
Described control module 13 according to adjust after player output volume, media player is controlled, with the audio frequency to loudspeaker apparatus output respective output volume size, the audio frequency that completes described audio file is play, and the volume of described loudspeaker apparatus is that the volume that volume after being conditioned according to media player and user regulate by hardware volume knob comprehensively draws.
Description by above-described embodiment is known, and the present invention has following beneficial effect:
Can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
Referring to Fig. 7, is that the another kind of the embodiment of the present invention is for the structural representation of the terminal device of audio frequency broadcasting again; The described terminal device of playing for audio frequency of the embodiment of the present invention is specifically as follows the equipment that mobile phone, computer etc. can displaying audio files, and it comprises in above-described embodiment: acquisition module 11, adjusting module 12 and control module 13.
Described acquisition module 11 can also comprise in embodiments of the present invention: acquiring unit and decoding unit, and described acquisition module 11 can be realized limit by described acquiring unit and decoding unit and download voice data limit playing audio-fequency data, concrete:
Described acquiring unit, for obtain the file header part of described audio file from download audio files, and obtains the average volume gain information that is preset at the described audio file in described file header part;
Described decoding unit, the voice data of the described audio file of downloading for decoding.
Mobile terminal is opened the corresponding software of downloading and is enabled download thread download audio files from the equipment such as server, first download the file header part that obtains audio file, described acquiring unit obtains default average audio gain from tag information wherein, so that gain and adjust the volume of audio frequency according to average audio in the time of audio plays.Then continue to download voice data, described decoding unit is play after decoding.
Further, then refer to Fig. 7, described terminal device also comprises that following module arranges average volume gain information to getting audio file.Be specifically as follows:
Memory module 14, for obtaining complete audio file;
Computing module 15, for comparing according to the average volume value of described complete audio file and preset standard pronunciation value, determines the average volume gain information of described audio file;
Module 16 is set, for described average volume gain information is set to described audio file.
Described memory module 14 can be by downloading or getting complete audio file by the mode of other mobile memory unloadings.
Described computing module 15 obtains average volume gain computation process and can comprise: obtain the complete code rate information of described audio file and carry out track analysis; According to the average volume information of audio file described in track Analysis result calculation; Carry out difference comparison according to average volume information and a standard pronunciation value, obtain described average volume gain information.Described mark volume value is value preset in the terminal device such as mobile phone or computer, in the terminal devices such as corresponding mobile phone or computer, all adopts this standard pronunciation value to carry out corresponding average volume gain and calculates.
The described module 16 that arranges specifically can arrange described average volume gain information in the label tag of described audio file information.Or at the audio description file for describing described audio file, described average volume gain information is set, for example, this average volume gain information is set in the associated with that comprises the described audio file lyrics.
The setting up procedure of the average volume gain information that above-mentioned three modules are audio file, can get after complete audio file at the terminal device such as mobile phone or computer, arbitrary time before need to playing described audio file completes.After having completed above-mentioned average gain information and arranging, user can play described audio file by above-mentioned acquisition module 11, adjusting module 12 and control module 13 at any time.
Further alternatively, the described terminal device of playing for audio frequency can also comprise:
Download module 17, for downloading described audio file from server;
Described acquisition module 11, specifically for obtaining the average volume gain information of described Servers installed in described audio file;
Wherein, described server arranges average volume gain information and comprises in described audio file: described server gets after the described audio file of uploading, compare according to the average volume value in described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file, described average volume gain information is set to described audio file.
Equally, the computation process that described server obtains average volume gain can comprise: obtain the complete code rate information of described audio file and carry out track analysis; According to the average volume information of audio file described in track Analysis result calculation; Carry out difference comparison according to average volume information and a standard pronunciation value, obtain described average volume gain information.Described mark volume value is value preset in the terminal device such as mobile phone or computer, in the terminal devices such as corresponding mobile phone or computer, all adopts this standard pronunciation value to carry out corresponding average volume gain and calculates.Server specifically can arrange described average volume gain information in the label tag of described audio file information.Or at the audio description file for describing described audio file, described average volume gain information is set, for example, this average volume gain information is set in the associated with that comprises the described audio file lyrics.
The described terminal device of playing for audio frequency can be downloaded and be provided with after the audio file of average volume gain information to server by above-mentioned download module 17, just can not need above-mentioned computing module 15 and module 16 is set the audio file after downloading is arranged to average volume gain information.Concrete, the described terminal device of playing for audio frequency can also comprise that a detection module is for detecting the audio file that obtains or store, judge whether audio file exists average volume gain information, if no, then by described computing module 15 and module 16 is set averages the setting of volume gain information.
Further concrete, the described module 16 that arranges, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
Description by above-described embodiment is known, and the present invention has following beneficial effect:
Can to audio file, average volume gain information be set according to a standard pronunciation value, make arbitrary time afterwards play described audio file, can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
Referring to Fig. 8, is the structural representation of a kind of server of playing for audio frequency of the embodiment of the present invention again; In the described server of the embodiment of the present invention, store audio file, and by book server, audio file is arranged to average volume gain information, concrete, described server comprises:
Receiver module 21, the audio file of uploading for receiving user.
Processing module 22, for after uploading at described audio file, compares according to the average volume value of described complete audio file and preset standard pronunciation value, determines the average volume gain information of described audio file.
Add module 23, for described average volume gain information is set to described audio file.
Described server receives audio file that user uploads to realize the network storage of described audio file by described receiver module 21.After user uploads complete audio file, server is processed by 22 pairs of complete audio files of described processing, determines the average volume gain information of described audio file.
Described processing module 22 is obtained average volume gain and can be comprised: obtain the complete code rate information of described audio file and carry out track analysis; According to the average volume information of audio file described in track Analysis result calculation; Carry out difference comparison according to average volume information and a standard pronunciation value, obtain described average volume gain information.Described mark volume value is value preset in the terminal device such as mobile phone or computer, in the terminal devices such as corresponding mobile phone or computer, all adopts this standard pronunciation value to carry out corresponding average volume gain and calculates.
Equally, described server also can comprise in the audio file that a detection module uploads for detection of user whether comprising average volume gain information, if while not comprising, calculate and by described interpolation module 23, average volume gain information be set by described processing module 22, directly carrying out storage operation if comprise.
Described interpolation module 23, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
Description by above-described embodiment is known, and the present invention has following beneficial effect:
Can in server, to audio file, average volume gain information be set according to a standard pronunciation value, make the terminal device time in office of downloading described audio file from server play described audio file, can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
Referring to Fig. 9, is the structural representation of a kind of system of playing for audio frequency of the embodiment of the present invention again, and the described system of the present embodiment comprises: terminal device 1 and server 2, wherein, store the audio file that user uploads in described server 2; Described terminal device 1 can comprise multiple.
Described terminal device 1, for downloading described audio file to described server 2, obtain the average volume gain information being arranged in audio file, the described audio file of decoding, adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information, and according to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file;
Described server 2, for comparing according to the average volume value of described audio file and preset standard pronunciation value, determines the average volume gain information of described audio file, and described average volume gain information is set to described audio file.
Concrete, described server 2, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
Wherein, described server 2 is receiving after complete audio file, and the step that server 2 obtains average volume gain can comprise: obtain the complete code rate information of described audio file and carry out track analysis; According to the average volume information of audio file described in track Analysis result calculation; Carry out difference comparison according to average volume information and a standard pronunciation value, obtain described average volume gain information.Described mark volume value is value preset in the terminal device such as mobile phone or computer, in the terminal devices such as corresponding mobile phone or computer, all adopts this standard pronunciation value to carry out corresponding average volume gain and calculates.
Described terminal device 1 is obtaining after average volume gain information, can carry out audio decoder to the some or all of voice data having obtained, the volume of the audio frequency then according to the described average volume gain information having obtained, decoding being obtained regulates, and increases adaptively or reduce the volume of player.
The volume of the loudspeaker apparatus of described terminal device 1 is that the volume that volume after being conditioned according to player and user regulate by hardware volume knob comprehensively draws.
Description by above-described embodiment is known, and the present invention has the following advantages:
Can in server, to audio file, average volume gain information be set according to a standard pronunciation value, make the terminal device time in office of downloading described audio file from server play described audio file, can be directly according to the volume that is arranged on the average volume gain information adjusting player in audio file, substantially can realize at player plays audio frequency and complete the function that average gain is adjusted, avoid in the time playing different audio files the suddenly big or suddenly small problem of volume of player output.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (14)

1. the method that audio frequency is play, is characterized in that, comprising:
Obtain the average volume gain information being arranged in audio file, and the described audio file of decoding;
Adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information;
According to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
2. the method for claim 1, is characterized in that, described in obtain the average volume gain information being arranged in audio file, and the described audio file of decoding, comprising:
Download audio files, obtains the file header part of described audio file, and obtains the average volume gain information that is preset at the described audio file in described file header part;
Download the voice data of described audio file, and the voice data obtaining is downloaded in decoding.
3. the method for claim 1, is characterized in that, described obtain the average volume gain information being arranged in audio file before, also comprise:
Obtain complete audio file;
Compare according to the average volume value in described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file;
Described average volume gain information is set to described audio file.
4. the method for claim 1, is characterized in that, described in obtain the average volume gain information being arranged in audio file before, also comprise:
From server, download described audio file;
Described audio file comprises the average volume gain information of described Servers installed;
Wherein, described server arranges average volume gain information and comprises in described audio file: described server gets after the described audio file of uploading, compare according to the average volume value of described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file, described average volume gain information is set to described audio file.
5. the method as described in claim 2 to 4 any one, is characterized in that, described average volume gain information comprises the average volume gain information in the label tag information that is preset at described audio file; Or comprise the average volume gain information that is preset at the file of the audio description for describing described audio file.
6. a terminal device of playing for audio frequency, is characterized in that, comprising:
Acquisition module, for obtaining the average volume gain information that is arranged on audio file, and the described audio file of decoding;
Adjusting module, current to the decode player output volume of the audio frequency obtaining of described audio file for adjusting according to described average volume gain information;
Control module, for the player output volume according to after adjusting, controls the broadcast sound volume of the audio frequency that current decoding obtains to described audio file.
7. terminal device as claimed in claim 6, is characterized in that, described acquisition module comprises:
Acquiring unit, for obtain the file header part of described audio file from download audio files, and obtains the average volume gain information that is preset at the described audio file in described file header part;
Decoding unit, the voice data of the described audio file of downloading for decoding.
8. terminal device as claimed in claim 6, is characterized in that, also comprises:
Memory module, for obtaining complete audio file;
Computing module, for comparing according to the average volume value of described complete audio file and preset standard pronunciation value, determines the average volume gain information of described audio file;
Module is set, for described average volume gain information is set to described audio file.
9. terminal device as claimed in claim 6, is characterized in that, also comprises:
Download module, for downloading described audio file from server;
Described acquisition module, specifically for obtaining the average volume gain information of described Servers installed in described audio file;
Wherein, described server arranges average volume gain information and comprises in described audio file: described server gets after the described audio file of uploading, compare according to the average volume value in described complete audio file and preset standard pronunciation value, determine the average volume gain information of described audio file, described average volume gain information is set to described audio file.
10. terminal device as claimed in claim 9, is characterized in that,
The described module that arranges, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
11. 1 kinds of servers of playing for audio frequency, is characterized in that, comprising:
Receiver module, the audio file of uploading for receiving user;
Processing module, for after uploading at described audio file, compares according to the average volume value of described complete audio file and preset standard pronunciation value, determines the average volume gain information of described audio file;
Add module, for described average volume gain information is set to described audio file.
12. servers as claimed in claim 11, is characterized in that,
Described interpolation module, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
13. 1 kinds of systems of playing for audio frequency, is characterized in that, comprising: terminal device and server, wherein, store the audio file that user uploads in described server;
Described terminal device, for downloading described audio file to described server, obtain the average volume gain information being arranged in audio file, the described audio file of decoding, adjust current to the decode player output volume of the audio frequency obtaining of described audio file according to described average volume gain information, and according to the player output volume after adjusting, control the broadcast sound volume of the audio frequency that current decoding obtains to described audio file;
Described server, for comparing according to the average volume value of described audio file and preset standard pronunciation value, determines the average volume gain information of described audio file, and described average volume gain information is set to described audio file.
14. systems as claimed in claim 13, is characterized in that,
Described server, specifically in the label tag of described audio file information, described average volume gain information being set, or arranges described average volume gain information at the audio description file for describing described audio file.
CN201210529887.4A 2012-12-11 2012-12-11 The method of a kind of audio frequency broadcasting, Apparatus and system Active CN103871439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210529887.4A CN103871439B (en) 2012-12-11 2012-12-11 The method of a kind of audio frequency broadcasting, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210529887.4A CN103871439B (en) 2012-12-11 2012-12-11 The method of a kind of audio frequency broadcasting, Apparatus and system

Publications (2)

Publication Number Publication Date
CN103871439A true CN103871439A (en) 2014-06-18
CN103871439B CN103871439B (en) 2016-08-03

Family

ID=50909895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210529887.4A Active CN103871439B (en) 2012-12-11 2012-12-11 The method of a kind of audio frequency broadcasting, Apparatus and system

Country Status (1)

Country Link
CN (1) CN103871439B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125491A (en) * 2014-07-07 2014-10-29 乐视网信息技术(北京)股份有限公司 Audio comment information generating method and device and audio comment playing method and device
CN106210315A (en) * 2016-07-12 2016-12-07 努比亚技术有限公司 A kind of method for regulation of sound volume and mobile terminal
CN106293606A (en) * 2016-08-16 2017-01-04 微鲸科技有限公司 Sound-volume control system and method for controlling volume
CN109996143A (en) * 2019-03-07 2019-07-09 上海蔚来汽车有限公司 Volume adjusting method, device, system and audio-frequence player device and vehicle
CN111131860A (en) * 2018-10-31 2020-05-08 北京猎户星空科技有限公司 Audio and video playing method, device, equipment and medium
CN111918174A (en) * 2019-05-08 2020-11-10 阿里巴巴集团控股有限公司 Method and device for balancing volume gain, electronic device and vehicle

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100724836B1 (en) * 2003-08-25 2007-06-04 엘지전자 주식회사 Apparatus and method for controlling audio output level in digital audio device
KR100561440B1 (en) * 2004-07-24 2006-03-17 삼성전자주식회사 Apparatus and method for compensating audio volume automatically in response to the change of channel
CN100593323C (en) * 2006-02-14 2010-03-03 逐点半导体(上海)有限公司 Automatic sound volume adjusting method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125491A (en) * 2014-07-07 2014-10-29 乐视网信息技术(北京)股份有限公司 Audio comment information generating method and device and audio comment playing method and device
CN106210315A (en) * 2016-07-12 2016-12-07 努比亚技术有限公司 A kind of method for regulation of sound volume and mobile terminal
CN106293606A (en) * 2016-08-16 2017-01-04 微鲸科技有限公司 Sound-volume control system and method for controlling volume
CN111131860A (en) * 2018-10-31 2020-05-08 北京猎户星空科技有限公司 Audio and video playing method, device, equipment and medium
CN109996143A (en) * 2019-03-07 2019-07-09 上海蔚来汽车有限公司 Volume adjusting method, device, system and audio-frequence player device and vehicle
CN109996143B (en) * 2019-03-07 2021-07-23 上海蔚来汽车有限公司 Volume adjusting method, device and system, audio playing equipment and vehicle
CN111918174A (en) * 2019-05-08 2020-11-10 阿里巴巴集团控股有限公司 Method and device for balancing volume gain, electronic device and vehicle
CN111918174B (en) * 2019-05-08 2022-04-01 阿里巴巴集团控股有限公司 Method and device for balancing volume gain, electronic device and vehicle

Also Published As

Publication number Publication date
CN103871439B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN103871439A (en) Method, device and system for audio playing
US8050541B2 (en) System and method for altering playback speed of recorded content
KR101275467B1 (en) Apparatus and method for controlling automatic equalizer of audio reproducing apparatus
US9503831B2 (en) Audio playback method and apparatus
US9449082B2 (en) Systems and methods for dynamic audio processing
CN110675886B (en) Audio signal processing method, device, electronic equipment and storage medium
AU2011323574B2 (en) Adaptive audio transcoding
US20170064244A1 (en) Adapting a playback of a recording to optimize comprehension
US10623879B2 (en) Method of editing audio signals using separated objects and associated apparatus
CN102447839B (en) A kind of video creating method based on Quartz Composer and device
US20130144626A1 (en) Rap music generation
US9767827B2 (en) Management, replacement and removal of explicit lyrics during audio playback
WO2016165334A1 (en) Voice processing method and apparatus, and terminal device
CN105657562A (en) System and method for realizing karaoke application
WO2023207472A1 (en) Audio synthesis method, electronic device and readable storage medium
CN110928518B (en) Audio data processing method and device, electronic equipment and storage medium
US20120070016A1 (en) Sound quality correcting apparatus and sound quality correcting method
CN103843064A (en) Playing audio in trick-modes
CN103986698A (en) Karaoke mobile phone song query system with sound special effect
CN105989824A (en) Karaoke system of mobile device and mobile device
CN109891504A (en) Information processing equipment and method and program
US11775070B2 (en) Vibration control method and system for computer device
CN104616679B (en) A kind of method and device for improving Android system audio recording and reproducing quality
WO2016131373A1 (en) Method and terminal for controlling high-fidelity function
CN109040904B (en) Audio playing method and device of intelligent sound box

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140618

Assignee: Ocean interactive (Beijing) Information Technology Co., Ltd.

Assignor: Tencent Technology (Shenzhen) Co., Ltd.

Contract record no.: 2016990000422

Denomination of invention: Method, device and system for audio playing

Granted publication date: 20160803

License type: Common License

Record date: 20161009

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161123

Address after: 510000 Guangzhou, Tianhe District branch Yun Yun Road, No. 16, self built room 2, building 1301

Patentee after: Guangzhou KuGou Networks Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518057 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

Address before: 510000 room 1301, building 2, No.16 Keyun Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.