CN103632674B - A kind of processing method and processing device of audio signal - Google Patents

A kind of processing method and processing device of audio signal Download PDF

Info

Publication number
CN103632674B
CN103632674B CN201310700522.8A CN201310700522A CN103632674B CN 103632674 B CN103632674 B CN 103632674B CN 201310700522 A CN201310700522 A CN 201310700522A CN 103632674 B CN103632674 B CN 103632674B
Authority
CN
China
Prior art keywords
sample rate
audio
audio sample
mentioned
natural number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310700522.8A
Other languages
Chinese (zh)
Other versions
CN103632674A (en
Inventor
梁东明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201310700522.8A priority Critical patent/CN103632674B/en
Publication of CN103632674A publication Critical patent/CN103632674A/en
Application granted granted Critical
Publication of CN103632674B publication Critical patent/CN103632674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management Or Editing Of Information On Record Carriers (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

The embodiment of the invention discloses the processing method and processing device of a kind of audio signal, wherein, the processing method of a kind of audio signal, including: receive audio signal;Judge that whether the audio sample rate of described audio signal is the natural number multiple of the first audio sample rate;When the natural number multiple that the audio sample rate judging described audio signal is described first audio sample rate, described audio signal is processed by the first audio sample rate converter channel of the natural number multiple mating described first audio sample rate.The technical scheme that the present invention provides can be effectively improved the audio experience of user.

Description

A kind of processing method and processing device of audio signal
Technical field
The present invention relates to signal processing field, particularly relate to the processing method and processing device of a kind of audio signal.
Background technology
Existing audio-frequence player device usual only one of which digital/analog converter (DAC, Digital-to- Analog Converter) and an audio sample rate converter (SRC, Sample Rate Convertor).
Owing to each digital audio and video signals has a single audio sample rate, and DAC under synchronization only Can be operated under an audio sample rate, so, when the sound having multiple different audio sample rate simultaneously Frequently, when signal demand is play, need the audio sample rate of each audio signal to be changed by audio sample rate Device (SRC, Sample Rate Convertor) is converted to the work at present audio sample rate of DAC, then Being mixed into a single audio signal by digital mixer (DM, Digital Mixer), this is single The audio sample rate of the audio signal work audio sample rate equal to DAC is finally mixed single this Audio signal is delivered to be play by speaker after DAC is converted to analogue signal.
Visible, in such scheme, need to be changed the audio sample rate of all audio signals by SRC Become unified audio sample rate.But, during above-mentioned transducing audio sample rate, if SRC is also Non-audio sample rate is carried out integral multiple conversion time, it will noise and distortion occur, thus reduce user's Audio experience.
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.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
One embodiment schematic flow sheet of the processing method of a kind of audio signal that Fig. 1 provides for the present invention;
Another embodiment schematic flow sheet of the processing method of a kind of audio signal that Fig. 2 provides for the present invention;
The processing method further embodiment schematic flow sheet of a kind of audio signal that Fig. 3 provides for the present invention;
Audio Signal Processing under a kind of application scenarios that Fig. 4 provides for the present invention flows to schematic diagram;
The processing method further embodiment schematic flow sheet of a kind of audio signal that Fig. 5 provides for the present invention;
A kind of Audio Signal Processing under the another kind of application scenarios that Fig. 6 provides for the present invention flows to schematic diagram;
The processing method further embodiment schematic flow sheet of a kind of audio signal that Fig. 7 provides for the present invention;
The processing method further embodiment schematic flow sheet of a kind of audio signal that Fig. 8 provides for the present invention;
One example structure schematic diagram of a kind of audio signal processor that Fig. 9 provides for the present invention.
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.

Claims (4)

1. the processing method of an audio signal, it is characterised in that described method includes:
Receive audio signal;
Judge that whether the audio sample rate of described audio signal is the natural number multiple of the first audio sample rate;
When the natural several times that the audio sample rate judging described audio signal is described first audio sample rate During number, by described audio signal by the first audio frequency of the natural number multiple mating described first audio sample rate Sampling rate converter passage processes;
When judging that the audio sample rate of described audio signal is not for the natural number of described first audio sample rate During multiple, described 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;
Described first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of described first audio sample rate;
Mate the first digital mixer of the natural number multiple of described first audio sample rate;
3rd audio sample rate converter of the natural number multiple of non-matching described first audio sample rate;
Described second audio sample rate converter channel includes:
Mate the second audio sample rate converter of the natural number multiple of described second audio sample rate;
Mate the second digital mixer of the natural number multiple of described second audio sample rate;
And mate the second digital/analog converter of the natural number multiple of described second audio sample rate;
Described audio signal is adopted by the first audio frequency of the natural number multiple mating described first audio sample rate Sample rate converter passage carries out the step processed, and specifically includes:
By described audio signal successively by described first audio sample rate converter, described first numeral is mixed Sound device, described 3rd audio sample rate converter, described second digital mixer, and described second number Word/analog converter processes;
By described audio signal by the second audio sample rate of the natural number multiple mating the second audio sample rate Converter channel carries out the step processed, and specifically includes:
By described audio signal successively by described second audio sample rate converter, described second numeral is mixed Sound device, and described second digital/analog converter processes;
Wherein, described 3rd audio sample rate converter is hardware audio sampling rate converter.
Method the most according to claim 1, it is characterised in that
If receiving audio signal to include: audio sample rate is the first audio frequency of described first audio sample rate Signal and audio sample rate are not the second audio signal of the natural number multiple of described first audio sample rate Time, the most described method also includes:
The first audio signal after being processed by described first audio sample rate converter channel and by described the The second audio signal after two audio sample rate converter channel process, is mixed by simulation mixer Process.
3. an audio signal processor, it is characterised in that including:
Receive unit, be used for receiving audio signal;
Whether judging unit, for judging the audio sample rate of audio signal that described reception unit receives It it is the natural number multiple of the first audio sample rate;
When described judging unit, control unit, for judging that the audio sample rate of described audio signal is institute When stating the natural number multiple of the first audio sample rate, described audio signal is adopted by mating described first audio frequency First audio sample rate converter channel of the natural number multiple of sample rate processes;
Described control unit is additionally operable to: when described judging unit judges the audio sample of described audio signal When rate is not the natural number multiple of described first audio sample rate, by described audio signal by mating the second sound Second audio sample rate converter channel of the natural number multiple of frequency sampling rate processes;
Described first audio sample rate converter channel includes:
Mate the first audio sample rate converter of the natural number multiple of described first audio sample rate;
Mate the first digital mixer of the natural number multiple of described first audio sample rate;
3rd audio sample rate converter of the natural number multiple of non-matching described first audio sample rate;
Described second audio sample rate converter channel includes:
Mate the second audio sample rate converter of the natural number multiple of described second audio sample rate;
Mate the second digital mixer of the natural number multiple of described second audio sample rate;
And mate the second digital/analog converter of the natural number multiple of described second audio sample rate;
Described control unit specifically for: when described judging unit judges that the audio frequency of described audio signal is adopted When sample rate is the natural number multiple of described first audio sample rate, by described audio signal successively by described One audio sample rate converter, described first digital mixer, described 3rd audio sample rate converter, Described second digital mixer, and described second digital/analog converter processes;When described judgement Unit judges goes out the audio sample rate of described audio signal not for the natural several times of described first audio sample rate During number, by described audio signal successively by described second audio sample rate converter, described second numeral is mixed Sound device, and described second digital/analog converter processes;
Wherein, described second audio sample rate converter is hardware audio sampling rate converter.
Audio signal processor the most according to claim 3, it is characterised in that
Described control unit is additionally operable to: the audio signal received when described reception unit includes: audio frequency is adopted Sample rate is that the first audio signal of described first audio sample rate and audio sample rate are for described first audio frequency During the second audio signal of the natural number multiple of sample rate, will be led to by described first audio sample rate converter Road process after the first audio signal and by described second audio sample rate converter channel process after second Audio signal, carries out mixed processing by simulation mixer.
CN201310700522.8A 2013-12-17 2013-12-17 A kind of processing method and processing device of audio signal Active CN103632674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310700522.8A CN103632674B (en) 2013-12-17 2013-12-17 A kind of processing method and processing device of audio signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310700522.8A CN103632674B (en) 2013-12-17 2013-12-17 A kind of processing method and processing device of audio signal

Publications (2)

Publication Number Publication Date
CN103632674A CN103632674A (en) 2014-03-12
CN103632674B true CN103632674B (en) 2017-01-04

Family

ID=50213652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310700522.8A Active CN103632674B (en) 2013-12-17 2013-12-17 A kind of processing method and processing device of audio signal

Country Status (1)

Country Link
CN (1) CN103632674B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104200826B (en) * 2014-08-20 2017-05-10 广东欧珀移动通信有限公司 Audio signal playing method for mobile terminal and mobile terminal
US20160300583A1 (en) * 2014-10-29 2016-10-13 Mediatek Inc. Audio sample rate control method applied to audio front-end and related non-transitory machine readable medium
EP3107096A1 (en) 2015-06-16 2016-12-21 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Downscaled decoding
CN106559703B (en) * 2015-09-28 2019-09-20 青岛海信电器股份有限公司 A kind for the treatment of method and apparatus of audio data
CN105848057A (en) * 2016-04-20 2016-08-10 乐视控股(北京)有限公司 Audio processing method, device and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202593A (en) * 2006-11-30 2008-06-18 美国博通公司 Method and system for processing multi-rate audio from a plurality of audio processing sources
US8032388B1 (en) * 2007-09-28 2011-10-04 Adobe Systems Incorporated Dynamic selection of supported audio sampling rates for playback
CN102420611A (en) * 2011-01-24 2012-04-18 展讯通信(上海)有限公司 Sampling rate conversion method and device of digital signal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7912728B2 (en) * 2006-11-30 2011-03-22 Broadcom Corporation Method and system for handling the processing of bluetooth data during multi-path multi-rate audio processing
US8438036B2 (en) * 2009-09-03 2013-05-07 Texas Instruments Incorporated Asynchronous sampling rate converter for audio applications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202593A (en) * 2006-11-30 2008-06-18 美国博通公司 Method and system for processing multi-rate audio from a plurality of audio processing sources
US8032388B1 (en) * 2007-09-28 2011-10-04 Adobe Systems Incorporated Dynamic selection of supported audio sampling rates for playback
CN102420611A (en) * 2011-01-24 2012-04-18 展讯通信(上海)有限公司 Sampling rate conversion method and device of digital signal

Also Published As

Publication number Publication date
CN103632674A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN103632674B (en) A kind of processing method and processing device of audio signal
CN106328126B (en) Far field voice recognition processing method and device
CN109637548A (en) Voice interactive method and device based on Application on Voiceprint Recognition
US20160133245A1 (en) Sound Processing Method And Terminal Device
US10971125B2 (en) Music synthesis method, system, terminal and computer-readable storage medium
CN108920128A (en) The operating method and system of PowerPoint
CN109565286A (en) Time delay in digital over-sampled sensing system, device and method
WO2007100915A3 (en) Systems, methods, and media for outputting data based on anomaly detection
CN108389440A (en) Voice playing method and device based on microphone and voice playing equipment
GB2481559A (en) Jukebox menu navigation system
WO2007041277A3 (en) Transcribing dictation containing private information
CN108460120A (en) Data saving method and device, terminal equipment and storage medium
CN110223692A (en) More wheel dialogue methods and system for voice dialogue platform across technical ability
CN109710137A (en) Technical ability priority configuration method and system for voice dialogue platform
CN103703751A (en) Digital signal routing circuit
CN110033782A (en) The calculation method and relevant apparatus of syllable quantity in unit time
CN110189752A (en) Multi-intention identification method and device and terminal equipment
CN109243472A (en) A kind of audio-frequency processing method and audio processing system
CN107040728A (en) Video timeline generation method and device and user equipment
CN106776775A (en) Concurrent master-slave synchronisation method and device
CN110516043A (en) Answer generation method and device for question answering system
CN109712443A (en) A kind of content is with reading method, apparatus, storage medium and electronic equipment
CN109508166A (en) Audio frequency playing method, device, equipment and storage medium
CN107993668A (en) A kind of method of the multi-path digital sound mixing based on McASP interfaces
CN106205279A (en) The reminding method of a kind of note duration, system and electronic equipment thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 519000 Zhuhai hi tech Zone, science and Technology Innovation Coast Meizu Technology Building

Applicant after: Meizu Technology (China) Co., Ltd.

Address before: 519000 Zhuhai hi tech Zone, science and Technology Innovation Coast Meizu Technology Building

Applicant before: Zhuhai Meizu Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: ZHUHAI MEIZU TECHNOLOGY CO., LTD. TO: MEIZU TECHNOLOGY (CHINA) CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 519000 Technology Innovation Coast Meizu science and technology building, Zhuhai High-tech Zone, Guangdong

Patentee after: Zhuhai Meizu Technology Co., Ltd.

Address before: 519000 Technology Innovation Coast Meizu science and technology building, Zhuhai High-tech Zone, Guangdong

Patentee before: Meizu Technology (China) Co., Ltd.

CP01 Change in the name or title of a patent holder