Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one, a kind of audio frequency playing method, flow chart is as shown in Figure 1, comprising:
S1 obtains the audio types information of treating audio plays;
The mode of obtaining audio types information in this example can have multiple, specifically referring to the description of following examples two to four.
S2 obtains corresponding parametric equalizer according to said audio types information;
S3 loads said parametric equalizer and plays said audio frequency.
In the present embodiment, obtain corresponding parametric equalizer according to said audio types information; Load said parametric equalizer and play the automatic EQ setting that said audio frequency has been realized voice playing, make the user need not to be provided with voluntarily the corresponding EQ of audio types, can obtain result of broadcast preferably, improve user's the experience of listening to.
Embodiment two, a kind of audio frequency playing method, flow chart is as shown in Figure 2, comprising:
A1, the audio frequency of treating broadcast carries out spectrum analysis, obtains the said frequency domain distribution of treating audio plays;
In the embodiment of the invention, carry out spectrum analysis can software or hardware calculate and accomplish, if based on equipment such as the computer of generic structure, PDA mobile phones; Can realize through software algorithm; And based on the audio player of special use, like equipment such as MP3, CD player, MD machines, can realize through the integrated spectrum analysis function of audio decoder chip; Concrete implementation can be with reference to existing multiple frequency spectrum analysis method, and the present invention does not do and gives unnecessary details.
The process of specifically carrying out spectrum analysis can have multiple, for example:
The frequency domain of the audio frequency of treating broadcast is carried out segmentation; The range that people's ear can be heard is from 20HZ~20KHZ, so present embodiment carries out segmentation according to the segmented mode of internal system equalizer to music.
(digital singnal processor DSP) obtains the time-domain information of treating audio plays, and said time-domain information is carried out Fourier transform, obtains the frequency domain information of treating audio plays through Digital Signal Processing.As shown in Figure 3, be the oscillogram (time-domain information) of audio file, wherein abscissa is a time shaft, ordinate is the amplitude of audio frequency.Fig. 4 is for to carry out the frequency domain distribution figure that Fourier transform obtains to the audio file among Fig. 3, and wherein abscissa is that frequency, the ordinate of music are Signal to Interference plus Noise Ratio (dB of unit).
Add up the frequency domain distribution of audio frequency in each segmentation frequency domain to be play;
Through above-mentioned statistics, can obtain the percentage that accounts for total audio frequency component of the interior audio frequency component of each frequency range in the audio file.As: 20% sound frequency is arranged in the whole audio frequency between 1000HZ~1500HZ, have 35% sound frequency between 1500HZ~8000HZ, have 50% sound to concentrate between 8000HZ~15000HZ ....
A2 obtains corresponding parametric equalizer according to the said frequency domain distribution of audio plays of treating, concrete parametric equalizer can take multiple mode to obtain, and comprising:
Analysis through above-mentioned steps A; Can learn the distribution of audio frequency in each frequency range; Then can select corresponding parametric equalizer according to this distribution; Carrying out process that parameter selects can be respectively to organize parametric equalizer and compare according to the audio frequency frequency domain distribution with being provided with in advance, obtains immediate parametric equalizer.
A3, the parametric equalizer that loads said setting is play said audio frequency.
The process that concrete loading balance device parameter is carried out voice playing can repeat no more with reference to the processing of existing multiple audio player here.
In the embodiment of the invention one, carry out spectrum analysis for audio frequency to be play; Obtain corresponding parametric equalizer according to said results of spectral; The parametric equalizer that loads said setting is play said audio frequency, has realized that the automatic EQ of voice playing is provided with, and makes the user need not to be provided with voluntarily the corresponding EQ of audio types, can obtain result of broadcast preferably, improves user's the experience of listening to.
Embodiment three, a kind of audio frequency playing method, flow chart is as shown in Figure 5, comprising:
B1 carries out spectrum analysis for audio frequency to be play;
In the embodiment of the invention; Carry out spectrum analysis can software or hardware calculate and accomplish, if, can realize through software algorithm based on equipment such as the computer of generic structure, PDA mobile phones; And based on the audio player of special use; Can realize that concrete implementation can be with reference to existing multiple frequency spectrum analysis method through the integrated spectrum analysis function of audio decoder chip like equipment such as MP3, CD player, MD machines, the present invention does not do and gives unnecessary details.
The process of specifically carrying out spectrum analysis can repeat no more with reference to the description of embodiment one steps A 1 here.
B2 obtains the corresponding audio type according to results of spectral;
B3 searches the corresponding parametric equalizer of said audio types according to the corresponding relation of preset audio types and parametric equalizer.
B4, the parametric equalizer that loads said setting is play said audio frequency.
The process that concrete loading balance device parameter is carried out voice playing can repeat no more with reference to the processing of existing multiple audio player here.
Embodiment two is that with the difference of embodiment one obtain the corresponding audio type according to the spectrum analysis result earlier, audio types comprises:: rock music, pop music, jazz, country music, classical music etc.And in the prior art, generally disposed the EQ parameter of corresponding acquiescence for different audio types, and make that the result of the embodiment of the invention and prior art is compact more, and practical more.
Embodiment four, a kind of audio frequency playing method, flow chart is as shown in Figure 6, comprising:
C1 obtains the audio types information of treating audio plays;
In the present embodiment; The obtain manner of audio types information can have multiple; For example: can analyze said audio frequency, obtain the audio types information of audio identification sign indicating number part, also can be in audio file, to increase an audio types description sign to be used to represent audio types information.
No matter take which kind of mode to obtain audio types information and perhaps represent audio types information; The embodiment of the invention is stressed; Audio types informational needs unified standard; And be the discernible consolidation form of audio player; For example fairly simple form can be: adopt 3 binary digit binary numbers to represent, on behalf of rock music, " 010 ", " 000 " representative " 001 " represent pop music, " 011 " to represent jazz, " 100 " to represent country music, " 101 " to represent classical music ...
C2 obtains the corresponding parametric equalizer of audio types information according to the corresponding relation of said audio types information and parametric equalizer;
Player in the present embodiment needs to preserve the corresponding parametric equalizer of different audio types.
C3 loads said parametric equalizer and plays said audio frequency.
The kind audio frequency playing method that provides in the embodiment of the invention three; Through in audio file, increasing audio types information; Player is selected EQ parameter audio plays automatically according to audio types information, makes the user need not to regulate voluntarily EQ, can obtain satisfied result of broadcast and listen to impression.
One of ordinary skill in the art will appreciate that the whole bag of tricks of the foregoing description or all or part of step in the device are to instruct relevant hardware to accomplish through program; This program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
The audio playing apparatus that provides in the face of the embodiment of the invention down is described in detail.For the ease of explanation; Only show the part relevant with the embodiment of the invention; This audio playing apparatus can be common multimedia equipments such as MP3, MP4, mobile phone, and its functional module/unit that comprises can be module/unit that hardware module/unit, software module/unit or software and hardware combine.
Embodiment five, a kind of audio playing apparatus, structural representation is as shown in Figure 7, comprising:
First acquiring unit 710 is used to obtain the audio types information of treating audio plays;
Second acquisition unit 720 is used for obtaining corresponding parametric equalizer according to said audio types information;
Broadcast unit 730 is used to load said parametric equalizer and plays said audio frequency.
In the present embodiment; Said first acquiring unit can take multiple mode to obtain audio types information; For example: said first acquiring unit 710 can comprise reading unit 711, is used for partly reading the said audio types information of treating audio plays from the said identification code of audio plays of treating.
Certainly, first acquiring unit can also take other modes to obtain audio types information, is illustrated through embodiment five below.
Embodiment six, a kind of audio playing apparatus, structural representation is as shown in Figure 8, comprising:
First acquiring unit 810 is used to obtain the audio types information of treating audio plays;
Second acquisition unit 820 is used for obtaining corresponding parametric equalizer according to said audio types information;
Broadcast unit 830 is used to load said parametric equalizer and plays said audio frequency.
In this example, said first acquiring unit 810 comprises:
Converting unit 811 is used for obtaining the time-domain information of treating audio plays through DSP, and said time-domain information is carried out Fourier transform, obtains the frequency domain information of treating audio plays, and said spectral analysis unit is carried out spectrum analysis according to said frequency domain information.
Spectral analysis unit 812, the audio frequency that is used to treat broadcast carries out spectrum analysis, obtains the said frequency domain distribution of treating audio plays; Concrete said spectrum analysis analytic unit can specifically comprise: segmenting unit 8121 and analytic unit 8122;
Segmenting unit 8121, the frequency domain that is used to treat the audio frequency of broadcast carries out segmentation;
Analytic unit 8122 is used to analyze each frequency band audio percentage composition.
Information acquisition unit 813 is obtained the said audio types information of treating audio plays according to the frequency domain distribution that said spectral analysis unit analysis obtains.
The method that the invention audio playing apparatus can move repeats no more with reference to the description of said method embodiment here.
More than audio frequency playing method and audio playing apparatus that the embodiment of the invention provided have been carried out detailed introduction, wherein:
In one embodiment of the invention, carry out spectrum analysis for audio frequency to be play; Obtain corresponding parametric equalizer according to said results of spectral; The parametric equalizer that loads said setting is play said audio frequency, has realized that the automatic EQ of voice playing is provided with, and makes the user need not to be provided with voluntarily the corresponding EQ of audio types, can obtain result of broadcast preferably, improves user's the experience of listening to.
In yet another embodiment of the invention, obtain the corresponding audio type according to the spectrum analysis result earlier, audio types comprises: rock music, pop music, jazz, country music, classical music etc.And in the prior art, generally disposed the EQ parameter of corresponding acquiescence for different audio types, and make that the result of the embodiment of the invention and prior art is compact more, and practical more.
The kind audio frequency playing method that supplies in yet another embodiment of the invention; Through in audio file, increasing audio types information; Player is selected EQ parameter audio plays automatically according to audio types information, makes the user need not to regulate voluntarily EQ, can obtain satisfied result of broadcast and listen to impression.
Used concrete example among this paper principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.