Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one, a kind of audio frequency playing method, flow chart comprises as shown in Figure 1:
S1 obtains the audio types information of audio frequency to be played;
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 described audio types information;
S3 loads described parametric equalizer and plays described audio frequency.
In the present embodiment, obtain corresponding parametric equalizer according to described audio types information; Load described parametric equalizer and play the automatic EQ setting that described audio frequency has been realized voice playing, make the user need not to be provided with voluntarily the EQ of audio types correspondence, 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 comprises as shown in Figure 2:
A1 carries out spectrum analysis to audio frequency to be played, obtains the frequency domain distribution of described audio frequency to be played;
In the embodiment of the invention, carry out spectrum analysis can software or hardware calculate and finish, if based on equipment such as the computer of generic structure, PDA mobile phones, can realize by software algorithm, and based on the audio player of special use, as equipment such as MP3, CD player, MD machines, can realize by 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:
To carry out segmentation to the frequency domain of audio frequency to be played; 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 audio frequency to be played, and described time-domain information is carried out Fourier transform, obtains the frequency domain information of audio frequency to be played by Digital Signal Processing.As shown in Figure 3, be the oscillogram (time-domain information) of audio file, wherein abscissa is a time shaft, and 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 played;
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 frequency domain distribution of described audio frequency to be played, and 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 setting in advance, and obtains immediate parametric equalizer.
A3, the parametric equalizer that loads described setting is play described 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 herein.
In the embodiment of the invention one, carry out spectrum analysis for audio frequency to be played; Obtain corresponding parametric equalizer according to described results of spectral; The parametric equalizer that loads described setting is play described 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 EQ of audio types correspondence, 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 comprises as shown in Figure 5:
B1 carries out spectrum analysis for audio frequency to be played;
In the embodiment of the invention, carry out spectrum analysis can software or hardware calculate and finish, if based on equipment such as the computer of generic structure, PDA mobile phones, can realize by software algorithm, 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 by the integrated spectrum analysis function of audio decoder chip as 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 herein.
B2 obtains the corresponding audio type according to results of spectral;
B3 searches the parametric equalizer of described audio types correspondence according to the default audio types and the corresponding relation of parametric equalizer.
B4, the parametric equalizer that loads described setting is play described 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 herein.
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 be configured 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 comprises as shown in Figure 6:
C1 obtains the audio types information of audio frequency to be played;
In the present embodiment, the obtain manner of audio types information can have multiple, for example: can analyze described audio frequency, obtain the audio types information of audio identification sign indicating number part, also can be to increase an audio types description sign to be used to represent audio types information in audio file.
No matter take which kind of mode to obtain audio types information or expression audio types information, the embodiment of the invention is emphasized, 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 parametric equalizer of audio types information correspondence according to the corresponding relation of described audio types information and parametric equalizer;
Player in the present embodiment needs to preserve the corresponding parametric equalizer of different audio types.
C3 loads described parametric equalizer and plays described audio frequency.
The kind audio frequency playing method that provides in the embodiment of the invention three, by 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 finish by 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 the embodiment of the invention is provided is described in detail below.For convenience 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 comprises as shown in Figure 7:
First acquiring unit 710 is used to obtain the audio types information of audio frequency to be played;
Second acquisition unit 720 is used for obtaining corresponding parametric equalizer according to described audio types information;
Broadcast unit 730 is used to load described parametric equalizer and plays described audio frequency.
In the present embodiment, described first acquiring unit can take multiple mode to obtain audio types information, for example: described first acquiring unit 710 can comprise reading unit 711, is used for partly reading from the identification code of described audio frequency to be played the audio types information of described audio frequency to be played.
Certainly, first acquiring unit can also take other modes to obtain audio types information, is illustrated below by embodiment five.
Embodiment six, a kind of audio playing apparatus, structural representation comprises as shown in Figure 8:
First acquiring unit 810 is used to obtain the audio types information of audio frequency to be played;
Second acquisition unit 820 is used for obtaining corresponding parametric equalizer according to described audio types information;
Broadcast unit 830 is used to load described parametric equalizer and plays described audio frequency.
In this example, described first acquiring unit 810 comprises:
Converting unit 811 is used for obtaining by DSP the time-domain information of audio frequency to be played, and described time-domain information is carried out Fourier transform, obtains the frequency domain information of audio frequency to be played, and described spectral analysis unit is carried out spectrum analysis according to described frequency domain information.
Spectral analysis unit 812 is used for audio frequency to be played is carried out spectrum analysis, obtains the frequency domain distribution of described audio frequency to be played; Concrete described spectrum analysis analytic unit can specifically comprise: segmenting unit 8121 and analytic unit 8122;
Segmenting unit 8121 is used for the frequency domain of audio frequency to be played is carried out segmentation;
Analytic unit 8122 is used to analyze each frequency band audio percentage composition.
Information acquisition unit 813, the frequency domain distribution that obtains according to described spectral analysis unit analysis is obtained the audio types information of described audio frequency to be played.
The method that the invention audio playing apparatus can move repeats no more with reference to the description of said method embodiment herein.
More than audio frequency playing method and audio playing apparatus that the embodiment of the invention provided are described in detail, wherein:
In one embodiment of the invention, carry out spectrum analysis for audio frequency to be played; Obtain corresponding parametric equalizer according to described results of spectral; The parametric equalizer that loads described setting is play described 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 EQ of audio types correspondence, 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 be configured 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 of confession in yet another embodiment of the invention, by 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 specific case herein 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 all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.