<div dir="ltr"><div><div><div>Hello Daniele<br><br></div>It would be worthwhile to attach an external serial flash or USB thumb drive, if the intent is store data. This allows for far more flexibility in storage<br><br></div>Regards<br></div>Amit<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 26, 2016 at 11:02 AM, Jean-Marc Valin <span dir="ltr"><<a href="mailto:jmvalin@jmvalin.ca" target="_blank">jmvalin@jmvalin.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 26/08/16 11:40 AM, Daniele Barzotti wrote:<br>
> You're right! I forgot to say that I need only the encoder side (and<br>
> only for voice).<br>
<br>
</span>Then you can remove all of the decoder. As for the encoder, it depends<br>
on the bitrate and sampling rate you want (more below).<br>
<span class=""><br>
> My application have to acquire a 16bit 8KHz PCM stream and save a<br>
> compressed audio into a flash.<br>
<br>
</span>Sounds like a job for SILK-only mode. In which case you can strip away<br>
all of CELT.<br>
<span class=""><br>
> (And here I have another little question...<br>
> My flash size is 8Mb only and I have to be able to store in it 8 hours<br>
> of voice, do you think opus shrink the stream enoguht?)<br>
<br>
</span>This is going to be a problem. Assuming you mean 8 mega*byte* (and not 8<br>
megabit), that's still only 2 kilobit/second. Opus pretty much requires<br>
8 kb/s, so 4 times what you have. The only codec I know that can do 2<br>
kb/s with reasonable quality is codec2, and the implementation is<br>
floating point.<br>
<span class=""><br>
> Since I'm using FIXED_POINT, I have to pass also --disable-float-api?<br>
<br>
</span>Yes. The normal API has calls with both int and float, so if you compile<br>
with FIXED_POINT, the float calls do a conversion to int before using<br>
int internally. If you disable the float API, these functions are not<br>
compiled at all, saving a few bytes.<br>
<br>
Cheers,<br>
<br>
        Jean-Marc<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
opus mailing list<br>
<a href="mailto:opus@xiph.org">opus@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/opus" rel="noreferrer" target="_blank">http://lists.xiph.org/mailman/<wbr>listinfo/opus</a><br>
</div></div></blockquote></div><br></div>