CN104050968B - Embedded type audio acquisition terminal AAC audio coding method - Google Patents

Embedded type audio acquisition terminal AAC audio coding method Download PDF

Info

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
Application number
CN201410284372.1A
Other languages
Chinese (zh)
Other versions
CN104050968A (en
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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN201410284372.1A priority Critical patent/CN104050968B/en
Publication of CN104050968A publication Critical patent/CN104050968A/en
Application granted granted Critical
Publication of CN104050968B publication Critical patent/CN104050968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of embedded audio collection terminal AAC audio coding method
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.
CN201410284372.1A 2014-06-23 2014-06-23 Embedded type audio acquisition terminal AAC audio coding method Active CN104050968B (en)

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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106782573B (en) * 2016-11-30 2020-04-24 北京酷我科技有限公司 Method for generating AAC file through coding
CN109360574A (en) * 2018-10-18 2019-02-19 恒玄科技(上海)有限公司 A kind of improved Advanced Audio Coding/coding/decoding method of wireless Bluetooth system and system

Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN104301521B (en) A kind of modulation system based on mobile audio interface, telecommunication circuit and communication means thereof
CN103618903B (en) The high-speed low-power-consumption radio sensing network video compress method of sampling
CN104168486A (en) Virtual machine and client video redirection method based on cloud computing
CN106254867A (en) Based on picture group, video file is carried out the method and system of transcoding
CN103873952B (en) A kind of efficient video playback frame losing control system and its method
CN104301742A (en) Video redirecting device between virtual machine and client and use method thereof
CN109587551A (en) A kind of judgment method, device, equipment and the storage medium of live streaming media Caton
WO2009158456A3 (en) Compression scheme for interval data
CN101516032B (en) Method for extracting and processing video data
CN104980682A (en) Intelligent dynamic high-definition video transmission system
CN104637483A (en) Multichannel-based low-speed voice coding/decoding system
CN107578783A (en) Audio defeat method and system, memory and electronic equipment during audio frequency and video are live
CN205005157U (en) Many screen concatenation control display system
CN101692711A (en) Method for encoding and decoding video, system and video monitoring system
CN104935406A (en) Data compression and decompression methods for intelligent power grid communication and intelligent power grid communication system
CN104167210A (en) Lightweight class multi-side conference sound mixing method and device
CN105187688B (en) The method and system that a kind of real-time video and audio to mobile phone collection synchronizes
CN204145628U (en) A kind of T-DMB receiver based on ID200
CN201742398U (en) Voice and data simultaneous transmission ultra-short wave transmission system
CN204145629U (en) A kind of receiver based on ID200
CN212936044U (en) Conference display terminal based on real-time monitoring of Internet of things
CN202889531U (en) Wireless audio/video acquisition system
CN207150743U (en) A kind of video encoder monitored in real time

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model