用手臂进行音频竞争 [英] Audio comperession with arm

查看:75
本文介绍了用手臂进行音频竞争的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我写了一个程序,用lpc1768

取样声音信号,但

达到优质采样率应该至少需要40到50 k样本是每个样本是12位所以体积占用太多

所以我需要使用可以为我压缩它的算法或库

i looking对于一个图书馆和

但是我不知道如何使用这个库来获取lpc1768

现在有没有人可以帮助我?!



我尝试了什么:



i找迷你lzo和跛脚mp3编码器

但是lame很重,因为lpc1768

并且不知道如何使用mini lzo

Hi I wrote a program to take samples of the sound signal with lpc1768
but
to reach Good quality sample rate should be take at least 40 to 50 k samples is that each sample is 12 bits so the volume occupies is too much
So I need to use an algorithm or library that can compress it for me
i looking for a library and
but I do not know how to use this library for lpc1768
Now is there anyone here who can help me?!

What I have tried:

i find mini lzo and lame mp3 encoder
but lame is heavy for lpc1768
and don't know how to use mini lzo

推荐答案

看看Zlib。它用于PNG图像压缩并且是无损的。另外,您可以找到用简单的旧C编写的源代码。它能够进行内存压缩,因此它应该能够完全按照您的需要进行操作。
Have a look at Zlib. It is used for PNG image compression and is lossless. Plus, you can find the source code written in plain, old C. It is capable of in-memory compression so it should be able to do exactly what you want.


您可以使用 mp3 解码库,请参阅此文章:音频播放器设计示例 [ ^ ]尽管如此,乍一看它看起来你需要一个更强大的芯片。
You may use a mp3 decoding library, see this paper: "Audio Player Design Example"[^] though, at first glance it looks you need a more powerful chip.


你认为你需要多长时间才能适应32KB的RAM?我当然希望你将这个样本的存储卸载到除了uC以外的其他地方,或者将样本传输到PC或更大的东西。



如果你是不,你将需要升级到更大的内存或存储更大的uC。
How long of a sample do you think you're going to fit in 32KB of RAM? I certainly hope you're offloading the storage of this sample to something else besides the uC or are streaming the samples to a PC or something bigger.

If you're not, you are going to need to move up to a bigger uC with more memory or storage.


这篇关于用手臂进行音频竞争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆