CN104064192B - A kind of encoding and decoding method of audio frequency sound - Google Patents
A kind of encoding and decoding method of audio frequency sound Download PDFInfo
- Publication number
- CN104064192B CN104064192B CN201410309175.0A CN201410309175A CN104064192B CN 104064192 B CN104064192 B CN 104064192B CN 201410309175 A CN201410309175 A CN 201410309175A CN 104064192 B CN104064192 B CN 104064192B
- Authority
- CN
- China
- Prior art keywords
- frequency
- data signal
- data
- coding
- decoding method
- 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.)
- Expired - Fee Related
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The present invention discloses a kind of encoding and decoding method of audio frequency sound, is related to coding and decoding technical field.The present invention coding method be:The serial data group of input is divided into plurality of data by step 1. according to input sequence, and a plurality of maximum is W;Step 2. obtains the frequency corresponding with i-th of data according to default frequency table;Step 3. generates corresponding i-th of audio signal according to the frequency of i-th of data and exported;Step 4. judges whether i is more than or equal to W, if performing step 6;Step 5.i=i+1, perform step 2;Step 6. terminates.The frequency range of the audio signal of the output of coding method is that human ear is insensitive, it is more difficult to the frequency discovered, the sense of hearing of people will not be interfered, available for transmission data or is accurately positioned, this method is simple, and code efficiency is high;The coding/decoding method is simple, and decoding efficiency is high, and the bit error rate is low.
Description
Technical field
The present invention relates to a kind of encoding and decoding method of coding and decoding technical field, more particularly to audio frequency sound.
Background technology
The application of progress encoding and decoding is concentrated mainly on the DTMF Technology on telephone wire on current audio sound wave, for dialing
Phone and slow data transmission, also there are some to be used for the audio coding decoding of cell phone application identification application, but be mostly to guarantee correctly
Sampled audio obtains correct data, using there is sound wave of the audio frequency range less than 16KHz to be encoded, there is obvious sound.
The content of the invention
For above mentioned problem existing for existing coding and decoding technology, a kind of encoding and decoding of audio frequency sound is now provided
Method realizes noiseless audio-frequency signal coding and decoding.
A kind of coding method of audio frequency sound, the coding method comprise the steps:
The serial data group of input is divided into plurality of data, a plurality of maximum by step 1. according to input sequence
For W;
Wherein W is integer, and W>1;
Step 2. obtains the frequency corresponding with i-th of data according to default frequency table;
Wherein i is integer, i=1 ... ..., W;
Step 3. generates corresponding i-th of audio signal according to the frequency of i-th of data and exported;
Step 4. judges whether i is more than or equal to W, if performing step 6;
Step 5.i=i+1, perform step 2;
Step 6. terminates.
Preferably, after generating corresponding i-th of audio signal output according to the frequency of i-th of data in step 3, delay
Step 4 is performed after setting time again.
Preferably, the frequency range of the audio signal is:18KHz~22KHz.
A kind of coding/decoding method of audio frequency sound, the coding/decoding method are used for N number of audio signal decoding to be collected, the solution
Code method comprises the steps:
Step a. gathers K audio signal successively, converts audio signals into data signal, enters filtering to data signal,
Along zero passage sum n in K data signal after statistical filtering0;
Wherein K is integer, N>K>1;
Step b. gathers the K+j audio signal, and the K+j audio signal is converted into the K+j data signal;
Wherein j is integer, and j=1 ... ..., N-K;
Step c. is filtered to the K+j data signal;
Step d. according in the K+j data signal after filtered along Zero-crossing Number OK+jObtain the K+j frequency fK+j;
Step e. is obtained and the K+j frequency f according to default numerical tabularK+jCorresponding numerical value, in numerical tabular
The corresponding frequency of each numerical value;
Step f. judges whether K+j is less than or equal to N-1, performs step h if not;
Step g.j=j+1, perform step b;
Step h. stores each numerical value, and the blank character gone between divider value is to obtain decoded data.
Preferably, filtering is entered using recursion type high-pass filtering method to data signal in step a.
Preferably, filtering is entered using recursion type high-pass filtering method to the K+j data signal in step c.
Preferably, in step d according in the K+j data signal after filtered along Zero-crossing Number OK+jObtain K+j
Frequency fK+jDetailed process be:
Step d1. statistics from+1 data signal of jth to the K+j data signal on along zero passage sum nj;
Step d2. judges njWhether n is more thanj-1, step d4 is performed if not;
Step d3. makes+1 data signal of jth to the K+j data signal along zero passage sum OK+j=nj, perform step
Rapid d5;
Step d4. makes+1 data signal of jth to the K+j data signal along zero passage sum OK+j=nj-1;
Step d5. obtains the K+j frequency f according to formula (1)K+j:
fK+j=(OK+j/N)*Q (1);
Wherein Q represents sample rate.
Preferably, the frequency range of the audio signal is:18KHz~22KHz.
The beneficial effect of above-mentioned technical proposal:
The frequency range of the audio signal of coding method output is insensitive for human ear, it is more difficult to the frequency discovered, will not be to people
The sense of hearing interfere, data or be accurately positioned available for transmission, this method is simple, and code efficiency is high;Coding/decoding method gathers
Audio signal frequency range it is insensitive for human ear, it is more difficult to the frequency discovered, data or be accurately positioned, the party available for transmission
Method is simple, and decoding efficiency is high, and the bit error rate is low.
Brief description of the drawings
Fig. 1 is a kind of method flow diagram of embodiment of the coding method of audio frequency sound of the present invention;
Fig. 2 is a kind of method flow diagram of embodiment of the coding/decoding method of audio frequency sound of the present invention;
Fig. 3 is the method flow diagram of another embodiment of the coding/decoding method of audio frequency sound of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its
His embodiment, belongs to the scope of protection of the invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
As shown in figure 1, a kind of coding method of audio frequency sound, the coding method comprise the steps:
The serial data group of input is divided into plurality of data, a plurality of maximum by step 1. according to input sequence
For W;
Wherein W is integer, and W>1;
Step 2. obtains the frequency corresponding with i-th of data according to default frequency table;
Wherein i is integer, i=1 ... ..., W;
Step 3. generates corresponding i-th of audio signal according to the frequency of i-th of data and exported;
Step 4. judges whether i is more than or equal to W, if performing step 6;
Step 5.i=i+1, perform step 2;
Step 6. terminates.
Coding method in this embodiment can be used for transmission data or be accurately positioned, and this method is simple, and code efficiency is high,
When the frequency of the present embodiment is 16, data transfer most rapid rate is up to 120 byte per second.
In a preferred embodiment, corresponding i-th of audio signal is generated according to the frequency of i-th of data in step 3
After output, delay adjustmentses perform step 4 again after the time, and gathered data amount is enough when decoding is can ensure that by way of delay, suppression
Make error rate.
In a preferred embodiment, the frequency range of the audio signal is:18KHz~22KHz.The frequency range is behaved
Ear is insensitive, it is more difficult to discovers frequency, the sense of hearing of people will not be interfered, and can reach transmission data or the purpose of positioning.
In a preferred embodiment, each data can be 4 in the plurality of data of step 1.
A kind of coding/decoding method of audio frequency sound, the coding/decoding method are used for N number of audio signal decoding to be collected, the solution
Code method comprises the steps (as shown in Figure 2):
Step a. gathers K audio signal successively, converts audio signals into data signal, enters filtering to data signal,
Along zero passage sum n in K data signal after statistical filtering0;
Wherein K is integer, N>K>1;
Step b. gathers the K+j audio signal, and the K+j audio signal is converted into the K+j data signal;
Wherein j is integer, and j=1 ... ..., N-K;
Step c. is filtered to the K+j data signal;
Step d. according in the K+j data signal after filtered along Zero-crossing Number OK+jObtain the K+j frequency fK+j;
Step e. is obtained and the K+j frequency f according to default numerical tabularK+jCorresponding numerical value, in numerical tabular
The corresponding frequency of each numerical value;
Step f. judges whether K+j is less than or equal to N-1, performs step h if not;
Step g.j=j+1, perform step b;
Step h. stores each numerical value, and the blank character gone between divider value is to obtain decoded data.
Coding/decoding method in this embodiment can be used for transmission data or be accurately positioned, and this method is simple, efficiency high, and error code
Rate is low.When for positioning, it can be positioned according to the audio signal sampled.
In a preferred embodiment, filtering is entered using recursion type high-pass filtering method to data signal in step a.Recurrence
Type high-pass filtering method has good amplitude-frequency response characteristic, and stability is good, be widely used in communicating, control, be biomedical,
The fields such as vibration analysis, radar and sonar.
In a preferred embodiment, filtering is entered using recursion type high-pass filtering to the K+j data signal in step c
Method.
In a preferred embodiment, as shown in figure 3, according to the upper edge of the K+j data signal after filtered in step d
Zero-crossing Number OK+jObtain the K+j frequency fK+jDetailed process be:
Step d1. statistics from+1 data signal of jth to the K+j data signal on along zero passage sum nj;
Step d2. judges njWhether n is more thanj-1, step d4 is performed if not;
Step d3. makes+1 data signal of jth to the K+j data signal along zero passage sum OK+j=nj, perform step
Rapid d5;
Step d4. makes+1 data signal of jth to the K+j data signal along zero passage sum OK+j=nj-1;
Step d5. obtains the K+j frequency f according to formula (1)K+j:
fK+j=(OK+j/N)*Q (1);
Wherein Q represents sample rate.
In a preferred embodiment, the frequency range of the audio signal is:18KHz~22KHz.The frequency range is behaved
Ear is insensitive, it is more difficult to discovers frequency, the sense of hearing of people will not be interfered, and can reach transmission data or the purpose of positioning.
Preferred embodiments of the present invention are the foregoing is only, not thereby limit embodiments of the present invention and protection model
Enclose, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Scheme obtained by equivalent substitution and obvious change, should be included in protection scope of the present invention.
Claims (7)
1. a kind of coding/decoding method of audio frequency sound, it is characterised in that the coding/decoding method is used for N number of audio signal solution to be collected
Code, the coding/decoding method comprise the steps:
Step a. gathers K audio signal successively, converts audio signals into data signal, and filtering, statistics are entered to data signal
Along zero passage sum n in filtered K data signal0;
Wherein K is integer, N>K>1;
Step b. gathers the K+j audio signal, and the K+j audio signal is converted into the K+j data signal;
Wherein j is integer, and j=1 ... ..., N-K;
Step c. is filtered to the K+j data signal;
Step d. according in the K+j data signal after filtered along Zero-crossing Number OK+jObtain the K+j frequency fK+j;
Step e. is obtained and the K+j frequency f according to default numerical tabularK+jCorresponding numerical value, it is each in numerical tabular
The corresponding frequency of individual numerical value;
Step f. judges whether K+j is less than or equal to N-1, performs step h if not;
Step g.j=j+1, perform step b;
Step h. stores each numerical value, and the blank character gone between divider value is to obtain decoded data.
2. coding/decoding method as claimed in claim 1, it is characterised in that the audio frequency sound encodes acquisition as follows:
The serial data group of input is divided into plurality of data by step 1. according to input sequence, and a plurality of maximum is W;
Wherein W is integer, and W>1;
Step 2. obtains the frequency corresponding with i-th of data according to default frequency table;
Wherein i is integer, i=1 ... ..., W;
Step 3. generates corresponding i-th of audio signal according to the frequency of i-th of data and exported;
Step 4. judges whether i is more than or equal to W, if performing step 6;
Step 5.i=i+1, perform step 2;
Step 6. terminates.
3. coding/decoding method as claimed in claim 2, it is characterised in that generated in step 3 according to the frequency of i-th of data corresponding
I-th of audio signal output after, delay adjustmentses perform step 4 again after the time.
4. coding/decoding method as claimed in claim 1, it is characterised in that filtering is entered using recurrence to data signal in step a
Type high-pass filtering method.
5. coding/decoding method as claimed in claim 1, it is characterised in that what filtering used is entered to the K+j data signal in step c
It is recursion type high-pass filtering method.
6. coding/decoding method as claimed in claim 1, it is characterised in that according to the K+j data signal after filtered in step d
On along Zero-crossing Number OK+jObtain the K+j frequency fK+jDetailed process be:
Step d1. statistics from+1 data signal of jth to the K+j data signal on along zero passage sum nj;
Step d2. judges njWhether n is more thanj-1, step d4 is performed if not;
Step d3. makes+1 data signal of jth to the K+j data signal along zero passage sum OK+j=nj, perform step d5;
Step d4. makes+1 data signal of jth to the K+j data signal along zero passage sum OK+j=nj-1;
Step d5. obtains the K+j frequency f according to formula (1)K+j:
fK+j=(OK+j/N)*Q (1);
Wherein Q represents sample rate.
7. coding/decoding method as claimed in claim 1, it is characterised in that the frequency range of the audio signal is:18KHz~
22KHz。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410309175.0A CN104064192B (en) | 2014-06-30 | 2014-06-30 | A kind of encoding and decoding method of audio frequency sound |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410309175.0A CN104064192B (en) | 2014-06-30 | 2014-06-30 | A kind of encoding and decoding method of audio frequency sound |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104064192A CN104064192A (en) | 2014-09-24 |
CN104064192B true CN104064192B (en) | 2017-11-10 |
Family
ID=51551870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410309175.0A Expired - Fee Related CN104064192B (en) | 2014-06-30 | 2014-06-30 | A kind of encoding and decoding method of audio frequency sound |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104064192B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704488A (en) * | 2017-08-16 | 2018-02-16 | 上海科泰信息技术有限公司 | A kind of information transmission system based on broadcast system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5298899A (en) * | 1991-12-27 | 1994-03-29 | Samsung Electronics Co., Ltd. | PCM encoder and decoder using exkrema |
CN102291205A (en) * | 2011-09-19 | 2011-12-21 | 朱建 | High-reliability data transmission method and device based on multi-frequency sound waves |
CN102497578A (en) * | 2011-11-25 | 2012-06-13 | 武汉大学 | Mobile audio and video real-time communication method in 3G network environment |
CN103077723A (en) * | 2013-01-04 | 2013-05-01 | 鸿富锦精密工业(深圳)有限公司 | Audio transmission system |
-
2014
- 2014-06-30 CN CN201410309175.0A patent/CN104064192B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5298899A (en) * | 1991-12-27 | 1994-03-29 | Samsung Electronics Co., Ltd. | PCM encoder and decoder using exkrema |
CN102291205A (en) * | 2011-09-19 | 2011-12-21 | 朱建 | High-reliability data transmission method and device based on multi-frequency sound waves |
CN102497578A (en) * | 2011-11-25 | 2012-06-13 | 武汉大学 | Mobile audio and video real-time communication method in 3G network environment |
CN103077723A (en) * | 2013-01-04 | 2013-05-01 | 鸿富锦精密工业(深圳)有限公司 | Audio transmission system |
Also Published As
Publication number | Publication date |
---|---|
CN104064192A (en) | 2014-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103077723B (en) | Audio transmission system | |
CN104301521B (en) | A kind of modulation system based on mobile audio interface, telecommunication circuit and communication means thereof | |
CN102522092B (en) | Device and method for expanding speech bandwidth based on G.711.1 | |
CN104835520A (en) | Mobile equipment recording method and device | |
CN103378933A (en) | Decoding method, decoding module, signal processing method and signal processing device | |
CN103701492A (en) | Water sound frequency hopping communication method for linear modulation signal modulation and demodulation | |
CN104064192B (en) | A kind of encoding and decoding method of audio frequency sound | |
WO2016078271A1 (en) | Signal sending and receiving method, device and system | |
JP7080262B2 (en) | Channel-to-channel phase difference parameter coding method and equipment | |
CN106375024A (en) | Acoustic communication system and method | |
CN107359868A (en) | Pulse density modulated change-over circuit and method | |
CN203288240U (en) | Speech endpoint detection system based on DSP | |
CN109461440A (en) | The method and smart machine of voice communication maximum possible intention are taken turns in a kind of acquisition more | |
CN101976567B (en) | Voice signal error concealing method | |
CN102239518A (en) | Encoding and decoding method and device | |
CN210225395U (en) | Anti-interference infrared receiver | |
CN107707329A (en) | Sparse Code multiple access system and its multi-user test method | |
CN109785849B (en) | Method for inserting unidirectional control information into pcm audio stream based on iis transmission | |
CN208850035U (en) | A kind of voice amplification processing circuit | |
CN106887235A (en) | A kind of voice de-noising method and intelligent electronic device | |
CN206758125U (en) | A kind of application on voiceprint recognition equipment under noise circumstance | |
CN107423648B (en) | RFID reader capable of improving forward anti-interference function | |
CN104735809A (en) | Method for communication between terminal and external equipment and terminal | |
CN104681032B (en) | A kind of voice communication method and equipment | |
CN105049063A (en) | Grid-shaped pulse interval encoding method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171110 Termination date: 20210630 |
|
CF01 | Termination of patent right due to non-payment of annual fee |