<div dir="ltr">Thanks a lot for your tips. <div>What I have to done to debug: got the raw wav-file, compressed/decompressed it on my PC and saved OPUS packets as an array. Moved this array to the embedded platform and made sure that the frames decoded from the OPUS packets are the same. However, the high noise level was the same, but it wasn`t caused by OPUS.<div>The problem was with my sound bus between an embedded device and the speaker - there was an one bit offset between FS signal and sound slots, which I didn't take into account. Now I have the clear enough sound with 30% MCU load for full duplex sound.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-12 20:46 GMT+03:00 Ralph Giles <span dir="ltr"><<a href="mailto:giles@thaumas.net" target="_blank">giles@thaumas.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2016-07-12 9:34 AM, Aleksandr Mikoff wrote:<br>
<br>
> If I encode each frame, decode it and send it back to the speakers I<br>
> hear a very noisy signal - it is so large, so it is almost impossible to<br>
> distinguish words in my speech...<br>
<br>
</span>This effect can be caused by some data type issues:<br>
<br>
- If you are using opus_encode() and opus_decode(), make sure to use<br>
16-bit signed integer samples in the pcm buffer. If you have 8-bit<br>
samples you'll have to convert them.<br>
- Make sure you're passing the length of the pcm buffer in _samples_<br>
not _bytes_.<br>
- Make sure you're passing the size of the compressed opus data in _bytes_.<br>
<span class=""><br>
> Is it ok, that I changed few parameters in "defines.h" file (to<br>
> suppress the RAM requirements - I have only 60 KB RAM free on my STM32<br>
> board)? I changed the ENCODER_NUM_CHANNELS 1 and DECODER_NUM_CHANNELS to<br>
> one, and MAX_FS_KHZ to 8.<br>
<br>
</span>That's not a tested configuration, so it's possible this broke<br>
something. If you make the same changes and build for a desktop target,<br>
does audio round-trip through opus_demo correctly?<br>
<br>
-r<br>
<br>
_______________________________________________<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/listinfo/opus</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>С уважением,</div>Миков Александр<div><br></div><div><span style="font-size:12.8000001907349px">IMU based localization:</span><br style="font-size:12.8000001907349px"><a href="https://youtu.be/ge9EXeF7SJs" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://youtu.be/ge9EXeF7SJs</a><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">RTL-Service (RealTrac) won EvAAL competition:</span><br style="font-size:12.8000001907349px"><a href="http://evaal.aaloa.org/2013/results-2013" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">http://evaal.aaloa.org/2013/results-2013</a><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">RealTrac video presentation (in Russian):</span><br style="font-size:12.8000001907349px"><a href="http://youtu.be/8wI8_wiE8jQ" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">http://youtu.be/8wI8_wiE8jQ</a><br></div></div></div></div>
</div>