CN104050968B - Embedded type audio acquisition terminal AAC audio coding method - Google Patents
Embedded type audio acquisition terminal AAC audio coding method Download PDFInfo
- Publication number
- CN104050968B CN104050968B CN201410284372.1A CN201410284372A CN104050968B CN 104050968 B CN104050968 B CN 104050968B CN 201410284372 A CN201410284372 A CN 201410284372A CN 104050968 B CN104050968 B CN 104050968B
- Authority
- CN
- China
- Prior art keywords
- coding
- aac
- audio
- frame
- storage
- 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.)
- Active
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses an embedded type audio acquisition terminal AAC audio coding method. Inter-frame splitting is conducted on the basis of AAC audio coding; the splitting process is carried out according to the idea of conducting coding at two terminals; at an embedded type audio acquisition terminal, acquired original audio signals are split into two parts by a certain number according to the computing capacity and the admissible audio coding delay of the embedded type audio acquisition terminal, AAC coding is directly conducted on one part of the original audio signals locally before the original audio signals obtained after the AAC coding are transmitted to a storage and play terminal, and ADPCM coding is simply conducted on the other part of the original audio signals before the original audio signals obtained after the ADPCM coding are transmitted to the storage and play terminal; at the storage and play terminal, different received data are processed differently, and finally complete and ordered AAC audio data are output. According to the embedded type audio acquisition terminal AAC audio coding method, the splitting is conducted on AAC audio coding, as a result, the embedded type audio acquisition terminal with limited operational capability can carry out part of AAC audio coding, operation resources of the acquisition terminal are fully utilized, no special hardware resources are needed, and the bandwidth needed by data transmission is reduced.
Description
Technical field
The present invention relates to a kind of embedded audio collection terminal AAC audio coding method is it is adaptable to embedded device.
Background technology
In audio coding field, AAC audio coding, compared to other audio coding modes, has the more high and low code of compression ratio
The advantages of under rate, tonequality is more preferable.But AAC standard algorithm complex is high, not optimized it is difficult in limited embedded of computing capability
Real-time software coding is realized on equipment, for most embedded device, the real-time software of complete independently AAC audio frequency to compile
Code, is extremely difficult to.
Content of the invention
Goal of the invention:In order to overcome the deficiencies in the prior art, the present invention provides a kind of reduction embedded device end
The AAC audio frequency real-time coding method that computing capability needs, is meeting the embedded collection terminal AAC audio coding limited by computing capability
While demand, reduce transmission desire bandwidth, and the computing capability of embedded collection terminal can have been made full use of.
Technical scheme:For achieving the above object, the technical solution used in the present invention is:
A kind of embedded audio collection terminal AAC audio coding method, carries out interframe fractionation based on to AAC audio coding, tears open
It is divided into the thought in two ends coding:
The computing capability that embedded audio collection terminal can provide according to it and permissible audio coding postpone, to collection
To original audio signal be split as two parts according to certain quantity, a part is directly locally carrying out AAC coded transmission
Play end to storage, another part carries out simple ADPCM coded transmission and plays end to storage;
Storage is play end and is carried out different disposal to the different pieces of information receiving:The AAC coding receiving directly is compiled
Code storage;Initial data is decoded as first to the ADPCM coding receiving, then initial data is carried out with AAC coding and to knot again
Fruit code storage;Storage is play end and two parts AAC coding of code storage is rearranged according to coding, and exports final
Completely orderly AAC voice data.
AAC audio coding is (to be usually each sound channel 1024 by what an audio signal quantity encoded one by one
Individual collection point is an audio frame);When splitting, for a frame audio signal, it is to be encoded at one end completely, fractionation is pin
Audio signal to different frame, that is, a part of audio frequency frame signal directly carry out AAC coding at audio collection end, and another part pass
Defeated to storage play end carry out AAC coding.Will be to not carrying out letter in the data signal locally carrying out AAC coding at audio collection end
Single compression, reduces transmission desire bandwidth;At audio collection end, the audio signal of a part directly carries out AAC coding, another portion
Audio signal needs are transferred to storage broadcasting end and are encoded, and for this part, then transmit after being encoded by ADPCM again,
Thus reducing data bandwidth, required amount of calculation is also less.Therefore, the method is meeting the embedded collection limited by computing capability
While the AAC audio coding demand of end, reduce the required bandwidth of transmission, and take full advantage of the calculating energy of embedded collection terminal
Power.
Preferably, the computing capability that audio collection end can provide according to it and permissible audio coding postpone, to adopting
The original audio signal collecting is split as two parts according to certain quantity, is 100% in the CPU usage of embedded device
Under situation, specially:It is T to a period of time1Original audio signal, carrying out the AAC coding required scramble time is T2, carry out
The ADPCM coding required scramble time is T3, the length of the every frame of audio signal is T4, permissible coding delay is T, wherein T2
> T1, T3> T1;Then the AAC coding delay of each frame original audio signal isEach frame original audio signal
ADPCM coding delay isPrimary contract x:Y meets:
Obtain primary contract x:Y=(T1-T3):(T1-T2);Need reserved lower partial arithmetic money in view of embedded device
With used for other purposes and permissible coding delay, setting splits ratio for M in source:N, meets M:N < (T1-T3):(T1-T2) and
Preferably, within an audio signal sample cycle at audio collection end, it is first begin to in M frame audio signal
Part carries out AAC coding, and the AAC audio frame after the completion of coding is sent to storage broadcasting end;Then to M to (M+N) frame sound
Frequency signal carries out ADPCM coding, and the ADPCM coding after the completion of coding is sent to storage broadcasting end;Finally M frame audio frequency is believed
Remainder in number carries out AAC coding, and the AAC audio frame after the completion of coding is sent to storage broadcasting end;In a sound
The coding of audio signal sample data in a cycle is completed in frequency signal acquisition periods.
It is first begin to carry out AAC coding to M frame audio signal, but because AAC coding rate is slower than adopting of acoustical signal
Collection speed, so when having gathered M frame audio signal, the frame number of the audio signal that AAC coding completes is less than M frame;Then
The M collecting is carried out ADPCM coding to (M+N) frame audio signal, but because ADPCM coding rate is faster than acoustical signal
Picking rate, so ADPCM coding can complete within the audio signal sample cycle;And in this cycle remaining free time then use
In the AAC coding completing the audio signal not completing AAC coding in M frame audio signal.
Preferably, play end in storage, the M of the ADPCM coded format receiving is carried out to (M+N) frame audio signal
ADPCM decodes, and carries out AAC coding to (M+1) to (M+N) frame audio signal simultaneously, and M frame audio signal is not needed compile
Code, is started with (M+1) frame audio signal, solves the frame-to-frame correlation of AAC coding.
Beneficial effect:The embedded audio collection terminal AAC audio coding method that the present invention provides, enters to AAC audio coding
Row splits so that the limited embedded audio collection terminal of operational capability also can carry out the AAC audio coding of part, makes full use of and adopts
The calculation resources at collection end, without the need for special hardware resource, and reduce transmission data desire bandwidth.
Brief description
Fig. 1 is the flow chart of the present invention, and wherein solid line represents voice data.
Specific embodiment
Below in conjunction with the accompanying drawings the present invention is further described.
It is illustrated in figure 1 a kind of embedded audio collection terminal AAC audio coding method, carry out based on to AAC audio coding
Interframe splits, and is split as the thought in two ends coding:
The computing capability that audio collection end can provide according to it and permissible audio coding postpone, former to collect
Beginning audio signal is split as two parts according to certain quantity, and a part is directly locally carrying out AAC coded transmission to storage
Play end, another part carries out simple ADPCM coded transmission and plays end to storage;
Storage is play end and is carried out different disposal to the different pieces of information receiving:The AAC coding receiving directly is compiled
Code storage;Initial data is decoded as first to the ADPCM coding receiving, then initial data is carried out with AAC coding and to knot again
Fruit code storage;Storage is play end and two parts AAC coding of code storage is rearranged according to coding, and exports final
Completely orderly AAC voice data.
The computing capability that audio collection end can provide according to it and permissible audio coding postpone, former to collect
Beginning audio signal is split as two parts according to certain quantity, in the case of the CPU usage of embedded device is 100%,
It is specially:It is T to a period of time1Original audio signal, carrying out the AAC coding required scramble time is T2, carry out ADPCM volume
Scramble time needed for code is T3, the length of the every frame of audio signal is T4, permissible coding delay is T, wherein T2> T1, T3>
T1;Then the AAC coding delay of each frame original audio signal isThe ADPCM coding delay of each frame original audio signal
ForPrimary contract x:Y meets:
Obtain primary contract x:Y=(T1-T3):(T1-T2);Need reserved lower partial arithmetic money in view of embedded device
With used for other purposes and permissible coding delay, setting splits ratio for M in source:N, meets M:N < (T1-T3):(T1-T2) and
Within an audio signal sample cycle at audio collection end, it is first begin to carry out AAC volume to M frame audio signal
Code, and the AAC audio frame after the completion of coding is sent to storage broadcasting end, but because AAC coding rate is slower than acoustical signal
Picking rate, so when having gathered M frame audio signal, the frame number of the audio signal that AAC coding completes is less than M frame;
Therefore, after having gathered M frame audio signal, (M+1) that next will collect is carried out to (M+N) frame audio signal
ADPCM encodes, and the ADPCM coding after the completion of coding is sent to storage broadcasting end, but because ADPCM coding rate is faster than
The picking rate of acoustical signal, so ADPCM coding can complete within the audio signal sample cycle, and remaining free time is then
For complete in M frame audio signal do not complete AAC coding audio signal AAC coding, and by coding after the completion of AAC audio frequency
Frame is sent to storage and plays end.
Play end in storage, to (M+N) frame audio signal, ADPCM solution is carried out to the M of the ADPCM coded format receiving
Code, carries out AAC coding to (M+1) to (M+N) frame audio signal simultaneously, and M frame audio signal is not needed with coding, with the
(M+1) frame audio signal starts, and solves the frame-to-frame correlation of AAC coding.
The flow process that implements of the method is:
(1) carry out complete AAC audio coding test at audio collection end first, the acoustical signal of input is carried out
AAC encodes, and obtains each frame acoustical signal and carries out required T average time of AAC codinga;
(2) according to TaSize and admissible coding delay T, audio signal frame is split;By TaSize and volume
Code delay is T, according to computational methods noted earlier, determines that M is compared in fractionation:N;
(3) at audio collection end, AAC coding is carried out to acoustical signal;According to splitting block size, first to M frame audio signal
Carry out AAC coding, and the AAC audio frame after the completion of coding be sent to storage playing end, but because coding rate is slower than sound
The picking rate of message number, so when having gathered M frame acoustical signal, the audio frame having encoded is less than M frame.Then will adopt
The M collecting carries out ADPCM coding to (M+N) audio frequency frame signal, because ADPCM coding rate is faster than the collection speed of audio signal
Degree, so ADPCM coding can complete in the collection period of audio signal, and remaining free time be then used for remaining not in sound
The AAC coding of the audio signal completing in frequency collection period, and the AAC audio frame after the completion of coding is transferred to storage broadcasting
End;
(4) play end in storage, the M for the ADPCM form receiving carries out ADPCM solution to (M+N) audio frequency frame signal
Code, carries out AAC coding to decoded (M+1) to (M+N) audio frequency frame signal simultaneously, and M frame audio signal does not need to encode, only
For (M+1) signal, solve the frame-to-frame correlation of AAC coding;
(5) play end in storage, two parts AAC audio frequency frame signal is carried out permutatation, and (a portion is derived from collection terminal
The AAC audio frame of coding, another part is then the AAC audio frame of local coder), export finally completely orderly AAC audio frequency number
According to.
The above be only the preferred embodiment of the present invention it should be pointed out that:Ordinary skill people for the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (3)
1. a kind of embedded audio collection terminal AAC audio coding method it is characterised in that:It is based on and frame is carried out to AAC audio coding
Between split, be split as two ends coding thought:
The computing capability that audio collection end can provide according to it and permissible audio coding postpone, to the original sound collecting
Frequency signal is split as two parts according to certain quantity, and a part is directly locally carrying out AAC coded transmission to storage broadcasting
End, another part carries out ADPCM coded transmission and plays end to storage;Specifically fractionation mode is:It is T to a period of time1's
Original audio signal, carries out AAC and encodes the required scramble time for T2, carry out ADPCM and encode the required scramble time for T3, sound
The length of the every frame of frequency signal is T4, permissible coding delay is T, wherein T2> T1, T3> T1, setting fractionation ratio is M:N, meets
M:N < (T1-T3):(T1-T2) and
Storage is play end and is carried out different disposal to the different pieces of information receiving:Directly carry out coding to the AAC coding receiving to deposit
Storage;Initial data is decoded as first to the ADPCM coding receiving, then initial data is carried out with AAC coding again and result is compiled
Code storage;Storage is play end and two parts AAC coding of code storage is rearranged according to coding, and exports finally complete
Orderly AAC voice data.
2. embedded audio collection terminal AAC audio coding method according to claim 1 it is characterised in that:Adopt in audio frequency
In one audio signal sample cycle at collection end, it is first begin to carry out AAC coding to the part in M frame audio signal, and will compile
AAC audio frame after the completion of code is sent to storage and plays end;Then to (M+N) frame audio signal, ADPCM coding is carried out to M, and
ADPCM coding after the completion of coding is sent to storage and plays end;Finally AAC is carried out to the remainder in M frame audio signal
Coding, and the AAC audio frame after the completion of coding is sent to storage broadcasting end;Complete one within an audio signal sample cycle
The coding of audio signal sample data in the individual cycle.
3. embedded audio collection terminal AAC audio coding method according to claim 2 it is characterised in that:Broadcast in storage
Put end, to (M+N) frame audio signal, ADPCM decoding is carried out to the M of the ADPCM coded format receiving, simultaneously to (M+1)
Carry out AAC coding to (M+N) frame audio signal, and M frame audio signal is not needed encode, with (M+1) frame audio signal
Start, solve the frame-to-frame correlation of AAC coding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410284372.1A CN104050968B (en) | 2014-06-23 | 2014-06-23 | Embedded type audio acquisition terminal AAC audio coding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410284372.1A CN104050968B (en) | 2014-06-23 | 2014-06-23 | Embedded type audio acquisition terminal AAC audio coding method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104050968A CN104050968A (en) | 2014-09-17 |
CN104050968B true CN104050968B (en) | 2017-02-15 |
Family
ID=51503707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410284372.1A Active CN104050968B (en) | 2014-06-23 | 2014-06-23 | Embedded type audio acquisition terminal AAC audio coding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104050968B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106782573B (en) * | 2016-11-30 | 2020-04-24 | 北京酷我科技有限公司 | Method for generating AAC file through coding |
CN109360574B (en) * | 2018-10-18 | 2022-06-21 | 恒玄科技(上海)股份有限公司 | Advanced audio coding/decoding method and system improved by wireless Bluetooth system |
CN114090802A (en) * | 2022-01-13 | 2022-02-25 | 深圳市猿人创新科技有限公司 | Data storage and search method, device and equipment based on embedded equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848690A (en) * | 2004-09-17 | 2006-10-18 | 广州广晟数码技术有限公司 | Apparatus and methods for multichannel digital audio coding |
CN101141644A (en) * | 2007-10-17 | 2008-03-12 | 清华大学 | Encoding integration system and method and decoding integration system and method |
CN101981615A (en) * | 2008-03-28 | 2011-02-23 | 法国电信公司 | Concealment of transmission error in a digital signal in a hierarchical decoding structure |
CN102254560A (en) * | 2010-05-19 | 2011-11-23 | 安凯(广州)微电子技术有限公司 | Audio processing method in mobile digital television recording |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012108254A (en) * | 2010-11-16 | 2012-06-07 | Toshiba Corp | Audio format conversion apparatus and audio format conversion method |
-
2014
- 2014-06-23 CN CN201410284372.1A patent/CN104050968B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848690A (en) * | 2004-09-17 | 2006-10-18 | 广州广晟数码技术有限公司 | Apparatus and methods for multichannel digital audio coding |
CN101141644A (en) * | 2007-10-17 | 2008-03-12 | 清华大学 | Encoding integration system and method and decoding integration system and method |
CN101981615A (en) * | 2008-03-28 | 2011-02-23 | 法国电信公司 | Concealment of transmission error in a digital signal in a hierarchical decoding structure |
CN102254560A (en) * | 2010-05-19 | 2011-11-23 | 安凯(广州)微电子技术有限公司 | Audio processing method in mobile digital television recording |
Also Published As
Publication number | Publication date |
---|---|
CN104050968A (en) | 2014-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101308658B (en) | Audio decoder based on system on chip and decoding method thereof | |
CN104050968B (en) | Embedded type audio acquisition terminal AAC audio coding method | |
CN103873952B (en) | A kind of efficient video playback frame losing control system and its method | |
RU2010127310A (en) | SYSTEM AND METHOD FOR COMPRESSING INTERACTIVE STREAM VIDEO | |
CN102905128B (en) | Codec processor is the method for Rate Control during wireless video transmission | |
CN102982832A (en) | Synchronization method of accompaniment, voice and subtitle for on-line karaoke | |
CN103618903B (en) | The high-speed low-power-consumption radio sensing network video compress method of sampling | |
CN104301742A (en) | Video redirecting device between virtual machine and client and use method thereof | |
CN103108186A (en) | Method of achieving high-definition transmission of videos | |
CN104144178A (en) | Cloud-computing-based method for transmitting video between virtual machine and client terminal | |
CN107578783A (en) | Audio defeat method and system, memory and electronic equipment during audio frequency and video are live | |
CN114124909A (en) | Point cloud real-time acquisition, compression and transmission system and method based on laser radar | |
CN101308655A (en) | Audio coding and decoding method and apparatus | |
CN107301867A (en) | A kind of voice restarts control system | |
CN101516032B (en) | Extraction processing method of video data | |
CN106683682A (en) | Method for improving speech transmission efficiency | |
CN205005157U (en) | Many screen concatenation control display system | |
CN101329758B (en) | System for processing multimedia data striding course | |
CN100369489C (en) | Embedded wireless coder of dynamic access code tactics | |
EP2139239A3 (en) | Method for encoding video with non-compressed mode and device implementing the method | |
CN203289656U (en) | Voice conversation apparatus and system | |
CN201418137Y (en) | Lossless compression processing system for spaceborne image | |
CN212936044U (en) | Conference display terminal based on real-time monitoring of Internet of things | |
CN204578668U (en) | Streaming media server | |
CN204145629U (en) | A kind of receiver based on ID200 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |