# BluetoothCodecConfig.Builder

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/bluetooth/BluetoothCodecConfig.Builder "View this page in Java")  

```
class Builder
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                   ||
| ↳ | [android.bluetooth.BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) |

Builder for[BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig).

By default, the codec type will be set to[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_INVALID](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_INVALID:kotlin.Int), the codec priority to[android.bluetooth.BluetoothCodecConfig#CODEC_PRIORITY_DEFAULT](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CODEC_PRIORITY_DEFAULT:kotlin.Int), the sample rate to[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_NONE](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_NONE:kotlin.Int), the bits per sample to[android.bluetooth.BluetoothCodecConfig#BITS_PER_SAMPLE_NONE](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#BITS_PER_SAMPLE_NONE:kotlin.Int), the channel mode to[android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_NONE](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CHANNEL_MODE_NONE:kotlin.Int), and all the codec specific values to 0.

## Summary

|                                                       Public constructors                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#Builder())`()` <br /> |

|                                                                                                                                                                                                                                      Public methods                                                                                                                                                                                                                                      ||
|--------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig)                  | [build](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#build())`()` Build[BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig).                                                                                                                   |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setBitsPerSample](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setBitsPerSample(kotlin.Int))`(`bitsPerSample:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set the bits per sample for Bluetooth codec config.                                                      |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setChannelMode](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setChannelMode(kotlin.Int))`(`channelMode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set the channel mode for Bluetooth codec config.                                                               |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setCodecPriority](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setCodecPriority(kotlin.Int))`(`codecPriority:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set codec priority for Bluetooth codec config.                                                           |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setCodecSpecific1](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setCodecSpecific1(kotlin.Long))`(`codecSpecific1:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the first codec specific values for Bluetooth codec config.                                    |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setCodecSpecific2](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setCodecSpecific2(kotlin.Long))`(`codecSpecific2:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the second codec specific values for Bluetooth codec config.                                   |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setCodecSpecific3](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setCodecSpecific3(kotlin.Long))`(`codecSpecific3:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the third codec specific values for Bluetooth codec config.                                    |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setCodecSpecific4](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setCodecSpecific4(kotlin.Long))`(`codecSpecific4:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set the fourth codec specific values for Bluetooth codec config.                                   |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setCodecType](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setCodecType(kotlin.Int))`(`codecType:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set codec type for Bluetooth codec config.                                                                           |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setExtendedCodecType](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setExtendedCodecType(android.bluetooth.BluetoothCodecType))`(`codecType:` `[BluetoothCodecType](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecType)?`)` Set codec type for Bluetooth codec config. |
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | [setSampleRate](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#setSampleRate(kotlin.Int))`(`sampleRate:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set sample rate for Bluetooth codec config.                                                                       |

## Public constructors

### Builder

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Builder()
```

## Public methods

### build

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun build(): BluetoothCodecConfig
```

Build[BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig).

|                                                                                  Return                                                                                   ||
|---------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|
| [BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig) | new BluetoothCodecConfig built This value cannot be`null`. |

### setBitsPerSample

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setBitsPerSample(bitsPerSample: Int): BluetoothCodecConfig.Builder
```

Set the bits per sample for Bluetooth codec config.

|                                                                                                                                                                                                                                                                                                                                                                                                                          Parameters                                                                                                                                                                                                                                                                                                                                                                                                                          ||
|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `bitsPerSample` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):of this codec Value is[android.bluetooth.BluetoothCodecConfig#BITS_PER_SAMPLE_NONE](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#BITS_PER_SAMPLE_NONE:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#BITS_PER_SAMPLE_16](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#BITS_PER_SAMPLE_16:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#BITS_PER_SAMPLE_24](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#BITS_PER_SAMPLE_24:kotlin.Int), or[android.bluetooth.BluetoothCodecConfig#BITS_PER_SAMPLE_32](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#BITS_PER_SAMPLE_32:kotlin.Int) |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setChannelMode

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setChannelMode(channelMode: Int): BluetoothCodecConfig.Builder
```

Set the channel mode for Bluetooth codec config.

|                                                                                                                                                                                                                                                                                                                             Parameters                                                                                                                                                                                                                                                                                                                              ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `channelMode` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):of this codec Value is[android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_NONE](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CHANNEL_MODE_NONE:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_MONO](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CHANNEL_MODE_MONO:kotlin.Int), or[android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_STEREO](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CHANNEL_MODE_STEREO:kotlin.Int) |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setCodecPriority

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setCodecPriority(codecPriority: Int): BluetoothCodecConfig.Builder
```

Set codec priority for Bluetooth codec config.

|                                                                                                                                                                                                                                                                                                                                            Parameters                                                                                                                                                                                                                                                                                                                                             ||
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `codecPriority` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):of this codec Value is[android.bluetooth.BluetoothCodecConfig#CODEC_PRIORITY_DISABLED](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CODEC_PRIORITY_DISABLED:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#CODEC_PRIORITY_DEFAULT](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CODEC_PRIORITY_DEFAULT:kotlin.Int), or[android.bluetooth.BluetoothCodecConfig#CODEC_PRIORITY_HIGHEST](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#CODEC_PRIORITY_HIGHEST:kotlin.Int) |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setCodecSpecific1

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setCodecSpecific1(codecSpecific1: Long): BluetoothCodecConfig.Builder
```

Set the first codec specific values for Bluetooth codec config.

|                                                             Parameters                                                              ||
|------------------|-------------------------------------------------------------------------------------------------------------------|
| `codecSpecific1` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):codec specific value or 0 if default |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setCodecSpecific2

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setCodecSpecific2(codecSpecific2: Long): BluetoothCodecConfig.Builder
```

Set the second codec specific values for Bluetooth codec config.

|                                                             Parameters                                                              ||
|------------------|-------------------------------------------------------------------------------------------------------------------|
| `codecSpecific2` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):codec specific value or 0 if default |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setCodecSpecific3

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setCodecSpecific3(codecSpecific3: Long): BluetoothCodecConfig.Builder
```

Set the third codec specific values for Bluetooth codec config.

|                                                             Parameters                                                              ||
|------------------|-------------------------------------------------------------------------------------------------------------------|
| `codecSpecific3` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):codec specific value or 0 if default |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setCodecSpecific4

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setCodecSpecific4(codecSpecific4: Long): BluetoothCodecConfig.Builder
```

Set the fourth codec specific values for Bluetooth codec config.

|                                                             Parameters                                                              ||
|------------------|-------------------------------------------------------------------------------------------------------------------|
| `codecSpecific4` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):codec specific value or 0 if default |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setCodecType

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setCodecType(codecType: Int): BluetoothCodecConfig.Builder
```

**Deprecated:** *use[BluetoothCodecType](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecType)instead*

Set codec type for Bluetooth codec config.

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ||
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `codecType` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):of this codec Value is[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_SBC](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_SBC:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_AAC](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_AAC:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_APTX](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_APTX:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_APTX_HD](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_APTX_HD:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_LDAC](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_LDAC:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_LC3](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_LC3:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_OPUS](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_OPUS:kotlin.Int), or[android.bluetooth.BluetoothCodecConfig#SOURCE_CODEC_TYPE_INVALID](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SOURCE_CODEC_TYPE_INVALID:kotlin.Int) |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setExtendedCodecType

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setExtendedCodecType(codecType: BluetoothCodecType?): BluetoothCodecConfig.Builder
```

Set codec type for Bluetooth codec config.

|                                                                           Parameters                                                                           ||
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
| `codecType` | [BluetoothCodecType](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecType)?:of this codec This value may be`null`. |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |

### setSampleRate

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setSampleRate(sampleRate: Int): BluetoothCodecConfig.Builder
```

Set sample rate for Bluetooth codec config.

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ||
|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `sampleRate` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):of this codec Value is[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_NONE](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_NONE:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_44100](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_44100:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_48000](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_48000:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_88200](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_88200:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_96000](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_96000:kotlin.Int),[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_176400](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_176400:kotlin.Int), or[android.bluetooth.BluetoothCodecConfig#SAMPLE_RATE_192000](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig#SAMPLE_RATE_192000:kotlin.Int) |

|                                                                                        Return                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [BluetoothCodecConfig.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig.Builder#) | the same Builder instance This value cannot be`null`. |