Background technology
Audio frequency (audio) signal is actually energy wave, utilizes air or other media to propagate, the sense of hearing to the size of sound experience degree with loudness energy decibel (dB) as estimating unit.Audible ripple (audible sound) is called when the vibration frequency of this energy wave is in the scope that people's ear can be responded to.When frequency is higher than then claiming ultrasonic (ultrasound) during heard sound, generally can be used for the detection of medical science or engineering or the processing of material.Low sound wave (infrasound) is called, such as, seismic event caused by earthquake time lower than audible ripple as frequency.
The audibility range of the mankind is the sound of 20Hz to 20kHz, and the most responsive scope is between 2kHz to 4kHz.After utilizing different simple signals to test people's ear, can describe definitely to cover curve (absolute threshold curve) with a curve or quietly cover curve (quiet threshold curve).Human auditory model (psychoacoustic model) is namely utilize a frequency analyzer emulation human auditory system, this frequency analyzer is made up of many bandpass filter, its frequency is approximately between 20Hz to 20kHz, the bandwidth of each bandpass filter is not identical, and the bandwidth of these bandpass filter is referred to as critical band (critical bands).Human auditory model can be summarized two and important covered characteristic, real-time territory capture-effect and frequency domain capture-effect thus.The former be subdivided into again first cover (pre-masking), after cover (post-masking) and synchronously cover (simultaneous-masking).When audio frequency has multi-frequency composition to occur simultaneously, then now the capture-effect of different frequency composition will accumulation calculating simultaneously, covers curve and namely becomes very complicated, can be different along with the change of the energy size of signal, frequency location and characteristics of signals.The signal that energy is large can cover that larger noise, non-single-frequency (non-tonal) signal are better than the shielding of single-frequency (tonal) signal, high-frequency signal has stronger shielding than low frequency signal.
Audio frequency watermark (audio watermark) is by the watermark signal for embedding, after encryption, coding, Zhan Pin or other process, make the watermark signal randomization after processing.And according to human auditory system (HumanAuditory System, HAS) capture-effect (masking effect), watermark after process or its spectral components are controlled and be embedded in the shieldable scope of original audio signal, can smoothly watermark be hidden in sound signal, and people can not be allowed to feel difference on audio quality.Steganography (steganography) is also the one application of digital watermarking, and both sides can utilize the information hidden in a digital signal to link up.
Summary of the invention
The present invention selects several frequency in people's ear more insensitive high frequency section, in audio frequency, utilize frequency to carry out dynamic blind code, to hide coded signal under the prerequisite of Min. destruction original sound frequency characteristic, encode compared with the interference resisting context with the sound of frequency.
The object of the present invention is to provide a kind of high-frequency sound signal coding and decoding technology and system.
For achieving the above object, the present invention by the following technical solutions:
A kind of high-frequency sound signal coding/decoding system, comprises a tone software for editing and a tone arrangement for detecting.This tone arrangement for detecting comprises a receiving trap, a mimic channel, a processing unit.This mimic channel comprises an automatic growth control (Automatic Gain Control, AGC) circuit, a bandpass filter (band-passfilter), a bandpass amplifier, an analog-to-digital converter (Analogue-to-Digital Converter, ADC).This processing unit comprises an internal memory, a tone translation subassembly and a sound micro-control unit.This tone software for editing determines the coded sequence of high-frequency sound signal according to a codimg logic and the coded format comprising an initiation feature.This tone software for editing analyzes the high frequency characteristics of original audio signal in advance, according to the signal given tacit consent to noise ratio (Signal-to-Noise Ratio, SNR, be called for short signal to noise ratio), signal intensity and high-frequency compensation value (high-frequency compensation) determine to mix the gain of high-frequency sound signal high-frequency sound signal with original audio signal according to this gain and this coded sequence.Play medium via one and send the rear signal of mixing.This receiving trap receives the rear signal of mixing.After this mimic channel filters mixing, signal also amplifies high-frequency sound signal wherein.This analog-to-digital converter turns to time domain waveform signal (time domain waveform signal) by filtering the signal digital after amplifying.This sound micro-control unit utilizes special algorithm time domain waveform signal to be converted to frequency spectrum (frequency spectrum).Store high-frequency data in frequency spectrum and time domain waveform signal in this internal memory.This sound micro-control unit calculates the characteristic parameter of high-frequency data, and detects characteristic parameter until meet this initiation feature always.This tone translation subassembly then receives the high-frequency data of a specific interval (interval) continuously, and is positioned the data boundary of this coded format in received high-frequency data according to this codimg logic.This sound micro-control unit does antireflection filtering process to high-frequency data behind location, and recalculates and comprise the energy of characteristic frequency and the characteristic parameter of signal to noise ratio.This tone translation subassembly will locate rear high-frequency data decoding according to this codimg logic.High-frequency data after this sound micro-control unit verification decoding, if verify unsuccessfully, repairs high-frequency data after the decoding of weak energy and low signal to noise ratio according to this codimg logic.This sound micro-control unit according to the comprehensive probability after decoding and averaged magnitude forgo low comprehensive probability and weak signal decoding after high-frequency data, and export through screening decoding after high-frequency data.
A kind of high-frequency sound signal coding and decoding technology, comprise the following steps: the coded sequence determining high-frequency sound signal according to a codimg logic and the coded format comprising an initiation feature, analyze the high frequency characteristics of original audio signal in advance, according to the signal to noise ratio preset, the gain of signal intensity and high-frequency compensation value determination high-frequency sound signal, according to this gain and this coded sequence, high-frequency sound signal is mixed with original audio signal, send the rear signal of mixing, receive the rear signal of mixing, filter and amplify the high-frequency sound signal in the rear signal of mixing, time domain waveform signal is turned to by filtering the signal digital after amplifying, utilize special algorithm that time domain waveform signal is converted to frequency spectrum, store the high-frequency data in frequency spectrum and time domain waveform signal, calculate the characteristic parameter of high-frequency data, detect characteristic parameter until meet this initiation feature always, then the high-frequency data of a specific interval is received continuously, the data boundary of this coded format in received high-frequency data is positioned according to this codimg logic, antireflection filtering process is done to high-frequency data behind location, recalculate and comprise the energy of characteristic frequency and the characteristic parameter of signal to noise ratio, high-frequency data decoding after locating according to this codimg logic, high-frequency data after verification decoding, if verify unsuccessfully, repair high-frequency data after the decoding of weak energy and low signal to noise ratio according to this codimg logic, according to the comprehensive probability after decoding and averaged magnitude forgo low comprehensive probability and weak signal decoding after high-frequency data, export high-frequency data after the decoding of screening.
Accompanying drawing explanation
Rely on as in the more specific description with the preferred embodiment of illustrating illustrated in graphic, the feature of this instructions foregoing and other and advantage will be apparent, wherein same reference marks all graphic in all belong to identical assembly.
Framework calcspar illustrated in Figure 1 shows according to the concrete manifestation illustration of demonstration to illustrate a kind of high-frequency sound signal coding/decoding system 10S.
Fig. 2 illustrates a coded format according to the embodiment icon of demonstration.
Fig. 3 illustrates a state machine according to the embodiment diagram of demonstration.
Process flow diagram illustrated in Figure 4 illustrates according to the embodiment of demonstration the step S001 ~ S016 illustrated in a kind of high-frequency sound signal coding and decoding technology 10T.
Primary clustering symbol description:
10S high-frequency sound signal compiles 10T high-frequency sound signal coding and decoding 100 high-frequency sound signal 200 coded format
Decoding system technology
202 start bit 204 check bit 210 initiation feature 220 coded datas
300 codimg logic 310 state machine 400 high frequency data 402 characteristic parameters
High-frequency data 500 tone software for editing 600 tone arrangement for detecting after high frequency data 420 decoding behind 410 location
610 receiving trap 620 mimic channel 622 automatic gain control circuit 624 bandpass filter
626 bandpass amplifier 628 analog-to-digital converter 630 processing unit 632 internal memories
634 tone translation subassembly 636 sound micro-control unit 700 background audio signals 800 mix rear signal
810 filter the letter 900 after amplifying plays medium D7 ~ D0 data bit S001 ~ S016 step number
Embodiment
Framework calcspar illustrated in Figure 1 shows according to the concrete manifestation illustration of demonstration to illustrate a kind of high-frequency sound signal coding/decoding system 10S.This high-frequency sound signal coding/decoding system 10S is for putting into practice aforementioned this high-frequency sound signal coding and decoding technology 10T.Please also refer to Fig. 1, this high-frequency sound signal coding/decoding system 10S comprises tone software for editing 500 and a tone arrangement for detecting 600.
Fig. 2 illustrates a frame coded data 220 according to the embodiment icon of demonstration.Fig. 3 illustrates a state machine 310 according to the embodiment diagram of demonstration.Next referring to Fig. 1 ~ 3, this tone software for editing 500 determines the coded sequence of high-frequency sound signal 100 according to this codimg logic 300 and this coded format 200 comprising this initiation feature 210, wherein this coded format 200 and this codimg logic 300 as previously mentioned, repeat no more in this.This tone software for editing 500 analyzes the high frequency characteristics of original audio signal 700 in advance, with the gain according to signal to noise ratio, signal intensity and the high-frequency compensation value determination high-frequency sound signal preset, according to this gain and this coded sequence, high-frequency sound signal 100 is mixed in original audio signal 700.When after mixing, signal 800 (non-icon) plays medium 900 via one, such as any multimedia or audio devices, when sending signal after mixing, this receiving trap 610 just can receive the rear signal 800 of mixing, and this mimic channel 620 then filters the rear signal 800 of mixing.According to the concrete manifestation example of demonstration, after mixing, signal 800 sequentially passes through this automatic gain control circuit 622, this bandpass filter 624 and this bandpass amplifier 626, simulating signal higher than characteristic frequency in signal 800 after mixing screens and amplifies by mat foregoing circuit assembly, filters the signal 810 (non-icon) after amplifying to be formed.This analog-to-digital converter 628 is digitized as time domain waveform signal by filtering the signal 810 after amplifying.This sound micro-control unit 636 utilizes special algorithm that time domain waveform signal is converted to frequency spectrum.In some concrete manifestation examples, special algorithm adopts such as but not limited to the fast algorithm such as fast fourier transform and discrete Fourier transform (DFT).Store high-frequency data 400 (non-icon) in frequency spectrum and time domain waveform signal in this internal memory 632.This sound micro-control unit 636 calculates the characteristic parameter 402 (not shown) of high-frequency data 400, and determines whether characteristic parameter 402 meets this initiation feature 210.According to the concrete manifestation example of demonstration, this initiation feature 210 includes but not limited to energy and the signal to noise ratio of specific duration 35ms that this start bit 202 has, characteristic frequency α.If characteristic parameter 402 meets this initiation feature 210, then this tone translation subassembly 634 just can receive the high frequency data 400 of a specific interval continuously, and is positioned the data boundary of this coded format 200 in received high-frequency data 400 according to this codimg logic 300.According to the concrete manifestation example of demonstration, this specific interval is about 300ms, and the data boundary of this coded format 200 i.e. border of frame coded data 220 for this reason, the border of this frame coded data 220 can be subsequent decoding behind location provides frame shifting parameter accurately.In some concrete manifestation examples, this high-frequency data 400 comprises the time domain data in time domain waveform signal and the frequency domain data in frequency spectrum, and this sound micro-control unit 636 mainly uses the signal correlation feature in time domain data and frequency domain data to carry out analytic signal sync bit.That is, the signal correlation feature of high-frequency data 400 is analyzed when decoding to locate the border of this frame coded data 220.In addition, this sound micro-control unit 636 also analyzes energy envelope, time domain position code period, the average energy of high-frequency signal simultaneously, and judges whether the time domain charactreristic parameter meeting coding by this.In addition for frequency domain character parameter, mainly use such as but not limited to hidden Markov model (Hidden Markov Model, HMM) algorithm analyzes decoding path, export decoding comprehensive probability with represent decoding reliability, also analyze signal synthesis signal to noise ratio parameter simultaneously, judge to encode whether meet frequency domain character parameter by this.
Please refer to Fig. 1 ~ 3, this sound micro-control unit 636 does antireflection filtering process to high-frequency data 410 behind location, and recalculates the characteristic parameter 402 of energy and the signal to noise ratio including but not limited to frequency.According to the concrete manifestation example of demonstration, the mode recalculated again utilizes special algorithm that the time domain waveform signal in high-frequency data 410 behind location is converted to frequency spectrum again, store the frequency spectrum after conversion again and the high-frequency data 400 in time domain waveform signal, calculate the characteristic parameter 402 of the high-frequency data 400 after conversion again.After this antireflection filtering process, the impact of room echo interference or the interference of outdoor back echo can be eliminated.This tone translation subassembly 634 will locate rear high-frequency data 410 decoding according to this codimg logic 300.This sound micro-control unit 636 utilizes this check bit 204 to carry out parity check to verify high-frequency data 420 after decoding, if verify unsuccessfully, this sound micro-control unit 636 just can repair high-frequency data 420 after the decoding of weak energy and low signal to noise ratio according to this codimg logic 300.This sound micro-control unit 636 according to the comprehensive probability after decoding and averaged magnitude forgo low comprehensive probability and weak signal decoding after high-frequency data 420, and export through screening decoding after high-frequency data 420 for subsequent treatment.For example, after decoding, high-frequency data 420 can represent a control signal, to be applied to ultrasonic voice remote control or the intelligent toy with multimedia platform interaction.
Process flow diagram illustrated in Figure 4 is the step S001 ~ S016 illustrated according to the embodiment of demonstration in a kind of high-frequency sound signal coding and decoding technology 10T.Referring to Fig. 2 ~ 4, this high-frequency sound signal coding and decoding technology 10T carries out according to the following step in illustrated embodiment: first in step S001, determines the coded sequence of high-frequency sound signal 100 according to a codimg logic 300 and the coded format 200 (non-icon) comprising an initiation feature 210 (non-icon).In addition, as shown in Figure 2, this coded format 200 forms this frame coded data 220 jointly by the data bit D7 of the start bit 202 of duration 35ms (milliseconds), each 25ms of duration, D5, D4, D2, D1 and D0, the data bit D6 of each 30ms of duration and the check bit 204 of D3 and duration 25ms, the wherein duration of 8 data bit D7 ~ D0 180ms altogether, total duration of this frame coded data 220 is then 270ms.In addition, as shown in Figure 3, this codimg logic 300 (non-icon) utilizes a state machine (State Machine, a kind of mathematical model of calculating) 310 to design codimg logic 300.According to the concrete manifestation example of demonstration, high-frequency sound signal 100 selects 4 frequencies in such as but not limited to the sub-ultrasonic of 17 ~ 19kHz to encode, and represent this 4 frequencies with α, β, γ, δ respectively, wherein this start bit 202 uses characteristic frequency α to encode, and data bit D7 ~ D0 then uses all the other threes such as frequency β, γ and δ to encode.According to the concrete manifestation example of demonstration, this frame coded data 220 is from the coding frequency alpha of start bit 202, be 0 or 1 determine shift direction according to the state of frequency alpha, β, γ and δ respectively, and sequentially give data bit D7 ~ D0 coding signal in this way, can guarantee that the coding of adjacent data position changes to some extent by this, and then increase reliability and the noiseproof feature of this frame coded data 220.In addition, because take the time span that two kinds different during coded data bit D7 ~ D0, i.e. 25ms and 30ms, so more accurately can locate the border of this frame coded data 220 when decoding, and then prevent sound reflection or occur biased mistake of moving when locating the border of this frame coded data 220.Last check bit 204 is in order to carry out strange or even parity inspection to data bit D7 ~ D0.
Continue referring to Fig. 2 ~ 4, then in step S002, analyze the high frequency characteristics of original audio signal 700 (non-icon) in advance, according to the gain of signal to noise ratio, signal intensity and the high-frequency compensation value determination high-frequency sound signal preset, according to this gain and this coded sequence, high-frequency sound signal 100 is mixed in original audio signal 700.Then in step S003, send and receive the rear signal 800 of mixing, to filter and to amplify the high-frequency sound signal 100 in the rear signal 800 of mixing.Next, in step S004, time domain waveform signal is digitized as by filtering the signal 810 (non-icon) after amplifying.Then according to step S005, utilize special algorithm that time domain waveform signal is converted to frequency spectrum.In some concrete manifestation examples, special algorithm adopts such as but not limited to fast fourier transform (Fast Fourier Transform, and the fast algorithm such as discrete Fourier transform (DFT) (DiscreteFourier Transform, DFT) FFT).Then according to step S006, the high-frequency data 400 (non-icon) in frequency spectrum and time domain waveform signal is stored.In some concrete manifestation examples, high-frequency data 400 comprises the time domain data in time domain waveform signal and the frequency domain data in frequency spectrum, and this high-frequency sound signal coding and decoding technology 10T mainly uses the signal correlation feature in time domain data and frequency domain data to carry out analytic signal sync bit.That is, the signal correlation feature of high-frequency data 400 is analyzed to locate the border of this frame coded data 220 when decoding, wherein signal correlation feature is every vertical frame dimension audio data 400 characteristic parameter 402 after decoding, characteristic parameter 402 comprises energy, amplitude, phase place, signal to noise ratio, energy envelope form, time domain position code period, the average energy of each coding frequency, and judges whether the time domain charactreristic parameter meeting coding by this.In addition for frequency domain character parameter, mainly use hidden Markov model (Hidden Markov Model, HMM) algorithm is analyzed decoding path, is exported the comprehensive probability of decoding with the comprehensive signal to noise ratio parameter of the reliability and analytic signal that represent decoding, judges whether coding meets frequency domain character parameter by this.
As shown in Figures 2 and 4, afterwards according to step S007, calculate the characteristic parameter 402 of high-frequency data 400.Next according to step S008, determine whether characteristic parameter 402 meets this initiation feature 210, if meet this initiation feature 210, in step S009, receive the high-frequency data 400 of a specific interval continuously, otherwise just continue to detect.According to the concrete manifestation example of demonstration, this initiation feature 210 includes but not limited to energy and the signal to noise ratio of specific duration 35ms that this start bit 202 has, characteristic frequency α.Then in step S010, the data boundary of this coded format in received high-frequency data is positioned according to this codimg logic 300.According to the concrete manifestation example of demonstration, this specific interval is about 300ms, and the data boundary of this coded format 200 i.e. border of frame coded data 220 for this reason, the border of this frame coded data 220 can be subsequent decoding behind location provides frame accurately to move (frame shift) parameter.Then in step S011, antireflection filtering process is done to high-frequency data 410 behind location, anti-reflex treated is after the characteristic frequency α of start bit 202, carry out echo signal for frequency domain character parameter according to the cycle of a frame coded data 220 and weaken process, object be reduce last position coded pulse signal on the impact of current state.After the antireflection filtering process of this step S011, the impact of room echo interference or the interference of outdoor back echo can be eliminated.Then recalculate characteristic parameter 402 in step S012.According to the concrete manifestation example of demonstration, characteristic parameter 402 recalculates according to the mode of step S005 ~ S007.High-frequency data 410 decoding after step S013 will locate according to this codimg logic 300 afterwards.Next, verify high-frequency data 420 after decoding in step S014, if verify unsuccessfully, in step S015, repair high-frequency data 420 after the decoding of weak energy and low signal to noise ratio according to this codimg logic 300.According to the concrete manifestation example of demonstration, namely verification mode is utilize this check bit 204 to carry out parity check (parity check).Final in step S016, verification succeeds or repair after decoding after high-frequency data 420, again according to the comprehensive probability after decoding and averaged magnitude, filter high-frequency data 420 after the decoding of low comprehensive probability and weak signal, exported for subsequent treatment with high-frequency data 420 after filtering out decoding comparatively reliably.For example, after the decoding of screening, high-frequency data 420 can represent a control signal, to be applied to ultrasonic voice remote control or the intelligent toy with multimedia platform interaction.In some concrete manifestation examples, with do not affect this high-frequency sound signal coding and decoding technology 10T for the target reached for principle, the sequencing of above-mentioned steps S001 ~ S016 arbitrarily can change, integrates, decomposes or synchronously carries out.For example, the high frequency characteristics of original audio signal 700 can be analyzed in advance, then decide the coded sequence of high-frequency sound signal 100.That is, the order of step S001 and step S002 is interchangeable.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.