public class AudioFormat
extends java.lang.Object
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
Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_SAMPLE_MONO |
static int |
AUDIO_SAMPLE_RATE_16000 |
static int |
AUDIO_SAMPLE_RATE_24000 |
static int |
AUDIO_SAMPLE_RATE_32000 |
static int |
AUDIO_SAMPLE_RATE_44100 |
static int |
AUDIO_SAMPLE_RATE_48000 |
static int |
AUDIO_SAMPLE_RATE_8000 |
static int |
AUDIO_SAMPLE_STEREO |
Constructor and Description |
---|
AudioFormat(int sampleRate,
int channelCount) |
Modifier and Type | Method and Description |
---|---|
int |
getChannelCount()
Returns the number of channels in the audio stream.
|
int |
getSampleRate()
Returns the sample rate of the audio stream.
|
public static final int AUDIO_SAMPLE_RATE_8000
public static final int AUDIO_SAMPLE_RATE_16000
public static final int AUDIO_SAMPLE_RATE_24000
public static final int AUDIO_SAMPLE_RATE_32000
public static final int AUDIO_SAMPLE_RATE_44100
public static final int AUDIO_SAMPLE_RATE_48000
public static int AUDIO_SAMPLE_MONO
public static final int AUDIO_SAMPLE_STEREO
public int getSampleRate()
public int getChannelCount()
6.0.0