Invention content
The technical problem to be solved in the present invention is, for the drawbacks described above of the prior art, provides one kind and is broadcast based on audio
Put the musical sound control method and system of equipment.Provide a kind of fast and reliable musical sound based on audio-frequence player device
Control method and system, musical sound control method through the invention can effectively solve drawbacks described above in the prior art,
Be not in the situation that sound is suddenly big or suddenly small during listening to music, reduce the frequency that user's operation volume adjustment touches the button, be
User provides a convenient.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of musical sound control method based on audio-frequence player device, wherein including step:
A, the lower audio power correspondence exported is set according to various volume values, is arranged for remembering for each audio file
Record the volume control file of the volume value of the audio file actual needs setting under the various audio power settings of user interface;
B, when starting to play audio file, volume control file corresponding with currently playing music has first been searched whether;
C, when there is volume control file corresponding with currently playing music, then the volume value V1 of active user's setting is obtained,
And the corresponding volume control file of currently playing music in search audio power corresponding with the volume value V1 of user setting, control
The volume value of audio-frequence player device setting currently playing music processed is corresponding for the audio power found in volume control file
The volume value V2 of setting is actually needed.
The musical sound control method based on audio-frequence player device, wherein the step A is specifically included:
A1, according to each audio file audio coding of itself, detect defeated under the various volume values settings of each audio file
The audio power correspondence gone out;
A2, the lower audio power correspondence exported is set according to various volume values, is used for for the setting of each audio file
The volume control file of the volume value of the audio file actual needs setting under the various audio power settings of user interface is recorded,
It is set for recording the actual needs corresponding to the audio power and audio power corresponding to the various volume values set by user
The volume value set.
The musical sound control method based on audio-frequence player device, wherein the step A further includes:
S10, when first time is that volume control file is arranged in the first audio file, first play first audio file and every
The volume value V1 of active user's setting is obtained every predetermined time T and obtains the work(of audio-frequence player device sound output output
Rate W1, the volume value V1 for active user's setting that the same time is obtained and the power W1 notes of corresponding sound output output
For volume value V1 and power W1 correspondences(V1, W1);It is a series of according to what is recorded when playing first audio file
Volume value V1 and power W1 correspondences(V1, W1)Obtain the volume control file of the first music.
The musical sound control method based on audio-frequence player device, wherein the user in the step C sets
The volume value V1 set:It is user to the volume value set by audio-frequence player device;The actual setting volume value V2, broadcasts for audio
Put the final volume value that equipment is voluntarily arranged.
A kind of musical sound control system based on audio-frequence player device, wherein including:
Sound control document production module, the audio power correspondence exported under being used to be arranged according to various volume values,
It is that the setting of each audio file is arranged for recording the audio file actual needs under the various audio power settings of user interface
Volume value volume control file;
Detection module, for when starting to play audio file, first having searched whether sound corresponding with currently playing music
Amount control file;
Volume resets module, for when there is volume control file corresponding with currently playing music, then obtaining active user
The volume value V1 of setting searches V1 pairs of the volume value with user setting in volume control file corresponding with currently playing music
The volume value of the audio power answered, control audio-frequence player device setting currently playing music is to be found in volume control file
The volume value V2 of the corresponding actual needs setting of audio power.
The musical sound control system based on audio-frequence player device, wherein sound control document production module includes:
Detection unit, for according to each audio file audio coding of itself, detecting the various volumes of each audio file
The lower audio power correspondence exported is set;
Setting unit, for the lower audio power correspondence exported to be arranged according to various volume values, is each audio text
Volume of the part setting for recording the volume of the audio file actual needs setting under the various audio power settings of user interface
File is controlled, the audio power and audio power institute being used for corresponding to the various volume values set by the record user of the inside are right
The volume value for the actual needs setting answered.
The musical sound control system based on audio-frequence player device, wherein sound control document production module also wraps
It includes:
Unit is made in volume control file, is used for when first time is that volume control file is arranged in the first audio file, first
It plays first audio file and obtains the volume value V1 of active user's setting every predetermined time T and obtain audio and play
The power W1 of equipment sound output output, the volume value V1 and corresponding sound of active user's setting that the same time is obtained
The power W1 of sound output end output is denoted as volume value V1 and power W1 correspondences(V1, W1);Playing first audio text
According to a series of volume value V1 recorded and power W1 correspondences when part(V1, W1)Obtain the volume control of the first music
File.
The musical sound control system based on audio-frequence player device, wherein volume control file is made unit and includes:
Play conversion subunit, a series of volume V1 recorded when for the first audio file will to be played and power W1
Correspondence(V1, W1)In all V1 be converted into identical volume value;
Mean power computation subunit, power W1 when the first audio file for that will obtain plays every time T make
Arithmetic average obtains mean power W, is then obtained again according to UI Preferences volume by the power W1 every time T final defeated
The mathematical relationship for going out power obtains final output power of the mean power W under various UI Preferences volumes;
Unit is made in volume control file, for according to obtained mean power W under various UI Preferences volumes
Final output power carry out final output corresponding with the various UI Preferences volumes of pre-stored standard in mobile terminal
Power is corresponded to, to which volume control file be made.
The musical sound control system based on audio-frequence player device, wherein the volume value V1 of the user setting:For
User is to the volume value set by audio-frequence player device;The actual setting volume value V2 is voluntarily arranged for audio-frequence player device
Final volume value.
Musical sound control method and system provided by the present invention based on audio-frequence player device, by for each sound
Frequency file makes one in first broadcast and has recorded audio file actual needs setting under the various audio power settings of user interface
Volume volume control file, then when playing later, only need to be according to UI Preferences volume value and volume control
File come be arranged the audio file play when actual volume value;It is possible to prevente effectively from caused by being encoded due to audio file itself
The actual sound that different audio files are released under the setting of same user volume differs larger defect.The present invention makes sound
Frequency playback equipment increases new function:Different audio files in the prior art can be effectively solved to set in same user volume
It sets lower released actual sound and differs larger defect, be not in the situation that sound is suddenly big or suddenly small during listening to music, subtract
The frequency that user's operation volume adjustment touches the button is lacked, has provided users with the convenient.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to
It is of the invention in limiting.
Fig. 1 is referred to, Fig. 1 is the preferred embodiment of the musical sound control method the present invention is based on audio-frequence player device
Flow chart.A kind of musical sound control method based on audio-frequence player device shown in FIG. 1, including step:
Step S110, the lower audio power correspondence exported is set according to various volume values, set for each audio file
Set the volume control for recording the volume value of the audio file actual needs setting under the various audio power settings of user interface
File processed.
In the embodiment of the present invention, need to be each audio file in advance(Such as music file)Corresponding volume control text is set
Part.Wherein, the acquisition of volume control file corresponding with audio file can be realized by the following method:
Such as according to each audio file audio coding of itself, detect the lower output of the various volume settings of each audio file
Audio power correspondence;Such as:From small to large by volume value by the volume knob of audio-frequence player device such as mobile phone etc.
It is divided into 10 values.Then it gives an audio file 1 to play, when it is 1 that volume value, which is arranged, detects this audio file 1 in volume
Output power is how many when value is 1(If 0.1W), when volume value is 2, output power is how many to audio file 1(If
0.2W), and so on, until the detection output power when volume value is 10 of audio file 1 is how many(If 1W).Record is formed
The lower audio power correspondence exported of each various volume value settings of audio file.
Then the lower audio power correspondence exported is set according to various volume values, is used for for the setting of each audio file
The volume control file of the volume value of the audio file actual needs setting under the various audio power settings of user interface is recorded,
For recording the actual setting sound corresponding to the audio power and audio power corresponding to the various volume values set by user
Amount.
If if the calibration power of the various corresponding outputs of volume setting of audio-frequence player device user interface is audio sound
When magnitude is 1, corresponding output power is 0.2W, and when audio volume value is 2, corresponding output power is 0.4W(And above-mentioned audio text
The inclined code audio sound of part 1 may be less than normal:The output power when volume is grade 1 of audio file 1 is how many(If 0.1W), sound
The output power when volume value is 2 of frequency file 1 is how many(If 0.2W)).The volume value that so user interface is 1 at this time(It is right
Answer 0.2W)When, the corresponding volume value for playing audio file 1(0.2W)Should be audio volume value be 2, and so on, sound is made
Amount control file.
Subsequently into step S120.
Step S120, when starting to play audio file, volume control corresponding with currently playing music has first been searched whether
File processed.
I.e. in the embodiment of the present invention, whether when starting to play audio file, first searching in audio-frequence player device has and works as
The corresponding volume control file of preceding broadcasting music.
Step S130, when there is volume control file corresponding with currently playing music, then the sound of active user's setting is obtained
Magnitude V1, and the corresponding volume control file of currently playing music in search reality corresponding with the volume value V1 of user setting
Volume value V2 is set, and the volume value of control audio-frequence player device setting currently playing music is V2.
The volume value V1 of user setting described in the embodiment of the present invention:It is user to the volume set by audio-frequence player device
Value;The actual setting volume value V2, the final volume value being voluntarily arranged for audio-frequence player device.As described in connecing above-mentioned steps,
When the volume value V1, that is, audio volume value for obtaining active user's setting is 1, corresponding output power is 0.2W,(And above-mentioned audio text
The inclined code audio sound of part 1 may be less than normal:The output power when volume value is 1 of audio file 1 is how many(If 0.1W), audio
The output power when volume value is 2 of file 1 is how many(If 0.2W)).The volume control text of audio file 1 is so searched at this time
Part, when the volume value of the user setting of user interface is the volume value that V1 is such as 1(Corresponding 0.2W)When, it is corresponding to play audio file
1 volume value(0.2W is exported)Should be audio volume value be 2, then control audio-frequence player device and currently playing music be voluntarily set
Final volume value V2 such as volume values be 2.
In this way, user when continuously listening different audio files, be not in during listening to music sound it is suddenly big or suddenly small
Situation reduces the frequency that user's operation volume adjustment touches the button, provides users with the convenient.
Below by way of a specific Application Example, the present invention is described in further detail:
This specific embodiment is using mobile terminal as audio-frequence player device.It is based on referring to Fig. 2, Fig. 2 is one kind of the present invention
The specific embodiment flow chart of the musical sound control method of audio-frequence player device is set based on audio broadcasting described in Fig. 2 embodiments
Standby musical sound control method includes the following steps:
S100, when start play a piece of music when, the volume control file of the music is first searched whether, if there is then holding
Row step S200, if not thening follow the steps S300;
S200, the volume value V1 for obtaining active user's setting, search the corresponding sound of the volume value in volume control file
Actual setting volume value V2 corresponding to frequency power and audio power, it is V2 that volume value, which is then arranged,;
Wherein, the volume value V1 of user setting is exactly user to the volume value set by mobile terminal;Actual setting volume
Value V2 is exactly the volume value of final mobile terminal self setting;
In this specific embodiment, the volume control file, the inside record has the institute of the various volume values set by user right
The actual setting volume answered;Such as mobile terminal loudness value has 0~9 totally ten volumes setting on a user interface, however for
Corresponding musical sound volume value size is arranged not with level-one mobile terminal loudness since its own coding is different in different music
Together, equally it is that be provided with volume value be 6 to mobile terminal, but sound sounds heavier when music file MUSIC1 is played, it is another
Sound sounds lighter when music file MUSIC2 has been played, if actual volume value is set as 5 when MUSIC1 is played, and
Actual volume value is set as 7 when MUSIC2 is played, then can reach the wave volume effect of user's set volume 6 on a user interface
Fruit;Volume control file is exactly the file for having recorded above-mentioned correspondence, by mobile terminal sound on a user interface described in upper example
Magnitude has 0~9 totally ten volume settings, then to every a piece of music, there are one volume control files, and the inside has recorded user and exists
The practical volume set when 0~9 volume at different levels of UI Preferences.
S300, its volume control file is obtained when playing the music file for the first time.
It is that volume is arranged in the first audio file in first time i.e. when the audio file that need to be played does not have volume control file
Control file when, first play first audio file and every predetermined time T obtain active user setting volume value V1 and
The power W1 for obtaining the output of audio-frequence player device sound output, the volume value for active user's setting that the same time is obtained
V1 and the power W1 of corresponding sound output output are denoted as volume value V1 and power W1 correspondences(V1, W1);It is playing
According to a series of volume value V1 recorded and power W1 correspondences when first audio file(V1, W1)Obtain first sound
Happy volume control file.
Such as preserve various " UI Preferences volumes " corresponding " final output of standard in advance in the terminal
Power ";" final output work(of the WAVG that this step is completed to be obtained according to step S302 under various " UI Preferences volumes "
Rate " is corresponding to be carried out with various " UI Preferences volumes " corresponding " the final output power " of standard(It is closer to according to taking
The mode of value is corresponded to), to which volume control file be made;For convenience of understanding, it is exemplified below:
If various " UI Preferences volumes " corresponding " final output work(of the standard preserved in advance in the terminal
Rate " is as follows:
It is 0 that UI Preferences volume 0, which corresponds to standard final output power,
It is 10 that UI Preferences volume 1, which corresponds to standard final output power,
It is 20 that UI Preferences volume 2, which corresponds to standard final output power,
It is 30 that UI Preferences volume 3, which corresponds to standard final output power,
It is 40 that UI Preferences volume 4, which corresponds to standard final output power,
It is 50 that UI Preferences volume 5, which corresponds to standard final output power,
It is 60 that UI Preferences volume 6, which corresponds to standard final output power,
It is 70 that UI Preferences volume 7, which corresponds to standard final output power,
It is 80 that UI Preferences volume 8, which corresponds to standard final output power,
It is 90 that UI Preferences volume 9, which corresponds to standard final output power,
If corresponding " final output power " such as under various " UI Preferences volumes " by the WAVG that step S302 is obtained
Under:
It is 0 that UI Preferences volume 0, which corresponds to standard final output power,
It is 12 that UI Preferences volume 1, which corresponds to standard final output power,
It is 24 that UI Preferences volume 2, which corresponds to standard final output power,
It is 36 that UI Preferences volume 3, which corresponds to standard final output power,
It is 48 that UI Preferences volume 4, which corresponds to standard final output power,
It is 60 that UI Preferences volume 5, which corresponds to standard final output power,
It is 72 that UI Preferences volume 6, which corresponds to standard final output power,
It is 84 that UI Preferences volume 7, which corresponds to standard final output power,
It is 96 that UI Preferences volume 8, which corresponds to standard final output power,
It is 108 that UI Preferences volume 9, which corresponds to standard final output power,
It is corresponded in the way of taking and being closer to value, the volume control file for obtaining the music file is as follows:
UI Preferences volume 0 is 0 to actual setting volume
UI Preferences volume 1 is 1 to actual setting volume
UI Preferences volume 2 is 2 to actual setting volume
UI Preferences volume 3 is 4 to actual setting volume(Explanation:It is closest with 36, user circle of standard
4 corresponding final output power 40 of volume is arranged in face)
UI Preferences volume 4 is 5 to actual setting volume(Explanation:It is closest with 48, user circle of standard
5 corresponding final output power 50 of volume is arranged in face)
UI Preferences volume 5 is 6 to actual setting volume(Explanation:It is closest with 60, user circle of standard
6 corresponding final output power 60 of volume is arranged in face)
UI Preferences volume 6 is 7 to actual setting volume(Explanation:It is closest with 72, user circle of standard
7 corresponding final output power 70 of volume is arranged in face)
UI Preferences volume 7 is 8 to actual setting volume(Explanation:It is closest with 84, user circle of standard
8 corresponding final output power 80 of volume is arranged in face)
UI Preferences volume 8 is 9 to actual setting volume(Explanation:It is closest with 96, user circle of standard
9 corresponding final output power 90 of volume is arranged in face)
UI Preferences volume 9 is 9 to actual setting volume(Explanation:It is closest with 96, user circle of standard
9 corresponding final output power 90 of volume is arranged in face).
As it can be seen that the present invention has recorded the various volumes of user interface by making one in first broadcast for each music file
The volume control file of the volume of lower music file actual needs setting is set, then when playing later, only need to according to
Volume and volume control file is arranged the actual volume when music file plays is arranged in family interface;It is provided by this case
Method is it is possible to prevente effectively from different music files are arranged in same user volume caused by being encoded due to music file itself
Lower released actual sound differs larger defect.To improve user experience of the user when listening to music.
Based on above method embodiment, the present invention also provides a kind of, and the musical sound control based on audio-frequence player device is
System, as shown in figure 4, the system comprises:
Sound control document production module 410 corresponds to pass for the lower audio power exported to be arranged according to various volume values
System sets for the setting of each audio file for recording the audio file actual needs under the various audio power settings of user interface
The volume control file for the volume value set;As detailed above.
Detection module 420, for when starting to play audio file, first having searched whether corresponding with currently playing music
Volume control file;As detailed above.
Volume resets module 430, for when there is volume control file corresponding with currently playing music, then obtaining current use
The volume value V1 of family setting searches the volume value V1 with user setting in volume control file corresponding with currently playing music
The volume value of corresponding audio power, control audio-frequence player device setting currently playing music is to be found in volume control file
Audio power it is corresponding actual needs setting volume value V2;As detailed above.
The musical sound control system based on audio-frequence player device, wherein sound control document production module includes:
Detection unit, for according to each audio file audio coding of itself, detecting the various volumes of each audio file
The lower audio power correspondence exported of value setting;
Setting unit, for the lower audio power correspondence exported to be arranged according to various volume values, is each audio text
Volume of the part setting for recording the volume of the audio file actual needs setting under the various audio power settings of user interface
File is controlled, for recording corresponding to the audio power and audio power corresponding to the various volume values set by user
The volume value of setting is actually needed.
The musical sound control system based on audio-frequence player device, wherein sound control document production module also wraps
It includes:
Unit is made in volume control file, is used for when first time is that volume control file is arranged in the first audio file, first
It plays first audio file and obtains the volume value V1 of active user's setting every predetermined time T and obtain audio and play
The power W1 of equipment sound output output, the volume value V1 and corresponding sound of active user's setting that the same time is obtained
The power W1 of sound output end output is denoted as volume value V1 and power W1 correspondences(V1, W1);Playing first audio text
According to a series of volume value V1 recorded and power W1 correspondences when part(V1, W1)Obtain the volume control of the first music
File.
The musical sound control system based on audio-frequence player device, wherein the volume value V1 of the user setting:For
User is to the volume value set by audio-frequence player device;The actual setting volume value V2 is voluntarily arranged for audio-frequence player device
Final volume value.
Musical sound control method and system provided by the present invention based on audio-frequence player device, by for each sound
Frequency file makes one in first broadcast and has recorded audio file actual needs setting under the various audio power settings of user interface
Volume volume control file, then when playing later, only need to be according to UI Preferences volume value and volume control
File come be arranged the audio file play when actual volume value;It is possible to prevente effectively from caused by being encoded due to audio file itself
The actual sound that different audio files are released under the setting of same user volume differs larger defect.The present invention makes sound
Frequency playback equipment increases new function:Different audio files in the prior art can be effectively solved to set in same user volume
It sets lower released actual sound and differs larger defect, be not in the situation that sound is suddenly big or suddenly small during listening to music, subtract
The frequency that user's operation volume adjustment touches the button is lacked, has provided users with the convenient.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect range.