Summary of the invention
Embodiments provide the processing method and processing device of a kind of audio signal, for improving user's
Audio experience.
For solving above-mentioned technical problem, embodiment of the present invention offer techniques below scheme:
First aspect present invention provides the processing method of a kind of audio signal, including:
Receive audio signal;
Judge that whether the audio sample rate of above-mentioned audio signal is the natural number multiple of the first audio sample rate;
When the natural several times that the audio sample rate judging above-mentioned audio signal is above-mentioned first audio sample rate
During number, by above-mentioned audio signal by the first audio frequency of the natural number multiple mating above-mentioned first audio sample rate
Sampling rate converter passage processes.
Based on first aspect present invention, in the implementation that the first is possible,
Whether the above-mentioned audio sample rate judging above-mentioned audio signal is the natural several times of the first audio sample rate
After number, also include:
When judging that the audio sample rate of above-mentioned audio signal is not for the natural number of above-mentioned first audio sample rate
During multiple, above-mentioned audio signal is adopted by the second audio frequency of the natural number multiple mating the second audio sample rate
Sample rate converter passage processes.
The first possible implementation based on first aspect present invention, in the realization side that the second is possible
In formula, above-mentioned first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
And mate the first digital/analog converter of the natural number multiple of above-mentioned first audio sample rate;
Above-mentioned second audio sample rate converter channel includes:
Mate the second audio sample rate converter of the natural number multiple of above-mentioned second audio sample rate;
Mate the second digital mixer of the natural number multiple of above-mentioned second audio sample rate;
And mate the second digital/analog converter of the natural number multiple of above-mentioned second audio sample rate;
Then:
Above-mentioned when the nature that audio sample rate is above-mentioned first audio sample rate judging above-mentioned audio signal
During several times number, by above-mentioned audio signal by the first of the natural number multiple mating above-mentioned first audio sample rate
Audio sample rate converter channel carries out the step processed, and specifically includes:
When the natural several times that the audio sample rate judging above-mentioned audio signal is above-mentioned first audio sample rate
During number, by above-mentioned audio signal successively by above-mentioned first audio sample rate converter, above-mentioned first numeral
Mixer, and above-mentioned first digital/analog converter processes;
Above-mentioned when judge the audio sample rate of above-mentioned audio signal for above-mentioned first audio sample rate from
So during several times number, by above-mentioned audio signal by the second sound of the natural number multiple mating the second audio sample rate
Frequency sampling rate converter passage carries out the step processed, and specifically includes:
When judging that the audio sample rate of above-mentioned audio signal is not for the natural number of above-mentioned first audio sample rate
During multiple, by above-mentioned audio signal successively by above-mentioned second audio sample rate converter, above-mentioned second number
Word mixer, and above-mentioned second digital/analog converter processes.
The first possible implementation based on first aspect present invention, in the realization side that the third is possible
In formula, include if receiving audio signal: audio sample rate is the first sound of above-mentioned first audio sample rate
Frequently signal and audio sample rate are not second audio signal of natural number multiple of above-mentioned first audio sample rate
Time, then said method also includes:
The first audio signal after being processed by above-mentioned first audio sample rate converter channel and by above-mentioned the
The second audio signal after two audio sample rate converter channel process, is mixed by simulation mixer
Process.
The first possible implementation based on first aspect present invention, the 4th kind of possible realization side
In formula, above-mentioned first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
3rd audio sample rate converter of the natural number multiple of non-matching above-mentioned first audio sample rate;
Above-mentioned second audio sample rate converter channel includes:
Mate the second audio sample rate converter of the natural number multiple of above-mentioned second audio sample rate;
Mate the second digital mixer of the natural number multiple of above-mentioned second audio sample rate;
And mate the second digital/analog converter of the natural number multiple of above-mentioned second audio sample rate;
Then:
Above-mentioned when the nature that audio sample rate is above-mentioned first audio sample rate judging above-mentioned audio signal
During several times number, by above-mentioned audio signal by the first of the natural number multiple mating above-mentioned first audio sample rate
Audio sample rate converter channel carries out the step processed, and specifically includes:
When the natural several times that the audio sample rate judging above-mentioned audio signal is above-mentioned first audio sample rate
During number, by above-mentioned audio signal successively by above-mentioned first audio sample rate converter, above-mentioned first numeral
Mixer, above-mentioned 3rd audio sample rate converter, above-mentioned second digital mixer, and above-mentioned second
Digital/analog converter processes;
Above-mentioned when judge the audio sample rate of above-mentioned audio signal for above-mentioned first audio sample rate from
So during several times number, by above-mentioned audio signal by the second sound of the natural number multiple mating the second audio sample rate
Frequency sampling rate converter passage carries out the step processed, and specifically includes:
When judging that the audio sample rate of above-mentioned audio signal is not for the natural number of above-mentioned first audio sample rate
During multiple, by above-mentioned audio signal successively by above-mentioned second audio sample rate converter, above-mentioned second number
Word mixer, and above-mentioned second digital/analog converter processes;
Wherein, above-mentioned 3rd audio sample rate converter can be high-quality hardware audio sample rate conversion
Device.
The first possible implementation based on first aspect present invention, the 5th kind of possible realization side
In formula, above-mentioned first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the second audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
And mate the first digital/analog converter of the natural number multiple of above-mentioned first audio sample rate;
Above-mentioned second audio sample rate converter channel includes:
Mate the 3rd audio sample rate converter of the natural number multiple of above-mentioned second audio sample rate;
Mate the second digital mixer of the natural number multiple of above-mentioned second audio sample rate;
Then:
Above-mentioned when the nature that audio sample rate is above-mentioned first audio sample rate judging above-mentioned audio signal
During several times number, by above-mentioned audio signal by the first of the natural number multiple mating above-mentioned first audio sample rate
Audio sample rate converter channel carries out the step processed, and specifically includes:
When the natural several times that the audio sample rate judging above-mentioned audio signal is above-mentioned first audio sample rate
During number, by above-mentioned audio signal successively by above-mentioned first audio sample rate converter, above-mentioned first numeral
Mixer, and above-mentioned first digital/analog converter processes;
Above-mentioned when judge the audio sample rate of above-mentioned audio signal for above-mentioned first audio sample rate from
So during several times number, by above-mentioned audio signal by the second sound of the natural number multiple mating the second audio sample rate
Frequency sampling rate converter passage carries out the step processed, and specifically includes:
When judging that the audio sample rate of above-mentioned audio signal is not for the natural number of above-mentioned first audio sample rate
During multiple, by above-mentioned audio signal successively by above-mentioned 3rd audio sample rate converter, above-mentioned second number
Word mixer, above-mentioned second audio sample rate converter, above-mentioned first digital mixer, and above-mentioned
One digital/analog converter processes;
Wherein, above-mentioned second audio sample rate converter is hardware audio sampling rate converter.
Second aspect present invention provides a kind of audio signal processor, including:
Receive unit, be used for receiving audio signal;
Whether judging unit, for judging the audio sample rate of audio signal that above-mentioned reception unit receives
It it is the natural number multiple of the first audio sample rate;
When above-mentioned judging unit, control unit, for judging that the audio sample rate of above-mentioned audio signal is
When stating the natural number multiple of the first audio sample rate, above-mentioned audio signal is adopted by mating above-mentioned first audio frequency
First audio sample rate converter channel of the natural number multiple of sample rate processes.
Based on second aspect present invention, in the implementation that the first is possible,
Above-mentioned control unit is additionally operable to: when above-mentioned judging unit judges the audio sample of above-mentioned audio signal
When rate is not the natural number multiple of above-mentioned first audio sample rate, by above-mentioned audio signal by mating the second sound
Second audio sample rate converter channel of the natural number multiple of frequency sampling rate processes.
The first possible implementation based on second aspect present invention, in the realization side that the second is possible
In formula, above-mentioned first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
And mate the first digital/analog converter of the natural number multiple of above-mentioned first audio sample rate;
Above-mentioned second audio sample rate converter channel includes:
Mate the second audio sample rate converter of the natural number multiple of above-mentioned second audio sample rate;
Mate the second digital mixer of the natural number multiple of above-mentioned second audio sample rate;
And mate the second digital/analog converter of the natural number multiple of above-mentioned second audio sample rate;
Above-mentioned control unit specifically for: when above-mentioned judging unit judges that the audio frequency of above-mentioned audio signal is adopted
When sample rate is the natural number multiple of above-mentioned first audio sample rate, by above-mentioned audio signal successively by above-mentioned
One audio sample rate converter, above-mentioned first digital mixer, and above-mentioned first digital/analog converter
Process;When above-mentioned judging unit judges that the audio sample rate of above-mentioned audio signal is not for above-mentioned first
During the natural number multiple of audio sample rate, above-mentioned audio signal is turned by above-mentioned second audio sample rate successively
Parallel operation, above-mentioned second digital mixer, and above-mentioned second digital/analog converter process.
The first possible implementation based on second aspect present invention, in the realization side that the third is possible
In formula, above-mentioned control unit is additionally operable to: the audio signal received when above-mentioned reception unit includes: audio frequency
Sample rate is that the first audio signal of above-mentioned first audio sample rate and audio sample rate are for above-mentioned first sound
During the second audio signal of the natural number multiple of frequency sampling rate, will be by above-mentioned first audio sample rate converter
Passage process after the first audio signal and after being processed by above-mentioned second audio sample rate converter channel the
Two audio signals, carry out mixed processing by simulation mixer.
The first possible implementation based on second aspect present invention, the 4th kind of possible realization side
In formula, above-mentioned first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
3rd audio sample rate converter of the natural number multiple of non-matching above-mentioned first audio sample rate;
Above-mentioned second audio sample rate converter channel includes:
Mate the second audio sample rate converter of the natural number multiple of above-mentioned second audio sample rate;
Mate the second digital mixer of the natural number multiple of above-mentioned second audio sample rate;
And mate the second digital/analog converter of the natural number multiple of above-mentioned second audio sample rate;
Above-mentioned control unit specifically for: when above-mentioned judging unit judges that the audio frequency of above-mentioned audio signal is adopted
When sample rate is the natural number multiple of above-mentioned first audio sample rate, by above-mentioned audio signal successively by above-mentioned
One audio sample rate converter, above-mentioned first digital mixer, above-mentioned 3rd audio sample rate converter,
Above-mentioned second digital mixer, and above-mentioned second digital/analog converter processes;When above-mentioned judgement
Unit judges goes out the audio sample rate of above-mentioned audio signal not for the natural several times of above-mentioned first audio sample rate
During number, by above-mentioned audio signal successively by above-mentioned second audio sample rate converter, above-mentioned second numeral is mixed
Sound device, and above-mentioned second digital/analog converter processes;
Wherein, above-mentioned second audio sample rate converter can be high-quality hardware audio sample rate conversion
Device.
The first possible implementation based on second aspect present invention, the 5th kind of possible realization side
In formula, above-mentioned first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the second audio sample rate converter of the natural number multiple of above-mentioned first audio sample rate;
Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
And mate the first digital/analog converter of the natural number multiple of above-mentioned first audio sample rate;
Above-mentioned second audio sample rate converter channel includes:
Mate the 3rd audio sample rate converter of the natural number multiple of above-mentioned second audio sample rate;
Mate the second digital mixer of the natural number multiple of above-mentioned second audio sample rate;
Above-mentioned control unit specifically for: when above-mentioned judging unit judges that the audio frequency of above-mentioned audio signal is adopted
When sample rate is the natural number multiple of above-mentioned first audio sample rate, by above-mentioned audio signal successively by above-mentioned
One audio sample rate converter, above-mentioned first digital mixer, and above-mentioned first digital/analog converter
Process;When above-mentioned judging unit judges that the audio sample rate of above-mentioned audio signal is not for above-mentioned first
During the natural number multiple of audio sample rate, above-mentioned audio signal is turned by above-mentioned 3rd audio sample rate successively
Parallel operation, above-mentioned second digital mixer, above-mentioned second audio sample rate converter, above-mentioned first numeral is mixed
Sound device, and above-mentioned first digital/analog converter processes;
Wherein, above-mentioned second audio sample rate converter is hardware audio sampling rate converter.
Therefore, in the embodiment of the present invention when receiving audio signal, according to the audio frequency of audio signal
Sample rate carries out shunting process to audio sample rate so that audio sample rate is oneself of the first audio sample rate
So the audio signal of several times number can be led to by a SRC of the natural number multiple mating the first audio sample rate
Road processes, thus reduces noise and distortion that audio sample rate transformation process occurs, improves user's
Audio experience.
Detailed description of the invention
Embodiments provide the processing method and processing device of a kind of audio signal.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will
In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that described embodiment is only a part of embodiment of the present invention, and not all enforcement
Example.Based on the embodiment in the present invention, those of ordinary skill in the art are not before making creative work
Put the every other embodiment obtained, broadly fall into the scope of protection of the invention.
Below the processing method of a kind of audio signal in the embodiment of the present invention is described, refers to figure
1, the processing method of the audio signal in the embodiment of the present invention, including:
101, audio signal is received.
102, judge that whether the audio sample rate of above-mentioned audio signal is the natural several times of the first audio sample rate
Number;
Audio sample rate in the embodiment of the present invention refer to 1 second in sampling number to audio signal, example
To sampled audio signal 44100 times in referring to 1 second such as, the audio sample rate of 44.1KHz, i.e. spend
44100 data describe the sound waveform of 1 second.In principle, audio sampling frequency is the highest, sound
Reduce the truest more natural.
When audio signal input audio signal processing means, (i.e. audio signal processor receives audio frequency letter
Number), audio signal processor judges whether the audio sample rate of the audio signal of input is that the first audio frequency is adopted
The natural number multiple of sample rate, when the audio sample rate of the audio signal judging input is above-mentioned first audio frequency
During the natural number multiple of sample rate, perform step 103;Audio sample when the audio signal judging input
When rate is not the natural number multiple of above-mentioned first audio sample rate, alternatively, return step 101, namely:
Immediately or when waiting after scheduled duration or wait until predetermined instant or triggered by scheduled event,
Perform step 101, or, terminate this flow process, or this audio signal is carried out other process, the most not
It is construed as limiting.
103, by above-mentioned audio signal by the first of the natural number multiple mating above-mentioned first audio sample rate
SRC passage processes;
Alternatively, an above-mentioned SRC passage includes: mate the natural several times of above-mentioned first audio sample rate
Oneth SRC of number;Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
And mate a DAC of the natural number multiple of above-mentioned first audio sample rate;Then by above-mentioned audio signal
Processed by a SRC passage of the natural number multiple mating above-mentioned first audio sample rate, particularly as follows:
By above-mentioned audio signal successively by an above-mentioned SRC, above-mentioned first digital mixer, and above-mentioned
One DAC process.It should be noted that for audio sample rate is different and audio sample rate is
State the different audio signals of the natural number multiple of the first audio sample rate, by above-mentioned first audio frequency of above-mentioned coupling
The audio sample rate of the audio signal after the oneth SRC process of the natural number multiple of sample rate is identical.
Alternatively, above-mentioned first audio sample rate is 8kHz, or, above-mentioned first audio sample rate is
11.025kHz.Certainly, above-mentioned first audio sample rate can also other sample rate, be not construed as limiting herein.
Therefore, in the embodiment of the present invention when receiving audio signal, according to the audio frequency of audio signal
Sample rate carries out shunting process to audio sample rate so that audio sample rate is oneself of the first audio sample rate
So the audio signal of several times number can be led to by a SRC of the natural number multiple mating the first audio sample rate
Road processes, thus reduces noise and distortion that audio sample rate transformation process occurs, improves user's
Audio experience.
Embodiments provide the audio sample rate to audio signal be not the first audio sample rate from
So processing scheme during several times number, refers to Fig. 2, the processing method of the audio signal in the embodiment of the present invention,
Including:
201, audio signal is received.
202, judge that whether the audio sample rate of above-mentioned audio signal is the natural several times of the first audio sample rate
Number;
Audio sample rate in the embodiment of the present invention refer to 1 second in sampling number to audio signal, example
To sampled audio signal 44100 times in referring to 1 second such as, the audio sample rate of 44.1KHz, i.e. spend
44100 data describe the sound waveform of 1 second.In principle, audio sampling frequency is the highest, sound
Reduce the truest more natural.
When audio signal input audio signal processing means, (i.e. audio signal processor receives audio frequency letter
Number), audio signal processor judges whether the audio sample rate of the audio signal of input is that the first audio frequency is adopted
The natural number multiple of sample rate, when the audio sample rate of the audio signal judging input is above-mentioned first audio frequency
During the natural number multiple of sample rate, perform step 203;Audio sample when the audio signal judging input
When rate is not the natural number multiple of above-mentioned first audio sample rate, perform step 204.
203, by above-mentioned audio signal by the first of the natural number multiple mating above-mentioned first audio sample rate
SRC passage processes;
Alternatively, an above-mentioned SRC passage includes: mate the natural several times of above-mentioned first audio sample rate
Oneth SRC of number;Mate the first digital mixer of the natural number multiple of above-mentioned first audio sample rate;
And mate a DAC of the natural number multiple of above-mentioned first audio sample rate;Then by above-mentioned audio signal
Carried out processing by an above-mentioned SRC passage particularly as follows: by above-mentioned audio signal successively by: mate above-mentioned
Oneth SRC of the natural number multiple of one audio sample rate, mates the natural number of above-mentioned first audio sample rate
First digital mixer of multiple, and mate above-mentioned first audio sample rate natural number multiple first
DAC process.It should be noted that for audio sample rate is different and audio sample rate is above-mentioned
The different audio signals of the natural number multiple of the first audio sample rate, by mating above-mentioned first audio sample rate
A SRC of natural number multiple process after the audio sample rate of audio signal identical.
204, by above-mentioned audio signal by the 2nd SRC of the natural number multiple mating the second audio sample rate
Passage processes;
Alternatively, above-mentioned 2nd SRC passage includes: mate the natural several times of above-mentioned second audio sample rate
2nd SRC of number;Mate the second digital mixer of the natural number multiple of above-mentioned second audio sample rate;
And mate the 2nd DAC of the natural number multiple of above-mentioned second audio sample rate;Then by above-mentioned audio signal
Carried out processing by above-mentioned 2nd SRC passage particularly as follows: by above-mentioned audio signal successively by: mate above-mentioned
2nd SRC of the natural number multiple of two audio sample rate, mates the natural number of above-mentioned second audio sample rate
Second digital mixer of multiple, and mate above-mentioned second audio sample rate natural number multiple second
DAC process.It should be noted that for audio sample rate is different and audio sample rate is above-mentioned
The different audio signals of the natural number multiple of the second audio sample rate, by mating above-mentioned second audio sample rate
The 2nd SRC of natural number multiple process after the audio sample rate of audio signal identical.
Alternatively, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 11.025kH;
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 8kHz.When
So, above-mentioned first audio sample rate and above-mentioned second audio sample rate can also be other audio sample rate group
Closing, such as, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 22.05kH,
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 22.05kHz
Deng, it is not construed as limiting herein.
Therefore, in the embodiment of the present invention when receiving audio signal, according to the audio frequency of audio signal
Sample rate carries out shunting process to audio sample rate so that audio sample rate is oneself of the first audio sample rate
So the audio signal of several times number can be entered by the SRC passage of the natural number multiple mating the first audio sample rate
Row processes, thus reduces noise and distortion that audio sample rate transformation process occurs, improves the audition of user
Experience.
With another embodiment, the processing method of a kind of audio signal of the present invention is described below, please join
Read Fig. 3, the processing method of the audio signal in the embodiment of the present invention, including:
301, the first audio signal and the second audio signal are received;
Wherein, the audio sample rate of the first audio signal in the embodiment of the present invention is the first audio sample rate,
The audio sample rate of the second audio signal is not the natural number multiple of above-mentioned first audio sample rate.
302, the audio sample rate of the first audio signal and the second audio signal is judged;
Apparatus for processing audio knows the first audio signal and the sound of the second audio signal received by judgement
Frequency sampling rate, performs step 303 to above-mentioned first audio signal, and above-mentioned second audio signal is performed step
304。
303, by the first audio signal by the first of the natural number multiple mating above-mentioned first audio sample rate
SRC passage processes;
In the embodiment of the present invention, an above-mentioned SRC passage includes: mate above-mentioned first audio sample rate
Oneth SRC of natural number multiple;Mate the first numeral of the natural number multiple of above-mentioned first audio sample rate
Mixer;And mate a DAC of the natural number multiple of above-mentioned first audio sample rate;The most above-mentioned general
First audio signal is carried out processing particularly as follows: above-mentioned first audio signal depended on by an above-mentioned SRC passage
Secondary by: mate a SRC of the natural number multiple of above-mentioned first audio sample rate, mate above-mentioned first sound
First digital mixer of the natural number multiple of frequency sampling rate, and mate above-mentioned first audio sample rate
Oneth DAC process of natural number multiple.
304, by the second audio signal by the second of the natural number multiple mating above-mentioned second audio sample rate
SRC passage processes;
In the embodiment of the present invention, above-mentioned 2nd SRC passage includes: mate above-mentioned second audio sample rate
2nd SRC of natural number multiple;Mate the second numeral of the natural number multiple of above-mentioned second audio sample rate
Mixer;And mate the 2nd DAC of the natural number multiple of above-mentioned second audio sample rate;Then by above-mentioned
Second audio signal is carried out processing particularly as follows: above-mentioned second audio signal depended on by above-mentioned 2nd SRC passage
Secondary by: mate the 2nd SRC of the natural number multiple of above-mentioned second audio sample rate, mate above-mentioned second sound
Second digital mixer of the natural number multiple of frequency sampling rate, and mate above-mentioned second audio sample rate
2nd DAC process of natural number multiple.
305, the first audio signal after being processed by an above-mentioned SRC passage, and by above-mentioned 2nd SRC
The second audio signal after passage processes carries out mixed processing by simulation mixer.
For ease of understanding technical solution of the present invention, below in conjunction with a concrete application scenarios, to real described in Fig. 2
The processing method executing the audio signal in example is described, it is assumed that above-mentioned first audio sample rate is 8kHz,
Above-mentioned second audio sample rate is 11.025kH, and an above-mentioned SRC passage specifically includes: coupling 48kHz
A SRC, first digital mixer of coupling 48kHz audio sample rate, and coupling 48kHz
Oneth DAC;Above-mentioned 2nd SRC passage specifically includes: the 2nd SRC of coupling 44.1kHz, coupling
Second digital mixer of 44.1kHz audio sample rate, and the 2nd DAC of coupling 44.1kHz, then
Audio Signal Processing in this application scene flows to schematic diagram can as shown in Figure 4, in the diagram, and audio frequency
Signal processing apparatus by the audio signal of natural number multiple that audio sample rate is the first audio sample rate (as
Audio sample rate is the audio signal of 48kHz, and audio sample rate is the audio signal of 24kHz, and audio frequency is adopted
Sample rate is the audio signal of 16kHz and audio sample rate is the audio signal etc. of 8kHz) by coupling
Oneth SRC of 48kHz is converted to the audio signal that audio sample rate is 48kHz, and passes sequentially through coupling
First digital mixer of 48kHz and a DAC process of coupling 48kHz;Audio Signal Processing
Audio sample rate is not that the audio signal of the natural number multiple of the first audio sample rate is (as audio frequency is adopted by device
Sample rate is the audio signal of 44.1kHz, and audio sample rate is the audio signal of 22.05kHz, audio sample
Rate is the audio signal of 11.025kHz and audio sample rate is the audio signal etc. of 88.2kHz) by coupling
2nd SRC of 44.1kHz is converted to the audio signal that audio sample rate is 44.1kHz, and passes sequentially through
Second digital mixer of coupling 44.1kHz and the 2nd DAC process of coupling 44.1kHz, afterwards,
Audio signal processor will by coupling 48kHz the oneth DAC process after the first audio signal, and by
The second audio signal after 2nd DAC of coupling 44.1kHz processes is carried out at mixing by simulation mixer
Export after reason.
It should be noted that the above-mentioned SRC passage in the embodiment of the present invention is not limited to 48kHz's
SRC passage, it is also possible to for mate other natural number multiple of the first audio sample rate SRC passage (as
The SRC passage of 96kHz), the above-mentioned 2nd SRC passage in the embodiment of the present invention is not limited to 44.1kHz
SRC passage, it is also possible to for mate other natural number multiple of the second audio sample rate SRC passage (as
The SRC passage of 88.2kHz), it is not construed as limiting herein.
With another embodiment, the processing method of a kind of audio signal of the present invention is described below, at this
In aspect embodiment, a SRC passage of the natural number multiple mating the first audio sample rate includes:
Mix a SRC of the natural number multiple stating the first audio sample rate and mate above-mentioned first audio sample rate
The first digital mixer of natural number multiple, and the natural number of non-matching above-mentioned first audio sample rate
3rd SRC of multiple;2nd SRC passage of the natural number multiple mating the second audio sample rate includes:
Mate the 2nd SRC of the natural number multiple of above-mentioned second audio sample rate, mate above-mentioned second audio sample
Second digital mixer of the natural number multiple of rate, and mate the natural number of above-mentioned second audio sample rate
2nd DAC of multiple.Refer to Fig. 5, the processing method of the audio signal in the embodiment of the present invention, bag
Include:
501, audio signal is received.
502, judge that whether the audio sample rate of above-mentioned audio signal is the natural several times of the first audio sample rate
Number;
Audio sample rate in the embodiment of the present invention refer to 1 second in sampling number to audio signal, example
To sampled audio signal 44100 times in referring to 1 second such as, the audio sample rate of 44.1KHz, i.e. spend
44100 data describe the sound waveform of 1 second.In principle, audio sampling frequency is the highest, sound
Reduce the truest more natural.
When audio signal input audio signal processing means, (i.e. audio signal processor receives audio frequency letter
Number), audio signal processor judges whether the audio sample rate of the audio signal of input is that the first audio frequency is adopted
The natural number multiple of sample rate, when the audio sample rate of the audio signal judging input is above-mentioned first audio frequency
During the natural number multiple of sample rate, perform step 503;Audio sample when the audio signal judging input
When rate is the natural number multiple of above-mentioned first audio sample rate, perform step 504.
503, by above-mentioned audio signal successively by: mate the natural number multiple of above-mentioned first audio sample rate
Oneth SRC, mates the first digital mixer of the natural number multiple of above-mentioned first audio sample rate, non-
Mix the 3rd SRC of the natural number multiple stating the first audio sample rate, mate above-mentioned second audio sample rate
The second digital mixer of natural number multiple, and mate the natural several times of above-mentioned second audio sample rate
2nd DAC process of number.
504, by above-mentioned audio signal successively by: mate the natural number multiple of above-mentioned second audio sample rate
2nd SRC, mates the second digital mixer of the natural number multiple of above-mentioned second audio sample rate, and
Mate the 2nd DAC process of the natural number multiple of above-mentioned second audio sample rate.
Wherein, the 3rd SRC in the embodiment of the present invention can be high-quality hardware SRC.
Alternatively, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 11.025kH;
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 8kHz.When
So, above-mentioned first audio sample rate and above-mentioned second audio sample rate can also be other audio sample rate group
Closing, such as, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 22.05kH,
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 22.05kHz
Deng, it is not construed as limiting herein.
For ease of understanding technical solution of the present invention, below in conjunction with a concrete application scenarios, to real described in Fig. 5
The processing method executing the audio signal in example is described, it is assumed that above-mentioned first audio sample rate is 8kHz,
Above-mentioned second audio sample rate is 11.025kH, and an above-mentioned SRC passage specifically includes: coupling 48kHz
A SRC and coupling 48kHz audio sample rate the first digital mixer, non-matching above-mentioned first sound
3rd SRC of the natural number multiple of frequency sampling rate;Above-mentioned 2nd SRC passage specifically includes: coupling
2nd SRC of 44.1kHz, the second digital mixer of coupling 44.1kHz audio sample rate, and coupling
2nd DAC of 44.1kHz, then the Audio Signal Processing in this application scene flow to schematic diagram can be such as Fig. 6
Shown in, in figure 6, audio signal processor is by nature that audio sample rate is the first audio sample rate
(if audio sample rate is the audio signal of 48kHz, audio sample rate is 24kHz to the audio signal of several times number
Audio signal, audio sample rate is audio signal and audio frequency that audio sample rate the is 8kHz letter of 16kHz
Number etc.) be converted to, by a SRC of coupling 48kHz, the audio signal that audio sample rate is 48kHz,
And pass sequentially through coupling 48kHz the first digital mixer, coupling 48KHz be converted to the non-of 44.1kHz
3rd SRC of natural number multiple, second digital mixer of coupling 44.1kHz and coupling 44.1kHz's
2nd DAC process;Audio sample rate is not the first audio sample rate by audio signal processor
The audio signal of natural number multiple (if audio sample rate is the audio signal of 44.1kHz, audio sample rate
For the audio signal of 22.05kHz, audio sample rate is audio signal and the audio sample rate of 11.025kHz
Audio signal etc. for 88.2kHz) be converted to audio sample rate by the 3rd SRC of coupling 44.1kHz
For the audio signal of 44.1kHz, and pass sequentially through the second digital mixer and the coupling of coupling 44.1kHz
The 2nd DAC process of 44.1kHz.
It should be noted that the above-mentioned SRC passage in the embodiment of the present invention is not limited to 48kHz's
SRC passage, it is also possible to for mate other natural number multiple of the first audio sample rate SRC passage (as
The SRC passage of 96kHz), the above-mentioned 2nd SRC passage in the embodiment of the present invention, it is also possible to for coupling
The SRC passage (such as the SRC passage of 88.2kHz) of other natural number multiple of the second audio sample rate,
It is not construed as limiting herein.
With another embodiment, the processing method of a kind of audio signal of the present invention is described below, at this
In aspect embodiment, a SRC passage of the natural number multiple mating the first audio sample rate includes:
Mix a SRC of the natural number multiple stating the first audio sample rate, mate above-mentioned first audio sample rate
The 2nd SRC of natural number multiple, mate the first number of the natural number multiple of above-mentioned first audio sample rate
Word mixer, and mate a DAC of the natural number multiple of above-mentioned first audio sample rate;Coupling the
2nd SRC passage of the natural number multiple of two audio sample rate includes: mate above-mentioned second audio sample rate
The 3rd SRC of natural number multiple, mate the second number of the natural number multiple of above-mentioned second audio sample rate
Word mixer.Refer to Fig. 7, the processing method of the audio signal in the embodiment of the present invention, including:
701, audio signal is received.
702, judge that whether the audio sample rate of above-mentioned audio signal is the natural several times of the first audio sample rate
Number;
Audio sample rate in the embodiment of the present invention refer to 1 second in sampling number to audio signal, example
To sampled audio signal 44000 times in referring to 1 second such as, the audio sample rate of 44KHz, i.e. spend 44000
Individual data describe the sound waveform of 1 second.In principle, audio sampling frequency is the highest, the reduction of sound
The truest more natural.
When audio signal input audio signal processing means, (i.e. audio signal processor receives audio frequency letter
Number), audio signal processor judges whether the audio sample rate of the audio signal of input is that the first audio frequency is adopted
The natural number multiple of sample rate, when the audio sample rate judging audio signal that step inputs is above-mentioned first
During the natural number multiple of audio sample rate, perform step 703;Audio frequency when the audio signal judging input
When sample rate is the natural number multiple of above-mentioned first audio sample rate, perform step 704.
703, by above-mentioned audio signal successively by: mate the natural number multiple of above-mentioned first audio sample rate
Oneth SRC, mates the first digital mixer of the natural number multiple of above-mentioned first audio sample rate, and
Mate a DAC process of the natural number multiple of above-mentioned first audio sample rate.
704, by above-mentioned audio signal successively by: mate the natural number multiple of above-mentioned second audio sample rate
3rd SRC, mates the second digital mixer of the natural number multiple of above-mentioned second audio sample rate, coupling
2nd SRC of the natural number multiple of above-mentioned first audio sample rate, mates above-mentioned first audio sample rate
First digital mixer of natural number multiple, and mate the natural number multiple of above-mentioned first audio sample rate
A DAC process.
Wherein, the 2nd SRC in the embodiment of the present invention is hardware SRC, and alternatively, the 2nd SRC is
High-quality hardware SRC.
Alternatively, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 11.025kH;
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 8kHz.When
So, above-mentioned first audio sample rate and above-mentioned second audio sample rate can also be other audio sample rate group
Closing, such as, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 22.05kH,
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 22.05kHz
Deng, it is not construed as limiting herein.
Below with a concrete application scenarios, the processing method of the audio signal in the embodiment of the present invention is carried out
Describing, in this application scene, the first audio sample rate is 8kHz, and the second audio sample rate is 11.025kHz
Referring to Fig. 8, in application scenarios of the present invention, the processing method of audio signal includes:
801, audio signal is received.
802, judge that whether the audio sample rate of above-mentioned audio signal is the natural number multiple of 8kHz;
When audio signal input audio signal processing means, (i.e. audio signal processor receives audio frequency letter
Number), audio signal processor judge the audio sample rate of the audio signal of input be whether 8kHz from
So several times number, when the natural number multiple that audio sample rate is 8kHz judging audio signal that step inputs
Time, perform step 803;When the audio sample rate of the audio signal judging input is not the nature of 8kHz
During several times number, perform step 804.
803, above-mentioned audio signal is carried out by a SRC passage of the natural number multiple mating 8kHz
Reason;
Alternatively, an above-mentioned SRC passage includes: a SRC of the natural number multiple of coupling 8kHz;
First digital mixer of the natural number multiple of coupling 8kHz;And the natural number multiple of coupling 8kHz
DAC;The most above-mentioned above-mentioned audio signal is carried out by the SRC passage of the natural number multiple mating 8kHz
Reason particularly as follows: by above-mentioned audio signal successively by the SRC of natural number multiple of coupling 8kHz,
Join the first digital mixer of the natural number multiple of 8kHz, and the of the natural number multiple of coupling 8kHz
One DAC process.It should be noted that for audio sample rate is different and audio sample rate is
The different audio signals of the natural number multiple of 8kHz, by the first of the natural number multiple of above-mentioned coupling 8kHz
SRC process after the audio sample rate of audio signal identical (being such as 8*n, wherein n is not less than 1
Natural number).
804, above-mentioned audio signal is entered by the 2nd SRC passage of the natural number multiple mating 11.025kHz
Row processes;
Alternatively, above-mentioned 2nd SRC passage includes: the second of the natural number multiple of coupling 11.025kHz
SRC;Second digital mixer of the natural number multiple of coupling 11.025kHz;And coupling 11.025kHz
The 2nd DAC of natural number multiple;The most above-mentioned by above-mentioned audio signal by the nature mating 11.025kHz
2nd SRC passage of several times number carry out processing particularly as follows: by above-mentioned audio signal successively by: coupling
2nd SRC of the natural number multiple of 11.025kHz, the second number of the natural number multiple of coupling 11.025kHz
Word mixer, and the 2nd DAC process of the natural number multiple of coupling 11.025kHz.Need
Bright, for audio sample rate is different and audio sample rate is the natural number multiple of 11.025kHz not
Same audio signal, the 2nd SRC of the natural number multiple of above-mentioned coupling 11.025kHz the audio frequency after processing
The audio sample rate of signal is identical (being such as 11.025k*k, wherein k is the natural number not less than 1).
The embodiment of the present invention also provides for a kind of audio signal processor, refers to Fig. 9, the embodiment of the present invention
In audio signal processor 900, including:
Receive unit 901, be used for receiving audio signal.
Judging unit 902, for judging that the audio sample rate receiving the audio signal that unit 901 receives is
No is the natural number multiple of the first audio sample rate.
Control unit 903, for judging to receive the audio frequency letter that unit 901 receives when judging unit 902
Number the natural number multiple that audio sample rate is above-mentioned first audio sample rate time, by above-mentioned audio signal by
Oneth SRC passage of the natural number multiple mating above-mentioned first audio sample rate processes.
Alternatively, control unit 903 is additionally operable to: when judging unit 902 judges that receiving unit 901 connects
When the audio sample rate of the audio signal received is not the natural number multiple of above-mentioned first audio sample rate, will
Above-mentioned audio signal is carried out by the 2nd SRC passage of the natural number multiple mating the second audio sample rate
Reason.
In one implementation, an above-mentioned SRC passage includes: mate above-mentioned first audio sample rate
A SRC of natural number multiple, mate the first number of the natural number multiple of above-mentioned first audio sample rate
Word mixer, and mate a DAC of the natural number multiple of above-mentioned first audio sample rate;Above-mentioned
Two SRC passages include: mate the 2nd SRC of the natural number multiple of above-mentioned second audio sample rate, coupling
Second digital mixer of the natural number multiple of above-mentioned second audio sample rate, and mate above-mentioned second sound
2nd DAC of the natural number multiple of frequency sampling rate;Control unit 903 specifically for: when judging unit 902
Judge that the audio sample rate receiving the audio signal that unit 901 receives is above-mentioned first audio sample rate
Natural number multiple time, by above-mentioned audio signal successively by mate above-mentioned first audio sample rate natural number
Oneth SRC of multiple, mates the first digital mixer of the natural number multiple of above-mentioned first audio sample rate,
And mate a DAC process of the natural number multiple of above-mentioned first audio sample rate;Single when judging
Unit 902 judges that the audio sample rate receiving the audio signal that unit 901 receives is not for above-mentioned first sound
During the natural number multiple of frequency sampling rate, by above-mentioned audio signal successively by mating above-mentioned second audio sample rate
The 2nd SRC of natural number multiple, mate the second number of the natural number multiple of above-mentioned second audio sample rate
Word mixer, and mate the 2nd DAC process of the natural number multiple of above-mentioned second audio sample rate.
Further, control unit 903 is additionally operable to: the audio signal received when reception unit 901 includes: sound
Frequency sampling rate is that the first audio signal of above-mentioned first audio sample rate and audio sample rate are for above-mentioned first
During the second audio signal of the natural number multiple of audio sample rate, after being processed by an above-mentioned SRC passage
The first audio signal, and the second audio signal after being processed by above-mentioned 2nd SRC passage is mixed by simulation
Sound device carries out mixed processing.
In another kind of implementation, an above-mentioned SRC passage includes: mate above-mentioned first audio sample
The first of the natural number multiple of the oneth SRC of the natural number multiple of rate and above-mentioned first audio sample rate of coupling
Digital mixer, the 3rd SRC of the natural number multiple of non-matching above-mentioned first audio sample rate;Above-mentioned
Two SRC passages include: mate the 2nd SRC of the natural number multiple of above-mentioned second audio sample rate, coupling
Second digital mixer of the natural number multiple of above-mentioned second audio sample rate, and mate above-mentioned second sound
2nd DAC of the natural number multiple of frequency sampling rate.Control unit 903 specifically for: when judging unit 902
Judge that the audio sample rate receiving the audio signal that unit 901 receives is above-mentioned first audio sample rate
Natural number multiple time, by above-mentioned audio signal successively by mate above-mentioned first audio sample rate natural number
Oneth SRC of multiple, mates the first digital mixer of the natural number multiple of above-mentioned first audio sample rate,
3rd SRC of the natural number multiple of non-matching above-mentioned first audio sample rate, mates above-mentioned second audio frequency and adopts
Second digital mixer of the natural number multiple of sample rate, and mate the nature of above-mentioned second audio sample rate
2nd DAC process of several times number;When judging unit 902 is judged to receive what unit 901 received
When the audio sample rate of audio signal is not the natural number multiple of above-mentioned first audio sample rate, by above-mentioned sound
Frequently signal is successively by the 2nd SRC of the natural number multiple mating above-mentioned second audio sample rate, mates above-mentioned
Second digital mixer of the natural number multiple of the second audio sample rate, and mate above-mentioned second audio frequency and adopt
2nd DAC process of the natural number multiple of sample rate.Wherein, above-mentioned non-matching first audio sample rate
The 3rd SRC of natural number multiple can be high-quality hardware SRC.
In another kind of implementation, an above-mentioned SRC passage includes: mate above-mentioned first audio sample
Oneth SRC of the natural number multiple of rate, mate above-mentioned first audio sample rate natural number multiple second
SRC, mates the first digital mixer of the natural number multiple of above-mentioned first audio sample rate, and matches
State a DAC of the natural number multiple of the first audio sample rate;Above-mentioned 2nd SRC passage includes: coupling
3rd SRC of the natural number multiple of above-mentioned second audio sample rate, mates above-mentioned second audio sample rate
Second digital mixer of natural number multiple.Control unit 903 specifically for: when judging unit 902 is sentenced
Breaking, the audio sample rate of the audio signal that reception unit 901 receives be above-mentioned first audio sample rate
During natural number multiple, by above-mentioned audio signal successively by the natural several times mating above-mentioned first audio sample rate
Oneth SRC of number, mates the first digital mixer of the natural number multiple of above-mentioned first audio sample rate,
And mate a DAC process of the natural number multiple of above-mentioned first audio sample rate;Single when judging
Unit 902 judges that the audio sample rate receiving the audio signal that unit 901 receives is not for above-mentioned first sound
During the natural number multiple of frequency sampling rate, by above-mentioned audio signal successively by mating above-mentioned second audio sample rate
The 3rd SRC of natural number multiple, mate the second number of the natural number multiple of above-mentioned second audio sample rate
Word mixer, mates the 2nd SRC of the natural number multiple of above-mentioned first audio sample rate, mates above-mentioned
First digital mixer of the natural number multiple of one audio sample rate, and mate above-mentioned first audio sample
Oneth DAC process of the natural number multiple of rate.Wherein, above-mentioned first audio sample rate of above-mentioned coupling
The 2nd SRC of natural number multiple be hardware SRC, alternatively, above-mentioned first audio sample of above-mentioned coupling
2nd SRC of the natural number multiple of rate is high-quality hardware SRC.
Alternatively, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 11.025kH;
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 8kHz.When
So, above-mentioned first audio sample rate and above-mentioned second audio sample rate can also be other audio sample rate group
Closing, such as, above-mentioned first audio sample rate is 8kHz, and above-mentioned second audio sample rate is 22.05kH,
Or, above-mentioned first audio sample rate is 11.025kHz, and above-mentioned second audio sample rate is 22.05kHz
Deng, it is not construed as limiting herein.
It should be noted that the audio signal processor 900 in the embodiment of the present invention can be such as above-mentioned side
Audio signal processor in method embodiment, may be used for the whole skills realizing in said method embodiment
Art scheme, the function of its each functional module can implement according to the method in said method embodiment,
It implements process and can refer to the associated description in said method embodiment, and here is omitted.
Therefore, the audio signal processor in the embodiment of the present invention when receiving audio signal,
Audio sample rate according to audio signal carries out shunting process to audio sample rate so that audio sample rate is
The audio signal of the natural number multiple of the first audio sample rate can be by the nature mating the first audio sample rate
The SRC passage of several times number processes, thus reduces noise and mistake that audio sample rate transformation process occurs
Very, the audio experience of user is improved.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment
The part described in detail, may refer to the associated description of other embodiments.
One of ordinary skill in the art will appreciate that in the various methods in above-described embodiment is all or part of
Step can be by program and completes to instruct relevant hardware, and this program can be stored in a computer
In readable storage medium storing program for executing, storage medium such as may include that read only memory, random access memory, disk
Or CD etc..
Above the processing method and processing device of a kind of audio signal provided by the present invention is carried out detailed Jie
Continuing, principle and the way of example of the present invention are set forth by specific case used herein, above
The explanation of embodiment is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for this
The those skilled in the art in field, according to the thought of the embodiment of the present invention, at detailed description of the invention and application model
Placing and all will change, to sum up, this specification content should not be construed as limitation of the present invention.