<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Change the bitrate LC3 codec.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119077/change-the-bitrate-lc3-codec</link><description>I want to change the bitrate for different settings： 
 
 Different settings with 48khz&amp;amp;10ms: 
 
 I try ot change the prj.conf to add these: 
 
 But an error occurred during compilation: 
 
 I want to know how to change the bit rate in unicast and broadcast</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Feb 2025 14:45:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119077/change-the-bitrate-lc3-codec" /><item><title>RE: Change the bitrate LC3 codec.</title><link>https://devzone.nordicsemi.com/thread/523930?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 14:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70ef09d7-09f6-40b7-869e-2ae899e16f55</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In unicast, we can&amp;#39;t change the bitrate arbitrarily. We need to stick to the preset defined in BAP:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_AUDIO_PREF_SAMPLE_RATE_48KHZ=y  //result to 48KHz SpS, 96kbps
CONFIG_BT_AUDIO_PREF_SAMPLE_RATE_24KHZ=y  //result to 24KHz SpS, 48kbps
CONFIG_BT_AUDIO_PREF_SAMPLE_RATE_16KHZ=y  //result to 16KHz SpS, 32kbps&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;please note that&amp;nbsp;&lt;span&gt;CONFIG_BT_AUDIO_BITRATE_UNICAST_SRC/SINK has no effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When broadcasting, you are a bit more free to do as you like. You can set the bitrate and sample rate, e.g. like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_AUDIO_BITRATE_BROADCAST_SRC=32000  # set the bitrate
CONFIG_BT_AUDIO_PREF_SAMPLE_RATE_24KHZ=y # set the sampling rate to 24KHz, we also support 16KHz
CONFIG_BT_AUDIO_RETRANSMITS=2 # the default is 2, just for reference if you would like to change it&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>