public class SpeechAudioFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
AverageBytesPerSecond
This value indicates how many bytes of audio data must be streamed to a D/A converter
per second in order to play the audio.
|
short |
BitsPerSample
The number of significant bits in each audio sample.
|
short |
BlockAlign
The number of data bytes per sample slice.
|
short |
ChannelCount
The number of separate audio signals in the audio data.
|
AudioCompressionType |
EncodingFormat
Specifies the type of compression used on the audio data as a short.
|
byte[] |
FormatSpecificData
Extra bytes for use to describe parameters to certain audio compression types.
|
int |
SamplesPerSecond
Audio sample slices per second (one slice includes all the channel samples).
|
Constructor and Description |
---|
SpeechAudioFormat() |
Modifier and Type | Method and Description |
---|---|
static SpeechAudioFormat |
create16BitPCMFormat(int sampleRate)
Produces a SpeechAudioFormat for 16-bit PCM data.
|
static SpeechAudioFormat |
createSiren7Format(int sampleRate)
Produces a SpeechAudioFormat for data encoded in Siren7.
|
public int AverageBytesPerSecond
public short BitsPerSample
public short BlockAlign
public short ChannelCount
public AudioCompressionType EncodingFormat
public byte[] FormatSpecificData
public int SamplesPerSecond
public static SpeechAudioFormat createSiren7Format(int sampleRate)
sampleRate
- The samples per second of the audio that was encoded (can only by 8000 or 16000).public static SpeechAudioFormat create16BitPCMFormat(int sampleRate)
sampleRate
- The samples per second of the audio that was encoded (can only by 8000 or 16000).