Package 

Class AudioFormat


  • 
    public class AudioFormat
    
                        

    AudioFormat describes 16-bit signed Linear Pulse Code Modulation (LPCM) audio. This class allows developers to customize the audio format used for audio capturing or rendering.

    Supported sample rate values are 8000, 16000, 24000, 32000, 44100 and 48000 Hz. Only mono(number of channels 1) and stereo(number of channels 2) are supported by the SDK

    • Constructor Detail

      • AudioFormat

        AudioFormat(int sampleRate, int channelCount)
    • Method Detail

      • getSampleRate

         int getSampleRate()

        Returns the sample rate of the audio stream. Valid values for this property are 8000, 16000,24000, 32000, 44100 and 48000 Hz.

      • getChannelCount

         int getChannelCount()

        Returns the number of channels in the audio stream.