# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Methods | Inherited Methods

# EncoderProfiles.AudioProfile

`public static final class EncoderProfiles.AudioProfile`
`extends Object` ``

java.lang.Object
↳ | android.media.EncoderProfiles.AudioProfile

Configuration for an audio encoder.

## Summary

### Public methods
`int` | `getBitrate()` The target audio output bitrate in bits per second
`int` | `getChannels()` The number of audio channels used for the audio track
`int` | `getCodec()` The audio encoder being used for the audio track.
`String` | `getMediaType()` The media type of the audio encoder being used for the video track
`int` | `getProfile()` The audio encoder profile being used for the audio track This value is negative if there is no profile defined for the audio codec.
`int` | `getSampleRate()` The audio sampling rate used for the audio track

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public methods

### getBitrate

    public int getBitrate ()

The target audio output bitrate in bits per second

Returns
`int` |

### getChannels

    public int getChannels ()

The number of audio channels used for the audio track

Returns
`int` |

### getCodec

    public int getCodec ()

The audio encoder being used for the audio track.

Returns
`int` | Value is `MediaRecorder.AudioEncoder.DEFAULT`, `MediaRecorder.AudioEncoder.AMR_NB`, `MediaRecorder.AudioEncoder.AMR_WB`, `MediaRecorder.AudioEncoder.AAC`, `MediaRecorder.AudioEncoder.HE_AAC`, `MediaRecorder.AudioEncoder.AAC_ELD`, `MediaRecorder.AudioEncoder.VORBIS`, or `MediaRecorder.AudioEncoder.OPUS`

See also:

- `MediaRecorder.AudioEncoder`

### getMediaType

    public String getMediaType ()

The media type of the audio encoder being used for the video track

Returns
`String` | This value cannot be `null`.

See also:

- `MediaFormat.KEY_MIME`

### getProfile

    public int getProfile ()

The audio encoder profile being used for the audio track

This value is negative if there is no profile defined for the audio codec.

Returns
`int` |

See also:

- `MediaFormat.KEY_PROFILE`

### getSampleRate

    public int getSampleRate ()

The audio sampling rate used for the audio track

Returns
`int` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*