<div dir="ltr">Does it clip when bridging too ? So not with mod_conference.  <div><br></div><div>You could try to add something like this in mod_opus.c, before decoding, and see if it helps:</div><div>opus_decoder_ctl(context->decoder_object, OPUS_SET_GAIN(-10)); </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 9, 2020 at 1:52 AM David P <<a href="mailto:davidswalkabout@gmail.com">davidswalkabout@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Our conference.conf.xml had: <div><br>      <param name="comfort-noise" value="false"/>  <div><br></div><div>and no auto-gain-level. I changed it:</div><div><br>      <param name="comfort-noise" value="0"/><br>      <param name="auto-gain-level" value="-2000"/><br></div></div><div><br></div><div>And there's now clipping only during the loudest parts. But I think this gain setting is already extreme and I'd like to know if there's a less brute-force way to eliminate clipping.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 9, 2020 at 9:33 AM David P <<a href="mailto:davidswalkabout@gmail.com" target="_blank">davidswalkabout@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">When we configure FSv10.4 to transcode Opus to PCMA/U, the output stream always has clipping (peak amplitude is always -0.17dB, 0.99 linear when measured in Audacity).<div><br></div><div>I tried configuring opus.conf.xml as suggested in <a href="https://serverfault.com/a/807070" target="_blank">https://serverfault.com/a/807070</a> (with restart via: fs_cli -x 'fsctl shutdown elegant restart') but it makes no difference.</div><div><br></div><div>When we simultaneously record the session with Audacity clientside, less than half the available range is used, so the user mic doesn't have gain too high.</div><div><br></div><div>How can we avoid clipping when transcoding?</div></div>
</blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>