CN104050968A - 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
CN104050968A
CN104050968A CN201410284372.1A CN201410284372A CN104050968A CN 104050968 A CN104050968 A CN 104050968A CN 201410284372 A CN201410284372 A CN 201410284372A CN 104050968 A CN104050968 A CN 104050968A
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.)
Granted
Application number
CN201410284372.1A
Other languages
Chinese (zh)
Other versions
CN104050968B (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

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

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, be applicable to embedded device.
Background technology
In audio coding field, AAC audio coding is than other audio coding modes, has under the more high and low code check of ratio of compression the advantages such as tonequality is better.But AAC canonical algorithm complexity is high, be difficult on the limited embedded device of computing power, realize real-time software coding without optimization, for most embedded device, the real-time software of complete independently AAC audio frequency to encode, be very inaccessible.
Summary of the invention
Goal of the invention: in order to overcome the deficiencies in the prior art, the invention provides a kind of AAC audio frequency real-time coding method that embedded device end computing power needs that reduces, in meeting the limited embedded collection terminal AAC audio coding demand of computing power, reduce the required bandwidth of transmission, and can make full use of the computing power of embedded collection terminal.
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, based on AAC audio coding is carried out to interframe fractionation, is split as the thought at two ends coding:
The computing power that embedded audio collection terminal can provide according to it and permissible audio coding postpone, the original audio signal collecting is split as to two parts according to certain quantity, a part is directly transferred to storage and plays end after AAC coding is carried out in this locality, and another part carries out being transferred to storage broadcasting end after simple ADPCM coding;
Storage is play end the different pieces of information receiving is carried out to different disposal: the AAC coding receiving is directly carried out to code storage; First the ADPCM coding of receiving is decoded as to raw data, and then raw data is carried out to AAC coding and to result code storage; Storage is play end two parts AAC coding of code storage is rearranged according to coding, and the final complete orderly AAC voice data of output.
AAC audio coding is by certain sound signal quantity encode one by one (being generally 1024 collection points of each sound channel is an audio frame); In the time splitting, for a frame sound signal, be completely at one end to encode, fractionation is the sound signal for different frame, a part of audio frame signal directly carries out AAC coding at audio collection end, and another part is transferred to storage and plays end and carry out AAC coding.To carry out simple compression to do not carry out AAC coded data signal in this locality at audio collection end, reduce the required bandwidth of transmission; At audio collection end, the sound signal of a part is directly carried out AAC coding, and the sound signal of another portion need to be transferred to storage broadcasting end and encode, and for this part, after encoding by ADPCM, transmit again, thereby reduce data bandwidth, required calculated amount is also less.Therefore, the method, in meeting the limited embedded collection terminal AAC audio coding demand of computing power, has reduced and has transmitted required bandwidth, and taken full advantage of the computing power of embedded collection terminal.
Preferably, the computing power that audio collection end can provide according to it and permissible audio coding postpone, the original audio signal collecting is split as to two parts according to certain quantity, under the situation that is 100% in the CPU usage of embedded device, is specially: to a period of time be T 1original audio signal, carrying out AAC required scramble time of encoding is T 2, carrying out ADPCM required scramble time of encoding is T 3, the length of the every frame of sound signal is T 4, permissible coding delay is T, wherein T 2> T 1, T 3> T 1; The AAC coding delay of each frame original audio signal is the ADPCM coding delay of each frame original audio signal is primary contract x:y meets:
x + y = T 1 T 2 T 1 x + T 3 T 1 y = T 1
Obtain primary contract x:y=(T 1-T 3): (T 1-T 2); Consider that it is M:N to make his use and permissible coding delay, to arrange splitting ratio that embedded device need to be reserved bottom point calculation resources, meets M:N < (T 1-T 3): (T 1-T 2) and T 2 T 1 M + T 3 T 1 N = T 1 .
Preferably, within an audio signal sample cycle of audio collection end, first start the part in M frame sound signal to carry out AAC coding, and AAC audio frame after coding is completed sends to storage to play end; Then M is carried out to ADPCM coding to (M+N) frame sound signal, and ADPCM after coding is completed coding sends to storage to play end; Finally the remainder in M frame sound signal is carried out to AAC coding, and AAC audio frame after coding is completed sends to storage to play end; Within an audio signal sample cycle, complete the coding of audio signal sample data in one-period.
First start M frame sound signal to carry out AAC coding, be still slower than the picking rate of voice signal due to AAC coding rate, so in the time having gathered M frame sound signal, the frame number of the sound signal that AAC has encoded is less than M frame; Then the M collecting is carried out to ADPCM coding to (M+N) frame sound signal, but because ADPCM coding rate is faster than the picking rate of voice signal, so ADPCM coding can complete within the audio signal sample cycle; In this cycle, residue free time is for completing the AAC coding of the sound signal that does not complete AAC coding in M frame sound signal.
Preferably, play end in storage, the M of the ADPCM coded format receiving is carried out to ADPCM decoding to (M+N) frame sound signal, (M+1) to (M+N) frame sound signal is carried out to AAC coding simultaneously, and M frame sound signal is not needed to coding, start with (M+1) frame sound signal, solve the frame-to-frame correlation of AAC coding.
Beneficial effect: embedded audio collection terminal AAC audio coding method provided by the invention, AAC audio coding is split, make the limited embedded audio collection terminal of arithmetic capability also can carry out the AAC audio coding of part, make full use of the calculation resources of collection terminal, do not need special hardware resource, and reduce the required bandwidth of transmission data simultaneously.
Brief description of the drawings
Fig. 1 is process flow diagram of the present invention, and wherein solid line represents voice data.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further described.
Be illustrated in figure 1 a kind of embedded audio collection terminal AAC audio coding method, based on AAC audio coding is carried out to interframe fractionation, be split as the thought at two ends coding:
The computing power that audio collection end can provide according to it and permissible audio coding postpone, the original audio signal collecting is split as to two parts according to certain quantity, a part is directly transferred to storage and plays end after AAC coding is carried out in this locality, and another part carries out being transferred to storage broadcasting end after simple ADPCM coding;
Storage is play end the different pieces of information receiving is carried out to different disposal: the AAC coding receiving is directly carried out to code storage; First the ADPCM coding of receiving is decoded as to raw data, and then raw data is carried out to AAC coding and to result code storage; Storage is play end two parts AAC coding of code storage is rearranged according to coding, and the final complete orderly AAC voice data of output.
The computing power that audio collection end can provide according to it and permissible audio coding postpone, the original audio signal collecting is split as to two parts according to certain quantity, under the situation that is 100% in the CPU usage of embedded device, be specially: to a period of time be T 1original audio signal, carrying out AAC required scramble time of encoding is T 2, carrying out ADPCM required scramble time of encoding is T 3, the length of the every frame of sound signal is T 4, permissible coding delay is T, wherein T 2> T 1, T 3> T 1; The AAC coding delay of each frame original audio signal is the ADPCM coding delay of each frame original audio signal is primary contract x:y meets:
x + y = T 1 T 2 T 1 x + T 3 T 1 y = T 1
Obtain primary contract x:y=(T 1-T 3): (T 1-T 2); Consider that it is M:N to make his use and permissible coding delay, to arrange splitting ratio that embedded device need to be reserved bottom point calculation resources, meets M:N < (T 1-T 3): (T 1-T 2) and T 2 T 1 M + T 3 T 1 N = T 1 .
Within an audio signal sample cycle of audio collection end, first start M frame sound signal to carry out AAC coding, and AAC audio frame after coding is completed sends to storage to play end, but because AAC coding rate is slower than the picking rate of voice signal, so in the time having gathered M frame sound signal, the frame number of the sound signal that AAC has encoded is less than M frame; Therefore, when having gathered after M frame sound signal, (M+1) that next will collect carried out to ADPCM coding to (M+N) frame sound signal, and ADPCM after coding is completed coding sends to storage to play end, but because ADPCM coding rate is faster than the picking rate of voice signal, so ADPCM coding can complete within the audio signal sample cycle, residue free time is for completing the AAC coding of the sound signal that does not complete AAC coding in M frame sound signal, and AAC audio frame after coding is completed sends to storage to play end.
Play end in storage, the M of the ADPCM coded format receiving is carried out to ADPCM decoding to (M+N) frame sound signal, (M+1) to (M+N) frame sound signal is carried out to AAC coding simultaneously, and M frame sound signal is not needed to coding, start with (M+1) frame sound signal, solve the frame-to-frame correlation of AAC coding.
The specific implementation flow process of the method is:
(1) first carry out complete AAC audio coding test at audio collection end, the voice signal of input is carried out to AAC coding, obtain each frame voice signal and carry out T averaging time that AAC encodes required a;
(2) according to T asize and admissible coding delay T, audio signal frame is split; By T asize and coding delay be T, according to computing method noted earlier, determine to split and compare M:N;
(3) at audio collection end, voice signal is carried out to AAC coding; According to splitting block size, first M frame sound signal is carried out to AAC coding, and AAC audio frame after coding is completed sends to storage to play end, but because coding rate is slower than the picking rate of voice signal, so in the time having gathered M frame voice signal, the audio frame of having encoded is less than M frame.Then the M collecting is carried out to ADPCM coding to (M+N) audio frame signal, because ADPCM coding rate is faster than the picking rate of sound signal, so ADPCM coding can complete in the collection period of sound signal, residue free time is for the AAC coding of the remaining sound signal not completing within the audio collection cycle, and AAC audio frame after coding is completed is transferred to storage and plays end;
(4) play end in storage, M for the ADPCM form receiving carries out ADPCM decoding to (M+N) audio frame signal, decoded (M+1) carried out to AAC coding to (M+N) audio frame signal simultaneously, and M frame sound signal does not need coding, only, for (M+1) signal, solve the frame-to-frame correlation of AAC coding;
(5) play end in storage, two parts AAC audio frame signal is carried out to permutatation, and (wherein a part is from the AAC audio frame of collection terminal coding, another part is the AAC audio frame of local coder), the final complete orderly AAC voice data of output.
The above is only the preferred embodiment of the present invention; be noted that for those skilled in the art; under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (4)

1. an embedded audio collection terminal AAC audio coding method, is characterized in that: based on AAC audio coding is carried out to interframe fractionation, be split as the thought at two ends coding:
The computing power that audio collection end can provide according to it and permissible audio coding postpone, the original audio signal collecting is split as to two parts according to certain quantity, a part is directly transferred to storage and plays end after AAC coding is carried out in this locality, and another part carries out being transferred to storage broadcasting end after ADPCM coding;
Storage is play end the different pieces of information receiving is carried out to different disposal: the AAC coding receiving is directly carried out to code storage; First the ADPCM coding of receiving is decoded as to raw data, and then raw data is carried out to AAC coding and to result code storage; Storage is play end two parts AAC coding of code storage is rearranged according to coding, and the final complete orderly AAC voice data of output.
2. embedded audio collection terminal AAC audio coding method according to claim 1, it is characterized in that: the computing power that audio collection end can provide according to it and permissible audio coding postpone, the original audio signal collecting is split as to two parts according to certain quantity, is specially: to a period of time be T 1original audio signal, carrying out AAC required scramble time of encoding is T 2, carrying out ADPCM required scramble time of encoding is T 3, the length of the every frame of sound signal is T 4, permissible coding delay is T, wherein T 2> T 1, T 3> T 1, arrange and split than for M:N, meet M:N < (T 1-T 3): (T 1-T 2) and
3. embedded audio collection terminal AAC audio coding method according to claim 2, it is characterized in that: within an audio signal sample cycle of audio collection end, first start the part in M frame sound signal to carry out AAC coding, and AAC audio frame after coding is completed sends to storage to play end; Then M is carried out to ADPCM coding to (M+N) frame sound signal, and ADPCM after coding is completed coding sends to storage to play end; Finally the remainder in M frame sound signal is carried out to AAC coding, and AAC audio frame after coding is completed sends to storage to play end; Within an audio signal sample cycle, complete the coding of audio signal sample data in one-period.
4. embedded audio collection terminal AAC audio coding method according to claim 3, it is characterized in that: play end in storage, the M of the ADPCM coded format receiving is carried out to ADPCM decoding to (M+N) frame sound signal, (M+1) to (M+N) frame sound signal is carried out to AAC coding simultaneously, and M frame sound signal is not needed to coding, start with (M+1) frame sound signal, 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 true CN104050968A (en) 2014-09-17
CN104050968B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106782573A (en) * 2016-11-30 2017-05-31 北京酷我科技有限公司 A kind of method for encoding generation AAC files
CN109360574A (en) * 2018-10-18 2019-02-19 恒玄科技(上海)有限公司 A kind of improved Advanced Audio Coding/coding/decoding method of wireless Bluetooth system and system
CN114090802A (en) * 2022-01-13 2022-02-25 深圳市猿人创新科技有限公司 Data storage and search method, device and equipment based on embedded equipment

Citations (5)

* 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
US20120123787A1 (en) * 2010-11-16 2012-05-17 Kabushiki Kaisha Toshiba Audioaudio format converting apparatus and audioaudio format converting method

Patent Citations (5)

* 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
US20120123787A1 (en) * 2010-11-16 2012-05-17 Kabushiki Kaisha Toshiba Audioaudio format converting apparatus and audioaudio format converting method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106782573A (en) * 2016-11-30 2017-05-31 北京酷我科技有限公司 A kind of method for encoding generation AAC files
CN109360574A (en) * 2018-10-18 2019-02-19 恒玄科技(上海)有限公司 A kind of improved Advanced Audio Coding/coding/decoding method of wireless Bluetooth system and system
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

Also Published As

Publication number Publication date
CN104050968B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN102638579B (en) A kind of data processing method and system based on mobile device data transmission
CN101795407B (en) Method and device for encoding a bit sequence
CN104168085B (en) A kind of data compression method changed based on redundancy Entropy Changes
CN102298137B (en) Method for compressing adaptive data-rate original data of satellite-borne SAR (Synthetic Aperture Radar)
CN107102220A (en) Recorder data processing method and processing device
CN101742313A (en) Compression sensing technology-based method for distributed type information source coding
CN103618903B (en) The high-speed low-power-consumption radio sensing network video compress method of sampling
CN103457609A (en) Lossless compressing method and lossless uncompressing method of fault wave record data
CN104050968A (en) Embedded type audio acquisition terminal AAC audio coding method
CN114124909A (en) Point cloud real-time acquisition, compression and transmission system and method based on laser radar
EP3624347A1 (en) Split gain shape vector coding
CN105120276A (en) Adaptive Motion JPEG coding method and system
CN115987296A (en) Traffic energy data compression transmission method based on Huffman coding
CN103050123B (en) A kind of method and system of transmitting voice information
CN104202607A (en) Image lossless compression method and electronic device
CN104980764A (en) Parallel coding/decoding method, device and system based on complexity balance
CN101516032B (en) Extraction processing method of video data
CN103973310A (en) Test data compression method based on xor logical operation binary classification
CN106656201A (en) Compression algorithm based on amplitude-frequency characteristics of sampled data
CN202406239U (en) Testing device for time delay of high-definition coding/decoding machine
CN203435079U (en) SDI relay line
CN102223537A (en) Multi-view distributed video coding-decoding system and method based on compressed sensing
CN201418137Y (en) Lossless compression processing system for spaceborne image
CN105553625A (en) Remote channel message compression method and system for electricity consumption collection system
CN105577520A (en) Method for web program instant message interaction

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