CN105224279A - A kind of audio output control method, control system and electronic equipment - Google Patents

A kind of audio output control method, control system and electronic equipment Download PDF

Info

Publication number
CN105224279A
CN105224279A CN201510603249.6A CN201510603249A CN105224279A CN 105224279 A CN105224279 A CN 105224279A CN 201510603249 A CN201510603249 A CN 201510603249A CN 105224279 A CN105224279 A CN 105224279A
Authority
CN
China
Prior art keywords
data signal
yield value
audio data
monaural audio
current time
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
Application number
CN201510603249.6A
Other languages
Chinese (zh)
Other versions
CN105224279B (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201510603249.6A priority Critical patent/CN105224279B/en
Publication of CN105224279A publication Critical patent/CN105224279A/en
Application granted granted Critical
Publication of CN105224279B publication Critical patent/CN105224279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of audio output control method, comprise: voiceband data signal is separated into multiple monaural audio data signal, judge whether the signal peak of monaural audio data signal current time is less than the signal peak in monaural audio data signal first moment, if, the signal peak of monaural audio data signal current time is updated to the signal peak in monaural audio data signal first moment, if not, the signal peak being not less than the monaural audio data signal current time of the signal peak in monaural audio data signal first moment is kept; The yield value of monaural audio data signal current time is adjusted to the first yield value of the monaural audio data signal current time required by user; Generate the monaural audio data signal of coupling, synthesis multichannel audb data signal.The present invention can make audio-visual playback equipment normally carry out audiovisual, there will not be the phenomenon that sound is suddenly big or suddenly small, ensures to link up normally between user.

Description

A kind of audio output control method, control system and electronic equipment
Technical field
The invention belongs to electronic technology field, in relating to a kind of control method and system, particularly relating to a kind of audio output control method, control system and electronic equipment.
Background technology
Current consumer electronics product updates very fast, a lot of product all reaches good functional effect again under the low hardware cost of pursuit, as flat board, intercom, remote visible is talked with, these product form have all entered the living space of low profit, each producer reduces hardware cost, a wherein important link is exactly to reduce the cost of dio Output Modules Codec, and a lot of producer directly uses the audio frequency only with DA (module that digital revolving die is intended) to export module to realize playback even.This hardware can not process rear output to the audio digital signals preparing to export, so we can run into a lot of scene, such as certain film source digital gain value with track self too small, we use when audio-visual playback equipment and just have no idea normally to carry out audiovisual, visual dialog also can run into the other side and talk from diverse location, pass the sound of coming suddenly big or suddenly small, causing cannot proper communication.Auto gain control method many is at present all do optimization for specific product or scene.
Therefore; how a kind of audio output control method, control system and electronic equipment are provided; often can run into time to solve use of the prior art audio-visual playback equipment cannot normal viewing; also can run into the other side during visual dialog to talk from diverse location; pass the sound of coming suddenly big or suddenly small; cause both call sides cannot the defect such as proper communication, become practitioner in the art's technical matters urgently to be resolved hurrily in fact.
Summary of the invention
The shortcoming of prior art in view of the above; the object of the present invention is to provide a kind of audio output control method, control system and electronic equipment; cannot normal viewing with often running into when audio-visual playback equipment in prior art for solving; also can run into the other side during visual dialog to talk from diverse location; pass the sound of coming suddenly big or suddenly small, cause both call sides cannot the problem of proper communication.
For achieving the above object and other relevant objects, one aspect of the present invention provides a kind of audio output control method, be applied to electronic equipment, described audio output control method comprises the following steps: step one, the digital audio data signals that described electronic equipment exports is separated into multiple monaural audio data signal, and calculates each signal index of described monaural audio data signal, step 2, described monaural audio data signal is detected, in predetermined time cycle, with the signal peak in described monaural audio data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described monaural audio data signal first moment, if, then the signal peak of described monaural audio data signal current time is updated to by force the signal peak in described monaural audio data signal first moment, and exported, if not, then keep the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment, and exported, step 3, is adjusted to the first yield value of the described monaural audio data signal current time required by user by the yield value of described monaural audio data signal current time according to the signal peak of the described monaural audio data signal current time exported and the output intensity that requires described voiceband data signal, the first yield value of described monaural audio data signal current time required by user is corresponding with the output intensity of the described monaural audio data signal required by user, step 4, the first yield value according to the described monaural audio data signal current time required by user generates the monaural audio data signal matched, and is multichannel audb data signal by the monaural audio data signal syntheses of coupling.
Alternatively, described step 2 also comprises: judge that described monaural audio data signal is multimedia audio data signal or voice audio data signal according to low noise detection mode.
Alternatively, described step 3 also comprises: calculate the difference of the output intensity of the signal peak of the described monaural audio data signal current time of described output and the described monaural audio data signal required by user to obtain the second yield value; Calculate the signal peak sum of the described monaural audio data signal current time of described first yield value and output, judge whether the signal peak sum of the described monaural audio data signal current time of described first yield value and output is greater than described voiceband data signal maximum of intensity, if, described first yield value will be upgraded, be that the duration continued to increase and the duration continuing to reduce are set to zero by described first yield value, and export described first yield value; If not, then continue to perform next step; Judge whether described first yield value is less than or equal to the second yield value, if so, judge that described first yield value is the duration whether duration continued to increase equals the first yield value and continue to increase, if, then upgrade the first yield value, export the first yield value after upgrading; If not, be the duration continued to increase by renewal first yield value, be that the duration continuing to reduce is set to zero by the first yield value, export described first yield value; If not, next step is performed; Judge whether described first yield value is greater than the second yield value, if not, export described first yield value; If so, judge that described first yield value is the duration whether duration continuing to reduce equals that the first yield value maintenance continues minimizing, if so, upgrade the first yield value, export the first yield value after upgrading; If not, be the duration continuing to reduce by renewal first yield value, be that the duration continued to increase is set to zero by the first yield value, export described first yield value.
Alternatively, if described first yield value is the duration continued to increase when equaling the duration that the first yield value continues to increase, the first yield value is upgraded with the first update mode prestored; If described first yield value be continue reduce duration equal first yield value keep continue reduce duration time, upgrade the first yield value with the second update mode prestored.
The present invention also provides a kind of audio frequency output control system on the other hand, be applied to electronic equipment, described audio frequency output control system comprises: channel separation module, and the voiceband data signal for being exported by described electronic equipment is separated into multiple monaural audio data signal, computing module, with described channel separation model calling, for calculating each signal index of described monaural audio data signal, detection module, be connected with described computing module, for detecting described monaural audio data signal, in predetermined time cycle, with the signal peak in described monaural audio data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described monaural audio data signal first moment, if, then call the update module for the signal peak of described monaural audio data signal current time being updated to by force the signal peak in described monaural audio data signal first moment, and the output module called for the signal peak after renewal is exported, if not, then call the maintenance module of the signal peak of the described monaural audio data signal current time for keeping the signal peak being not less than described monaural audio data signal first moment, and continue to call the signal peak that described output module exports described monaural audio data signal current time, gain adjustment module, be connected with described output module, for the signal peak according to the described monaural audio data signal current time exported and the output intensity that requires described voiceband data signal, the yield value of described monaural audio data signal current time be adjusted to the first yield value of the described monaural audio data signal current time required by user, the first yield value of described monaural audio data signal current time required by user is corresponding with the output intensity of the described monaural audio data signal required by user, audio processing modules, be connected with described gain adjustment module, for basis, the monaural audio data signal matched is generated to the first yield value of the described monaural audio data signal current time required by user, and be multichannel audb data signal by the monaural audio data signal syntheses of coupling
Alternatively, described detection module is also for judging that according to low noise detection mode described monaural audio data signal is multimedia audio data signal or voice audio data signal.
Alternatively, described gain adjustment module also comprises: the first computing unit, for calculating the difference of the output intensity of the described monaural audio data signal required by the signal peak of the described monaural audio data signal current time of output and user to obtain the second yield value; Second computing unit, is connected with described first computing unit, for calculating the signal peak sum of the described monaural audio data signal current time of described first yield value and output; First judging unit, be connected with described first computing unit and the second computing unit, whether the signal peak sum for the described monaural audio data signal current time judging described first yield value and output is greater than described voiceband data signal maximum of intensity, if, call the first updating block for upgrading described first yield value, the duration called for by described first yield value being duration and the lasting minimizing continued to increase is set to the setting unit of zero, and calls the output unit for exporting described first yield value; If not, then call for judging whether described first yield value is less than or equal to the second judging unit of the second yield value; Wherein, when described second judging unit judges that described first yield value is less than or equal to the second yield value, call for judging that described first yield value is the 3rd the judging unit whether duration continued to increase equals the duration that the first yield value continues to increase, if, then call described first updating block for upgrading the first yield value, and export the described output unit of the first yield value after upgrading; If not, call for upgrading the second updating block that the first yield value is the duration continued to increase, calling described setting unit is that the duration continuing to reduce is set to zero by the first yield value, and described output unit exports described first yield value; Described second judging unit judges whether described first yield value is greater than the second yield value, if not, calls described output unit and exports described first yield value; If, call for judging that described first yield value is the 4th the judging unit whether duration continuing to reduce equals that the first yield value maintenance continues the duration reduced, if, call described first updating block for upgrading the first yield value, and described output unit exports the first yield value after upgrading; If not, calling for upgrading the first yield value is the 3rd updating block continuing the duration reduced, and calling described setting unit is that the duration continued to increase is set to zero by the first yield value, and described output unit exports described first yield value.
Alternatively, if described first yield value is the duration continued to increase when equaling the duration that the first yield value continues to increase, described first updating block upgrades the first yield value with the first update mode prestored; If described first yield value be continue reduce duration equal first yield value keep continue reduce duration time, described first updating block upgrades the first yield value with the second update mode prestored.
Alternatively, if the signal peak sum of the described monaural audio data signal current time of described first yield value and output is greater than described voiceband data signal maximum of intensity, described first yield value is updated to the difference of the signal peak of the described monaural audio data signal current time of described voiceband data signal maximum of intensity and output by described first updating block.
Another aspect of the invention also provides a kind of electronic equipment, and described electronic equipment comprises: dio Output Modules, for outputting audio data signal; Be connected with described dio Output Modules, audio frequency output control system.
As mentioned above, audio output control method of the present invention, control system and electronic equipment, have following beneficial effect:
Audio output control method of the present invention, control system and electronic equipment can make audio-visual playback equipment normally carry out audio-visual browsing, there will not be the phenomenon that sound is suddenly big or suddenly small, and the communication between the user of guarantee is normal.
Accompanying drawing explanation
Fig. 1 is shown as audio output control method schematic flow sheet of the present invention.
Fig. 2 is shown as the idiographic flow schematic diagram of step S3 in audio output control method of the present invention.
Fig. 3 is shown as the idiographic flow schematic diagram of step S4 in audio output control method of the present invention.
Fig. 4 is shown as the idiographic flow schematic diagram of step S5 in audio output control method of the present invention.
Fig. 5 is shown as the theory structure schematic diagram of audio frequency output control system of the present invention.
Fig. 6 is shown as the theory structure schematic diagram of gain adjustment module in audio frequency output control system of the present invention.
Fig. 7 is shown as the theory structure schematic diagram of electronic equipment of the present invention.
Element numbers explanation
1 audio frequency output control system
11 parameter presets modules
12 channel separation modules
13 computing modules
14 detection modules
15 update module
16 output modules
17 keep module
18 gain adjustment module
19 audio processing modules
141 speech detection unit
142 peak detection units
181 first computing units
182 second computing units
183 first judging units
184 first updating blocks
185 setting units
186 output units
187 second judging units
188 the 3rd judging units
189 second updating blocks
190 the 4th judging units
191 the 3rd updating blocks
192 output signal computing units
193 multi-channel synthesization unit 1
S1 ~ S5 step
S41 ~ S55 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The know-why of audio output control method of the present invention and system is as follows:
The present invention the final output element of final audio digital signals increase digital signal processing reach put content outside product can normal viewing.It mainly comprises, parameter presets module, multichannel separation module, number of signals codomain modular converter, speech detection module, in short-term peak detection block, output gain adjusting module, output signal computing module, multichannel synthesis module.Can to the parameter used by some algorithms of preset parameter module installation as audio stream format before audio stream exports, audio sample rate, audio quantization precision, audio frequency exports target volume etc., multichannel separation module can carry out sound channel fractionation according to preset audio stream format, rear feeding number of signals codomain modular converter carries out the conversion of signal not on same area, then send into peak detection block and speech detection module in short-term to detect, upgrade the peak value of not input signal in the same time, current gain value inside timely intervention output gain adjusting module confirms, final output signal computing module carries out calculating according to current yield value and exports after carrying out supersaturation process, last multi-channel data processes rear feeding multichannel synthesis module.Complete the sound signal automatic growth control process of current frame length.
Embodiment one
The present embodiment provides a kind of audio output control method, and this control method is applied to electronic equipment, refers to Fig. 1, is shown as audio output control method schematic flow sheet.As shown in Figure 1, described audio output control method comprises following step:
S1, is separated into multiple monaural audio data signal by the voiceband data signal that described electronic equipment exports.In the present embodiment, the voiceband data signal exported by described electronic equipment according to the stream socket of voiceband data signal is that X (n) splits into multiple monaural audio data signal, i.e. X 1(n), X 2(n) ..., X l(n) ..., X m(n).
S2, calculates each signal index of described monaural audio data signal.In this step, the numerical value standard of carrying out between different for each described monaural audio data signal index changed, described signal index comprises amplitude, energy, intensity etc.Computing formula those skilled in the art of each signal index know, and are not described in detail in this.Such as, the energy size for sound signal embodies with decibel (dB) usually.
X L d B ( n ) = 20 × 1 g ( X L ( n ) X m a x ) Formula (1)
In formula (1) represent the signal gain value of L monophonic audio signal, X maxfor the maximal value that voiceband data signal intensity is corresponding, i.e. described voiceband data signal maximum of intensity, such as, value corresponding to 16 precision is 32767, and value corresponding to 20 precision is 8388607.
S3, described monaural audio data signal is detected, in predetermined time cycle T, with the signal peak in described monaural audio data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described monaural audio data signal first moment, if, then the signal peak of described monaural audio data signal current time is updated to by force the signal peak in described monaural audio data signal first moment, and exported, if not, then keep the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment, and exported.Refer to Fig. 2, be shown as the idiographic flow schematic diagram of step S3.As shown in Figure 3, described step S3 comprises:
S31, detecting described monaural audio data signal is multimedia audio data signal or voice audio data signal.Detect described monaural audio data signal according to the signal characteristic of monaural audio data signal and the low noise detection mode that prestores in step S31.Described low noise detection mode refers to and judges whether the voiceband data signal inputted there will be the signal peak X being judged as little assertive signal of long period according to the signal characteristic of voiceband data signal dB(n), if the frequency that the voiceband data signal with this kind of signal characteristic occurs is greater than the predetermined frequency, then judge that this voiceband data signal is as voice audio data signal, otherwise the voiceband data signal without this kind of signal characteristic is then judged to be multimedia audio data signal.
In S31 ' predetermined time cycle T, with the signal peak in described mono data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described mono data signal first moment, if so, then perform step S32 '; If not, then step S33 ' is performed.In the present embodiment, described predetermined period of time T can be subject to the testing result impact that monaural audio data signal described in speech detection in step S31 is multimedia audio data signal or voice audio data signal.
S32 ', the signal peak of described monaural audio data signal current time is updated to by force the signal peak in described mono data signal first moment, and the signal peak being updated to the monaural audio data signal current time of the signal peak in described mono data signal first moment is exported.Wherein, the signal peak being updated to the monaural audio data signal current time of the signal peak in described mono data signal first moment represents with P (n).In the present embodiment, if signal peak does not change in a period of time, in order to the gain control value of the little envelope below of the peak envelope impact before not allowing, or in order to allow the envelope of the signal stream of the data-signal exported increase all fast.
S33 ', keep the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment, and the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment is exported.Wherein, the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment represents with P (n).
S4, according to signal peak P (n) and the output intensity X that requires described voiceband data signal of the described monaural audio data signal current time exported reqthe yield value of described monaural audio data signal current time is adjusted to the first yield value G (n) of the described monaural audio data signal current time required by user; The first yield value G (n) of described monaural audio data signal current time required by user is corresponding with the output intensity of the described monaural audio data signal required by user.Refer to Fig. 3, be shown as the idiographic flow schematic diagram of step S4.Described step S4 comprises following step:
S41, calculates the output intensity X of signal peak P (n) of the described monaural audio data signal current time of described output and the described monaural audio data signal required by user reqdifference to obtain the second yield value G'(n).Described second yield value G'(n) computing formula be:
G'(n)=P (n)-X reqformula (2)
S42, calculates described first yield value G (n) and signal peak P (n) sum of the described monaural audio data signal current time of described output, namely calculates G (n)+P (n).
S43, judges whether described first yield value G (n) is greater than described voiceband data signal maximum of intensity X with signal peak P (n) sum of the described monaural audio data signal current time of described output max, namely judge G (n)+P (n) > X maxif so, perform step S44, be about to upgrade described first yield value, the difference of signal peak P (n) of the described monaural audio data signal current time of described voiceband data signal maximum of intensity and described output is updated to, i.e. G (n)=X by described first yield value maxdescribed first yield value is the duration T continued to increase by-P (n) 1n () and the first yield value are the duration T continuing to reduce 2n () is set to zero, and proceed to step S50, exports the first yield value after upgrading, namely exports G (n)=X max-P (n); If not, then continue to perform next step, namely perform step S45.
S45, judges whether described first yield value G (n) is less than or equal to the second yield value G'(n), if so, then perform step S46, if not, then perform step S47.
S46, judges that described first yield value is the duration T continued to increase 1n whether () equal the duration T that the first yield value continues to increase 1hold, if so, then perform step S48, namely upgrade the first yield value, and proceed to step S50, export the first yield value after upgrading; If not, then perform step S49, that is, by renewal first yield value be the duration T continued to increase 1n () is T 1n first yield value is the duration T continuing to reduce by ()+1 2n () is set to zero, do not upgrade the first yield value, and proceed to step S50, exports described first yield value, namely exports G (n).In the present embodiment, step S48 is the duration T continued to increase at described first yield value 1n () equals the duration T that the first yield value continues to increase 1holdthe first yield value G (n) is upgraded with the first update mode prestored.
Described first update mode is:
G (n)=G (n) < G max(G (n)+G 1step): G maxformula (3)
The concrete meaning of described first update mode is: meet G (n) < G in judgment condition maxtime, the first yield value is updated to G (n)+G 1 Δ, wherein G maxfor the maximal value that the first yield value prestored increases, G 1 Δfor continuing to increase in process often through T at the first yield value of prestoring 1holdincreasable step value after duration; G (n) < G is not met in judgment condition maxthat the first yield value is updated to the maximal value G of the first yield value increase prestored max.
S47, judges whether described first yield value G (n) is greater than the second yield value G'(n), if not, perform step S50, namely export described first yield value G (n); If so, step S51 is performed.
S51, judges that described first yield value is the duration T continuing to reduce 2n whether () equal the duration T that the first yield value keeps continuing to reduce 2hold, if so, perform step S52, namely upgrade the first yield value G (n), and proceed to step S50, export the first yield value after upgrading; If not, performing step S53, is the duration T continuing to reduce by renewal first yield value 2n () is T 2n first yield value is the duration T continued to increase by ()+1 1n () is set to zero, do not upgrade the first yield value, and proceed to step S50, exports described first yield value.In the present embodiment, step S52 is the duration T continuing to reduce at described first yield value 2n () equals the duration T that the first yield value keeps continuing to reduce 2holdtime, upgrade the first yield value with the second update mode prestored.
Described second update mode is:
G (n)=G (n) > G min(G (n)-G 2step): G minformula (4)
The concrete meaning of described second update mode is: meet G (n) > G in judgment condition mintime, the first yield value is updated to G (n)-G 2 Δs, wherein, G minthe minimum value that the first yield value prestored reduces, G 2 Δsfor continuing in minimizing process often through T at the first yield value of prestoring 2holdthe step value that duration back cover reduces; G (n) > G is not met in judgment condition mintime, the first yield value is updated to the minimum value G of the first yield value minimizing prestored min.
S5, according to the first yield value required described sound signal, namely generates according to the first yield value after the renewal of step S4 output the monaural audio data signal matched, and is multichannel by the monaural audio data signal syntheses of coupling.Refer to Fig. 4, be shown as the idiographic flow schematic diagram of step S5.As shown in Figure 4, described step S5 specifically comprises following two steps:
S54, the first yield value according to requiring described sound signal generates the monaural audio data signal matched, and carries out supersaturation conversion to the monaural audio data signal of coupling.In this step, according tox dB(n) withg (n) calculatemonaural audio data signal, in order to keep precision, the X'(n kept in the middle of when calculating) be high-precision value, and according to X maxrestriction carry out supersaturation conversion.
S55, synthesizes multichannel audb data signal to export multichannel audb data signal according to the stream socket of voiceband data signal again by the monaural audio data signal of coupling.
Audio output control method described in the present embodiment can make audio-visual playback equipment normally carry out audio-visual browsing, there will not be the phenomenon that sound is suddenly big or suddenly small, and the communication between the user of guarantee is normal.
Embodiment two
The present embodiment provides a kind of audio frequency output control system 1, is applied to electronic equipment.Refer to Fig. 5, be shown as the theory structure schematic diagram with audio frequency output control system.As shown in Figure 5, described audio frequency output control system comprises: parameter presets module 11, channel separation module 12, computing module 13, detection module 14, update module 15, output module 16, maintenance module 17, gain adjustment module 18 and audio processing modules 19.Wherein, described detection module 14 comprises speech detection unit 141 and peak detection unit 142.Described audio processing modules 19 comprises output signal computing unit 192 and multichannel and becomes unit 193.
Described parameter presets module 11 is for informing the output intensity X of the described monaural audio data signal required by the data flow characteristics of the voiceband data signal that described electronic equipment exports and user req.Wherein, described data flow characteristics comprises arrangement and the sound channel of voiceband data signal, such as, stereo, be that left and right acoustic channels cross arrangement or left and right acoustic channels are separated arrangement etc., the sampling rate of voiceband data signal, predetermined period of time T, and voiceband data signal quantified precision etc.
Described channel separation module 12 is separated into multiple monaural audio data signal for the voiceband data signal exported by described electronic equipment.In the present embodiment, the voiceband data signal exported by described electronic equipment according to the stream socket of voiceband data signal is that X (n) splits into multiple monaural audio data signal, i.e. X 1(n), X 2(n) ..., X l(n) ..., X m(n).
The computing module 13 be connected with described channel separation module 12 is for calculating each signal index of described monaural audio data signal.In this step, the numerical value standard of carrying out between different for each described monaural audio data signal index changed, described signal index comprises amplitude, energy, intensity etc.Computing formula those skilled in the art of each signal index know, and are not described in detail in this.Such as, the energy size for sound signal embodies with decibel (dB) usually.
X L d B ( n ) = 20 &times; 1 g ( X L ( n ) X m a x ) Formula (1)
In formula (1) represent the signal gain value of L monophonic audio signal, X maxfor the maximal value that voiceband data signal intensity is corresponding, i.e. described voiceband data signal maximum of intensity, such as, value corresponding to 16 precision is 32767, and value corresponding to 20 precision is 8388607.
The detection module 14 be connected with described computing module 13 is for detecting described monaural audio data signal.In described detection module 14 predetermined time cycle T, with the signal peak in described monaural audio data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described monaural audio data signal first moment, if, then the signal peak of described monaural audio data signal current time is updated to by force the signal peak in described monaural audio data signal first moment, and exported, if not, then keep the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment, and exported.In the present embodiment, described detection module 13 comprises speech detection unit 131 and peak detection unit 132, wherein,
Described speech detection unit 131 is multimedia audio data signal or voice audio data signal for detecting described monaural audio data signal.Described speech detection unit 131 detects described monaural audio data signal according to the signal characteristic of monaural audio data signal with the low noise detection mode prestored.Described low noise detection mode refers to and judges whether the voiceband data signal inputted there will be the signal peak X being judged as little assertive signal of long period according to the signal characteristic of voiceband data signal dB(n), if the frequency that the voiceband data signal with this kind of signal characteristic occurs is greater than the predetermined frequency, then judge that this voiceband data signal is as voice audio data signal, otherwise the voiceband data signal without this kind of signal characteristic is then judged to be multimedia audio data signal.
Described peak detection unit 132 is in predetermined time cycle T, with the signal peak in described mono data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described mono data signal first moment, if, then call the update module 15 for the signal peak of described monaural audio data signal current time being updated to by force the signal peak in described mono data signal first moment, and call the output module 16 that the signal peak for the monaural audio data signal current time of the signal peak by being updated to described mono data signal first moment exports.Wherein, the signal peak being updated to the monaural audio data signal current time of the signal peak in described mono data signal first moment represents with P (n).In the present embodiment, if signal peak does not change in a period of time, in order to the gain control value of the little envelope below of the peak envelope impact before not allowing, or in order to allow the envelope of the signal stream of the data-signal exported increase all fast.If not, then call the maintenance module 17 of the signal peak of the described monaural audio data signal current time for keeping the signal peak being not less than described monaural audio data signal first moment, and continue to call the signal peak that described output module 16 will be not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment and export.Wherein, the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment represents with P (n).In the present embodiment, in speech detection unit 131 described in described predetermined period of time T, monaural audio data signal described in speech detection is the testing result impact of multimedia audio data signal or voice audio data signal.
The gain adjustment module 18 be connected with described output module 16 is for according to signal peak P (n) of the described monaural audio data signal current time exported and the output intensity X that requires described voiceband data signal reqthe yield value of described monaural audio data signal current time is adjusted to the first yield value G (n) of the described monaural audio data signal current time required by user; The first yield value G (n) of described monaural audio data signal current time required by user is corresponding with the output intensity of the described monaural audio data signal required by user.Refer to Fig. 6, be shown as the theory structure schematic diagram of gain adjustment module.As shown in Figure 6, described gain adjustment module 18 comprises:
Described first computing unit 181 is for calculating the output intensity X of the described monaural audio data signal required by signal peak P (n) of the described monaural audio data signal current time of described output and user reqdifference to obtain described second yield value G'(n).Described second yield value G'(n) computing formula be pre-stored in described first computing unit 181, described first computing unit 181 is according to formula G'(n)=P (n)-X reqcalculate acquisition second yield value G'(n).
The second computing unit 182 be connected with described first computing unit 181, for calculating described first yield value G (n) and signal peak P (n) sum of the described monaural audio data signal current time exported, namely calculates G (n)+P (n).
Whether the first judging unit 183 be connected with described first computing unit 181 and the second computing unit 182 is respectively greater than described voiceband data signal maximum of intensity X for signal peak P (n) sum of the described monaural audio data signal current time judging described first yield value and output max, namely judge G (n)+P (n) > X maxif, call described first updating block 184, setting unit 185 and output unit 186, described first updating block 184 will be for upgrading described first yield value, the difference of described voiceband data signal maximum of intensity and preset signals peak value is updated to, i.e. G (n)=X by described first yield value max-P (n), described setting unit 185 is the duration T continued to increase for described first yield value 1n () and the first yield value are the duration T continuing to reduce 2n () is set to zero, described output unit 186, for exporting the first yield value after renewal, namely exports G (n)=X max-P (n); If not, then described second judging unit 187 is called.
Described second judging unit 187 be connected with described first judging unit 183, first updating block 184, setting unit 185 and output unit 186 respectively judges whether described first yield value G (n) is less than or equal to the second yield value G'(n), if, call described 3rd judging unit 188, described 3rd judging unit 188 is for judging that described first yield value is the duration T continued to increase 1n whether () equal the duration T that the first yield value continues to increase 1hold, when described first yield value is the duration T continued to increase 1n () equals the duration T that the first yield value continues to increase 1holdtime, call the first updating block 184 for upgrading the first yield value, and for exporting the described output unit 186 of the first yield value after renewal.Wherein, described first updating block 184
Be the duration T continued to increase at described first yield value 1n () equals the duration T that the first yield value continues to increase 1holdthe first yield value G (n) is upgraded with the first update mode prestored.Described first update mode is: G (n)=G (n) < G max(G (n)+G 1step): G max.The concrete meaning of described first update mode is: meet G (n) < G in judgment condition maxtime, the first yield value is updated to G (n)+G 1 Δ, wherein G maxfor the maximal value that the first yield value prestored increases, G 1 Δfor continuing to increase in process often through T at the first yield value of prestoring 1holdincreasable step value after duration; G (n) < G is not met in judgment condition maxthat the first yield value is updated to the maximal value G of the first yield value increase prestored max.When described first yield value is the duration T continued to increase 1n () is not equal to the duration T that the first yield value continues to increase 1holdtime, call the second updating block 189, setting unit 185, output unit 186, wherein, described second updating block 189 is the duration T continued to increase for upgrading the first yield value 1n () is T 1n ()+1, described setting unit 185 is for by the first yield value being the duration T continuing to reduce 2n () is set to zero, described output unit 186 is for exporting described first yield value, and this first yield value is not for upgrade the first yield value.
In the present embodiment, described second judging unit 187 is also for judging whether described first yield value G (n) is greater than the second yield value G'(n), if not, call described output unit 186 and export described first yield value G (n); If so, call the 4th judging unit 190, described 4th judging unit 190 is for judging that described first yield value is the duration T continuing to reduce 2n whether () equal the duration T that the first yield value keeps continuing to reduce 2hold, if so, continues to call the first updating block 184 and upgrade the first yield value G (n), and described output unit 186 exports the first yield value after upgrading; If not, call the 3rd updating block 191, setting unit 185, output unit 186, described 3rd updating block 191 is for by renewal first yield value being the duration T continuing to reduce 2n () is T 2n ()+1, described setting unit 185 is for being the duration T continued to increase by the first yield value 1n () is set to zero, described output unit 186 is for exporting described first yield value, and this first yield value is the first yield value do not upgraded.In the present embodiment, also prestore the second update mode in described first updating block 184, described first updating block 154 is the duration T continuing to reduce at described first yield value 2n () equals the duration T that the first yield value keeps continuing to reduce 2holdtime, upgrade the first yield value with the second update mode prestored.Described second update mode is: G (n)=G (n) > G min(G (n)-G 2step): G minthe concrete meaning of described second update mode is: meet G (n) > G in judgment condition mintime, the first yield value is updated to G (n)-G 2 Δs, wherein, G minthe minimum value that the first yield value prestored reduces, G 2 Δsfor continuing in minimizing process often through T at the first yield value of prestoring 2holdthe step value that duration back cover reduces; G (n) > G is not met in judgment condition mintime, the first yield value is updated to the minimum value G of the first yield value minimizing prestored min.
The first yield value that the audio processing modules 19 be connected with described gain adjustment module 18 requires described sound signal for basis, the first yield value namely upgraded according to described gain adjustment module 18 generates the monaural audio data signal matched, and is multichannel by the monaural audio data signal syntheses of coupling.In the present embodiment, described audio processing modules 19 specifically comprises output signal computing unit 192 and multi-channel synthesization unit 193:
Described output signal computing unit 192 generates to the first yield value that described sound signal requires the monaural audio data signal matched for basis, and carries out supersaturation conversion to the monaural audio data signal of coupling.In this step, according tox dB(n) withg (n) calculatemonaural audio data signal, in order to keep precision, the X'(n kept in the middle of when calculating) be high-precision value, and according to X maxrestriction carry out supersaturation conversion.
The multi-channel synthesization unit 193 be connected with described output signal computing unit 192 is for again synthesizing multichannel audb data signal to export multichannel audb data signal according to the stream socket of voiceband data signal by the monaural audio data signal of coupling.
The present embodiment also provides a kind of electronic equipment 2, refers to Fig. 7, is shown as the theory structure schematic diagram of electronic equipment.As shown in Figure 7, described electronic equipment 2 comprises the dio Output Modules 3 for outputting audio data signal, and the above-mentioned audio frequency output control system 1 be connected with described dio Output Modules 3.
In sum, audio output control method of the present invention and system can make audio-visual playback equipment normally carry out audiovisual, there will not be the phenomenon that sound is suddenly big or suddenly small, ensure that the communication between user is normal.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. an audio output control method, is applied to electronic equipment, it is characterized in that, described audio output control method comprises the following steps:
Step one, is separated into multiple monaural audio data signal by the voiceband data signal that described electronic equipment exports, and calculates each signal index of described monaural audio data signal;
Step 2, described monaural audio data signal is detected, in predetermined time cycle, with the signal peak in described monaural audio data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described monaural audio data signal first moment, if, then the signal peak of described monaural audio data signal current time is updated to by force the signal peak in described monaural audio data signal first moment, and exported, if not, then keep the signal peak being not less than the described monaural audio data signal current time of the signal peak in described monaural audio data signal first moment, and exported,
Step 3, is adjusted to the first yield value of the described monaural audio data signal current time required by user by the yield value of described monaural audio data signal current time according to the signal peak of the described monaural audio data signal current time exported and the output intensity that requires described voiceband data signal; The first yield value of described monaural audio data signal current time required by user is corresponding with the output intensity of the described monaural audio data signal required by user;
Step 4, the first yield value according to the described monaural audio data signal current time required by user generates the monaural audio data signal matched, and is multichannel audb data signal by the monaural audio data signal syntheses of coupling.
2. audio output control method according to claim 1, is characterized in that: described step 2 also comprises:
Judge that described monaural audio data signal is multimedia audio data signal or voice audio data signal according to low noise detection mode.
3. audio output control method according to claim 1, is characterized in that: described step 3 also comprises:
Calculate the difference of the output intensity of the signal peak of the described monaural audio data signal current time of described output and the described monaural audio data signal required by user to obtain the second yield value;
Calculate the signal peak sum of the described monaural audio data signal current time of described first yield value and output, judge whether the signal peak sum of the described monaural audio data signal current time of described first yield value and output is greater than described voiceband data signal maximum of intensity, if, described first yield value will be upgraded, be that the duration continued to increase and the duration continuing to reduce are set to zero by described first yield value, and export described first yield value; If not, then continue to perform next step;
Judge whether described first yield value is less than or equal to the second yield value, if so, judge that described first yield value is the duration whether duration continued to increase equals the first yield value and continue to increase, if, then upgrade the first yield value, export the first yield value after upgrading; If not, be the duration continued to increase by renewal first yield value, be that the duration continuing to reduce is set to zero by the first yield value, export described first yield value; If not, next step is performed;
Judge whether described first yield value is greater than the second yield value, if not, export described first yield value; If so, judge that described first yield value is the duration whether duration continuing to reduce equals that the first yield value maintenance continues minimizing, if so, upgrade the first yield value, export the first yield value after upgrading; If not, be the duration continuing to reduce by renewal first yield value, be that the duration continued to increase is set to zero by the first yield value, export described first yield value.
4. audio output control method according to claim 1, is characterized in that:
If described first yield value is the duration continued to increase when equaling the duration that the first yield value continues to increase, upgrade the first yield value with the first update mode prestored;
If described first yield value be continue reduce duration equal first yield value keep continue reduce duration time, upgrade the first yield value with the second update mode prestored.
5. an audio frequency output control system, is applied to electronic equipment, it is characterized in that, described audio frequency output control system comprises:
Channel separation module, the voiceband data signal for being exported by described electronic equipment is separated into multiple monaural audio data signal;
Computing module, with described channel separation model calling, for calculating each signal index of described monaural audio data signal;
Detection module, be connected with described computing module, for detecting described monaural audio data signal, in predetermined time cycle, with the signal peak in described monaural audio data signal first moment for benchmark, judge whether the signal peak of described monaural audio data signal current time is less than the signal peak in described monaural audio data signal first moment, if, then call the update module for the signal peak of described monaural audio data signal current time being updated to by force the signal peak in described monaural audio data signal first moment, and the output module called for the signal peak after renewal is exported, if not, then call the maintenance module of the signal peak of the described monaural audio data signal current time for keeping the signal peak being not less than described monaural audio data signal first moment, and continue to call the signal peak that described output module exports described monaural audio data signal current time,
Gain adjustment module, be connected with described output module, for the signal peak according to the described monaural audio data signal current time exported and the output intensity that requires described voiceband data signal, the yield value of described monaural audio data signal current time be adjusted to the first yield value of the described monaural audio data signal current time required by user; The first yield value of described monaural audio data signal current time required by user is corresponding with the output intensity of the described monaural audio data signal required by user;
Audio processing modules, be connected with described gain adjustment module, for basis, the monaural audio data signal matched is generated to the first yield value of the described monaural audio data signal current time required by user, and be multichannel audb data signal by the monaural audio data signal syntheses of coupling.
6. audio frequency output control system according to claim 5, is characterized in that: described detection module is also for judging that according to low noise detection mode described monaural audio data signal is multimedia audio data signal or voice audio data signal.
7. audio frequency output control system according to claim 5, is characterized in that: described gain adjustment module also comprises:
First computing unit, for calculating the difference of the output intensity of the described monaural audio data signal required by the signal peak of the described monaural audio data signal current time of output and user to obtain the second yield value;
Second computing unit, is connected with described first computing unit, for calculating the signal peak sum of the described monaural audio data signal current time of described first yield value and output;
First judging unit, be connected with described first computing unit and the second computing unit, whether the signal peak sum for the described monaural audio data signal current time judging described first yield value and output is greater than described voiceband data signal maximum of intensity, if, call the first updating block for upgrading described first yield value, the duration called for by described first yield value being duration and the lasting minimizing continued to increase is set to the setting unit of zero, and calls the output unit for exporting described first yield value; If not, then call for judging whether described first yield value is less than or equal to the second judging unit of the second yield value;
Wherein, when described second judging unit judges that described first yield value is less than or equal to the second yield value, call for judging that described first yield value is the 3rd the judging unit whether duration continued to increase equals the duration that the first yield value continues to increase, if, then call described first updating block for upgrading the first yield value, and export the described output unit of the first yield value after upgrading; If not, call for upgrading the second updating block that the first yield value is the duration continued to increase, calling described setting unit is that the duration continuing to reduce is set to zero by the first yield value, and described output unit exports described first yield value;
Described second judging unit judges whether described first yield value is greater than the second yield value, if not, calls described output unit and exports described first yield value; If, call for judging that described first yield value is the 4th the judging unit whether duration continuing to reduce equals that the first yield value maintenance continues the duration reduced, if, call described first updating block for upgrading the first yield value, and described output unit exports the first yield value after upgrading; If not, calling for upgrading the first yield value is the 3rd updating block continuing the duration reduced, and calling described setting unit is that the duration continued to increase is set to zero by the first yield value, and described output unit exports described first yield value.
8. audio frequency output control system according to claim 7, is characterized in that:
If described first yield value is the duration continued to increase when equaling the duration that the first yield value continues to increase, described first updating block upgrades the first yield value with the first update mode prestored;
If described first yield value be continue reduce duration equal first yield value keep continue reduce duration time, described first updating block upgrades the first yield value with the second update mode prestored.
9. audio frequency output control system according to claim 7, is characterized in that:
If the signal peak sum of the described monaural audio data signal current time of described first yield value and output is greater than described voiceband data signal maximum of intensity, described first yield value is updated to the difference of the signal peak of the described monaural audio data signal current time of described voiceband data signal maximum of intensity and output by described first updating block.
10. an electronic equipment, is characterized in that, described electronic equipment comprises:
Dio Output Modules, for outputting audio data signal;
Be connected with described dio Output Modules, as the audio frequency output control system as described in arbitrary in claim 5-9.
CN201510603249.6A 2015-09-21 2015-09-21 A kind of audio output control method, control system and electronic equipment Active CN105224279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510603249.6A CN105224279B (en) 2015-09-21 2015-09-21 A kind of audio output control method, control system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510603249.6A CN105224279B (en) 2015-09-21 2015-09-21 A kind of audio output control method, control system and electronic equipment

Publications (2)

Publication Number Publication Date
CN105224279A true CN105224279A (en) 2016-01-06
CN105224279B CN105224279B (en) 2018-08-28

Family

ID=54993282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510603249.6A Active CN105224279B (en) 2015-09-21 2015-09-21 A kind of audio output control method, control system and electronic equipment

Country Status (1)

Country Link
CN (1) CN105224279B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108925014A (en) * 2018-05-18 2018-11-30 安克创新科技股份有限公司 A kind of light source brightness control method, system and equipment
CN112803828A (en) * 2020-12-31 2021-05-14 上海艾为电子技术股份有限公司 Motor control method, control system and control chip

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665128A (en) * 2005-03-30 2005-09-07 哈尔滨工业大学 Multi-level auto-gain control integrated circuit system having gain indication function
CN101800520A (en) * 2010-02-25 2010-08-11 青岛海信移动通信技术股份有限公司 Realization method and realization system for automatic gain control
JP2010251937A (en) * 2009-04-14 2010-11-04 Alpine Electronics Inc Voice processor
CN102075829A (en) * 2009-11-24 2011-05-25 鸿富锦精密工业(深圳)有限公司 Volume adjusting system
CN102946520A (en) * 2012-10-30 2013-02-27 深圳创维数字技术股份有限公司 Channel volume automatic control method and digital television terminal
CN103248982A (en) * 2012-02-01 2013-08-14 哈曼贝克自动系统股份有限公司 Peak detection when adapting a signal gain based on signal loudness

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665128A (en) * 2005-03-30 2005-09-07 哈尔滨工业大学 Multi-level auto-gain control integrated circuit system having gain indication function
JP2010251937A (en) * 2009-04-14 2010-11-04 Alpine Electronics Inc Voice processor
CN102075829A (en) * 2009-11-24 2011-05-25 鸿富锦精密工业(深圳)有限公司 Volume adjusting system
CN101800520A (en) * 2010-02-25 2010-08-11 青岛海信移动通信技术股份有限公司 Realization method and realization system for automatic gain control
CN103248982A (en) * 2012-02-01 2013-08-14 哈曼贝克自动系统股份有限公司 Peak detection when adapting a signal gain based on signal loudness
CN102946520A (en) * 2012-10-30 2013-02-27 深圳创维数字技术股份有限公司 Channel volume automatic control method and digital television terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108925014A (en) * 2018-05-18 2018-11-30 安克创新科技股份有限公司 A kind of light source brightness control method, system and equipment
CN108925014B (en) * 2018-05-18 2020-05-08 安克创新科技股份有限公司 Light source brightness control method, system and equipment
CN112803828A (en) * 2020-12-31 2021-05-14 上海艾为电子技术股份有限公司 Motor control method, control system and control chip
CN112803828B (en) * 2020-12-31 2023-09-01 上海艾为电子技术股份有限公司 Motor control method, control system and control chip

Also Published As

Publication number Publication date
CN105224279B (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN101370108B (en) Image display device and method
CN104572009B (en) A kind of audio control method and device of adaptive external environment
EP3048779B1 (en) Sound volume adjusting method and device
US10362433B2 (en) Electronic device and control method thereof
CN101843119B (en) Hearing aid
US20140376873A1 (en) Video-audio processing device and video-audio processing method
CA2700911A1 (en) Device and method for generating a multi-channel signal including speech signal processing
CN102981422A (en) Volume adjusting method and system
DE102008039276A1 (en) Sound processing apparatus, apparatus and method for controlling the gain and computer program
US9980071B2 (en) Audio processor for orientation-dependent processing
CN106797523A (en) Audio frequency apparatus
CN103811023A (en) Audio processing device, method and program
CN105224279A (en) A kind of audio output control method, control system and electronic equipment
CN104683920A (en) Method and device for realizing smooth rise and fall of sound volume
KR20180060793A (en) Electronic apparatus and the control method thereof
CN106293599A (en) A kind of output control method, electronic equipment and output system
US9185497B2 (en) Method and computer program product of processing sound segment and hearing aid
CN104345880B (en) The method and electronic equipment of a kind of information processing
CN104349244B (en) A kind of information processing method and electronic equipment
US20120109645A1 (en) Dsp-based device for auditory segregation of multiple sound inputs
JP4587916B2 (en) Audio signal discrimination device, sound quality adjustment device, content display device, program, and recording medium
JP2013080994A (en) Voice processor, voice processing method, and voice processing program
CN111478675B (en) Audio signal processing system, audio signal processing method and electronic equipment
CN211860471U (en) Intelligent sound box
CN103179490A (en) Sound processing apparatus, sound system and sound processing method

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 350000 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.