- Open Access
- Total Downloads : 834
- Authors : Mr. A. V. Warhade, Prof. A. D. Bijwe, Prof. A. P. Deshpande
- Paper ID : IJERTV2IS50312
- Volume & Issue : Volume 02, Issue 05 (May 2013)
- Published (First Online): 10-05-2013
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
A New Algorithms for Implementing Audio Compression Techniques Using Embedded System
Mr. A. V. Warhade |
Prof A. D. Bijwe |
Prof. A. P. Deshpande |
M-Tech IVsem, PIET |
Assitt. Prof, PIET Nagpur |
Assitt. Prof, PIET Nagpur |
In this Paper study of various architecture for audio codec in an embedded system to demonstrate its effectiveness this is used to create completely self-contained digital audio encoder, based around a high-quality. General purpose audio compression algorithm The resulting audio encoder is able to operate 33% faster than the original Software only algorithm & hardware is able to achieve compression of 8KHz, mono, audio data in real-time.
Dynamic Range Compressors are a complex type of audio effect. The number of choices to be made during the design phase is vast. However, even using a compressor has its challenges, since the influences of the different parameters on the signal are not always obvious
especially to beginners. While properly setting up a compressor takes a lot of experience, a badly configured compressor can introduce a number of unpleasant artifacts to the sound.
Audio compression (data), a type of lossy compression in which the amount of data in a recorded waveform is reduced for transmission with some loss of quality Dynamic range compression, also called audio level compression, in which the dynamic range, the difference between loud and quiet, of an audio waveform is reduced. Dynamic range compression, also called DRC (often seen in DVD and car CD player settings) or simply compression reduces the volume of loud sounds or amplifies quiet sounds by narrowing or "compressing" an audio signal's dynamic range Goals Of audio Compression:
Reduced bandwidth or storage make decoded signal as close as possible lowest implementation complexity reasonable arithmetic requirement. Application to as many signal type as possible robust, scalable extensible an `audio CODEC' is a system for the
encoding, and Decoding of audio data for use in digital systems The term `Lossy' refers to the fact that once audio data have gone through this process and been reconstructed, some information will be lost and the resulting signal will not be identical to that sampled. The key to successful CODEC is being able to identify where the redundant information in the signal is and being able to remove it, while at the same Time minimizing the perceived impact on the listener of the reconstructed signal.
MP3 players now sporting flash memory cards capable of storing whole albums, it seems logical that the next step should be not only playback, but also the capture of digital audio with these devices. To capture and store audio samples directly into a digital format, any time or place, is often a highly desirable goal. By keeping a digital version of captured audio it is possible to backup, distribute and replay a sample an unlimited number of times without having to worry about any kind of degradation, a problem that traditional analogue storage methods are often proneto. Unfortunately in its raw digitally captured format, high quality audio can be rather unwieldy in terms of its data storage requirements. So to compensate for this, raw audio data are often stored in an `encoded'
form which greatly reduces the storage requirement, possibly at the expense of losing some parts of the original signal which are redundant to human listeners.
Encoding digital audio data into a compressed format does however come at a price in the form of a high processing requirement. This comes into direct conflicts with the goal of being able to capture an audio sample at any time and place, where in many cases computing power and resources maybe limited. One solution to this problem is to use a dedicated embedded audio encoding system that has been optimized for the capture and storage of digital audio. The absolute threshold of hearing makes use of the fact that humans do not perceive all frequencies of sound equally.
Audio Functionality plays a critical role in embedded media processing. While audio takes less processing time than video. Then data is presented to the processor from variety of audio convertor. Sound is longitude displacement wave that propagates through air& sounds will be measured in dBSPL One possible approach for this project could have been to create an entirely new general purpose sequential processor from scratch. The advantage of this route would be full control over every aspect of the design, potentially allowing for maximal efficiency.
There were many distinguishing features amongst all of these, but in essence (apart from the PPC core in the Virtex-II Pro) they all sport a 32bit RISC
Choosing the right processor is not the end of story because the total quality of an audio system is dictated by the level of the lowest achieving component Besides the processor a complete system includes analog component like
microphone & speaker as well as the converters to translate signal between the analog & digital domains Some of the major distinguishing points of the pre-made SoCs
The term audio codec has two meanings depending on the context in software, an audio codec is a computer Programmed implementing Algorithm that Compressed & Decompressed
digital audio data according to a given audio file format or streaming media audio format. .
The object of the algorithm is to represent the high-fidelity audio signal with minimum number of bits while retaining the quality. This can effectively reduce the storage space and the bandwidth required for transmission of the stored audio file
Most codec are implemented as libraries which interface to one or more multimedia player in hardware, audio codec refers to a single device that encodes analog audio as digital signals and decodes digital back into analog. In other words, it contains both an (ADC) and (DAC) running off the same clock. This is used in Sound Cards that support both audio in and out, for instance.
Non-compression formats: LPCM, generally only described as PCM is the format for uncompressed audio in media files and it is also the standard for CD DA note that in computers, LPCM is usually stored in Container Formats such as WAV FF mpeg Pulse Density Modulation (PDM) Pulse Amplitude Modulation (PAM)
Lossless data compression: APPLE Lossless Audio Codec (ALAC) FF mpeg QuickTime ATRAC Advanced lossless (AAL) Direct Steam Transfer (DST) MPEG-4 DST reference software (ISO/IEC 14496-5:2001/Amd.10:2007)
MLP but adds higher sample rates, bit rates, and more channels FF mpeg (decoding only) Lossy data compression: Adaptive Transform Acoustic Coding (ATRAC, used in Mini Disc devices) FFMPEG (decoder only) apt-X Dolby Digital(A/52, AC3) FFMPEG liba52
(decoder only)DTS Coherent Acoustics(DTS, Digital Theatre System Coherent Acoustics) FFMPEG Impala FOR scene audio codec ITU
Audio and MPEG-2 Audio layer I (MP1) (MPEG-1 MPEG-2nd non-ISO MPEG-2.5)
FFMPEG (decoder only layer II (MP2) (MPEG- 1, MPEG-2and non-ISO MPEG-2.5)
A number of different ICs are available considering two different compression codec ics are AD1871 & TMS320AD50C functional diagram & features are shown in Fig
Processor for audio compression Various DSP processors are available for signal processing but I have to consider dynamic range compression one processor choose for this project are BLACKFIN BF537
BLACKFIN DSP is the architectural base for a whole newfamily of DSPs from ADI (AnalogDevices,Inc). It is built upon the Micro Signal Architecture (MSA) core developed through the Joint Development with Intel Corporation. BLACKFIN DSPs incorporate the industrys highest performance 16-bit DSP architecture. It has Dynamic Power Management capabilities which deliver the lowest power consumption. BLACKFIN DSPs are optimized for processing data, communications and video streams for penetration into new market spaces.
High Performance for real Time video signal processing easily programmed to support complex, new standards.
Handles the DSP and Control code with equal efficiency. Maximizes work and minimizes energy per cycle
Arbitrary bit and bit-field manipulation, insertion and extraction Integer operations on 8/16/32-bit data-types Memory protection and separate user and supervisor stack pointers Scratch SRAM for context switching Population and leading digit counting Byte addressing DAGs Compact Code Density
PDA Internet audio , Digital Still Camera
,Video Camera Digital Printing ,Audio ,Modem
,Mobile phone
A D |
CLOCK DIVIDER |
|||
D A T A |
||||
1 |
||||
8 7 1 |
SPI PORT |
A D |
CLOCK DIVIDER |
|||
D A T A |
||||
1 |
||||
8 7 1 |
SPI PORT |
S BLACKFIN
P BF537
O R
T SPI SPORT
Lab VIEW is a highly productive development environment that hardware integration to rapidly design and deploys measurement and control systems. The virtual interface (VI) consists of two main components: the front panel (user interface) and the block diagram)(Source code).Graphical development environments, such as National Instruments Lab VIEW, are effective means to fast prototype and deploy developments from individual algorithms to full system-level designs onto embedded processors. The LABVIEW Embedded Module for Analog Devices BLACKFIN Processors allows Programs written in the LABVIEW to be executed and debugged on BLACKFIN processors .The software was jointly developed by Analog Devices and National Instruments, to take
Advantage of the NI LABVIEW Embedded technology and the convergence of capabilities Of the BLACKFIN EZ-KIT, for control and signal processing applications.
Then build option Select Source Files from the Category list and select your top level VI in the source files list. Target configuration The Target
Configuration dialog box is separated into three configuration tabs, Target Settings, Debug Options and Hardware Non-instrumented Debugging Debug via JTAG/EZ-KIT USB is the same type of debugging available in the Visual DSP++ environment, but with the added benefit of LABVIEWS interactive debugging features Instrumented Debugging Instrumented debugging allows the user to fully interact with a running embedded application without disrupting the processor during execution.
Use the Signal Generation VIs to generate one dimensional array with specific waveform patterns. The Signal Generation VIs generate digital patterns & waveforms Chirp Signal Use the Signal Generation VIs to generate one dimensional array with specific waveforms.
A chirp is a signal in which the frequency increases ('up-chirp') or decreases ('down-chirp') with time. In some sources, the term chirp is used interchangeably with sweep signal. A chirp signal can be generated with analog circuitry via a VCO, and a linearly or exponentially ramping control voltage. It can also be generated digitally by a DSP an DAC, using a (DDS) and by varying the step in the numerically controlled oscillator.
Scaling floating point input of type single to within the valid range of the type fract 16 find the upper vector & lower vector of the input data. Find which boundary has the largest absolute value. Find the scalar of the applied
data, apply scalar to input data convert data type to Fract 16.
Fig.j shows A Law compression
Input is the input array to compress. Output is the same as output out to avoid reallocating memory in every loop iteration. Basically, output is a placeholder in memory for the output. Output must have the same type and number of elements as input.
Fig.k shows A Law Expansion
Output out is the A-law compressed value of input. Input is the input array to expand. Output is the same as output out to avoid reallocating memory in every loop iteration. Basically, output is a placeholder in memory for the output. Output must have the same type and number of elements as input. Length indicates the number of elements to expand. Output out is the A-law expanded value of input.
Fig.l Shows final VI For Compression using BLACKFIN
Fig m. shows Front Panel VI for Compression
The exhaustive literature survey was carried out on the said topic; the literature survey revealed that most of the work was carried out considering LAB VIEW 8.5 model for BLACKFIN
-
B. Bailey, G. Martin, and A. Piziali, ESL Design and Verification: A Prescription for Electronic System Level Methodology. Elsevier, 2007.
-
Abdallah, A. Gamatié, R. Ben-Atitallah, and J.-L. Dekeyser, Correct and Energy-Efficient design of a Multimedia Application on SoCs,INRIA, Report 7715, 2011, Gamatié, S. L. Beux, E. Piel, A. Etien, R. Ben-Atitallah, P. Marquet,and J.-L. Dekeyser,
-
A model driven design framework for high performance embedded systems, INRIA, Research Report 6614, 2008,http://hal.inria.fr/inria- 00311115/en.A. Benveniste, P. Caspi, S. Edwards, N. Halbwachs, P. Le Guernic, and R. de Simone, The synchronous languages twelve years later, Proc.of IEEE, vol. 91, no. 1, pp. 6483, Jan. 2003.
-
Embedded Signal Processing with the Micro Signal Architecture By Dr. Woon-Seng S. Gan, Dr. Sen M. Kuo© 2006 John Wiley and Sons, Inc.
-
T. Nishitani, Trend and perspective on domain specific programmable chips, in Proc. IEEE Workshop Signal
Processing Systems (SiPS97), Nov. 1997, pp. 18.J.
-
Goto, K. Ando, T. Inoue, M. Yamashima, H. Yamada, K. Aono, M. Toyokura, A. Ohtani, H. Kodama, and K.Okamoto, A video digital signal processor with a vector pipeline architecture, IEEE J. Solid-State Circuits, vol. 27, no.12, pp. 18861893, 1992.
-
P. Foley, The Impact media processor redefines the multimedia, in Proceedings of Compcon. New York: IEEE Computer Science Press, 1996, pp. 311318,