<div dir="ltr"><div><div>Hello Joshua,<br><br></div><div>I understand. My main aim to first understand the processing overhead when decisions have to be made for a fixed audio in signal, reduce it so that I can then begin making an update to reduce the memory (on chip flash and RAM) footprint.<br></div><div><br></div>Thanks<br></div>Amit<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 31, 2015 at 7:58 PM, Joshua Bowman <span dir="ltr"><<a href="mailto:silverbacknet@gmail.com" target="_blank">silverbacknet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Opus will always use whatever mode it feels best encodes the frame,
though you can use opus_encoder_ctl(ctx,OPUS_SET_SIGNAL(signal));
where signal is either OPUS_SIGNAL_VOICE or OPUS_SIGNAL_MUSIC to
influence the decision. SILK won't be used when picking incompatible
frame sizes, but you're not really supposed to know or care what
underlying algorithm makes the magic happen, since neither SILK not
CELT stands alone in Opus. Simply feeding the correct audio type
should be sufficient.<br>
<br>
Oh, I see your previous message that you're benchmarking. You can
import opus_private.h and use
opus_encoder_ctl(ctx,OPUS_SET_FORCE_MODE(mode)); where mode is
MODE_SILK_ONLY, MODE_CELT_ONLY, or MODE_HYBRID. Obviously, don't do
this in a real application! The numbers will be slightly different
due to bypassing the mode analyzer, so make sure to test the public
API primarily.<div><div class="h5"><br>
<br>
<br>
<br>
On 12/31/2015 5:17 PM, Amit Ashara wrote:<br>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>Hello All,<br>
<br>
</div>
<div>Based on reading the documentation and some online
resources, it seems that there are 2 codecs CELT and SILK.
However when calling opus_encode* API, it is not clear which
of the two are used?<br>
<br>
</div>
<div>Is there a specific mode to be selected to use one or the
other?<br>
</div>
<div><br>
</div>
Regards<br>
</div>
Amit<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
opus mailing list
<a href="mailto:opus@xiph.org" target="_blank">opus@xiph.org</a>
<a href="http://lists.xiph.org/mailman/listinfo/opus" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>