javaclient
Class SpeechRecognitionInterface

java.lang.Object
  extended by javaclient.PlayerDevice
      extended by javaclient.SpeechRecognitionInterface

public class SpeechRecognitionInterface
extends PlayerDevice

The speech recognition interface provides access to a speech recognition server.

Version:
Author:
Radu Bogdan Rusu

Field Summary
static short SPEECH_RECOGNITION_TEXT_LEN
           
 
Fields inherited from class javaclient.PlayerDevice
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec
 
Constructor Summary
SpeechRecognitionInterface(PlayerClient pc, short indexOfDevice)
          Constructor for SpeechRecognitionInterface.
 
Method Summary
 char[] getText()
          Returns the speech recognition data packet.
 void readData()
          Read the speech recognition data packet.
 
Methods inherited from class javaclient.PlayerDevice
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readHeader, sendHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPEECH_RECOGNITION_TEXT_LEN

public static final short SPEECH_RECOGNITION_TEXT_LEN
See Also:
Constant Field Values
Constructor Detail

SpeechRecognitionInterface

public SpeechRecognitionInterface(PlayerClient pc,
                                  short indexOfDevice)
Constructor for SpeechRecognitionInterface.

Parameters:
pc - a reference to the PlayerClient object
indexOfDevice - the index of the device
Method Detail

readData

public void readData()
Read the speech recognition data packet.

Overrides:
readData in class PlayerDevice

getText

public char[] getText()
Returns the speech recognition data packet.

Returns:
an array of up to SPEECH_RECOGNITION_TEXT_LEN chars filled with data