Summary of the invention
The embodiment of the invention discloses a kind of audio frequency playing method and user terminals, being capable of automatic adjusument broadcasting audio textThe play parameter of part, to effectively improve the result of broadcast of audio.
First aspect of the embodiment of the present invention discloses a kind of audio frequency playing method, comprising:
Obtain audio file to be played;
Spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file;
The play parameter for playing the audio file is determined according to the spectrum distribution information;
The audio file is played according to the play parameter.
In conjunction with the embodiment of the present invention in a first aspect, first aspect of the embodiment of the present invention the first possible embodimentIn, it is described that spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file, comprising:
Spectrum analysis is carried out to the audio file, obtains the frequency point distribution of the audio file;
The audio is accounted for according to the frequency point number that frequency point distribution calculates the audio file that each default frequency range includesThe rate of specific gravity of all frequency point datas of file.
In conjunction with the first possible embodiment of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present inventionSecond of possible embodiment in, it is described according to the spectrum distribution information determine for playing broadcasting for the audio filePut parameter, comprising:
The rate of specific gravity that the frequency point number for the audio file that acquisition includes accounts for all frequency point datas of the audio file is maximumDefault frequency range;
Broadcasting ginseng corresponding with the default frequency range is obtained from the corresponding relationship of the frequency range and play parameter that pre-establishNumber;
The play parameter of the acquisition is determined as to be used to play the play parameter of the audio file.
In conjunction with the embodiment of the present invention in a first aspect, first aspect of the embodiment of the present invention the third possible embodimentIn, it is described that spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file, comprising:
The audio file is divided into several audio fragments;
For audio fragment described in each, spectrum analysis is carried out to the audio fragment, obtains the audio fragmentFrequency point distribution;
The audio is accounted for according to the frequency point number that frequency point distribution calculates the audio fragment that each default frequency range includesThe rate of specific gravity of all frequency point datas of segment.
In conjunction with the third possible embodiment of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present inventionThe 4th kind of possible embodiment in, it is described according to the spectrum distribution information determine for playing broadcasting for the audio filePut parameter, comprising:
For audio fragment described in each, the frequency point number for obtaining the audio fragment for including accounts for the audio fragment instituteThere is the maximum default frequency range of the rate of specific gravity of frequency point data;
Broadcasting ginseng corresponding with the default frequency range is obtained from the corresponding relationship of the frequency range and play parameter that pre-establishNumber;
The play parameter of the acquisition is determined as to be used to play the play parameter of the audio fragment;
It is wherein, described to play the audio file according to the play parameter, comprising:
By each described audio fragment of the audio file according to play parameter corresponding with the audio fragment intoRow plays.
Second aspect of the embodiment of the present invention discloses a kind of user terminal, comprising:
Acquiring unit, for obtaining audio file to be played;
Analytical unit, for carrying out spectrum analysis to the audio file, to obtain the spectrum distribution of the audio fileInformation;
Determination unit, for determining the play parameter for playing the audio file according to the spectrum distribution information;
Broadcast unit, for playing the audio file according to the play parameter.
In conjunction with second aspect of the embodiment of the present invention, in the first possible embodiment of second aspect of the embodiment of the present inventionIn, the analytical unit includes:
First analysis subelement obtains the frequency point of the audio file for carrying out spectrum analysis to the audio fileDistribution;
First computation subunit, for calculating the audio file that each default frequency range includes according to frequency point distributionFrequency point number account for the rates of specific gravity of all frequency point datas of the audio file.
In conjunction with the first possible embodiment of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present inventionSecond of possible embodiment in, the determination unit includes:
First obtains subelement, and the frequency point number for obtaining the audio file for including accounts for all frequencies of the audio fileThe maximum default frequency range of the rate of specific gravity of point data;
Second obtain subelement, for from the corresponding relationship of the frequency range and play parameter that pre-establish obtain with it is described pre-If the corresponding play parameter of frequency range;
First determines subelement, is used to play broadcasting for the audio file for the play parameter of the acquisition to be determined asPut parameter.
In conjunction with second aspect of the embodiment of the present invention, in the third possible embodiment of second aspect of the embodiment of the present inventionIn, the analytical unit includes:
Divide subelement, for the audio file to be divided into several audio fragments;
Second analysis subelement carries out spectrum analysis to the audio fragment for being directed to each described audio fragment,Obtain the frequency point distribution of the audio fragment;
Second computation subunit, for calculating the audio fragment that each default frequency range includes according to frequency point distributionFrequency point number account for the rates of specific gravity of all frequency point datas of the audio fragment.
In conjunction with the third possible embodiment of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present inventionThe 4th kind of possible embodiment in, the determination unit includes:
Third obtains subelement, for being directed to each described audio fragment, obtains the frequency for the audio fragment for includingPoints account for the maximum default frequency range of rate of specific gravity of all frequency point datas of the audio fragment;
4th obtain subelement, for from the corresponding relationship of the frequency range and play parameter that pre-establish obtain with it is described pre-If the corresponding play parameter of frequency range;
Second determines subelement, is used to play broadcasting for the audio fragment for the play parameter of the acquisition to be determined asPut parameter;
The broadcast unit be specifically used for by each described audio fragment of the audio file according to the audioThe corresponding play parameter of segment plays out.
In the embodiment of the present invention, audio file to be played can be first obtained, and spectrum analysis is carried out to the audio file,To obtain the spectrum distribution information of the audio file, can be determined according to the spectrum distribution information for playing the audio filePlay parameter, and the audio file is played according to the play parameter.As it can be seen that implementing the embodiment of the present invention, can be broadcast by treatingThe audio file put carries out spectrum analysis and carrys out automatic adjusument play parameter, so as to be directed to different audio files with differentPlay parameter plays out, and effectively improves result of broadcast.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hairEmbodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative effortsExample, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of audio frequency playing method and user terminals, can be by audio text to be playedPart carry out spectrum analysis carry out automatic adjusument play parameter, so as to for different audio files with different play parameter intoRow plays, and effectively improves result of broadcast.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of audio frequency playing method disclosed by the embodiments of the present invention.Such as Fig. 1 instituteShow, which may comprise steps of:
S101, audio file to be played is obtained.
In the embodiment of the present invention, the available audio file to be played of user terminal, wherein user terminal may includeCell phone, tablet computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), intelligenceSpeaker, mobile internet device (Mobile Internet Device, MID), multimedia player (such as MP3, CD player), intelligenceEach Terminal Type, the embodiment of the present invention such as energy wearable device (such as smartwatch, Intelligent bracelet) are not construed as limiting.
In the embodiment of the present invention, pre-stored audio text to be played in the available audio player of user terminalPart, wherein audio player can be playout software (the Windows Media of such as Microsoft for playing audio filePlayer, iTunes of apple etc.), it can be the default player carried in user terminal, under being also possible in user terminalThird party's player of installation is carried, the embodiment of the present invention is not construed as limiting;User terminal can also obtain to be played from serverAudio file, communicated to connect at this point, user terminal can be established with server, and obtain from server it is one or more toThe audio file of broadcasting.
S102, spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file.
In the embodiment of the present invention, carrying out spectrum analysis to the audio file got be can be the time domain of the audio fileSignal is converted into frequency-region signal and is analyzed, and the purpose of spectrum analysis is the amplitude, phase or energy of audio signal to pass throughFourier transformation is to be indicated with frequency coordinate axis.Frequency spectrum is the distribution curve of frequency, and abscissa indicates frequency (Hz), ordinateIndicate level value (dBmV) or performance number (dBm).The frequency spectrum of the audio file can be obtained by carrying out spectrum analysis to audio fileThe range of distributed intelligence, i.e. each effective frequency ingredient of the audio file and effective frequency distribution, wherein effective frequency canWith the frequency that refer to amplitude not be 0.
In the embodiment of the present invention, audio file progress spectrum analysis can be in the form of software or the mode of hardware is comeIt completes.When in the form of software to realize spectrum analysis, it can be stored in advance in the memory of user terminal for executingThe application program of spectrum analysis;It, can be by collecting audio in the user terminal when in a manner of hardware to realize spectrum analysisFrequency processing chip, and spectrum analysis function is integrated in audio processing chip.The implementation of spectrum analysis can refer to existingA variety of frequency spectrum analysis methods, the embodiment of the present invention is not construed as limiting.
S103, the play parameter for playing the audio file is determined according to spectrum distribution information.
In the embodiment of the present invention, it can be learnt according to the spectrum distribution information of the audio file each in the audio fileThe band limits that effective frequency and each effective frequency are distributed.Frequency range pass corresponding with play parameter can be presetSystem, different frequency ranges can correspond to different play parameter.The effective frequency that each frequency range includes the audio file can be countedNumber, and obtain include effective frequency the largest number of frequency ranges, the corresponding play parameter of the frequency range can be determined as usingIn the play parameter for playing the audio file.
In the embodiment of the present invention, it is big that the play parameter for playing the audio file can include but is not limited to broadcast sound volumeSmall, parametric equalizer and play mode etc., wherein balanced device can be used for adjusting putting for various frequency content electric signals respectivelyLargely, the defect of loudspeaker and sound field is compensated by the adjusting of the electric signal to various different frequencies, the parameter of balanced device canTo be the amplification or attenuation of different frequency ingredient electric signal.Play mode can include but is not limited to mode standard, classic mouldThe variation of formula, rock and roll mode, bass patterns, high pitch mode etc., play mode can make different frequency ingredient electric signalAmplification quantity also accordingly changes.
S104, the audio file is played according to determining play parameter.
In the embodiment of the present invention, after the play parameter for playing the audio file has been determined, audio text is being playedWhen part, it can be played out according to the play parameter.
In the embodiment of the present invention, the audio file can be played in user terminal itself according to determining play parameter,The audio file and the play parameter can also be associated, be sent it on the external equipment being connected with user terminalIt plays out, so that external equipment plays the audio file according to the play parameter.Wherein, external equipment may include but unlimitedIn cell phone, tablet computer, palm PC, PDA, intelligent sound box, MID, MP3, CD player, smartwatch, Intelligent bracelet etc..
In the method depicted in fig. 1, audio file to be played can be first obtained, and frequency spectrum is carried out to the audio fileAnalysis can be determined according to the spectrum distribution information for playing the audio with obtaining the spectrum distribution information of the audio fileThe play parameter of file, and the audio file is played according to the play parameter.By implementing method described in Fig. 1, Neng GoutongIt crosses and automatic adjusument play parameter is come to audio file progress spectrum analysis to be played, so as to be directed to different audio filesIt is played out with different play parameter, effectively improves result of broadcast.
Referring to Fig. 2, Fig. 2 is the flow diagram of another audio frequency playing method disclosed by the embodiments of the present invention.Such as Fig. 2Shown, which may comprise steps of:
S201, audio file to be played is obtained.
S202, spectrum analysis is carried out to the audio file, obtains the frequency point distribution of the audio file.
In the embodiment of the present invention, the time-domain signal of the audio file is converted into frequency-region signal, and then the sound can be obtainedThe distribution situation of each frequency in the frequency spectrum of frequency file, according to the distribution situation of frequency it can be concluded that frequency point is distributed.Here frequency pointIt can be regarded as the number of frequency, also can be regarded as the number of frequency.For example, according to 10Hz frequency interval from 810Hz,820Hz, 830Hz ... 900MHz point is 10 frequencies, and each frequency is numbered, from 1,2,3,4 ... 10, theseThe number of frequency can regard frequency point as.
S203, the audio file is accounted for according to the frequency point number that frequency point distribution calculates the audio file that each default frequency range includesThe rate of specific gravity of all frequency point datas.
In the embodiment of the present invention, several default frequency ranges can be set in advance, and be distributed according to the frequency point of acquisition to countEach default frequency range includes that the frequency point number of the audio file accounts for the rate of specific gravity of all frequency point numbers of the audio file.For example, one pre-If the frequency point number in frequency range including the audio file is 200, total frequency point number of the audio file is 1000, then this presets frequency rangeRate of specific gravity is 20%.
The rate of specific gravity that the frequency point number for the audio file that S204, acquisition include accounts for all frequency point datas of the audio file is maximumDefault frequency range.
S205, it is obtained from the corresponding relationship of the frequency range and play parameter that pre-establish and presets the corresponding broadcasting of frequency range with thisParameter.
S206, the play parameter that will acquire are determined as the play parameter for playing the audio file.
In the embodiment of the present invention, the corresponding relationship of frequency range and play parameter can be established in the user terminal in advance, it is differentThe corresponding play parameter of frequency range can be different, for example, frequency range 1 corresponds to play parameter 1, the corresponding play parameter 2 of frequency range 2.It can be fromThat maximum default frequency range of rate of specific gravity is obtained in each default frequency range, is closed from the frequency range pre-established is corresponding with play parameterIt is obtained in system and presets the corresponding play parameter of frequency range with this, which can be determined that it is used to play the audio filePlay parameter.
S207, the audio file is played according to determining play parameter.
For example, when having pre-established frequency range 1 and play parameter 1, frequency range 2 and play parameter 2, frequency range 3 and broadcasting are joinedThe corresponding relationship of number 3 carries out spectrum analysis to audio file to be played, to obtain the frequency point distribution of the audio file, when frequencyThe rate of specific gravity that the frequency point number for the audio file that section 1, frequency range 2, frequency range 3 respectively include accounts for all frequency point numbers of the audio file is20%, 30%, 50%, then rate of specific gravity shared by frequency range 3 is maximum, then is determined as play parameter 3 being used to play the audio filePlay parameter, and the audio file is played according to play parameter 3.
As it can be seen that by implementing method described in Fig. 2, can by audio file to be played carry out spectrum analysis comeAutomatic adjusument play parameter effectively improves so as to be played out for different audio files with different play parameterResult of broadcast.
Referring to Fig. 3, Fig. 3 is the flow diagram of another audio frequency playing method disclosed by the embodiments of the present invention.Such as Fig. 3Shown, which may comprise steps of:
S301, audio file to be played is obtained.
S302, the audio file is divided into several audio fragments.
In the embodiment of the present invention, which can be split according to total duration, appearance when can be divided intoSeveral same audio fragments, can also being divided into duration, several equal audio fragments, the embodiment of the present invention are not construed as limiting.
S303, it is directed to each audio fragment, spectrum analysis is carried out to the audio fragment, obtains the frequency point of the audio fragmentDistribution.
In the embodiment of the present invention, each audio fragment that can be divided respectively to the audio file carries out spectrum analysis,To obtain the frequency point distribution of each audio fragment respectively.
S304, the audio fragment is accounted for according to the frequency point number that frequency point distribution calculates the audio fragment that each default frequency range includesThe rate of specific gravity of all frequency point datas.
Several default frequency ranges can be arranged in advance and carrying out frequency spectrum for an audio fragment for the embodiment of the present inventionAfter analysis, the specific gravity that the frequency point number that each default frequency range includes the audio fragment accounts for the total frequency point number of the audio fragment can be countedValue.
The rate of specific gravity that the frequency point number for the audio fragment that S305, acquisition include accounts for all frequency point datas of the audio fragment is maximumDefault frequency range.
S306, it is obtained from the corresponding relationship of the frequency range and play parameter that pre-establish and presets the corresponding broadcasting of frequency range with thisParameter.
S307, the play parameter that will acquire are determined as the play parameter for playing the audio fragment.
In the embodiment of the present invention, the corresponding relationship of frequency range and play parameter can be established in the user terminal in advance, it is differentThe corresponding play parameter of frequency range can be different.For an audio fragment, can obtain from each default frequency range in the audioThat maximum default frequency range of proportion value, obtains from the corresponding relationship of the frequency range and play parameter that pre-establish in segmentThe corresponding play parameter of frequency range is preset with this, which capable of being determined to, it is used to play the broadcasting of audio fragment ginsengNumber.So that different audio fragments can have different play parameter.
S308, each audio fragment of the audio file is broadcast according to play parameter corresponding with the audio fragmentIt puts.
It, can be by each audio fragment of the audio file according to corresponding play parameter in the embodiment of the present inventionIt plays out, i.e., different audio fragments corresponding play parameter can be different.
For example, when having pre-established frequency range 1 and play parameter 1, frequency range 2 and play parameter 2, frequency range 3 and broadcasting are joinedThe corresponding relationship of number 3 is split processing to audio file to be played, to obtain 1~audio fragment of audio fragment 4, respectivelySpectrum analysis is carried out to each audio fragment, to obtain corresponding frequency point distribution respectively.For audio fragment 1, when frequency range 1, frequencyThe frequency point number of audio fragment 1 that section 2, frequency range 3 respectively include account for the rate of specific gravity of all frequency point numbers of audio fragment 1 be 20%, 30%,50%, then rate of specific gravity shared by frequency range 3 is maximum, then is determined as play parameter 3 being used to play the play parameter of audio fragment 1;For audio fragment 2, when the frequency point number for the audio fragment 2 that frequency range 1, frequency range 2, frequency range 3 respectively include accounts for all frequencies of audio fragment 2The rate of specific gravity of points is 60%, 30%, 10%, then rate of specific gravity shared by frequency range 1 is maximum, then is determined as being used for by play parameter 1Play the play parameter of audio fragment 2;For audio fragment 3, when the audio fragment 3 that frequency range 1, frequency range 2, frequency range 3 respectively includeFrequency point number to account for the rate of specific gravity of all frequency point numbers of audio fragment 3 be 30%, 30%, 40%, then rate of specific gravity shared by frequency range 3 is mostGreatly, then play parameter 3 is determined as being used to play the play parameter of audio fragment 3;For audio fragment 4, when frequency range 1, frequency range2, the frequency point number for the audio fragment 4 that frequency range 3 respectively includes account for all frequency point numbers of audio fragment 4 rate of specific gravity be 20%, 60%,20%, then rate of specific gravity shared by frequency range 2 is maximum, then is determined as play parameter 2 being used to play the play parameter of audio fragment 4;Then when playing the audio file, audio fragment 1 is played with play parameter 3, audio fragment 2 is played with play parameter 1, to playParameter 3 plays audio fragment 3, plays audio fragment 4 with play parameter 2.
As it can be seen that by method described in implementing Fig. 3, it can be by being segmented to audio file to be played, and divideDuan Jinhang spectrum analysis carrys out automatic adjusument play parameter, so as to carry out same audio file with different play parameterIt plays, effectively improves result of broadcast.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention, can be used for holdingRow audio frequency playing method disclosed by the embodiments of the present invention.As shown in figure 4, the user terminal may include:
Acquiring unit 401, for obtaining audio file to be played.
In the embodiment of the present invention, in the audio player of the available user terminal of acquiring unit 401 it is pre-stored toThe audio file of broadcasting, wherein audio player can be the playout software for playing audio file (such as MicrosoftWindows Media Player, iTunes of apple etc.), it can be the default player carried in user terminal, it can also be withIt is third party's player that installation is downloaded in user terminal, the embodiment of the present invention is not construed as limiting;Acquiring unit 401 can also be from clothesAudio file to be played is obtained in business device, is communicated to connect at this point, user terminal can be established with server, acquiring unit 401One or more audio files to be played are obtained from server.
Analytical unit 402, for carrying out spectrum analysis to the audio file, to obtain the spectrum distribution letter of the audio fileBreath.
In the embodiment of the present invention, analytical unit 402 carries out spectrum analysis to the audio file that acquiring unit 401 is got canTo be that the time-domain signal of the audio file is converted into frequency-region signal to be analyzed, the purpose of spectrum analysis is audio signalAmplitude, phase or energy by Fourier transformation be to be indicated with frequency coordinate axis.Frequency spectrum is the distribution curve of frequency, horizontal seatMark indicates frequency (Hz), and ordinate indicates level value (dBmV) or performance number (dBm).Analytical unit 402 carries out audio fileSpectrum analysis can obtain the spectrum distribution information of the audio file, i.e., each effective frequency ingredient of the audio file and haveImitate the range of frequency distribution, wherein the frequency that it is 0 that effective frequency, which can be fingerbreadth value not,.
In the embodiment of the present invention, analytical unit 402 to audio file carry out spectrum analysis can be in the form of software orThe mode of hardware is completed.When in the form of software to realize spectrum analysis, it can be deposited in advance in the memory of user terminalContain the application program for executing spectrum analysis;It, can be in user terminal when in a manner of hardware to realize spectrum analysisMiddle integrated audio handles chip, and spectrum analysis function is integrated in audio processing chip, can see analytical unit 402 at this timeWork is audio processing chip.The implementation of spectrum analysis can refer to existing a variety of frequency spectrum analysis methods, and the present invention is implementedExample is not construed as limiting.
Determination unit 403, for determining the play parameter for playing the audio file according to spectrum distribution information.
In the embodiment of the present invention, it can be learnt according to the spectrum distribution information of the audio file each in the audio fileThe band limits that effective frequency and each effective frequency are distributed.Frequency range pass corresponding with play parameter can be presetSystem, different frequency ranges can correspond to different play parameter.It includes the audio file that determination unit 403, which can count each frequency range,Effective frequency number, and obtain include effective frequency the largest number of frequency ranges, can be by the frequency range corresponding broadcastings ginsengNumber is determined as the play parameter for playing the audio file.
In the embodiment of the present invention, it is big that the play parameter for playing the audio file can include but is not limited to broadcast sound volumeSmall, parametric equalizer and play mode etc., wherein balanced device can be used for adjusting putting for various frequency content electric signals respectivelyLargely, the defect of loudspeaker and sound field is compensated by the adjusting of the electric signal to various different frequencies, the parameter of balanced device canTo be the amplification or attenuation of different frequency ingredient electric signal.Play mode can include but is not limited to mode standard, classic mouldThe variation of formula, rock and roll mode, bass patterns, high pitch mode etc., play mode can make different frequency ingredient electric signalAmplification quantity also accordingly changes.
Broadcast unit 404, the play parameter for determining according to determination unit 403 play the audio file.
In the embodiment of the present invention, after determination unit 403 has determined the play parameter for playing the audio file, playUnit 404 can be played out when playing the audio file according to the play parameter.
As an alternative embodiment, please refer to fig. 5, Fig. 5 is another use disclosed by the embodiments of the present inventionThe structural schematic diagram of family terminal can be used for executing audio frequency playing method disclosed by the embodiments of the present invention.Wherein, shown in fig. 5User terminal is to advanced optimize to obtain on the basis of user terminal shown in Fig. 4.As shown in figure 5, analytical unit 402 canTo further comprise:
First analysis subelement 4021 obtains the frequency point of the audio file for carrying out spectrum analysis to the audio fileDistribution;
First computation subunit 4022, for calculating the audio file that each default frequency range includes according to frequency point distributionFrequency point number accounts for the rate of specific gravity of all frequency point datas of the audio file.
Correspondingly, determination unit 403 may further include:
First obtains subelement 4031, and the frequency point number for obtaining the audio file for including accounts for all frequencies of the audio fileThe maximum default frequency range of the rate of specific gravity of point data;
Second obtains subelement 4032, for obtaining and being somebody's turn to do from the corresponding relationship of the frequency range and play parameter that pre-establishThe default corresponding play parameter of frequency range;
First determines subelement 4033, and the play parameter for will acquire is determined as the broadcasting for playing the audio fileParameter.
As an alternative embodiment, referring to Figure 6 together, Fig. 6 is another use disclosed by the embodiments of the present inventionThe structural schematic diagram of family terminal can be used for executing audio frequency playing method disclosed by the embodiments of the present invention.Wherein, shown in fig. 6User terminal is to advanced optimize to obtain on the basis of user terminal shown in Fig. 4.As shown in fig. 6, analytical unit 402 canTo further comprise:
Divide subelement 4023, for the audio file to be divided into several audio fragments;
Second analysis subelement 4024 carries out spectrum analysis to the audio fragment, obtains for being directed to each audio fragmentObtain the frequency point distribution of the audio fragment;
Second computation subunit 4025, for calculating the audio fragment that each default frequency range includes according to frequency point distributionFrequency point number accounts for the rate of specific gravity of all frequency point datas of the audio fragment.
Correspondingly, determination unit 403 may further include:
Third obtains subelement 4034, and the frequency point number for obtaining the audio fragment for including accounts for all frequencies of the audio fragmentThe maximum default frequency range of the rate of specific gravity of point data;
4th obtains subelement 4035, for obtaining and being somebody's turn to do from the corresponding relationship of the frequency range and play parameter that pre-establishThe default corresponding play parameter of frequency range;
Second determines subelement 4036, and the play parameter for will acquire is determined as the broadcasting for playing the audio fragmentParameter;
Wherein, broadcast unit 404 specifically can be used for by each audio fragment of the audio file according to the audioThe corresponding play parameter of segment plays out.
As it can be seen that implement user terminal shown in fig. 4 to fig. 6, it can be by carrying out frequency spectrum point to audio file to be playedAnalysis carrys out automatic adjusument play parameter, so as to be played out for different audio files with different play parameter, effectivelyImprove result of broadcast.Further, it is also possible to be segmented to audio file to be played, and it is segmented progress spectrum analysis and comes adaptivelyPlay parameter is adjusted, so as to play out same audio file with different play parameter, further increases broadcasting effectFruit.
Specifically, the user terminal introduced in the embodiment of the present invention can be implemented the present invention and combine Fig. 1, Fig. 2 or Fig. 3 introductionAudio frequency playing method embodiment in some or all of process.
Module or submodule in all embodiments of the invention, can be by universal integrated circuit, such as CPU, or passes throughASIC (Application Specific Integrated Circuit, specific integrated circuit) Lai Shixian.
It should be noted that for simple description, therefore, it is stated as a systems for each embodiment of the method above-mentionedThe combination of actions of column, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, becauseFor according to the application, certain some step be can be performed in other orders or simultaneously.Secondly, those skilled in the art also shouldKnow, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily this ShenIt please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodimentPart, reference can be made to the related descriptions of other embodiments.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit or sub-unit in user terminal of the embodiment of the present invention can be merged according to actual needs, divides and be deletedSubtract.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage mediumIn, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, abbreviation RAM) etc..
A kind of audio frequency playing method disclosed by the embodiments of the present invention and user terminal are described in detail above, hereinIn apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sidesAssistant solves method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present inventionThink, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pairLimitation of the invention.