Background technology
General audio is handled can be divided into two kinds of audio processing modes of simulation and numeral haply, but along with the progress of information and computing machine science and technology, combination has between the two become a ring indispensable in the audio playing device.
Wherein get digital and analog advantage respectively, be integrated among the playing device of handling audio, the audio sense of being personally on the scene when participating in the cintest not only can be provided, more convenient user is the enjoyment of editing music (for example passing through software or the hardware of DSP) voluntarily.Therefore, also little by little replace traditional product on the market at present with the integrated audio playing device of this kind.
Yet, in the transfer process of simulating signal and digital signal, when the data volume of input is excessive, the phenomenon of data overflow takes place probably at present.With an audio playing device, if the voice signal of importing this audio playing device under stronger situation, makes that the digital audio signal after the conversion just has very big probability that the situation of signal overflow can take place.
In like manner, when the digital audio signal of this overflow will be reduced into analoging sound signal output, certainly will also can produce a kind of analoging sound signal of similar overflow, just can produce the bad phenomenon of distorsion when causing output.In other words, the distortion of the signal of prime makes the also distortion in the nature of things of output signal of back level.
In known technology, there is another kind of mode to put forward to solve the phenomenon of sort signal overflow, wherein utilize and an inhibition overflow assembly (as an Auto Level Control) is installed, avoid voice signal that the bad situation of signal overflow takes place when analog/digital conversion whereby in the prime of this audio playing device.Yet this kind mode must just can reach to add inhibition overflow assembly, causes cost of manufacture thereby raising, is unfavorable for the competitive power of audio playing device really.
By above-mentioned known technology as can be known, this audio playing device under the excessive situation of voice signal of input, cause simulating and digital signal between conversion the bad phenomenon of signal overflow, distortion can take place.
Summary of the invention
Therefore, the present invention proposes a kind of method and device that solves audio recording/displaying device unsweet sound phenomenon, wherein utilize at least one gamma tables (Gamma Table) to be adjusted magnification ratio, can solve the data overflow and produce the phenomenon of distorsion, and then improve above-mentioned defective effectively.
To achieve these goals, the invention provides a kind of method and device that can solve audio recording/displaying device unsweet sound phenomenon, in order to solve this audio recording/displaying device the phenomenon of data overflow taking place when digital-to-analog is changed, and then avoids the audio recording/displaying device to produce the situation of distorsion when playback.The device that this solves audio recording/displaying device unsweet sound phenomenon mainly comprises: a radio reception unit, in order to import an analoging sound signal; One processing unit in order to carry out compression, to amplify, change or editor's computing, is converted to a digital audio signal with this analoging sound signal, and this digital audio signal is changed back this analoging sound signal; One storage unit is in order to store this digital audio signal; And a playback unit, in order to play this analoging sound signal.This method is at first imported an analoging sound signal, then change this analoging sound signal and become a digital audio signal, and the volume smaller part is amplified big volume ratio with at least one gamma tables (Gamma Table), the volume larger part is amplified than the small volume ratio, store this digital audio signal after this gamma tables (Gamma Table) is amplified thereafter again.Similarly, when output, also amplify, make this digital audio signal be reduced to this analoging sound signal, play this analoging sound signal, do not have the phenomenon of signal overflow via a gamma tables.Whereby, to reduce the probability that distorsion takes place when the playback this audio recording/displaying device.
The present invention also provides a kind of method that solves audio recording/displaying device unsweet sound phenomenon, and this method mainly comprises:
A) input one analoging sound signal;
B) change this analoging sound signal and become a digital audio signal;
C) amplify this digital audio signal with at least one gamma tables, wherein at the volume ratio that digital audio signal amplified at the first volume place greater than the volume ratio that digital audio signal amplified at the second volume place, wherein this first volume is less than this second volume;
D) reducing this digital audio signal becomes an analoging sound signal; And
E) play this analoging sound signal.
In order further to understand feature of the present invention and technology contents, see also following about detailed description of the present invention and accompanying drawing, yet appended icon only provide with reference to and the explanation usefulness, be not to be used for the present invention is limited.
Embodiment
The method of solution audio recording/displaying device unsweet sound phenomenon of the present invention and device are to utilize at least one gamma tables (Gamma Table), in order to solve this audio recording/displaying device the phenomenon of data overflow taking place when digital-to-analog is changed, and then avoids the audio recording/displaying device to produce the situation of distorsion when playback.At first see also Fig. 1, it is the ball bearing made using block scheme of an audio recording/displaying device 100, include a radio reception unit 10 in this audio recording/displaying device 100,, again this analoging sound signal is sent to thereafter to do among the processing unit 50 further and handles in order to receive an analoging sound signal.
This processing unit 50 is in order to do this analoging sound signal in regular turn conversion, to amplify various processing such as (or dwindling), compression.At first convert this analoging sound signal to a digital audio signal, then be resent in the storage unit 30 and store, when the user wants to play sound signal by the time, processing unit 50 just can capture this digital audio signal from storage unit 30, so oppositely do exercises such as decompression, amplification, conversion again, this digital audio signal is reverted back this analoging sound signal, export a playback unit 60 at last to and play this analoging sound signal.
In Fig. 1, this processing unit 50 also can to digital audio signal be further editor or produce various sound effects (as the lifting sound, etc. special-effects such as change, reverberation).Because this processing unit 50 can be a digital signal processor (Digital Signal Processor, DSP), whereby, with the enjoyment that provides the user to edit.
See also Fig. 2, circuit block flow diagram for this audio recording/displaying device 100, after this radio reception unit 10 receives an analoging sound signal, at first be sent among the analog/digital converter 20 of these processing unit 50 inside, change this analoging sound signal and become a digital audio signal.Yet for fear of converting the phenomenon that the signal overflow takes place in the back because of importing excessive causing, so this digital audio signal need be sent in the gamma amplifier 25 that is connected in thereafter, to adjust its magnification ratio.
Wherein this gamma amplifier 25 is adjusted the volume ratio of this digital audio signal according to a specific magnification ratio.When the volume of input hour, then amplify big volume ratio, otherwise, if when the volume of input is big, then amplify than the small volume ratio, factor produces the phenomenon of distorsion according to overflow when avoiding this playback unit 60 to play.
And can contrasting a gamma tables (Gamma Table), this magnification ratio adjusted.In other words, after the deviser finishes gamma tables foundation, be set among this gamma amplifier 25 with being about to this gamma tables, make the follow-up digital audio signal of importing all according to this gamma tables adjusted its volume ratio, to avoid still having after the analog/digital conversion situation of signal overflow to take place.
Finish after the amplification via this gamma amplifier 25, this digital audio signal then exports a compression/decompression unit 40 to, in order to compress this digital audio signal, makes this storage unit 30 can increase storage capacity whereby.Therefore, when successive memory cells 30 these digital audio signals of output, the action that also needs this compression/decompression unit 40 to try again and decompress, just reducible this digital audio signal.
Similarly, when the user wants to play digital audio signal in this storage unit 30, this processing unit 56 is this digital audio signal of acquisition from storage unit 30 earlier, and 40 pairs of these digital audio signals of compression/decompression unit via inside decompress in regular turn, and one after gamma amplifier 25 amplified according to specific magnification ratio, then by an analog/digital converter 20 these analoging sound signals of reduction, at last, export this analoging sound signal to one playback unit 60, play out sound whereby.
See also Fig. 3 and the Fig. 2 that arranges in pairs or groups, be the complete method process flow diagram of the present invention when the recording playback sound, at first, import an analoging sound signal (S301), and this analoging sound signal is converted to a digital audio signal (S303) by an analog/digital converter 20, then amplify an analoging sound signal (S305), can adjust the volume ratio when importing whereby, and then avoid the phenomenon of signal overflow with a gamma tables.
Yet, in present embodiment, this digital audio signal need not be stored among the storage unit 30 and can directly export, therefore, amplify an analoging sound signal (S307) with a gamma tables once more, amplified before amplifying less place, volume is too small when avoiding exporting, then become an analoging sound signal (S309) by an analog/digital converter 20 these digital audio signals of reduction again, last, play this analoging sound signal (S311) with a playback unit 60.Whereby, not only solve the phenomenon that the data overflow takes place this audio recording/displaying device 100 when analog/digital conversion, more avoided this audio recording/displaying device 100 when playback, to produce the situation of distorsion.
See also Fig. 4, it is a gamma tables (Gamma Table) enlarged diagram, magnification ratio curve after expression decompresses, wherein can know and learn that this gamma tables utilizes a nonlinear conversion, convert the less place of input to bigger output volume, as when 128 the input volume, be converted to 96 output volume.And when the bigger input volume of input, then amplify less volume ratio, as when 509 the input volume, then convert 224 output volume to.Find out obviously wherein when 509 input volume is compared with 128 input volume that the magnification ratio that obviously is 128 is relatively greater than 509 magnification ratio.
When the input volume surpassed to a certain degree, when for example importing volume greater than 1017, then output volume remained 256, to avoid this audio recording/displaying device 100 phenomenon of distorsion took place when the playback.Yet the ratio of the amplification during practical application must be arranged in pairs or groups entity component and consider that with present embodiment, this magnification ratio is a nonlinear figure according to the deviser, but when practical application, still can be designed to linear conversion.
Method flow diagram when Figure 5 shows that this audio recording/displaying device 100 in recording, at first, import an analoging sound signal (S501), and change this analoging sound signal and become a digital audio signal (S503), again with at least one gamma tables amplify this voice signal (S305) thereafter, the volume smaller part is amplified big volume ratio, the volume larger part is amplified than the small volume ratio, at last, store this digital audio signal (S307) after this gamma tables (Gamma Table) is amplified, to reduce the probability of data generation overflow.
Method flow diagram when Figure 6 shows that this audio recording/displaying device 100 in playback, wherein earlier from storage unit 30 after this digital audio signal of acquisition (S601), and (Gamma Table) amplifies this voice signal (S603) with gamma tables, the volume smaller part is amplified big volume ratio, too small with the volume of avoiding exporting, then reduction (conversion) this digital audio signal becomes an analoging sound signal (S605), and transmit in this analoging sound signal to one playback unit 60, play this analoging sound signal (S607) whereby.
In sum, the present invention solves the phenomenon that produces overflow when the method for audio recording/displaying device unsweet sound phenomenon and device solve digital audio signal and analoging sound signal effectively and change mutually, and reduction audio recording/displaying device 100 produces the probability of distorsion when playback.
Yet the above, only be the detailed description and the description of drawings of the specific embodiment of one of the best of the present invention, all embodiment that meets the spirit variation similar of claim of the present invention with it, all should be contained in the scope of the present invention, any those of ordinary skill in the art is in the field of the invention, and the variation that can expect easily or modification all can be encompassed in the claim of the present invention.