javaclient
Class SpeechInterface

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

public class SpeechInterface
extends PlayerDevice

The speech interface provides access to a speech synthesis system. The speech interface returns no data.

Version:
Author:
Maxim A. Batalin & Radu Bogdan Rusu

Field Summary
static short PLAYER_SPEECH_MAX_STRING_LEN
          maximum string length
 
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
SpeechInterface(PlayerClient pc, short indexOfDevice)
          Constructor for SpeechInterface.
 
Method Summary
 void speech(java.lang.String text)
          The speech interface accepts a command that is a string to be given to the speech synthesizer.
 
Methods inherited from class javaclient.PlayerDevice
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readData, readHeader, sendHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAYER_SPEECH_MAX_STRING_LEN

public static final short PLAYER_SPEECH_MAX_STRING_LEN
maximum string length

See Also:
Constant Field Values
Constructor Detail

SpeechInterface

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

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

speech

public void speech(java.lang.String text)
The speech interface accepts a command that is a string to be given to the speech synthesizer. The first PLAYER_SPEECH_MAX_STRING_LEN characters will be said.

Parameters:
text - the string to say