CN105553435A - Method and apparatus for presetting audio gain curve - Google Patents

Method and apparatus for presetting audio gain curve Download PDF

Info

Publication number
CN105553435A
CN105553435A CN201510947936.XA CN201510947936A CN105553435A CN 105553435 A CN105553435 A CN 105553435A CN 201510947936 A CN201510947936 A CN 201510947936A CN 105553435 A CN105553435 A CN 105553435A
Authority
CN
China
Prior art keywords
audio
passage
regulated
amplitude
reference point
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.)
Pending
Application number
CN201510947936.XA
Other languages
Chinese (zh)
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201510947936.XA priority Critical patent/CN105553435A/en
Publication of CN105553435A publication Critical patent/CN105553435A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention provides a method and an apparatus for presetting an audio gain curve. The method comprises: acquiring a maximum audio amplitude value of each volume reference point under a reference channel; acquiring a maximum audio amplitude value of each volume reference point under a channel to be regulated; comparing the maximum audio amplitude values of the reference channel with the maximum audio amplitude values of the channel to be regulated; and according to comparison results, regulating an audio gain curve of the channel to be regulated to obtain and store an audio gain curve of each volume reference point under the channel to be regulated, so that signals in different channels can be respectively regulated according to an audio gain curve preset by the reference channel and different audio gain curves can be preset to enable maximum audio amplitude values of audio signals encoded by I2S (Inter-IC Sound) under each volume reference point to be equal, and the audio signals of power amplifiers, which are input according to the audio gain curve under different channels, have the same amplitude value, and thus, the problem of output sound mutation caused by different encoding and decoding modes of different signal sources is avoided.

Description

A kind of method of preset audio gain curve and device
Technical field
The present invention relates to signal processing technology field, particularly relate to a kind of method and device of preset audio gain curve.
Background technology
In order to meet the different demands of people to video pictures, it is for you to choose that existing electronic equipment arranges different signal source input interfaces usually, and the signal source as TV has: HDMI, AV, VGA, TV, DTV etc.The audio frequency process block diagram of existing electronic equipment as shown in Figure 1, the audio signal in unlike signal source is by each channel signal input module 101, tone control 103 is entered again after audio decoder module 102 is decoded, the volume that tone control 103 inputs according to user input 104 and the preset audio signal of audio gain curve to unlike signal source regulate, then after power amplifier module 106 amplifies, export to loud speaker 107 after sampling and I2S coding module 105 are encoded.
Known by the television audio signals processing procedure of Fig. 1, generally identical owing to inputting the amplitude of standard audio signal, user, when switching different passage, occasionally has loudspeaker sound to undergo mutation phenomenon.Discovery is analyzed through inventor, the audio signal received due to unlike signal source interface adopts different code encoding/decoding mode usually, and then the factor such as sample frequency in different code encoding/decoding mode is different, even if the audio frequency signal amplitude that the audio signal of same magnitude exports after different audio coding decoding is also by different.When inputting the standard audio signal of same magnitude, due to same audio gain curve preset under different passage, therefore user input volume also same case time gain range identical, but because encoding and decoding can cause the difference of output audio signal amplitude, so user can experience loud speaker export sound have jumping phenomenon.
Summary of the invention
Embodiments of the invention provide a kind of method and device of preset audio gain curve, the problem of output sound sudden change during in order to solve switching signal source.
For achieving the above object, the method for a kind of preset audio gain curve that the embodiment of the present invention provides, comprising:
The maximal audio amplitude of each volume reference point under acquisition reference channel;
Obtain the maximal audio amplitude of each volume reference point under passage to be regulated;
With reference to the maximal audio amplitude of passage and the maximal audio amplitude com parison of passage to be regulated;
Correct the audio gain curve of passage to be regulated according to comparative result, obtain the audio gain curve after the correction of described passage to be regulated and store.
The method of the preset audio gain curve of the another kind that the embodiment of the present invention provides, comprising:
The audio gain curve of Pre-set reference passage in tone control, under resolving each volume reference point of described reference channel, I2S encoded audio signal is to obtain maximal audio amplitude, and stores the maximal audio amplitude under each volume reference point described;
The maximal audio amplitude of each volume reference point described under obtaining passage to be regulated, compares with the maximal audio amplitude under each volume reference point of the described reference channel of storage, to correct the audio gain curve under described passage to be regulated;
Store the audio gain curve after the correction of described passage to be regulated.
The device of a kind of preset audio gain curve that the embodiment of the present invention provides, comprising:
Acquisition module, for obtaining the maximal audio amplitude of reference channel and passage to be regulated under each volume reference point respectively;
Comparison module, for comparing with reference to the maximal audio amplitude of passage and the maximal audio amplitude of passage to be regulated;
Tone control, for regulating the audio gain curve of passage to be regulated according to comparative result, obtains the audio gain curve after described channel correcting to be regulated and stores.
In order to overcome the deficiencies in the prior art, embodiments provide a kind of method of preset audio gain curve, first according to the preset audio gain curve of reference channel, then the maximal audio amplitude of each volume reference point under reference channel is obtained, and be stored in memory module EEPROM, obtain the maximal audio amplitude of each volume reference point under passage to be regulated more respectively, and compare with the maximal audio amplitude of reference channel, to regulate the audio gain curve of passage to be regulated, and the maximal audio amplitude of each volume reference point is identical with reference channel under making passage to be regulated, obtain the audio gain curve of each volume reference point under passage to be regulated and store.Therefore, audio gain curve preset according to reference channel under unlike signal passage regulates and preset different audio gain curve respectively, to make the maximal audio amplitude through the audio signal of I2S coding under each volume reference point identical, also identical according to the audio frequency signal amplitude of its audio gain curve input power amplifier under so different passage, therefore preset same audio gain curve under unlike signal passage is avoided in prior art, and once encoding and decoding cause audio amplitude to change, maximal audio amplitude through I2S coding output audio signal also will change and then cause sound volume mutation problem.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the audio frequency process block diagram of existing electronic equipment;
The method flow schematic diagram of a kind of preset audio gain curve that Fig. 2 provides for the embodiment of the present invention one;
The apparatus structure schematic diagram of a kind of preset audio gain curve that Fig. 3 provides for the embodiment of the present invention two;
The method flow schematic diagram of a kind of preset audio gain curve that Fig. 4 provides for the embodiment of the present invention three.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Consult Fig. 3, in electronic equipment, the audio signal in unlike signal source is by each channel signal input module 101, tone control 103 is entered again after audio decoder module 102 is decoded, the volume that tone control 104 inputs according to user's input module 103 searches corresponding audio gain from preset audio gain curve, then, after it being encoded by sampling and I2S coding module 105, after power amplifier module 106 amplifies, loud speaker 107 is exported to.The present invention is on the basis of above-mentioned audio conditioning apparatus, add I2S analysis module 301, acquisition module 302, memory module 303 and comparison module 304, voice frequency regulating method after its increase is: on the basis of above audio-frequency processing method, first the audio gain curve of Pre-set reference passage in tone control 103, then in I2S analysis module 301, I2S parsing is carried out to the audio signal of each volume reference point under the reference channel after I2S coding and obtain voice data, acquisition module 302 obtains the maximal audio amplitude of reference channel under each volume reference point according to this voice data, and be stored in memory module EEPROM303, the method identical with reference channel is adopted to obtain the maximal audio amplitude of passage to be regulated under each volume reference point by I2S analysis module 301 and acquisition module 302 again, by the maximal audio amplitude com parison of the maximal audio amplitude of passage to be regulated with the reference channel read from memory module 303 in comparison module 304, tone control 104 will regulate the audio gain curve of passage to be regulated according to comparative result, make the maximal audio amplitude of each volume reference point under passage to be regulated identical with reference channel, obtain the audio gain curve of passage to be regulated and be stored in tone control 104.
Therefore, the audio gain curve that the presetter device increasing the audio gain curve after module can make unlike signal passage preset according to reference channel regulates and preset different audio gain curve respectively, identical with the maximal audio amplitude realized through the audio signal of I2S coding under each volume reference point, also identical according to the audio frequency signal amplitude of its audio gain curve input power amplifier under so different passage, when therefore can avoid the audio signal that in prior art, under unlike signal passage, input range is identical, due to only preset same audio gain curve in tone control 104, once encoding and decoding cause output audio signal amplitude to change, maximal audio amplitude through I2S coding module 105 output audio signal also will change and then cause the problem of sound volume mutation.
Embodiment one
The embodiment of the present invention one provides a kind of method of preset audio gain curve, as shown in Figure 2, comprising:
Step 201, the maximal audio amplitude of each volume reference point under acquisition reference channel.
Example, each volume examination point is set to 0,25,50,75,100 for user's volume.
Concrete, before step 201, the first audio gain curve of Pre-set reference passage in tone control, confirms that loud speaker power output reaches the performance number of expection under each volume reference point, wherein, audio gain curve reflects the gain range of each volume subaudio frequency adjuster.Then receive the input signal of reference channel, and input signal is decoded obtain the audio signal of reference channel, by the Signal transmissions after coding to tone control.Tone control regulates according to the preset gain of audio gain curve to decoded audio signal, then the audio signal after adjustment is sent to sampling and I2S coding module.With I2S protocol transmission to power amplifier module before, using I2Sclock as clock, I2S parsing is carried out to encoded audio signal, obtain digitized voice data, then the amplitude of voice data when user's volume reference point is 0 in a period of time is gathered, by successively comparing maximal audio amplitude when to obtain user's volume reference point be 0, and maximal audio amplitude when to obtain user's volume reference point be successively 25,50,75,100, by the maximal audio amplitude of the reference channel under obtained 5 volumes stored in memory module EEPROM.When carrying out gain-adjusted to passage to be regulated, from memory module EEPROM, read the maximal audio amplitude under corresponding user's volume.
Step 202, obtains the maximal audio amplitude of each volume reference point under passage to be regulated.
Concrete, receive the input signal of passage to be regulated, and input signal is decoded obtain the audio signal of passage to be regulated, by the Signal transmissions after coding to tone control.Tone control regulates this audio signal according to preset gain curve, and by the audio signal transmission after adjustment to sampling and I2S coding module.Because electronic equipment has different signal sources, comprise simulated audio signal and digital audio and video signals, therefore needing to judge that passage to be regulated inputs is digital audio and video signals or simulated audio signal, when passage to be regulated input be simulated audio signal time, need through ADC conversion after carry out I2S coding; When input be digital audio and video signals time, directly will carry out I2S coding.Be no matter simulated audio signal or digital audio and video signals all will with I2S protocol transmission to power amplifier module before, using I2Sclock as clock, I2S parsing is carried out to encoded audio signal, obtain digitized voice data, then the amplitude of the voice data of the passage to be regulated when user's volume reference point is 0 in a period of time is gathered, by successively comparing the passage maximal audio amplitude to be regulated when to obtain user's volume reference point be 0, and the passage maximal audio amplitude to be regulated when to obtain user's volume reference point be successively 25,50,75,100.
Further, to the audio signal through I2S protocol analysis under each volume reference point in the present embodiment, carry out collecting the maximal audio amplitude under this passage.Suppose to collect the maximal audio amplitude under this passage after power amplifier module, the audio signal exported due to power amplifier module has been converted into analog AC signal, therefore needing the interchange through complexity to turn DC circuit could as the preset voltage of voltage comparator, make circuit more complicated like this, cost is higher; Secondly, audio signal exports after power amplifier module amplifies from input, then gets back to tone control through feedback loop, makes the automatic control of whole process always lag behind audio input signal, is unfavorable for the stability of system.And the present embodiment is before audio signal transmission to power amplifier module, resolved by software control I2S and obtain digitized voice data, and obtain the maximal audio amplitude of each volume reference point in a period of time, complete the maximal audio amplitude com parison of this maximal audio amplitude and reference channel, the final volume regulating passage to be regulated according to comparative result, so neither need to increase extra circuit, also there will not be delayed phenomenon.
Step 203, with reference to the maximal audio amplitude of passage and the maximal audio amplitude com parison of passage to be regulated.
Concrete, because audio gain during user's volume input different value is different, the maximal audio amplitude of audio signal output is also different thereupon, therefore needs under same subscriber volume, the maximal audio amplitude of read reference channel and the maximal audio amplitude of passage to be regulated is compared.
Step 204, regulates the audio gain curve of this passage to be regulated according to comparative result, to make the maximal audio amplitude of each volume reference point in this passage to be regulated identical with reference channel, obtain the audio gain curve of this passage to be regulated and store.
Concrete, by the maximal audio amplitude of each volume reference point under acquisition passage to be regulated, compare with the maximal audio amplitude of each volume reference point under the reference channel stored, if the maximal audio amplitude of passage to be regulated is greater than the maximal audio amplitude of reference channel, then reduce the audio gain on channel audio gain curve to be regulated; If the maximal audio amplitude of passage to be regulated is less than the maximal audio amplitude of reference channel, then increase the audio gain on channel audio gain curve to be regulated, to make passage to be regulated identical with the maximal audio amplitude of each volume reference point under reference channel, to obtain the correcting gain curve of passage to be regulated, then, the audio gain curve after the correction of passage to be regulated is stored.
Example, when user's volume is 0, maximal audio amplitude when channel audio signal to be regulated can obtain volume 0 by step 202, then the maximal audio gain of reference channel when volume is 0 in memory module is read, the maximal audio amplitude of this maximal audio gain and passage to be regulated is compared, if the maximal audio amplitude of passage to be regulated is greater than the maximal audio amplitude of reference channel, then reduce the audio gain on channel audio gain curve to be regulated; If the maximal audio amplitude of passage to be regulated is less than the maximal audio amplitude of reference channel, then increase the audio gain on channel audio gain curve to be regulated.And then the audio gain of passage to be regulated when regulating user volume to be 25,50,75,100 successively, finally obtain the audio gain curve of the passage to be regulated after correcting and store this curve.
Further, the audio signal of each passage is all sampled above-mentioned bearing calibration, finally obtains the audio gain curve of each passage and is stored in tone control in order to calling.When electronic equipment is from no signal source state or when being switched to destination channel from a certain signalling channel, audio signal in destination channel obtains audio signal through audio decoder, this audio signal enters tone control, then the audio gain curve corresponding to invocation target passage, described audio gain curve is searched the audio gain corresponding to active user's volume, regulate according to the audio signal of this audio gain to destination channel, and then the audio signal after regulating is exported after I2S coding and power amplifier amplify.
Embodiments provide a kind of method of preset audio gain curve, first according to the preset audio gain curve of reference channel, then the maximal audio amplitude of each volume reference point under reference channel is obtained, and be stored in memory module EEPROM, obtain the maximal audio amplitude of each volume reference point under passage to be regulated more respectively, and compare with the maximal audio amplitude of reference channel, to regulate the audio gain curve of passage to be regulated, and the maximal audio amplitude of each volume reference point is identical with reference channel under making this passage to be regulated, obtain the audio gain curve of each volume reference point under passage to be regulated and store.Therefore, audio gain curve preset according to reference channel under unlike signal passage regulates and preset different audio gain curve respectively, and the maximal audio amplitude of audio signal through I2S coding under making each volume reference point under different audio gain curve is identical, like this, also identical according to the audio frequency signal amplitude of its audio gain curve input power amplifier under different passage, therefore preset same audio gain curve under unlike signal passage is avoided in prior art, and once encoding and decoding cause audio amplitude to change, maximal audio amplitude through I2S coding output audio signal also will change and then cause sound volume mutation problem.
Embodiment two
The embodiment of the present invention two provides a kind of device of preset audio gain curve, as shown in Figure 3, comprising:
I2S parsing module 301, for solving the voice data of described reference channel and passage to be regulated respectively by inner parsing module by the audio signal of the reference channel after I2S coding and passage to be regulated;
Acquisition module 302, for obtaining the maximal audio amplitude of each volume reference point under reference channel; And obtain the maximal audio amplitude of each volume reference point under passage to be regulated;
Memory module 303, for the maximal audio amplitude of each volume reference point under stored reference passage;
Comparison module 304, for reference to the maximal audio amplitude of passage and the maximal audio amplitude com parison of passage to be regulated;
Tone control 104, for regulating the audio gain curve of passage to be regulated according to comparative result, obtains the audio gain curve of each volume reference point under passage to be regulated and stores.
Preferably, described acquisition module 302 specifically for:
The amplitude of the described voice data of each volume reference point under collection a period of time internal reference passage; The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one; The maximal audio amplitude of reference channel under each volume reference point is read from memory module; And
Gather the amplitude of the described voice data of each volume reference point under passage to be regulated in a period of time; The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one; And
The maximal audio amplitude of reference channel is read from memory module.
Preferably, described tone control 104 specifically for:
According to the preset audio gain curve of reference channel; And
Under same subscriber volume reference point, if the maximal audio amplitude of passage to be regulated is greater than the maximal audio amplitude of reference channel, then reduce the audio gain of passage to be regulated, if the maximal audio amplitude of passage to be regulated is less than the maximal audio amplitude of reference channel, then increase the audio gain of passage to be regulated, finally obtain the audio gain curve of passage to be regulated, and store this audio gain curve.
Preferably, the device of described preset audio gain curve also comprises:
Each channel signal input module 101, for inputting the audio signal of reference channel and the same amplitude from the passage to be regulated in unlike signal source;
Audio decoder module 102, carries out audio decoder respectively for the signal inputted by different passage, obtains the audio signal under each passage;
User's volume input module 103, for inputting user's volume;
Sampling and I2S coding module 105, for simulated audio signal is become digital audio and video signals through sample conversion, then carry out I2S coding; Digital audio and video signals is directly carried out I2S coding;
Power amplifier module 106, for outputting to loud speaker by after the amplification of the audio signal after adjustment;
Loud speaker 107, for output audio signal.
Concrete, first according to reference channel preset audio gain curve in tone control 104, then, after the signal of reference channel is inputted by each channel signal input module 101, obtain audio signal through audio decoder module 102 decoding, and be transferred to tone control 104.Tone control 104 regulates decoded audio signal according to user's volume of preset gain curve and the input of user's volume module 103, and is transferred to sampling and I2S coding module 105.In sampling and I2S coding module 105, need to judge that this audio signal is digital audio and video signals or simulated audio signal, if simulated audio signal carries out I2S coding, again if digital audio and video signals then directly carries out I2S coding after then needing sampling.Audio signal after coding enters into I2S parsing module 301, the voice data obtaining this audio signal is resolved by I2S, then the amplitude of each volume reference point subaudio frequency data in a period of time is gathered by acquisition module 302, and by the amplitude of the described voice data of same subscriber volume under each volume reference point respectively one by one comparison obtain all maximal audio amplitudes, and to be deposited in memory module 303.The signal of passage to be regulated is by after each channel signal input module 101 input, the same with the signal of reference channel, after audio decoder module 102, tone control 104, sampling and I2S coding module 105, I2S parsing module 301 and acquisition module 302, finally obtain the maximal audio amplitude under each volume reference point.Then acquisition module 302 will read the maximal audio amplitude of reference channel under each volume reference point from memory module 303, and compare with the maximal audio amplitude of each volume reference point under passage to be regulated in comparison module 304, if the maximal audio amplitude of passage to be regulated is greater than the maximal audio amplitude of reference channel, then reduce the audio gain of passage to be regulated; If the maximal audio amplitude of passage to be regulated is less than the maximal audio amplitude of reference channel, then increase the audio gain of passage to be regulated.Tone control 104 is according to the audio gain curve under the calibration of the output results of comparison module 304 passage to be regulated, to make passage to be regulated identical with the maximal audio amplitude of each volume reference point under reference channel, and then obtain the audio gain curve of the passage to be regulated after correcting, and be stored in tone control 104.
Further, the audio signal of each passage is all adopted above-mentioned control method, and by the audio gain profile memory that finally obtains in tone control 104 in order to calling.When electronic equipment is switched to destination channel from Src Chan, the signal of destination channel enters audio decoder module 102 through each channel signal input module 101, audio decoder module 102 obtains audio signal after decoding to this signal, by this audio signal transmission to tone control 104.The audio gain curve of tone control 104 invocation target passage, search audio gain corresponding on audio gain curve according to active user's volume of user's volume input module 103 input again, then regulate according to the audio signal of this audio gain to destination channel.Audio signal after adjustment, exports through loud speaker 107 after power amplifier module 106 pairs of audio signals amplifications to power amplifier module 106 through sampling and the coded transmission of I2S coding module 105.
Embodiments provide a kind of device of preset audio gain curve, first according to reference channel preset audio gain curve in tone control 104, then the maximal audio amplitude of each volume reference point under reference channel is obtained by acquisition module 302, and be stored in memory module 303, the maximal audio amplitude of each volume reference point under passage to be regulated is obtained again respectively by acquisition module, and compare with the maximal audio amplitude of reference channel in comparison module 304, tone control 104 can regulate the audio gain curve of passage to be regulated according to comparative result, to make the maximal audio amplitude of each volume reference point under this passage to be regulated identical with reference channel, and then obtain the audio gain curve of each volume reference point under passage to be regulated and store this audio gain curve.Therefore, audio gain curve preset according to reference channel under unlike signal passage regulates and preset different audio gain curve respectively, and the maximal audio amplitude of audio signal through I2S coding under making each volume reference point under different audio gain curve is identical, like this, also identical according to the audio frequency signal amplitude of its audio gain curve input power amplifier under different passage, preset same audio gain curve under unlike signal passage can to have been avoided in prior art, once encoding and decoding cause audio amplitude to change, can change cause sound volume mutation problem through the encode maximal audio amplitude of output audio signal of I2S.
Embodiment three
The embodiment of the present invention three provides the method for another kind of preset audio gain curve, and as shown in Figure 4, the method comprises:
Step 401, the audio gain curve of Pre-set reference passage in tone control, under resolving each volume reference point of described reference channel, I2S encoded audio signal is to obtain maximal audio amplitude, and stores the maximal audio amplitude under each volume reference point described.
Example, each volume examination point is set to 0,25,50,75,100 for user's volume.
Concrete, in step 401, the first audio gain curve of Pre-set reference passage in tone control, to confirm that loud speaker power output reaches the performance number of expection under each volume reference point.Then receive the input signal of reference channel, and input signal is decoded obtain the audio signal of reference channel, by the Signal transmissions after coding to tone control.Tone control regulates according to the preset gain of audio gain curve to decoded audio signal, then the audio signal after adjustment is sent to sampling and I2S coding module.With I2S protocol transmission to power amplifier module before, using I2Sclock as clock, I2S parsing is carried out to encoded audio signal, obtain digitized voice data, then the amplitude of voice data when user's volume reference point is 0 in a period of time is gathered, by successively comparing maximal audio amplitude when to obtain user's volume reference point be 0, and maximal audio amplitude when to obtain user's volume reference point be successively 25,50,75,100, by the maximal audio amplitude of the reference channel under obtained 5 volumes stored in memory module EEPROM.
Step 402, the maximal audio amplitude of each volume reference point described under obtaining passage to be regulated, compares with the maximal audio amplitude under each volume reference point of the described reference channel of storage, to correct the audio gain curve under described passage to be regulated.
Concrete, receive the input signal of passage to be regulated, and input signal is decoded obtain the audio signal of passage to be regulated, by the Signal transmissions after coding to tone control.Tone control regulates decoded audio signal according to preset gain curve, and by the audio signal transmission after adjustment to sampling and I2S coding module.Because electronic equipment has different signal sources, comprise simulated audio signal and digital audio and video signals, therefore needing to judge that passage to be regulated inputs is digital audio and video signals or simulated audio signal, when passage to be regulated input be simulated audio signal time, need through ADC conversion after carry out I2S coding; When input be digital audio and video signals time, directly will carry out I2S coding.Be no matter simulated audio signal or digital audio and video signals all will with I2S protocol transmission to power amplifier module before, using I2Sclock as clock, I2S parsing is carried out to encoded audio signal, obtain digitized voice data, then the amplitude of the voice data of the passage to be regulated when user's volume reference point is 0 in a period of time is gathered, by successively comparing the passage maximal audio amplitude to be regulated when to obtain user's volume reference point be 0, and the passage maximal audio amplitude to be regulated when to obtain user's volume reference point be successively 25,50,75,100.
Further, the maximal audio amplitude under each volume reference point of reference channel is read from memory module EEPROM, compare with the maximal audio amplitude under each volume reference point of calculated passage to be regulated, if the maximal audio amplitude of passage to be regulated is greater than the maximal audio amplitude of reference channel, then reduce the gain of channel audio gain curve to be regulated; If the maximal audio amplitude of passage to be regulated is less than the maximal audio amplitude of reference channel, then increase the gain of channel audio gain curve to be regulated, otherwise by the audio gain curve without the need to correcting passage to be regulated.By above adjustment, finally make passage to be regulated identical with the maximal audio amplitude of each volume reference point under reference channel, to obtain the audio gain curve after channel correcting to be regulated.
Step 403, stores the audio gain curve after the correction of described passage to be regulated.
Concrete, by the audio gain profile memory after the correction of passage to be regulated in tone control, call when saving in order to subsequent sound frequency modulation.
Further, above-mentioned control method that the audio signal of each passage is all sampled, and by the audio gain profile memory that finally obtains in tone control in order to calling.When electronic equipment is from no signal source state or when being switched to echo signal passage from a certain signalling channel, audio signal in destination channel obtains audio signal through audio decoder, this audio signal enters tone control, then the audio gain curve corresponding to invocation target signalling channel, described audio gain curve is searched the audio gain corresponding to active user's volume, regulate according to the audio signal of audio gain to echo signal passage, and then the audio signal after regulating is exported after I2S coding and power amplifier amplify.
Embodiments provide a kind of method of preset audio gain curve, first according to the preset audio gain curve of reference channel, then the maximal audio amplitude of each volume reference point under reference channel is obtained, and be stored in memory module EEPROM, obtain the maximal audio amplitude of each volume reference point under passage to be regulated more respectively, and compare with the maximal audio amplitude of reference channel, to regulate the audio gain curve of passage to be regulated, and the maximal audio amplitude of each volume reference point is identical with reference channel under making this passage to be regulated, obtain the audio gain curve of each volume reference point under passage to be regulated and store.Therefore, audio gain curve preset according to reference channel under unlike signal passage regulates and preset different audio gain curve respectively, and the maximal audio amplitude of audio signal through I2S coding under making each volume reference point under different audio gain curve is identical, like this, also identical according to the audio frequency signal amplitude of its audio gain curve input power amplifier under different passage, therefore preset same audio gain curve under unlike signal passage is avoided in prior art, and once encoding and decoding cause audio amplitude to change, maximal audio amplitude through I2S coding output audio signal also will change and then cause sound volume mutation problem.
The application describes with reference to according to the flow chart of the method for the embodiment of the present application, equipment (system) and computer program 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 all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device 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-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-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 in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices 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 described the preferred embodiment of the application, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the application's scope.
Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (13)

1. a method for preset audio gain curve, it is characterized in that, the method comprises:
The maximal audio amplitude of each volume reference point under acquisition reference channel;
Obtain the maximal audio amplitude of each volume reference point under passage to be regulated;
By the maximal audio amplitude com parison of the maximal audio amplitude of described reference channel and described passage to be regulated;
Correct the audio gain curve of described passage to be regulated according to comparative result, obtain the audio gain curve after the correction of described passage to be regulated and store.
2. method according to claim 1, is characterized in that, under described acquisition reference channel each volume reference point maximal audio amplitude before, comprising:
According to the preset audio gain curve of reference channel.
3. method according to claim 1, is characterized in that, the maximal audio amplitude of each volume reference point under described acquisition reference channel, specifically comprises:
The audio signal of the reference channel after being encoded by I2S resolves the voice data obtaining described reference channel according to I2S;
Gather the amplitude of the described voice data in a period of time under each volume reference point;
The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one;
By described maximal audio amplitude stored in memory module;
Read the described maximal audio amplitude in described memory module under each volume reference point.
4. method according to claim 1, is characterized in that, the maximal audio amplitude under each volume reference point of described acquisition passage to be regulated, specifically comprises:
The audio signal of the passage to be regulated after being encoded by I2S resolves the voice data obtaining described passage to be regulated according to I2S;
Gather the amplitude of the described voice data in a period of time under each volume reference point;
The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one.
5. method according to claim 1, is characterized in that, the described audio gain curve correcting passage to be regulated according to comparative result, obtains the audio gain curve after the correction of described passage to be regulated and store, specifically comprising:
If the maximal audio amplitude of passage to be regulated is greater than the maximal audio amplitude of reference channel, then reduce the gain on the audio gain curve of passage to be regulated;
If the maximal audio amplitude of passage to be regulated is less than the maximal audio amplitude of reference channel, then increase the gain on the audio gain curve of passage to be regulated;
Obtain the audio gain curve after the correction of described passage to be regulated, and be stored in tone control.
6. a device for preset audio gain curve, is characterized in that, this device comprises:
Acquisition module, for obtaining the maximal audio amplitude of each volume reference point under reference channel; Obtain the maximal audio amplitude of each volume reference point under passage to be regulated;
Comparison module, for comparing with reference to the maximal audio amplitude of passage and the maximal audio amplitude of passage to be regulated;
Tone control, for regulating the audio gain curve of passage to be regulated according to comparative result, obtains the audio gain curve after described channel correcting to be regulated and stores.
7. device according to claim 6, is characterized in that, described acquisition module, specifically for:
The amplitude of the described voice data of each volume reference point under collection a period of time internal reference passage; The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one; And
Gather the amplitude of the described voice data of each volume reference point under passage to be regulated in a period of time; The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one; And
The maximal audio amplitude of reference channel under each volume reference point is read from memory module.
8. device according to claim 6, is characterized in that, described tone control, specifically for:
According to the preset audio gain curve of reference channel; And
If the maximal audio amplitude of described passage to be regulated is greater than the maximal audio amplitude of described reference channel, then reduce the gain on the audio gain curve of described passage to be regulated; If the maximal audio amplitude of described passage to be regulated is less than the maximal audio amplitude of described reference channel, then increase the gain on the audio gain curve of described passage to be regulated, finally obtain the audio gain curve after the correction of passage to be regulated, and store described audio gain curve.
9. device according to claim 6, is characterized in that, also comprises:
I2S parsing module, for solving the voice data of described reference channel and passage to be regulated respectively by inner parsing module by the audio signal of the reference channel after I2S coding and passage to be regulated;
Memory module, for the maximal audio amplitude of each volume reference point under stored reference passage.
10. a method for preset audio gain curve, it is characterized in that, the method comprises:
Be predisposed in the audio gain curve of tone control under each volume reference point in stored reference passage, through the maximal audio amplitude corresponding to I2S encoded audio signal;
The maximal audio amplitude of each volume reference point described under determining passage to be regulated, with the comparative result of maximal audio amplitude under each volume reference point of the described reference channel of storage, to correct the audio gain curve under described passage to be regulated;
Store the audio gain curve after the correction of described passage to be regulated.
11. methods according to claim 10, is characterized in that, be predisposed in the audio gain curve of tone control under each volume reference point, through the maximal audio amplitude corresponding to I2S encoded audio signal, specifically comprise in described stored reference passage:
The audio signal of the reference channel after being encoded by I2S resolves the voice data obtaining described reference channel according to I2S;
Gather the amplitude of the described voice data in a period of time under each volume reference point;
The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one;
By described maximal audio amplitude stored in memory module.
12. methods according to claim 10, it is characterized in that, the described maximal audio amplitude determining each volume reference point described under passage to be regulated, with the comparative result of the maximal audio amplitude under each volume reference point of the described reference channel of storage, to correct the audio gain curve under described passage to be regulated, specifically comprise:
The audio signal of the passage to be regulated after being encoded by I2S resolves the voice data obtaining described passage to be regulated according to I2S;
Gather the amplitude of the described voice data in a period of time under each volume reference point;
The amplitude of the described voice data of same subscriber volume under each volume reference point is compared the maximal audio amplitude obtaining each volume reference point one by one;
Under the reference channel of reading memory module, the maximal audio amplitude of each volume reference point, compares with the maximal audio amplitude of each volume reference point under described passage to be regulated;
The audio gain curve of passage to be regulated is corrected according to comparative result.
13. methods according to claim 12, is characterized in that, the described audio gain curve correcting passage to be regulated according to comparative result, specifically comprises:
If the maximal audio amplitude of passage to be regulated is greater than the maximal audio amplitude of reference channel, then reduce the gain on the audio gain curve of passage to be regulated;
If the maximal audio amplitude of passage to be regulated is less than the maximal audio amplitude of reference channel, then increase the gain on the audio gain curve of passage to be regulated.
CN201510947936.XA 2015-12-17 2015-12-17 Method and apparatus for presetting audio gain curve Pending CN105553435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510947936.XA CN105553435A (en) 2015-12-17 2015-12-17 Method and apparatus for presetting audio gain curve

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510947936.XA CN105553435A (en) 2015-12-17 2015-12-17 Method and apparatus for presetting audio gain curve

Publications (1)

Publication Number Publication Date
CN105553435A true CN105553435A (en) 2016-05-04

Family

ID=55832412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510947936.XA Pending CN105553435A (en) 2015-12-17 2015-12-17 Method and apparatus for presetting audio gain curve

Country Status (1)

Country Link
CN (1) CN105553435A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924447A (en) * 2018-08-21 2018-11-30 青岛海信电器股份有限公司 A kind of volume adjusting method and equipment
CN114449337A (en) * 2020-10-30 2022-05-06 深圳Tcl新技术有限公司 Audio signal processing method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090274322A1 (en) * 2008-05-05 2009-11-05 Mstar Semiconductor, Inc. Volume Control Apparatus and Method
CN103745734A (en) * 2014-01-02 2014-04-23 青岛海信电器股份有限公司 Device and method for setting sound curve
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
CN104811155A (en) * 2015-04-20 2015-07-29 深圳市冠旭电子有限公司 Balance device adjusting method and device
CN104935281A (en) * 2014-03-17 2015-09-23 雅马哈株式会社 Signal processing apparatus and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090274322A1 (en) * 2008-05-05 2009-11-05 Mstar Semiconductor, Inc. Volume Control Apparatus and Method
CN103745734A (en) * 2014-01-02 2014-04-23 青岛海信电器股份有限公司 Device and method for setting sound curve
CN104935281A (en) * 2014-03-17 2015-09-23 雅马哈株式会社 Signal processing apparatus and method
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
CN104811155A (en) * 2015-04-20 2015-07-29 深圳市冠旭电子有限公司 Balance device adjusting method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924447A (en) * 2018-08-21 2018-11-30 青岛海信电器股份有限公司 A kind of volume adjusting method and equipment
CN108924447B (en) * 2018-08-21 2020-07-10 海信视像科技股份有限公司 Volume adjusting method, equipment, communication device and storage medium
CN114449337A (en) * 2020-10-30 2022-05-06 深圳Tcl新技术有限公司 Audio signal processing method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
JP6753499B2 (en) Decoding device and method, and program
CN203415228U (en) Audio decoder using program information element data
RU2631139C2 (en) Optimisation of volume and dynamic range through various playback devices
JP2017511048A (en) Object-based audio volume management
CN101808208A (en) Television and method for setting sound effect mode of same
CN105578272A (en) Audio gain automatic adjustment method and apparatus
CN101202860A (en) Sound volume regulating method
CN103745734B (en) Device and method for setting sound curve
CN101820520A (en) Integrated digital TV capable of adjusting volume automatically and implementing method thereof
CN105553435A (en) Method and apparatus for presetting audio gain curve
KR20230104553A (en) Method for controll loudness level of audio signl using metadata and apparatus using the same
US20140010377A1 (en) Electronic device and method of adjusting volume in teleconference
CN102098472A (en) Method for controlling audio output and digital device using the same
CN105611203B (en) A kind of method, apparatus and receiving terminal for digital television adjusting TV programme volume
CN107333171B (en) Method and device for synchronizing sound of television broadcast and terminal equipment
WO2022114787A1 (en) Method for normalizing audio signal, and device therefor
US9514765B2 (en) Method for reducing noise and computer program thereof and electronic device
US9165561B2 (en) Apparatus and method for processing voice signal
CN101582278A (en) Audio processor
KR101821396B1 (en) Control system of audio mixer by speech recognition
US8315582B2 (en) Apparatus and method for compensating for audio signal distortion in mobile terminal
CN102340729B (en) Method for processing and restoring audio signal and system thereof
JP6637735B2 (en) Sound feature adjustment device and program
US10530319B2 (en) Volume-levelling processing
CN110808064A (en) Audio processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504

RJ01 Rejection of invention patent application after publication