Build 1.0_r1(from source)

android.speech.recognition
Class Codec

java.lang.Object
  extended by android.speech.recognition.Codec

public abstract class Codec
extends Object

Audio formats.


Field Summary
static Codec PCM_16BIT_11K
          PCM, 16 bits, 11KHz.
static Codec PCM_16BIT_22K
          PCM, 16 bits, 22KHz.
static Codec PCM_16BIT_8K
          PCM, 16 bits, 8KHz.
static Codec ULAW_8BIT_8K
          ULAW, 8 bits, 8KHz.
 
Method Summary
abstract  byte getBitsPerSample()
          Returns the codec bitrate.
abstract  int getSampleRate()
          Returns the codec sample-rate.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PCM_16BIT_8K

public static final Codec PCM_16BIT_8K
PCM, 16 bits, 8KHz.


PCM_16BIT_11K

public static final Codec PCM_16BIT_11K
PCM, 16 bits, 11KHz.


PCM_16BIT_22K

public static final Codec PCM_16BIT_22K
PCM, 16 bits, 22KHz.


ULAW_8BIT_8K

public static final Codec ULAW_8BIT_8K
ULAW, 8 bits, 8KHz.

Method Detail

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

getSampleRate

public abstract int getSampleRate()
Returns the codec sample-rate.

Returns:
the codec sample-rate

getBitsPerSample

public abstract byte getBitsPerSample()
Returns the codec bitrate.

Returns:
the codec bitrate

Build 1.0_r1(from source)

Please submit a feedback, bug or feature