CN105101011A - Audio output control method and device - Google Patents
Audio output control method and device Download PDFInfo
- Publication number
- CN105101011A CN105101011A CN201510287165.6A CN201510287165A CN105101011A CN 105101011 A CN105101011 A CN 105101011A CN 201510287165 A CN201510287165 A CN 201510287165A CN 105101011 A CN105101011 A CN 105101011A
- Authority
- CN
- China
- Prior art keywords
- signal
- gain
- amplitude
- audio
- amplitude limit
- 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.)
- Granted
Links
Landscapes
- Stereophonic System (AREA)
Abstract
The invention provides an audio output control method to achieve a better audio output control effect. The audio output control method comprises the following steps: performing audio mixing processing on the input signals A and B to obtain an audio mixed signal; performing self-adaptive gain processing on the audio mixed signal, wherein the self-adaptive gain processing specifically comprises: multiplying the signal value of the input audio mixed signal by an self-adaptive gain coefficient to obtain a gain signal; performing audio mixing processing on the signal A and the gain signal, and the signal B and the gain signal, respectively, to obtain an audio mixed signal A and an audio mixed signal B; performing amplitude limiting processing on the audio mixed signal A and the audio mixed signal B to obtain an amplitude limited signal A and an amplitude limited signal B; and performing quantization digit recovery operation on the amplitude limited signal A and the amplitude limited signal B to obtain a recovered signal A and a recovered signal B. The invention also provides an audio output control device to implement the method; the audio output control device is capable of performing automatic gain control on mixed channel signals so that an output signal has a soft and natural gain control effect.
Description
Technical field
The present invention relates to audio signal processing technique field, particularly a kind of audio output control method and device.
Background technology
The speed that current consumer electronics product updates is exceedingly fast, a lot of product is all issued to good functional effect in the prerequisite that pursuit is reducing hardware cost as far as possible, as flat board, intercom, remote visible Interface etc., these product form have all entered the living space of low profit, each producer is all reducing hardware cost, one of them important way is exactly utilize the cost reducing dio Output Modules Codec, and a lot of producer directly uses the audio frequency only with DA (digital revolving die plan) to export module to realize playback even.Meanwhile, loudspeaker are also the severely afflicated areas of cost compacting, and the loudspeaker of low cost can exist following problem: output sound distortion, the excessive loudspeaker that cause of power output burn out, etc.For all problems that this type of brings due to cost obsession, if on comparatively easy hardware foundation, with prior art, the effect meeting product volume production cannot be provided substantially, such as, just there is the products such as a lot of panel computer, video telephone on the market at present, at some media file of broadcasting or just there is the problems such as the too small or output sound of output sound is excessive when carrying out write operation, the serious consequence of loudspeaker may be burnt even owing to playing media file for a long time.
The thinking of current solution problems mainly concentrates on hardware link and solves, and such as, changes the Codec device of feature richness, reaches the control of audio output gain; Or, increase restriction assignment or amplifying circuit, for meeting the demand of actual product in audio output circuit link.These solutions first obviously can increase the actual cost of product on hardware plan, popularize difficult.And modify on software and mainly concentrate on by controlling assignment simply or utilize in open source software to carry functional module and modify, the shortcoming existed is, the former cannot reach the gain that Dynamic controlling audio frequency adaptively exports, there is the problems such as algorithm complex is too high, actual effect is not obvious, copyright in the latter, should not promote.
Summary of the invention
For this reason, need to provide a kind of and can do automatic growth control to mixed layer sound channel signal, there is audio output control method and the device of soft natural gain control effects.
For achieving the above object, inventor provide a kind of audio output control method, comprise the steps:
Stereo process is done to the first signal inputted and second signal, obtains audio signal;
Do adaptive gain process to audio signal, described adaptive gain process specifically comprises: obtain gain signal after being multiplied with the signal value of the audio signal of input with adaptive gain coefficient;
Respectively stereo process is done to first signal and gain signal, second signal and gain signal, obtain audio mixing first signal and audio mixing second signal;
Amplitude limiting processing is done to audio mixing first signal and audio mixing second signal, obtains amplitude limit first signal and amplitude limit second signal;
Quantization digit restoration calculation is done to described amplitude limit first signal and amplitude limit second signal, obtain restoring first signal and restoring second signal, the quantization digit of amplitude limit first signal or amplitude limit second signal is restored to the quantization digit identical with second signal with the first signal of original input by described quantization digit restoration calculation, and in described quantization digit restoration calculation: be less than former maximum quantization figure place to the numerical value before quantization digit restoration calculation, with the numerical value after quantization digit restoration calculation for restoring first signal or restoring second signal numerical value; Former maximum quantization figure place is more than or equal to the numerical value before quantization digit restoration calculation, with the numerical value before quantization digit restoration calculation for restoring first signal or restoring second signal numerical value.
Further, in described audio output control method, described adaptive gain process specifically comprises:
Judge whether the signal amplitude of current input is greater than goal-selling amplitude, if then reduce current gain value, otherwise increase current gain value, and the yield value after increasing is less than or equal to default maxgain value.
Further, in described audio output control method, described adaptive gain process specifically comprises:
More formerly process the signal amplitude of gained amplitude limit first signal and amplitude limit second signal and the size of the gain process echo signal amplitude preset, when the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is less than default gain process echo signal amplitude, by default interpolator arithmetic, gain coefficient is done to amplify process and obtain new gain coefficient; When the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is greater than default gain process echo signal amplitude, reduces algorithm by presetting process is reduced to gain coefficient obtain new gain coefficient.
Further, in described audio output control method, the algorithm of described stereo process comprises simple mean algorithm or adds and algorithm, described in add with algorithm be have to keep digital signal precision, supplied with digital signal value is carried out to the addition calculation that tape symbol expansion ensures the precondition of not overflowing.
Further, in described audio output control method, described amplitude limiting processing follows formula: VolCur '=VolCur+VT* (VolTarget-VolCur), wherein VolCur is current signal value, VolTarget is default desired value, and VT is a volume-time constant depending on sample rate.
Further, in described audio output control method, before respectively stereo process being done to first signal and gain signal, second signal and gain signal, also comprise the identical extended shift process to first signal, second signal and gain signal.
Inventor additionally provides a kind of audio output control device simultaneously, comprises the first downmixing unit, gain unit, the second downmixing unit, clipping unit and restoration unit;
Described first downmixing unit is used for doing stereo process to the first signal inputted and second signal, obtains audio signal;
Described gain unit is used for doing adaptive gain process to audio signal, and described adaptive gain process specifically comprises: obtain gain signal after being multiplied with the signal value of the audio signal of input with adaptive gain coefficient;
Described second downmixing unit is used for making stereo process to first signal and gain signal, second signal and gain signal respectively, obtains audio mixing first signal and audio mixing second signal;
Described clipping unit is used for making amplitude limiting processing to audio mixing first signal and audio mixing second signal, obtains amplitude limit first signal and amplitude limit second signal;
Described restoration unit is used for making quantization digit restoration calculation to described amplitude limit first signal and amplitude limit second signal, obtain restoring first signal and restoring second signal, the quantization digit of amplitude limit first signal or amplitude limit second signal is restored to the quantization digit identical with second signal with the first signal of original input by described quantization digit restoration calculation, and in described quantization digit restoration calculation: be less than former maximum quantization figure place to the numerical value before quantization digit restoration calculation, with the numerical value after quantization digit restoration calculation for restoring first signal or restoring second signal numerical value; Former maximum quantization figure place is more than or equal to the numerical value before quantization digit restoration calculation, with the numerical value before quantization digit restoration calculation for restoring first signal or restoring second signal numerical value.
Further, in described audio output control device, the adaptive gain process that gain unit carries out specifically comprises:
Judge whether the signal amplitude of current input is greater than goal-selling amplitude, if then reduce current gain value, otherwise increase current gain value, and the yield value after increasing is less than or equal to default maxgain value.
Further, in described audio output control device, the adaptive gain process that gain unit carries out specifically comprises:
More formerly process the signal amplitude of gained amplitude limit first signal and amplitude limit second signal and the size of the gain process echo signal amplitude preset, when the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is less than default gain process echo signal amplitude, by default interpolator arithmetic, gain coefficient is done to amplify process and obtain new gain coefficient; When the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is greater than default gain process echo signal amplitude, reduces algorithm by presetting process is reduced to gain coefficient obtain new gain coefficient.
Further, in described audio output control device, the algorithm of the stereo process that the first downmixing unit or the second downmixing unit carry out comprises simple mean algorithm or adds and algorithm, described in add with algorithm be have to keep digital signal precision, supplied with digital signal value is carried out to the addition calculation that tape symbol expansion ensures the precondition of not overflowing.
Further, in described audio output control device, the amplitude limiting processing that clipping unit carries out follows formula: VolCur '=VolCur+VT* (VolTarget-VolCur), wherein VolCur is current signal value, VolTarget is default desired value, and VT is a volume-time constant depending on sample rate.
Further, in described audio output control device, also comprise extended shift unit, for before respectively stereo process being done with gain signal to first signal and gain signal, second signal at the second downmixing unit to the identical extended shift process of first signal, second signal and gain signal.
Be different from prior art, technique scheme exports as mixed layer sound channel signal after doing mixing with the signal of the sound channel of current input (dual track for conventional), automatic growth control is done to mixed layer sound channel signal gain, and after again mixing with original speech signal, after last volume controls to carry out soft gain compacting, export the audio digital signals finally meeting this product requirement export.Wherein gain control value and volume control value can carry out adaptive change according to the audio stream of current input, make output audio signal keep certain audio frequency envelope and the change of the audio stream in short time details compared with original input signal.
Accompanying drawing explanation
Fig. 1 is the flow chart of audio output control method described in an embodiment of the present invention;
Fig. 2 is the structural representation of audio output control device described in an embodiment of the present invention;
Fig. 3 is that the audio frequency of an embodiment of the present invention exports the comparison of wave shape figure before and after controlling;
Fig. 4 is that the audio frequency of an embodiment of the present invention exports the gain graded detail view before and after controlling.
Description of reference numerals:
1-first downmixing unit
2-gain unit
3-second downmixing unit
4-clipping unit
5-restoration unit
6-extended shift unit
Embodiment
By describe in detail technical scheme technology contents, structural feature, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Referring to Fig. 1, is the flow chart of audio output control method described in an embodiment of the present invention.Described method comprises the steps:
S1, to input first signal and second signal do stereo process, obtain audio signal;
S2, do adaptive gain process to audio signal, described adaptive gain process specifically comprises: obtain gain signal after being multiplied with the signal value of the audio signal of input with adaptive gain coefficient.
In adaptive gain process in this step, also comprise following content: judge whether the signal amplitude of current input is greater than goal-selling amplitude, if then reduce current gain value, otherwise increase current gain value, and the yield value after increasing is less than or equal to default maxgain value.And:
More formerly process the signal amplitude of gained amplitude limit first signal and amplitude limit second signal and the size of the gain process echo signal amplitude preset, when the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is less than default gain process echo signal amplitude, by default interpolator arithmetic, gain coefficient is done to amplify process and obtain new gain coefficient; When the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is greater than default gain process echo signal amplitude, reduces algorithm by presetting process is reduced to gain coefficient obtain new gain coefficient.
Only the signal after audio mixing is processed in this method, it is the process of compromising after considering operand and having considered current left and right acoustic channels envelope feature separately, such process can make the final left and right sound track signals envelope exported combine the feature of left and right acoustic channels, and the signal difference of the left and right acoustic channels opposite sex can not be amplified.Can ensure whether final products are that double horn or single loudspeaker list connect a certain sound channel like this, or the mixing of single loudspeaker connects two sound channels, there will not be the situation of signal envelope gross distortion or distorted signals.
S3, respectively stereo process is done to first signal and gain signal, second signal and gain signal, obtain audio mixing first signal and audio mixing second signal;
In present embodiment, the algorithm that the stereo process described in step S1 and step S3 adopts is simple mean algorithm.In other embodiments, can also adopt and add and algorithm, thisly add with the restrictive condition of algorithm for keeping digital signal precision, supplied with digital signal value be carried out to tape symbol expansion and ensure not overflow.In other execution mode, other common stereo process algorithms can also be taked.
In present embodiment, before respectively stereo process being done to first signal and gain signal, second signal and gain signal, also comprise the identical extended shift process of a pair first signal, second signal and gain signal.This is because, in order to realize the stereo process to first signal and gain signal, second signal and gain signal, need first to carry out identical signed extended shift process to this three, effectively unified to the extended shift of each signal to ensure in follow-up signal process, need the signal value be added not overflow after addition after ensureing expansion.
S4, amplitude limiting processing is done to audio mixing first signal and audio mixing second signal, obtain amplitude limit first signal and amplitude limit second signal;
In this step, amplitude limiting processing follows formula: VolCur '=VolCur+VT* (VolTarget-VolCur), and wherein VolCur is current signal value, and VolTarget is default desired value, and VT is a volume-time constant depending on sample rate.Amplitude limiting processing in this step achieves the soft amplitude limit function to the signal that upper step exports, and reaches product to the final restriction exporting max volume.Thus on digital audio territory, realize the order ground of the final gain value control that some hardware does not reach; Further, the output gain of hardware can, by final output gain precision controlling in very little scope, control to ultimate attainment by numeric field.
S5, quantization digit restoration calculation is done to described amplitude limit first signal and amplitude limit second signal, obtain restoring first signal and restoring second signal.
Wherein, the quantization digit of amplitude limit first signal or amplitude limit second signal is restored to the quantization digit identical with second signal with the first signal of original input by described quantization digit restoration calculation, and in described quantization digit restoration calculation: be less than former maximum quantization figure place to the numerical value before quantization digit restoration calculation, with the numerical value after quantization digit restoration calculation for restoring first signal or restoring second signal numerical value; Former maximum quantization figure place is more than or equal to the numerical value before quantization digit restoration calculation, with the numerical value before quantization digit restoration calculation for restoring first signal or restoring second signal numerical value.
Refer to Fig. 3, export the comparison of wave shape figure before and after controlling for carrying out audio frequency through audio output control method described in an embodiment of the present invention, top is original waveform, and below is treated waveform.Refer to Fig. 4, export the gain graded detail view before and after controlling for carrying out audio frequency through audio output control method described in an embodiment of the present invention, top is original output gain graded figure, and below is gain graded figure after treatment.
Audio output control method described in present embodiment exports as mixed layer sound channel signal after mainly doing mixing with the signal of the sound channel of current input (dual track for conventional), automatic growth control is done to mixed layer sound channel signal gain, and after again mixing with original speech signal, after last volume controls to carry out soft gain compacting, export the audio digital signals finally meeting this product requirement export.Wherein gain control value and volume control value can carry out adaptive change according to the audio stream of current input, make output audio signal keep certain audio frequency envelope and the change of the audio stream in short time details compared with original input signal.
Referring to Fig. 2, is the structural representation of audio output control device described in an embodiment of the present invention.Described audio output control device comprises the first downmixing unit 1, gain unit 2, second downmixing unit 3, clipping unit 4 and restoration unit 5;
Described first downmixing unit 1, for doing stereo process to the first signal inputted and second signal, obtains audio signal;
Described gain unit 2 is for doing adaptive gain process to audio signal, and described adaptive gain process specifically comprises: obtain gain signal after being multiplied with the signal value of the audio signal of input with adaptive gain coefficient;
Described second downmixing unit 3, for making stereo process to first signal and gain signal, second signal and gain signal respectively, obtains audio mixing first signal and audio mixing second signal;
Described clipping unit 4, for making amplitude limiting processing to audio mixing first signal and audio mixing second signal, obtains amplitude limit first signal and amplitude limit second signal;
Described restoration unit 5 is for making quantization digit restoration calculation to described amplitude limit first signal and amplitude limit second signal, obtain restoring first signal and restoring second signal, the quantization digit of amplitude limit first signal or amplitude limit second signal is restored to the quantization digit identical with second signal with the first signal of original input by described quantization digit restoration calculation, and in described quantization digit restoration calculation: be less than former maximum quantization figure place to the numerical value before quantization digit restoration calculation, with the numerical value after quantization digit restoration calculation for restoring first signal or restoring second signal numerical value; Former maximum quantization figure place is more than or equal to the numerical value before quantization digit restoration calculation, with the numerical value before quantization digit restoration calculation for restoring first signal or restoring second signal numerical value.
Further, in described audio output control device, the adaptive gain process that gain unit 2 carries out specifically comprises:
Judge whether the signal amplitude of current input is greater than goal-selling amplitude, if then reduce current gain value, otherwise increase current gain value, and the yield value after increasing is less than or equal to default maxgain value.
Further, in described audio output control device, the adaptive gain process that gain unit 2 carries out specifically comprises:
More formerly process the signal amplitude of gained amplitude limit first signal and amplitude limit second signal and the size of the gain process echo signal amplitude preset, when the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is less than default gain process echo signal amplitude, by default interpolator arithmetic, gain coefficient is done to amplify process and obtain new gain coefficient; When the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is greater than default gain process echo signal amplitude, reduces algorithm by presetting process is reduced to gain coefficient obtain new gain coefficient.
Further, in described audio output control device, the algorithm of the stereo process that the first downmixing unit 1 or the second downmixing unit 3 carry out comprises simple mean algorithm or adds and algorithm, described in add with algorithm be have to keep digital signal precision, supplied with digital signal value is carried out to the addition calculation that tape symbol expansion ensures the precondition of not overflowing.
Further, in described audio output control device, the amplitude limiting processing that clipping unit 4 carries out follows formula: VolCur '=VolCur+VT* (VolTarget-VolCur), wherein VolCur is current signal value, VolTarget is default desired value, and VT is a volume-time constant depending on sample rate.
Further, in described audio output control device, also comprise extended shift unit 6, for before respectively stereo process being done with gain signal to first signal and gain signal, second signal at the second downmixing unit 3 to the identical extended shift process of first signal, second signal and gain signal.
Illustrate that above-mentioned audio output control device realizes the mode of audio frequency output control function with a concrete implementing procedure below, this flow process comprises following step:
S1, the first downmixing unit 1 do stereo process to the first signal of input and second signal, obtain audio signal;
S2, gain unit 2 pairs of audio signal do adaptive gain process, and described adaptive gain process specifically comprises: obtain gain signal after being multiplied with the signal value of the audio signal of input with adaptive gain coefficient.
In the adaptive gain process that in this step, gain unit 2 carries out, also comprise following content: judge whether the signal amplitude of current input is greater than goal-selling amplitude, if then reduce current gain value, otherwise increase current gain value, and the yield value after increasing is less than or equal to default maxgain value.And:
More formerly process the signal amplitude of gained amplitude limit first signal and amplitude limit second signal and the size of the gain process echo signal amplitude preset, when the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is less than default gain process echo signal amplitude, by default interpolator arithmetic, gain coefficient is done to amplify process and obtain new gain coefficient; When the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is greater than default gain process echo signal amplitude, reduces algorithm by presetting process is reduced to gain coefficient obtain new gain coefficient.
In present embodiment, gain unit 2 only processes the signal after audio mixing, it is the process of compromising after considering operand and having considered current left and right acoustic channels envelope feature separately, such process can make the final left and right sound track signals envelope exported combine the feature of left and right acoustic channels, and the signal difference of the left and right acoustic channels opposite sex can not be amplified.Can ensure whether final products are that double horn or single loudspeaker list connect a certain sound channel like this, or the mixing of single loudspeaker connects two sound channels, there will not be the situation of signal envelope gross distortion or distorted signals.
S3, the second downmixing unit 3 make stereo process to first signal and gain signal, second signal and gain signal respectively, obtain audio mixing first signal and audio mixing second signal;
In present embodiment, the algorithm that the stereo process undertaken by the first downmixing unit 1 and the second downmixing unit 3 in step S1 and step S3 adopts is simple mean algorithm.In other embodiments, can also adopt and add and algorithm, thisly add with the restrictive condition of algorithm for keeping digital signal precision, supplied with digital signal value be carried out to tape symbol expansion and ensure not overflow.In other execution mode, other common stereo process algorithms can also be taked.
In present embodiment, before respectively stereo process being done to first signal and gain signal, second signal and gain signal, also comprise an identical extended shift process to first signal, second signal and gain signal undertaken by extended shift unit 6.This is because, in order to realize the stereo process to first signal and gain signal, second signal and gain signal, need first to carry out identical signed extended shift process to this three, effectively unified to the extended shift of each signal to ensure in follow-up signal process, need the signal value be added not overflow after addition after ensureing expansion.
S4, clipping unit 4 pairs of audio mixing first signals and audio mixing second signal make amplitude limiting processing, obtain amplitude limit first signal and amplitude limit second signal;
In this step, amplitude limiting processing follows formula: VolCur '=VolCur+VT* (VolTarget-VolCur), and wherein VolCur is current signal value, and VolTarget is default desired value, and VT is a volume-time constant depending on sample rate.In this step clipping unit 4 carry out amplitude limiting processing achieve soft amplitude limit function to the signal that upper step exports, reach product to the final restriction exporting max volume.Thus on digital audio territory, realize the order ground of the final gain value control that some hardware does not reach; Further, the output gain of hardware can, by final output gain precision controlling in very little scope, control to ultimate attainment by numeric field.
S5, restoration unit 5 make quantization digit restoration calculation to described amplitude limit first signal and amplitude limit second signal, obtain restoring first signal and restoring second signal.
Wherein, the quantization digit of amplitude limit first signal or amplitude limit second signal is restored to the quantization digit identical with second signal with the first signal of original input by described quantization digit restoration calculation, and in described quantization digit restoration calculation: be less than former maximum quantization figure place to the numerical value before quantization digit restoration calculation, with the numerical value after quantization digit restoration calculation for restoring first signal or restoring second signal numerical value; Former maximum quantization figure place is more than or equal to the numerical value before quantization digit restoration calculation, with the numerical value before quantization digit restoration calculation for restoring first signal or restoring second signal numerical value.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, all-purpose computer, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the flow chart of method, equipment (system) and computer program according to embodiment and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.
Claims (12)
1. an audio output control method, is characterized in that, comprises the steps:
Stereo process is done to the first signal inputted and second signal, obtains audio signal;
Do adaptive gain process to audio signal, described adaptive gain process specifically comprises: obtain gain signal after being multiplied with the signal value of the audio signal of input with adaptive gain coefficient;
Respectively stereo process is done to first signal and gain signal, second signal and gain signal, obtain audio mixing first signal and audio mixing second signal;
Amplitude limiting processing is done to audio mixing first signal and audio mixing second signal, obtains amplitude limit first signal and amplitude limit second signal;
Quantization digit restoration calculation is done to described amplitude limit first signal and amplitude limit second signal, obtain restoring first signal and restoring second signal, the quantization digit of amplitude limit first signal or amplitude limit second signal is restored to the quantization digit identical with second signal with the first signal of original input by described quantization digit restoration calculation, and in described quantization digit restoration calculation: be less than former maximum quantization figure place to the numerical value before quantization digit restoration calculation, with the numerical value after quantization digit restoration calculation for restoring first signal or restoring second signal numerical value; Former maximum quantization figure place is more than or equal to the numerical value before quantization digit restoration calculation, with the numerical value before quantization digit restoration calculation for restoring first signal or restoring second signal numerical value.
2. audio output control method as claimed in claim 1, it is characterized in that, described adaptive gain process specifically comprises:
Judge whether the signal amplitude of current input is greater than goal-selling amplitude, if then reduce current gain value, otherwise increase current gain value, and the yield value after increasing is less than or equal to default maxgain value.
3. the control method of audio frequency output as claimed in claim 1 or 2, it is characterized in that, described adaptive gain process specifically comprises:
More formerly process the signal amplitude of gained amplitude limit first signal and amplitude limit second signal and the size of the gain process echo signal amplitude preset, when the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is less than default gain process echo signal amplitude, by default interpolator arithmetic, gain coefficient is done to amplify process and obtain new gain coefficient; When the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is greater than default gain process echo signal amplitude, reduces algorithm by presetting process is reduced to gain coefficient obtain new gain coefficient.
4. the control method of audio frequency output as claimed in claim 1 or 2, it is characterized in that, the algorithm of described stereo process comprises simple mean algorithm or adds and algorithm, described in add with algorithm be have to keep digital signal precision, supplied with digital signal value is carried out to the addition calculation that tape symbol expansion ensures the precondition of not overflowing.
5. the control method of audio frequency output as claimed in claim 1 or 2, it is characterized in that, described amplitude limiting processing follows formula: VolCur '=VolCur+VT* (VolTarget-VolCur), wherein VolCur is current signal value, VolTarget is default desired value, and VT is a volume-time constant depending on sample rate.
6., in audio output control method as claimed in claim 1 or 2, before respectively stereo process being done to first signal and gain signal, second signal and gain signal, also comprise the identical extended shift process to first signal, second signal and gain signal.
7. an audio output control device, is characterized in that, comprises the first downmixing unit, gain unit, the second downmixing unit, clipping unit and restoration unit;
Described first downmixing unit is used for doing stereo process to the first signal inputted and second signal, obtains audio signal;
Described gain unit is used for doing adaptive gain process to audio signal, and described adaptive gain process specifically comprises: obtain gain signal after being multiplied with the signal value of the audio signal of input with adaptive gain coefficient;
Described second downmixing unit is used for making stereo process to first signal and gain signal, second signal and gain signal respectively, obtains audio mixing first signal and audio mixing second signal;
Described clipping unit is used for making amplitude limiting processing to audio mixing first signal and audio mixing second signal, obtains amplitude limit first signal and amplitude limit second signal;
Described restoration unit is used for making quantization digit restoration calculation to described amplitude limit first signal and amplitude limit second signal, obtain restoring first signal and restoring second signal, the quantization digit of amplitude limit first signal or amplitude limit second signal is restored to the quantization digit identical with second signal with the first signal of original input by described quantization digit restoration calculation, and in described quantization digit restoration calculation: be less than former maximum quantization figure place to the numerical value before quantization digit restoration calculation, with the numerical value after quantization digit restoration calculation for restoring first signal or restoring second signal numerical value; Former maximum quantization figure place is more than or equal to the numerical value before quantization digit restoration calculation, with the numerical value before quantization digit restoration calculation for restoring first signal or restoring second signal numerical value.
8. audio output control device as claimed in claim 7, it is characterized in that, the adaptive gain process that gain unit carries out specifically comprises:
Judge whether the signal amplitude of current input is greater than goal-selling amplitude, if then reduce current gain value, otherwise increase current gain value, and the yield value after increasing is less than or equal to default maxgain value.
9. audio output control device as claimed in claim 7 or 8, it is characterized in that, the adaptive gain process that gain unit carries out specifically comprises:
More formerly process the signal amplitude of gained amplitude limit first signal and amplitude limit second signal and the size of the gain process echo signal amplitude preset, when the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is less than default gain process echo signal amplitude, by default interpolator arithmetic, gain coefficient is done to amplify process and obtain new gain coefficient; When the signal amplitude formerly processing gained amplitude limit first signal and amplitude limit second signal is greater than default gain process echo signal amplitude, reduces algorithm by presetting process is reduced to gain coefficient obtain new gain coefficient.
10. audio output control device as claimed in claim 7 or 8, it is characterized in that, the algorithm of the stereo process that the first downmixing unit or the second downmixing unit carry out comprises simple mean algorithm or adds and algorithm, described in add with algorithm be have to keep digital signal precision, supplied with digital signal value is carried out to the addition calculation that tape symbol expansion ensures the precondition of not overflowing.
11. audio output control devices as claimed in claim 7 or 8, it is characterized in that, the amplitude limiting processing that clipping unit carries out follows formula: VolCur '=VolCur+VT* (VolTarget-VolCur), wherein VolCur is current signal value, VolTarget is default desired value, and VT is a volume-time constant depending on sample rate.
12. audio output control devices as claimed in claim 7 or 8, it is characterized in that, also comprise extended shift unit, for before respectively stereo process being done with gain signal to first signal and gain signal, second signal at the second downmixing unit to the identical extended shift process of first signal, second signal and gain signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510287165.6A CN105101011B (en) | 2015-05-29 | 2015-05-29 | Audio output control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510287165.6A CN105101011B (en) | 2015-05-29 | 2015-05-29 | Audio output control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105101011A true CN105101011A (en) | 2015-11-25 |
CN105101011B CN105101011B (en) | 2018-05-25 |
Family
ID=54580379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510287165.6A Active CN105101011B (en) | 2015-05-29 | 2015-05-29 | Audio output control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105101011B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611404A (en) * | 2015-12-31 | 2016-05-25 | 北京东方云图科技有限公司 | Method and device for automatically adjusting audio volume according to video application scenes |
WO2020107385A1 (en) * | 2018-11-30 | 2020-06-04 | 深圳市汇顶科技股份有限公司 | Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060045291A1 (en) * | 2004-08-31 | 2006-03-02 | Digital Theater Systems, Inc. | Method of mixing audio channels using correlated outputs |
CN1953488A (en) * | 2006-11-01 | 2007-04-25 | 华为技术有限公司 | Speech-mixing method and device for multipath speech signal |
CN102572588A (en) * | 2011-12-14 | 2012-07-11 | 中兴通讯股份有限公司 | Method and device for realizing audio mixing of set-top box |
CN102610235A (en) * | 2011-12-22 | 2012-07-25 | 深圳市万兴软件有限公司 | Sound mixing processing method, device and intelligent equipment |
US20120275277A1 (en) * | 2011-04-28 | 2012-11-01 | Yi-Ju Lien | Audio mixing method and audio mixing apparatus capable of processing and/or mixing audio inputs individually |
CN103677714A (en) * | 2013-12-09 | 2014-03-26 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2015
- 2015-05-29 CN CN201510287165.6A patent/CN105101011B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060045291A1 (en) * | 2004-08-31 | 2006-03-02 | Digital Theater Systems, Inc. | Method of mixing audio channels using correlated outputs |
CN1953488A (en) * | 2006-11-01 | 2007-04-25 | 华为技术有限公司 | Speech-mixing method and device for multipath speech signal |
US20120275277A1 (en) * | 2011-04-28 | 2012-11-01 | Yi-Ju Lien | Audio mixing method and audio mixing apparatus capable of processing and/or mixing audio inputs individually |
CN102572588A (en) * | 2011-12-14 | 2012-07-11 | 中兴通讯股份有限公司 | Method and device for realizing audio mixing of set-top box |
CN102610235A (en) * | 2011-12-22 | 2012-07-25 | 深圳市万兴软件有限公司 | Sound mixing processing method, device and intelligent equipment |
CN103677714A (en) * | 2013-12-09 | 2014-03-26 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611404A (en) * | 2015-12-31 | 2016-05-25 | 北京东方云图科技有限公司 | Method and device for automatically adjusting audio volume according to video application scenes |
CN105611404B (en) * | 2015-12-31 | 2019-01-08 | 杭州雅乐互动科技有限公司 | A kind of method and device automatically adjusting audio volume according to Video Applications scene |
WO2020107385A1 (en) * | 2018-11-30 | 2020-06-04 | 深圳市汇顶科技股份有限公司 | Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same |
Also Published As
Publication number | Publication date |
---|---|
CN105101011B (en) | 2018-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103888103B (en) | system and method for digital signal processing | |
US12058499B2 (en) | Audio processing method and device, terminal, and computer-readable storage medium | |
CN105830158A (en) | System and method for digital signal processing | |
CN207572065U (en) | Multi-channel audio adjusting device and audio playing equipment | |
EP3550424B1 (en) | Method for configuring wireless sound box, wireless sound box, and terminal device | |
CN110191221A (en) | Audio-frequency processing method, circuit and terminal | |
CN104753484A (en) | Volume control method for wireless loudspeaker boxes and terminal | |
CN103731797B (en) | A kind of digital camera audio processor with ten Hexamermis spp | |
CN104469603A (en) | Electronic device, frequency dividing method and frequency dividing device | |
CN103745734B (en) | Device and method for setting sound curve | |
CN102760437A (en) | Audio decoding device of control conversion of real-time audio track | |
CN103456334B (en) | Audio file play method and playing device | |
CN105101011A (en) | Audio output control method and device | |
US8116469B2 (en) | Headphone surround using artificial reverberation | |
CN107506168A (en) | volume adjusting method, device, terminal device and storage medium | |
CN106601268A (en) | Multimedia data processing method and device | |
CN107393568A (en) | Method, system and terminal equipment for recording multimedia file | |
CN105592231A (en) | Signal processing method, signal processing device, and signal processing equipment | |
CN106412689A (en) | Audio volume adjusting method and apparatus | |
CN203933928U (en) | A kind of DSP microphone sound effect processing system | |
CN104616679B (en) | A kind of method and device for improving Android system audio recording and reproducing quality | |
CN107889023B (en) | Intelligent sound effect power amplifier chip and intelligent sound effect switching method | |
CN202310063U (en) | Digital audio frequency processor | |
CN202930028U (en) | Digital home audio-visual system supporting high-definition audio decoding | |
CN207235088U (en) | Monaural bass intensifier, player |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Patentee after: Ruixin Microelectronics Co., Ltd Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Patentee before: Fuzhou Rockchips Electronics Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |