io.agora.rtc

## Class LocalAudioStats

- java.lang.Object
- - io.agora.rtc.LocalAudioStats

-     public class LocalAudioStats
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private int` | `internalCodec` The internal payload codec.
    `private int` | `numChannels` The number of audio channels.
    `private int` | `sentBitrate` The average bitrate (Kbps) of sending the local user's audio stream.
    `private int` | `sentSampleRate` The sampling rate (Hz) of sending the local user's audio stream.
    `private double` | `voicePitch` Voice pitch frequency in Hz.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocalAudioStats()`
    `LocalAudioStats(int numChannels, int sentSampleRate, int sentBitrate, int internalCodec, double voicePitch)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getInternalCodec()`
    `int` | `getNumChannels()`
    `int` | `getSentBitrate()`
    `int` | `getSentSampleRate()`
    `double` | `getVoicePitch()`
    `void` | `setInternalCodec(int internalCodec)`
    `void` | `setNumChannels(int numChannels)`
    `void` | `setSentBitrate(int sentBitrate)`
    `void` | `setSentSampleRate(int sentSampleRate)`
    `void` | `setVoicePitch(double voicePitch)`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### numChannels

          private int numChannels

      The number of audio channels.

    - #### sentSampleRate

          private int sentSampleRate

      The sampling rate (Hz) of sending the local user's audio stream.

    - #### sentBitrate

          private int sentBitrate

      The average bitrate (Kbps) of sending the local user's audio stream.

    - #### internalCodec

          private int internalCodec

      The internal payload codec.

    - #### voicePitch

          private double voicePitch

      Voice pitch frequency in Hz.

  - ### Constructor Detail

    - #### LocalAudioStats

          public LocalAudioStats()

    - #### LocalAudioStats

          public LocalAudioStats(int numChannels,
                                 int sentSampleRate,
                                 int sentBitrate,
                                 int internalCodec,
                                 double voicePitch)

  - ### Method Detail

    - #### getNumChannels

          public int getNumChannels()

    - #### setNumChannels

          public void setNumChannels(int numChannels)

    - #### getSentSampleRate

          public int getSentSampleRate()

    - #### setSentSampleRate

          public void setSentSampleRate(int sentSampleRate)

    - #### getSentBitrate

          public int getSentBitrate()

    - #### setSentBitrate

          public void setSentBitrate(int sentBitrate)

    - #### getInternalCodec

          public int getInternalCodec()

    - #### setInternalCodec

          public void setInternalCodec(int internalCodec)

    - #### getVoicePitch

          public double getVoicePitch()

    - #### setVoicePitch

          public void setVoicePitch(double voicePitch)

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`